Get gateway's saved payment method count
GEThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/gateways/{gateway_id}/payment_method_count
Get the approximate number of saved payment methods on a gateway.
Note: The number is accurate as of the “updated” date, however a cached value will be returned if more than 100 in total. The duration of the cache scales with the number of saved payment methods, values over 10k will only be updated monthly.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The gateway’s ID (gw_...), or its code.
Responses
Section titled “Responses”Payment method count details
object
Gateway ID
Total number of saved payment methods
Breakdown by payment method status
object
Count of payment methods that were successful on last use
Count of payment methods that were declined on last use
Timestamp when the count was last updated
Bad request - invalid parameters
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.
Unauthorized - invalid credentials
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"}Gateway not found
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.
Was this page helpful?
What went wrong?
Thanks for telling us.