Skip to content

Get a payment update link for the customer

POST
/api/subscriptions/{id}/payment-method/update-url
curl --request POST \
--url https://api.usegro.co/api/subscriptions/example/payment-method/update-url

Returns a secure Shopify-hosted URL the team can send to the customer to update the payment method on this subscription. Uses Shopify’s customerPaymentMethodGetUpdateUrl mutation.

id
required
string

Payment update link generated

Media typeapplication/json
object
url
required
string

Example generated

{
"url": "example"
}

Subscription has no Shopify contract, or Shopify rejected the request

Media typeapplication/json

Example

{
"error": "Subscription has no Shopify contract"
}