Invoices
Import Invoice (deprecated)
Use POST /invoices instead.
post/customers/{customerId}/invoices
Request
- Base URLhttps://api.upflow.io/v1
- AuthAPI key in header X-Api-Key and API key in header X-Api-Secret
Request body
Example request
{
"customId": "FAC123",
"externalId": "54654321",
"issuedAt": "2015-05-05T12:30:00Z",
"dueDate": "2015-05-05T12:30:00Z",
"name": "Facture couvrant les prestations de service de Decembre",
"currency": "EUR",
"grossAmount": 2200,
"netAmount": 2000,
"customFields": [
{
"id": "00a70b35-2be3-4c43-aefb-397190134655",
"externalId": "AEGaaZD"
}
],
"promiseToPay": {
"date": "2023-08-30",
"comment": "Customer confirmed payment will be sent next week."
},
"dunningPlanId": "00a70b35-2be3-4c43-aefb-397190134655"
}Response
Invoice Created
Example response
{
"externalId": "FAC123",
"issuedAt": "2015-05-05T12:30:00Z",
"dueDate": "2015-05-05T12:30:00Z",
"name": "Facture couvrant les prestations de service de Decembre",
"currency": "EUR",
"grossAmount": 2200,
"netAmount": 2000,
"amountOutstanding": 500,
"dunningPlanId": "00a70b35-2be3-4c43-aefb-397190134655",
"id": "00a70b35-2be3-4c43-aefb-397190134655",
"customerId": "a1b2c3",
"payments": [
{
"id": "00a70b35-2be3-4c43-aefb-397190134655",
"amount": 1700,
"linkedAmount": 1700,
"executedAt": "2015-05-05T12:30:00Z"
}
],
"pdfUrl": "http://example.com/invoice.pdf",
"customFields": [],
"dunningPausedUntil": "2024-06-01",
"dunningPausedComment": "Customer requested delay until end of month.",
"dunningPausedByUserId": "00a70b35-2be3-4c43-aefb-397190134655",
"promiseToPay": {
"expectedDate": "2023-08-30",
"comment": "Customer confirmed payment will be sent next week.",
"isActive": true,
"createdAt": "2015-05-05T12:30:00Z"
},
"createdAt": "2015-05-05T12:30:00Z",
"updatedAt": "2015-05-05T12:30:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.