Skip to content
Status

List charges

GEThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/charges

GET
/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
criteria
string

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=ACTIVE
  • contract=co_12345_67890
  • alt_key=INSTALMENT_2
  • due<>2024-01-01;2024-12-31
  • outstanding_amount>=10
order
string

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=due
  • order=outstanding_amount:desc
expand
string

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

limit
integer

Number of records to return: 20 if not set, at most 1000.

offset
integer

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.

List of charges

Media typeapplication/json
object
charges
Array<object>

A charge object representing an invoice on a contract. Contains all information about the charge including its status, amounts, and payment history.

object
id
string

The ID of the charge

amount
string

The amount of the charge

alt_key
string

Your supplied key for the charge (eg invoice id)

charge_number
integer

Which charge this is in a recurring contract (eg 1 for first, 2 for second)

extra_charge
boolean

If this charge was manually created

completed
string · date-time

When the charge was completed

contract
string

The contract this charge belongs to

created
string · date-time

When the charge was created

created_session
string

The session the object was created by

due
string · date-time

When the charge is due to be paid

initiated
string · date-time

When the charge was instructed

outstanding_amount
string

The amount that remains to be paid

overdue_amount
string

DEPRECATED - do not use

recurring
boolean

If this charge is part of a recurring contract

paid_amount
string

The amount that has been paid

status
string · enum

The status of the charge

Allowed values: ACTIVE PENDING COMPLETED WRITTENOFF
updated
string · date-time

When the charge was last modified

updated_session
string

The session the object was updated by

writtenoff_amount
string

The amount that has been written off

v
integer

The version of the record

meta
object
object
limit
integer
offset
integer
total
integer

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?