Skip to content
Status

Create URL to update payment method

POSThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/contracts/{contract_id}/payment_method_url

POST
/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.

contract_id
required
string

The contract’s ID (co_...).

Media typeapplication/json
object
locale
string

2 letter language code or full locale (eg ‘en’ or ‘en_US’). Uses browser locale if not specified

Generated URL

Media typeapplication/json
object
url
string

URL to redirect the user to

Bad request

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Unauthorised: the API key is missing or not valid

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Example
{
"code": "UNAUTHORIZED",
"message": "Unauthorised"
}

Was this page helpful?