Endpoints in different environments:

https://testcheckout.buckaroo.nl/json/DataRequest for test invoices;

https://checkout.buckaroo.nl/json/DataRequest for live invoices

Parameters

ParameterTypeRequiredDescription
OriginalInvoiceNumberStringYesInvoice number of the original invoice. Will also be the invoice number of the Write-Off transaction.
WriteOffAmountDecimalYesAmount to be written off, including VAT. Cannot exceed the current open invoice amount. Will also be the amount of the Write-Off transaction. Will automatically be in the currency of the original invoice.
WriteOffAmountVatDecimalYesThe VAT amount of the WriteOffAmount. Cannot exceed the original invoice vat amount minus the total creditnote vat amount (if applicable). Will automatically be in the currency of the original invoice.
WriteOffReasonEnumYesOne of the predefined reasons for write-off. Must be one of the following:
  1. General

  2. Liquidation

  3. To DCA

  4. After DCA

  5. Bankruptcy

  6. Small amounts

  7. Debt restructuring general

  8. Debt restructuring by law

  9. Amicable debt settlement of natural persons

  10. Fraud

  11. DeceasedDebtor

  12. MinorDebtor

  13. Technical

WriteOffDescriptionStringNoDescription of the WriteOff
TotalWriteOffBooleanNoWhen true, Buckaroo will automatically calculate the current open amount and VAT amount on the invoice and use those as the WriteOffAmount and WriteOffAmountVat, overwriting the values provided in the request. When false or not provided, the amounts provided in the request are used.

Request

{
	"Services": {
		"ServiceList": [
			{
				"Name": "CreditManagement3",
				"Action": "Cm3WriteOff",
				"Parameters": [
					{
						"Name": "OriginalInvoiceNumber",
						"Value": "INV0001"
					},
					{
						"Name": "WriteOffAmount",
						"Value": "1.00"
					},
					{
						"Name": "WriteOffAmountVat",
						"Value": "0.21"
					},
					{
						"Name": "WriteOffReason",
						"Value": "2"
					},
					{
						"Name": "WriteOffDescription",
						"Value": "Write-off of 1.00 EUR due to bankruptcy"
					},
					{
						"Name": "TotalWriteOff",
						"Value": "False"
					}
				]
			}
		]
	}
}

Response (success)

{
	"Key": "xxxxxxxxxxxxxxxxxxxxx",
	"Status": {
		"Code": {
			"Code": 190,
			"Description": "Success"
		},
		"SubCode": {
			"Code": "S001",
			"Description": "Transaction successfully processed"
		},
		"DateTime": "2025-02-19T17:43:37"
	},
	"ServiceCode": "CreditManagement3",
	"IsTest": true
}

Response (validation error)

{
  "Key": "xxxxxxxxxxxxxxxxxxxxx",
  "Status": {
    "Code": { "Code": 490, "Description": "Failed" },
    "SubCode": { "Code": "SXXX", "Description": "WriteOffAmount exceeds the open invoice amount" },
    "DateTime": "2025-02-13T15:19:00"
  },
  "ServiceCode": "CreditManagement3",
  "IsTest": false
}

Push parameters

ParameterDescription
AmountWriteOffsThe current total write-off amount, adjusted for any WriteOffrefunds.
IsWrittenOffIndicates whether any write-off has been applied to the invoice.

Example push

],
    "DebtorFileGuid": null,
    "DebtorFilePayLink": null,
    "DebtorFileNumber": null,
    "OriginalInvoiceNumber": null,
    "AmountWriteOffs": 3.4000,
    "IsWrittenOff": false
  }
}