Anchor to customerPaymentMethodCreateFromDuplicationDatacustomer
mutationcustomer Payment Method Create From Duplication Data
Requires access scope. Also: Requires 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.
Anchor to Arguments
Arguments
- billingAddress (MailingAddressInput!)
- customerId (ID!)
- encryptedDuplicationData (String!)
- Anchor to billingAddressbilling•Mailing
Address Address Input! required The billing address.
- Anchor to customerIdcustomer•ID!
Id required The ID of the customer.
- Anchor to encryptedDuplicationDataencrypted•String!
Duplication Data required The encrypted payment method data.
Was this section helpful?
Anchor to CustomerPaymentMethodCreateFromDuplicationDataPayload returnsCustomer Payment Method Create From Duplication Data Payload returns
- customerPaymentMethod (CustomerPaymentMethod)
- userErrors ([CustomerPaymentMethodCreateFromDuplicationDataUserError!]!)
- Anchor to customerPaymentMethodcustomer•Customer
Payment Method Payment Method The customer payment method.
- Anchor to userErrorsuser•[Customer
Errors Payment Method Create From Duplication Data User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?