Skip to main content
Anchor to customerPaymentMethodCreateFromDuplicationData

customerPaymentMethodCreateFromDuplicationData

mutation

Requires write_customers access scope. Also: Requires write_vaulted_payment_method_duplication scope.

Creates a vaulted payment method for a customer from duplication data.

This data must be obtained from another shop within the same organization.

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

•MailingAddressInput!
required

The billing address.

•ID!
required

The ID of the customer.

Anchor to encryptedDuplicationDataencryptedDuplicationData
•String!
required

The encrypted payment method data.


Was this section helpful?

Anchor to CustomerPaymentMethodCreateFromDuplicationDataPayload returnsCustomerPaymentMethodCreateFromDuplicationDataPayload returns

Anchor to customerPaymentMethodcustomerPaymentMethod
•CustomerPaymentMethod

The customer payment method.

•[CustomerPaymentMethodCreateFromDuplicationDataUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?