Preview a debt import
POST
Resolves debts against the account without writing: the invoices the import would issue, the rows it cannot resolve, those already billed, and the unverified issuance allowance.
bearerAuthheader
AutorizaciónBearer <token>Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.
application/json- body
rows*array<>Elementos
1 <= itemscurrency*stringValor en
"VES""USD""EUR"Successful response
application/json- response
summary*problems*array<>groups*array<>alreadyBilledCount*integerRango
0 <= value <= 9007199254740991unverified?curl -X POST 'https://api.unopago.com/v1/invoices/debt-import/preview' \ -H 'Content-Type: application/json' \ -d '{ "rows": [ { "sourceRow": 1, "name": "string", "concept": "string", "dueDate": "2019-08-24", "amount": 0.01 } ], "currency": "VES"}'Ejemplo de respuesta
{ "summary": { "invoiceCount": 0, "subjectCount": 0, "total": "string", "bornOverdueCount": 0, "notYetDueCount": 0 }, "problems": [ { "sourceRow": 1, "name": "string", "resolution": { "status": "notFound" } } ], "groups": [ { "subjectKey": "string", "customerId": "string", "dueDate": "string", "amount": "string" } ], "alreadyBilledCount": 0, "unverified": { "limitUsd": 0, "issuedUsd": "string", "remainingUsd": "string", "totalUsd": "string" }}
