DesenvolvedoresReferência da APIAcessos liberados

Listar acessos liberados

GET
/entitlements

Benefícios concedidos aos clientes, do mais recente para o mais antigo, com filtros por status, cliente, pedido e assinatura.

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""active""revoked""expired"
customerId?string
Formatouuid
orderId?string
Formatouuid
subscriptionId?string
Formatouuid

Corpo da resposta

Sucesso.

application/json
  1. response
data*array<>
meta*
curl -X GET 'https://minepag.com.br/api/v1/entitlements'
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",      "benefitId": "551f0400-d5b0-411f-b487-14e33a04c610",      "benefitType": "download",      "benefitName": "string",      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",      "orderItemId": "33207bce-c741-4896-a76b-8afcf6e4179a",      "subscriptionId": "d079718b-ff63-45dd-947b-4950c023750f",      "status": "pending",      "quantity": -9007199254740991,      "startsAt": "2019-08-24T14:15:22Z",      "endsAt": "2019-08-24T14:15:22Z",      "revokedAt": "2019-08-24T14:15:22Z",      "revokeReason": "refund",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "meta": {    "requestId": "string",    "pagination": {      "limit": -9007199254740991,      "hasMore": true,      "nextCursor": "string"    }  }}