List charges
GEThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/charges
Search and filter charge objects with pagination support.
Available fields for criteria and order:
- id
- alt_key
- contract
- created
- due
- outstanding_amount
- recurring: “Y” (true) “N” (false)
- status
- updated
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Search criteria for filtering charges. Available fields:
- id
- alt_key (your reference for a scheduled charge)
- contract
- created
- due
- outstanding_amount
- recurring (Y/N)
- status
- updated
Examples:
status=ACTIVEcontract=co_12345_67890alt_key=INSTALMENT_2due<>2024-01-01;2024-12-31outstanding_amount>=10
Sort order for results. Supports any field that criteria supports.
Defaults to created:desc if not specified. Append :desc for descending order.
Separate multiple order fields with commas.
Examples:
order=dueorder=outstanding_amount:desc
Fields to expand into full objects. Separate multiple fields with commas.
Available fields:
- contract (contract object)
- created_session (session object)
- updated_session (session object)
Example: expand=contract
Number of records to return: 20 if not set, at most 1000.
Number of records to skip before the first one returned. offset + limit can’t exceed 5000; to read further, page by a field such as created instead. See Paging through results.
Responses
Section titled “Responses”List of charges
object
A charge object representing an invoice on a contract. Contains all information about the charge including its status, amounts, and payment history.
object
The ID of the charge
The amount of the charge
Your supplied key for the charge (eg invoice id)
Which charge this is in a recurring contract (eg 1 for first, 2 for second)
If this charge was manually created
When the charge was completed
The contract this charge belongs to
When the charge was created
The session the object was created by
When the charge is due to be paid
When the charge was instructed
The amount that remains to be paid
DEPRECATED - do not use
If this charge is part of a recurring contract
The amount that has been paid
The status of the charge
When the charge was last modified
The session the object was updated by
The amount that has been written off
The version of the record
object
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.