Skip to main content
PUT
Update subscription payment method

Headers

X-API-Key
string
required

API Key for authentication

Query Parameters

contractId
integer<int64>
required

Subscription contract ID to update payment method for. Must be a valid contract ID that belongs to the authenticated shop.

Required range: x >= 1
paymentMethodId
string
required

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

Pattern: ^gid://shopify/CustomerPaymentMethod/[a-zA-Z0-9]+$

Response

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