Skip to main content
PUT
Set existing Shopify payment method on contract

Query Parameters

contractId
integer<int64>
required

The subscription contract ID. It must belong to the signed-in customer.

paymentMethodId
string
required

ID of the saved payment method to use, in the format gid://shopify/CustomerPaymentMethod/{id}. It must be one of the signed-in customer's saved payment methods that isn't revoked: get it from Get current customer's saved Shopify payment methods.

Response

The subscription now uses the payment method. The body is empty.