Create URL to update payment method
POSThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/contracts/{contract_id}/payment_method_url
Generate an encoded URL to direct a browser to, allowing a user to modify their method of payment on a recurring contract.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The contract’s ID (co_...).
Request Bodyrequired
Section titled “Request Bodyrequired”object
2 letter language code or full locale (eg ‘en’ or ‘en_US’). Uses browser locale if not specified
Responses
Section titled “Responses”Generated URL
object
URL to redirect the user to
Bad request
Every error has a code and a message. Some add more fields alongside them, with detail about the error.
object
The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.
What went wrong, in words, for logs and support.
Unauthorised: the API key is missing or not valid
Every error has a code and a message. Some add more fields alongside them, with detail about the error.
object
The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.
What went wrong, in words, for logs and support.
Example
{ "code": "UNAUTHORIZED", "message": "Unauthorised"}Was this page helpful?
What went wrong?
Thanks for telling us.