eSIM de Viagem — API
Referência da APIPedidos

Listar pedidos

Lista paginada, mais recentes primeiro. Filtre por status e/ou cliente.

GET
/v1/agencies/{agencyId}/orders
AuthorizationBearer <token>

Chave de API no formato ong_sk_...

In: header

Path Parameters

agencyId*unknown

Agência dentro do escopo da chave

Formatuuid

Query Parameters

page?integer

Página a retornar (começa em 1).

Range1 <= value
Default1
limit?integer

Itens por página (máximo 100).

Range1 <= value <= 100
Default50
status?string

Filtra por status do pedido.

Value in

  • "pending_activation"
  • "activated"
  • "activation_failed"
  • "cancelled"
customerId?string

Filtra pelos pedidos de um cliente.

Formatuuid

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/agencies/{agencyId}/orders"
{  "data": [    {      "id": "9b2e6c1a-4f83-4d2b-8a71-2c9e5f0a1b34",      "code": "string",      "status": "string",      "price": "149.90",      "currency": "BRL",      "travelDate": "2019-08-24",      "customer": {        "id": "9b2e6c1a-4f83-4d2b-8a71-2c9e5f0a1b34",        "fullName": "string"      },      "planName": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "total": 1,  "page": 1,  "limit": 50}