Skip to content

List transactions

Request

This endpoint allows you to retrieve a list of transactions for a given business. You can filter the transactions by date range, status, and expense completion status.

The transaction-level gst has the same sign as amount: negative for purchases, positive for refunds. Results are ordered by cleared date, then authorised date, newest first.

Security
BearerAuth
Path
client_idintegerrequired

The ID of the business.

Example:123
Query
offsetinteger

Offset to retrieve items from.

Default:0
Example:offset=50
limitinteger, <= 500

Number of items per page.

Default:50
Example:limit=50
min_auth_datestring, (date)

The minimum authorised date for the transactions in UTC.

max_auth_datestring, (date)

The maximum authorised date for the transactions in UTC.

min_cleared_datestring, (date)

The minimum cleared date for the transactions in UTC.

max_cleared_datestring, (date)

The maximum cleared date for the transactions in UTC.

expense_statusstring

The expense completion status of the transactions.

Enum:"COMPLETE""INCOMPLETE_EXPENSE"
Example:expense_status=COMPLETE
statusstring(TransactionStatus)

The status of the transactions. Repeat the parameter to match more than one status, for example ?status=AUTHED&status=CLEARED.

Enum:"AUTHED""CLEARED""REFUNDED""DECLINED"
Example:status=CLEARED
curl -i -X GET \
  'https://public.letsweel.com/v3/businesses/123/transactions?offset=50&limit=50&min_auth_date=2019-08-24&max_auth_date=2019-08-24&min_cleared_date=2019-08-24&max_cleared_date=2019-08-24&expense_status=COMPLETE&status=CLEARED' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

OK

Bodyapplication/json
countinteger

The total number of transactions that match the query.

Example:100
nextstring or null

The query string for the next page of transactions, or null on the last page.

Example:"offset=50&limit=50"
previousstring or null

The query string for the previous page of transactions, or null on the first page.

Example:"offset=0&limit=50"
resultsArray of objects(Transaction)
Response

The purchase has a negative amount and gst. The refund has a positive amount and gst.

{ "count": 2, "next": null, "previous": null, "results": [ { … }, { … } ] }