DesenvolvedoresReferência da APIEntregas

Listar entregas

GET
/deliveries

Entregas da loja, da mais recente para a mais antiga, com filtros por status, canal, pedido e cliente.

Chave: Só chave secreta (chamada pelo servidor).

Escopo: deliveries:read.

Autorização

chaveSecreta
headerAutorizaçãoBearer <chave de API>

Chave secreta (sk_…). Use só no servidor; requisições de navegador (com Origin) são recusadas.

Parâmetros de consulta

limit?integer

Itens por página (1 a 100).

Intervalo1 <= value <= 100
Padrão20
cursor?string

Valor de meta.pagination.nextCursor da página anterior.

Tamanholength <= 200
status?string
Value in"pending""leased""succeeded""failed""dead_letter""cancelled"
channel?string
Value in"minecraft""discord""telegram""webhook""email""download""license_key"
orderId?string
Formatouuid
customerId?string
Formatouuid

Corpo da resposta

Sucesso.

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://minepag.com.br/api/v1/deliveries'
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "entitlementId": "79a605b5-f302-4c5d-bbc7-cbd58f1a9b0d",      "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",      "benefitId": "551f0400-d5b0-411f-b487-14e33a04c610",      "channel": "minecraft",      "kind": "grant",      "status": "pending",      "attempts": -9007199254740991,      "maxAttempts": -9007199254740991,      "nextAttemptAt": "2019-08-24T14:15:22Z",      "error": {        "code": "string",        "message": "string"      },      "externalReference": "string",      "downloadUrl": "string",      "createdAt": "2019-08-24T14:15:22Z",      "completedAt": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "requestId": "string",    "pagination": {      "limit": -9007199254740991,      "hasMore": true,      "nextCursor": "string"    }  }}