curl --request PATCH \
--url https://api.mijnklantportaal.nl/v1/customer-invoices/{invoiceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paidAt": "2024-04-31 14:00:00"
}
'{
"id": "inv_abc12345def678",
"customerId": "cst_abc12345def678",
"invoiceNumber": "2024-001",
"issuedAt": "2024-04-29",
"currency": "EUR",
"amount": "12.95",
"paidAt": "2024-05-28T21:00:00+02:00",
"createdAt": "2024-04-29T21:00:00+02:00",
"links": {
"customer": {
"href": "https://api.mijnklantportaal.nl/v1/customers/cst_abc12345def678",
"type": "<string>"
}
}
}Set the Customer Invoice as paid. This will, if connected, also update the integration
curl --request PATCH \
--url https://api.mijnklantportaal.nl/v1/customer-invoices/{invoiceId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paidAt": "2024-04-31 14:00:00"
}
'{
"id": "inv_abc12345def678",
"customerId": "cst_abc12345def678",
"invoiceNumber": "2024-001",
"issuedAt": "2024-04-29",
"currency": "EUR",
"amount": "12.95",
"paidAt": "2024-05-28T21:00:00+02:00",
"createdAt": "2024-04-29T21:00:00+02:00",
"links": {
"customer": {
"href": "https://api.mijnklantportaal.nl/v1/customers/cst_abc12345def678",
"type": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the Customer Invoice to mark
Date (and time) when the invoice got paid in YYYY-mm-dd H:i:s format.
"2024-04-31 14:00:00"
Getting the marked Customer Invoice
Customer Invoice
ID of the invoice, always starting with inv_.
"inv_abc12345def678"
ID of the customer which the invoice belongs to.
"cst_abc12345def678"
Number of the invoice as string.
"2024-001"
Issue date of the invoice. Formatted as YYYY-mm-dd.
"2024-04-29"
Currency of the invoice amount.
"EUR"
Invoice amount as string.
"12.95"
Date the invoice is marked as paid. Written in ATOM format.
"2024-05-28T21:00:00+02:00"
Date and time when the invoice was added to MijnKlantportaal. Written in ATOM format.
"2024-04-29T21:00:00+02:00"
Show child attributes