Skip to main content
Anchor to customerPaymentMethodGetDuplicationData

customerPaymentMethodGetDuplicationData

mutation

Requires write_customers access scope. Also: Requires write_vaulted_payment_method_duplication scope.

Returns encrypted data that can be used to duplicate the payment method in another shop within the same organization.

Currently, this only supports Shop Pay payment methods. This is only available for selected partner apps.

Anchor to customerPaymentMethodIdcustomerPaymentMethodId
•ID!
required

The payment method to be duplicated.

•ID!
required

The customer the payment method will be duplicated into.

•ID!
required

The shop the payment method will be duplicated into.


Was this section helpful?

Anchor to CustomerPaymentMethodGetDuplicationDataPayload returnsCustomerPaymentMethodGetDuplicationDataPayload returns

Anchor to encryptedDuplicationDataencryptedDuplicationData
•String

The encrypted data from the payment method to be duplicated.

•[CustomerPaymentMethodGetDuplicationDataUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?