Pular para o conteúdo

Get statement by external account ID

Requisição

Gets a statement for an account that lists payments and transfers that impacted the account's balance during a specified date-time range.

Segurança
Bearer
Caminho
external_account_idstringobrigatório

The external account ID associated with the account.

Consulta
start-datestringobrigatório

The lower bound of the date-time range you want to return statement information for, as an ISO-8601 timestamp in UTC. For example, 2018-08-06T23:13:55.997Z.

end-datestringobrigatório

The upper bound of the date-time range you want to return statement information for, as an ISO-8601 timestamp in UTC. For example, 2018-08-06T23:15:13.218Z.

pageinteger

The page number for paginated results. The value is zero-based, where 0 represents the first page.
Set it to 0 to get the first page of results.

Padrão:0
sizeinteger, [ 1 .. 100 ]

Number of payment and transfer objects to return per page.

Padrão:10
curl -i -X GET \
  'https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/ripplenet/reference/openapi/statement/external_account_id/{external_account_id}?start-date=string&end-date=string&page=0&size=10' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Respostas

Successfully returns an account statement.

Corpoapplication/json
account_namestringobrigatório

Name of the account the statement covers.

Exemplo:"trans_usd_sf"
start_datetimestring, (date-time)obrigatório

Lower bound of the date-time range the statement covers, as an ISO-8601 timestamp in UTC.

Exemplo:"2018-08-06T23:13:55.997Z"
end_datetimestring, (date-time)obrigatório

Upper bound of the date-time range the statement covers, as an ISO-8601 timestamp in UTC.

Exemplo:"2020-08-06T23:13:55.997Z"
generated_atstring, (date-time)obrigatório

Time at which the statement was generated, as an ISO-8601 timestamp in UTC.

Exemplo:"2019-10-01T21:58:23.621Z"
currencystringobrigatório

Currency supported by the account.

Exemplo:"USD"
ownerstringobrigatório

Owner of the account

Exemplo:"rn.us.ca.san_francisco"
opening_balancenumberobrigatório

Opening balance of the account for the given date range.

Exemplo:0
closing_balancenumberobrigatório

Closing balance of the account for the given date range.

Exemplo:-909
transactionsobjectobrigatório

Provides a content array and a set of pagination information fields.

Resposta
{ "account_name": "trans_usd_sf", "start_datetime": "2018-08-06T23:13:55.997Z", "end_datetime": "2020-08-06T23:13:55.997Z", "generated_at": "2019-10-01T21:58:23.621Z", "currency": "USD", "owner": "rn.us.ca.san_francisco", "opening_balance": 0, "closing_balance": -909, "transactions": { "content": [ … ], "total_elements": 1, "sort": "string", "first": true, "last": true, "number": 0, "numberOfElements": 1, "size": 10, "totalPages": 1 } }