Saltar al contenido principal
GET
/
v1
/
organizations
/
{organization_id}
/
ledgers
/
{ledger_id}
/
balances
Listar Saldos
curl --request GET \
  --url https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/ledgers/{ledger_id}/balances \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>'
{ "items": [ { "id": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "ledgerId": "a2873d47-59a8-4daf-a325-cb2c04557dd7", "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9", "alias": "string", "key": "string", "assetCode": "string", "available": "1000.00", "onHold": "50.00", "version": 0, "accountType": "string", "allowSending": true, "allowReceiving": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "deletedAt": null } ], "next_cursor": "string", "limit": "10" }

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Encabezados

Authorization
string

El token de autorización. Este encabezado es requerido si su entorno tiene el Access Manager habilitado.

Content-Type
string
requerido

El tipo de medio del recurso. Debe ser application/json.

X-Request-Id
string<uuid>

Un identificador único utilizado para rastrear y seguir cada solicitud.

Parámetros de ruta

organization_id
string
requerido

The unique identifier of the Organization associated with the Ledger.

ledger_id
string
requerido

The unique identifier of the associated Ledger.

Parámetros de consulta

limit
string
requerido

El número máximo de elementos a incluir en la respuesta.

start_date
string

El inicio del período que desea recuperar. También debe incluir el end_date.

end_date
string

El fin del período que desea recuperar. También debe incluir el start_date.

sort_order
enum<enum>

El orden utilizado para ordenar los resultados.

Opciones disponibles:
asc,
desc
cursor
string

La posición en un conjunto de datos donde debe comenzar la siguiente página de resultados.

Respuesta

Indica que la solicitud fue exitosa y la respuesta contiene los datos esperados.

items
object[]
next_cursor
string

La posición en un conjunto de datos de la siguiente página de resultados.

limit
integer

El número máximo de elementos incluidos en la respuesta.