Skip to main content
Anchor to CustomerPaymentMethodUserError

CustomerPaymentMethodUserError

object

Requires read_customers access scope. Also: Requires read_customer_payment_methods scope.

An error in the input of a mutation. Mutations return UserError objects to indicate validation failures, such as invalid field values or business logic violations, that prevent the operation from completing.

•CustomerPaymentMethodUserErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!
non-null

The error message.


Was this section helpful?

•mutation

Creates a vaulted PayPal billing agreement for a customer, enabling recurring charges through PayPal. The billing agreement ID (starting with 'B-') must be obtained from PayPal. Once created, this payment method can be used for subscription billing or future order payments without requiring the customer to re-authenticate with PayPal.

Arguments

•ID!
required

The ID of the customer.

•MailingAddressInput

The billing address.

•String!
required

The billing agreement ID from PayPal that starts with 'B-' (for example, B-1234XXXXX).

•Boolean
Default:false

Whether the PayPal billing agreement is inactive.


•mutation

Updates the billing address associated with a customer's vaulted PayPal billing agreement. Use this when a customer's billing information has changed and their PayPal payment method record in Shopify needs to be updated accordingly.

Arguments

•ID!
required

The ID of the customer payment method.

•MailingAddressInput!
required

The billing address.



Was this section helpful?


Was this section helpful?