Logo
Swift API Sandbox Collections API Documentation

Get statement entries with statement batch

GET {{baseUrl}}/swift-cash-management/v1/accounts/:account-identification/statement-lines?offset=0&limit=25&creation-from-time=20:28:47&creation-to-time=20:28:47&credit-debit-code=CRDT

The API endpoint is used by the consumer of the API to get entries reported to the account. This will include all debit and/or credit entries booked to the account for the specified period to enable intraday reconciliation. Includes pending and booked items.

Response:

  • The endpoint will return HTTP response code 404 if the requested account does not exists.

  • The endpoint will return an empty array if the requested account exists but no entries found or no entries found by the query criteria. For example statement_line: [].

 

Body PARAM

Key Datatype Required Description 
offset
number Specifies the offset / starting point in the list of all available items, starting from which results will be returned. The numeric offset identifies the page token, allowing users to advance to the next page in the collection. The value 0 (zero) identifies the first page of entry.
limit
number The maximum number of items to return in a page. If unspecified, the default limit will be returned. If the limit specified is greater than the maximum permitted by the API, the API will return the maximum permitted limit. Each API should define *maximum and *default limit.
creation-from-time
string (Required) A particular point in the progression of time in a calendar day expressed in either UTC time format (hh:mm:ss.sssZ), local time with UTC offset format (hh:mm:ss.sss+/-hh:mm), or local time format (hh:mm:ss.sss). These representations are aligned with ISO 8601. Note on the time format: 1) beginning / end of calendar day 00:00:00 = the beginning of a calendar day 24:00:00 = the end of a calendar day 2) fractions of second in time format Decimal fractions of seconds may be included. In this case, the involved parties shall agree on the maximum number of digits that are allowed. The result will be filtered on creation_date_time.
creation-to-time
string A particular point in the progression of time in a calendar day expressed in either UTC time format (hh:mm:ss.sssZ), local time with UTC offset format (hh:mm:ss.sss+/-hh:mm), or local time format (hh:mm:ss.sss). These representations are aligned with ISO 8601. Note on the time format: 1) beginning / end of calendar day 00:00:00 = the beginning of a calendar day 24:00:00 = the end of a calendar day 2) fractions of second in time format Decimal fractions of seconds may be included. In this case, the involved parties shall agree on the maximum number of digits that are allowed. The query parameter can use either a specific creation_from_time or time range in the form of creation_from_time and creation_to_time. For upto a requested time, creation_to_time must not be provided. The result will be filtered on creation_date_time.
credit-debit-code
string Specifies if an operation is an increase or a decrease. *`CRDT`-Operation is an increase. *`DBIT`-Operation is a decrease.



HEADERS

Curl
curl -X GET 'https://sandbox.swift.com/swift-cash-management/v1/accounts/:account-identification/statement-lines?offset=0&limit=25&creation-from-time=20:28:47&creation-to-time=20:28:47&credit-debit-code=CRDT?offset=0&limit=25&creation-from-time=20:28:47&creation-to-time=20:28:47&credit-debit-code=CRDT' -H 'X-Request-ID: commodo ut' -H 'X-ServiceProvider: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIiLCJuYW1lIjoiIiwiaWF0IjowfQ.u_kftAUkjiUZO-OhIyj24H7lOUk1wi9GUF-e14JmCtQ' -H 'X-BIC: DEUTDEFF'

ENDPOINTS