Listar facturas
GET/invoices
Facturas del modo de la clave (live o prueba), las más recientes primero. Filtra por estado, order_id o fecha de creación.
Permiso necesario: invoices:read
Parámetros
| Campo | Descripción |
|---|---|
limitinteger Query · Page size (1–100). | Query · Page size (1–100). Por defecto: |
cursorstring Query · Opaque cursor from | Query · Opaque cursor from |
statusenum (8) Query | Query Uno de: |
order_idstring Query | Query |
created_afterstring Query | Query |
created_beforestring Query | Query |
Devuelve una lista de Invoice
| Campo | Descripción |
|---|---|
idstringobligatorio | |
object"invoice"obligatorio | |
numberintegerobligatorio | |
statusenum (8)obligatorio | Uno de: |
livemodebooleanobligatorio | |
descriptionstring | nullobligatorio | |
order_idstring | nullobligatorio | |
metadataobjectobligatorio | |
amountMoneyobligatorio Fiat amount. | Fiat amount. |
cryptoobject | nullobligatorio | |
rateobject | nullobligatorio | |
receivedobjectobligatorio | |
flagsobjectobligatorio | |
customerobjectobligatorio | |
urlsobjectobligatorio | |
payment_link_idstring | nullobligatorio | |
product_idstring | nullobligatorio | |
source"link" | "api" | "manual" | "billing"obligatorio | |
created_atstringobligatorio ISO 8601 UTC timestamp. | ISO 8601 UTC timestamp. Ejemplo: |
expires_atstringobligatorio ISO 8601 UTC timestamp. | ISO 8601 UTC timestamp. Ejemplo: |
paid_atstring | nullobligatorio | |
updated_atstringobligatorio ISO 8601 UTC timestamp. | ISO 8601 UTC timestamp. Ejemplo: |
Errores
400VALIDATION_ERROR401UNAUTHENTICATED403FORBIDDEN_SCOPE,WORKSPACE_SUSPENDED429RATE_LIMITED500INTERNAL_ERROR
curl -X GET 'https://cryptopay.yanselmask.com/api/v1/invoices' \
-H 'Authorization: Bearer cp_test_••••'{
"data": [
{
"id": "7d61d9f9-a9e4-49c1-a1b8-b5d465d7a939",
"object": "invoice",
"number": 120,
"status": "pending",
"livemode": true,
"description": "T-shirt",
"order_id": "SO-1001",
"metadata": {},
"amount": {
"value": "25.00",
"currency": "USD",
"minor": 2500
},
"crypto": {
"asset": "usdt_tron",
"network": "tron",
"symbol": "USDT",
"amount": "25.02",
"amount_base_units": "25020000",
"decimals": 6,
"address": "TJYeasTPa6gpEEfYqeoTBpFkqZ4jhy5zj7",
"uri": "TJYeasTPa6gpEEfYqeoTBpFkqZ4jhy5zj7",
"required_confirmations": 19
},
"rate": {
"fiat_per_asset": "1",
"locked_at": "2026-10-10T12:00:00.000Z",
"expires_at": "2026-10-10T13:00:00.000Z"
},
"received": {
"amount": "0",
"amount_base_units": "0",
"confirmed_base_units": "0"
},
"flags": {
"paid_late": false,
"underpaid_accepted": false
},
"customer": {
"email": null,
"name": null
},
"urls": {
"checkout": "https://pay.example.com/pay/7d61…",
"receipt": "https://pay.example.com/pay/7d61…/receipt",
"success": null,
"cancel": null
},
"payment_link_id": null,
"product_id": null,
"source": "api",
"created_at": "2026-10-10T12:00:00.000Z",
"expires_at": "2026-10-10T13:00:00.000Z",
"paid_at": null,
"updated_at": "2026-10-10T12:00:00.000Z"
}
],
"meta": {
"next_cursor": null,
"has_more": false
},
"error": null,
"request_id": "req_01J9ZQ3K5W8X2N4M6P7R9S1T3V"
}