Ir al contenido
UnoPagoDocumentación
Referencia de la APIFiscal printingInvoice print job

Get the print job data for a specific invoice

GET
/v1/invoice-print-job/{invoiceId}/data

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

Parámetros de ruta

invoiceId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
Longitud10 <= length

Cuerpo de la respuesta

Successful response

application/json
  1. response
account*
customer*
invoice*
payments*array<>
Ejemplo de solicitud
curl -X GET 'https://api.unopago.com/v1/invoice-print-job/stringstri/data'
Ejemplo de respuesta
{  "account": {    "description": "string",    "id": "string",    "name": "string"  },  "customer": {    "id": "string",    "accountId": "string",    "email": "[email protected]",    "externalId": "string",    "firstName": "string",    "lastName": "string",    "nationalId": "string",    "phoneNumber": "string",    "address": "string"  },  "invoice": {    "id": "string",    "issueDate": "string",    "lateFee": 0,    "paidAt": "string",    "dueDate": "string",    "printJobId": "string",    "billingDetailsId": "string",    "feesTotals": [      {        "rateBase": 0,        "rate": 0,        "type": "IGTF",        "total": 0,        "exchangeRate": 0      }    ],    "invoiceItems": [      {        "description": "string",        "quantity": 0,        "total": 0,        "unitPrice": 0      }    ],    "discounts": [      {        "amount": 0,        "description": "string"      }    ],    "subTotal": 0,    "total": 0  },  "payments": [    {      "amount": 0,      "paymentDate": "string"    }  ]}