DesenvolvedoresReferência da APIPedidos
Listar pedidos
GET
Pedidos da loja, do mais recente para o mais antigo, com filtros por status, forma de pagamento, cliente e período.
Chave: Só chave secreta (chamada pelo servidor).
Escopo: orders:read.
chaveSecretaheader
AutorizaçãoBearer <chave de API>Chave secreta (sk_…). Use só no servidor; requisições de navegador (com Origin) são recusadas.
limit?integerItens por página (1 a 100).
Intervalo
1 <= value <= 100Padrão
20cursor?stringValor de meta.pagination.nextCursor da página anterior.
Tamanho
length <= 200status?stringValue in
"pending""paid""completed""cancelled""expired""refunded"paymentStatus?stringValue in
"pending""paid""partially_refunded""refunded""failed""cancelled""chargeback"method?stringValue in
"pix""boleto""card""nupay"customerId?stringFormato
uuidq?stringBusca por número, e-mail ou nome.
Tamanho
length <= 100createdFrom?stringFormato
date-timecreatedTo?stringFormato
date-timeSucesso.
application/json- response
data*array<>meta*curl -X GET 'https://minepag.com.br/api/v1/orders'{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": -9007199254740991, "externalId": "string", "status": "pending", "paymentStatus": "pending", "source": "checkout", "environment": "sandbox", "currency": "BRL", "subtotal": -9007199254740991, "discountTotal": -9007199254740991, "total": -9007199254740991, "refundedTotal": -9007199254740991, "customer": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "email": "string", "name": "string" }, "metadata": { "property1": null, "property2": null }, "createdAt": "2019-08-24T14:15:22Z", "paidAt": "2019-08-24T14:15:22Z", "expiresAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "refundedAt": "2019-08-24T14:15:22Z" } ], "meta": { "requestId": "string", "pagination": { "limit": -9007199254740991, "hasMore": true, "nextCursor": "string" } }}