Credit Notes
Import credit note
This endpoint can be used to create or update (if externalId already exists) a credit note.
It cannot be used when using a native integration as credit notes are only created by the native integration in that case.
post/credit_notes
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": "CN123",
"externalId": "92842AB37",
"issuedAt": "2015-05-05T12:30:00Z",
"dueDate": "2015-05-05T12:30:00Z",
"name": "Credit Note for returned goods",
"currency": "EUR",
"grossAmount": 1700,
"netAmount": 1500,
"updatedAt": "2015-05-05T12:30:00Z",
"customer": {
"id": "00a70b35-2be3-4c43-aefb-397190134655",
"externalId": "1a2c3b"
},
"linkedInvoices": [
{
"amountLinked": 2000,
"invoice": {
"id": "00a70b35-2be3-4c43-aefb-397190134655",
"externalId": "92842AB37",
"customId": "FAC123"
}
}
]
}Response
Credit Note Created or Updated
Example response
{
"customId": "CN123",
"externalId": "92842AB37",
"issuedAt": "2015-05-05T12:30:00Z",
"dueDate": "2015-05-05T12:30:00Z",
"name": "Credit Note for returned goods",
"currency": "EUR",
"grossAmount": 1700,
"netAmount": 1500,
"updatedAt": "2015-05-05T12:30:00Z",
"id": "00a70b35-2be3-4c43-aefb-397190134655",
"pdfUrl": "https://files.upflow.io/credit_note.pdf",
"customer": {
"id": "00a70b35-2be3-4c43-aefb-397190134655",
"externalId": "1a2c3b",
"companyName": "Upflow SAS",
"accountingRef": "UPFL-SAS"
},
"linkedInvoices": [
{
"amountLinked": 2000,
"invoice": {
"id": "00a70b35-2be3-4c43-aefb-397190134655",
"currency": "EUR",
"amountOutstanding": 1500,
"customId": "FAC123",
"grossAmount": 2200,
"netAmount": 2000,
"name": "Facture couvrant les prestations de service de Decembre",
"issuedAt": "2015-05-05T12:30:00Z",
"dueDate": "2015-05-05T12:30:00Z",
"paidDate": "2015-05-05T12:30:00Z",
"externalId": "92842AB37"
}
}
],
"createdAt": "2015-05-05T12:30:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.