Cm3WriteOff

Perform this action to write off an open invoice amount.

Perform this action to write off an open invoice amount.

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. Also used as the invoice number of the resulting V376 transaction.
WriteOffAmountDecimalYesAmount to write off, including VAT. Cannot exceed the current open invoice amount.
WriteOffAmountVatDecimalYesVAT portion of WriteOffAmount. Cannot exceed the original invoice VAT minus credit note VAT.
WriteOffReasonEnumYesOne of the predefined reasons for the write-off. Pass the corresponding number:
  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

WriteOffDescriptionStringNoFree-text description. Also used as the description of the resulting V376 transaction.
TotalWriteOffBooleanNoWhen true, auto-calculates the open amount and VAT, overriding WriteOffAmount and WriteOffAmountVat. When false or not provided, the amounts provided in the request are used.

Request

{
  "Services": {
    "ServiceList": [
      {
        "Name": "CreditManagement3",
        "Action": "Cm3WriteOff",
        "Parameters": [
          {
            "Name": "OriginalInvoiceNumber",
            "Value": "TESTINV2000008"
          },
          {
            "Name": "WriteOffAmount",
            "Value": "10.00"
          },
          {
            "Name": "WriteOffAmountVat",
            "Value": "0.00"
          },
          {
            "Name": "WriteOffReason",
            "Value": "1"
          },
          {
            "Name": "WriteOffDescription",
            "Value": "Full writeoff"
          },
          {
            "Name": "TotalWriteOff",
            "Value": "False"
          }
        ]
      }
    ]
  }
}

Response (success)

{
    "Key": "71FDB18F848148A4A27D6FC91462345",
    "Status": {
        "Code": {
            "Code": 190,
            "Description": "Success"
        },
        "SubCode": {
            "Code": "S001",
            "Description": "Transaction successfully processed"
        },
        "DateTime": "2026-08-03T08:34:13"
    },
    "RequiredAction": null,
    "Services": null,
    "CustomParameters": null,
    "AdditionalParameters": null,
    "RequestErrors": null,
    "ServiceCode": "CreditManagement3",
    "IsTest": true,
    "ConsumerMessage": null
}

Response (validation error)

{
  "Key": "569CE970B52D46D1A20ACDD79D982345",
  "Status": {
    "Code": {
      "Code": 491,
      "Description": "Validation failure"
    },
    "SubCode": {
      "Code": "C000",
      "Description": "Validation failure"
    },
    "DateTime": "2026-08-03T08:36:46"
  },
  "RequiredAction": null,
  "Services": null,
  "CustomParameters": null,
  "AdditionalParameters": null,
  "RequestErrors": {
    "ChannelErrors": [],
    "ServiceErrors": [],
    "ActionErrors": [],
    "ParameterErrors": [
      {
        "Service": "CreditManagement3",
        "Action": "Cm3WriteOff",
        "Name": "WriteOffAmount",
        "Error": "ParameterInvalid",
        "ErrorMessage": "WriteOff amount should have positive value and not exceed the open invoice amount."
      }
    ],
    "CustomParameterErrors": []
  },
  "ServiceCode": null,
  "IsTest": true,
  "ConsumerMessage": null
}

Push parameters

A WriteOff pushes a Cm3WriteOff event to communicate the write-off, and a ChangedTransactionStatus event to communicate the creation of the write-off transaction.

ParameterDescription
AmountWriteOffsBasic parameter. Running total of write-offs net of refunds (sum of all write-offs minus write-off refunds).
IsWrittenOffBasic parameter. True when the open amount is 0 and at least one write-off exists; false otherwise.
WriteOffReasonEvent parameter. Reason provided for the write-off. Included for both partial and full write-offs.

Example push

{
  "Invoice": {
    "InvoiceKey": "0948B3022CCA41E78B9857CB4DCCxxxx",
    "InvoiceNumber": "TESTINV2000007",
    "WebsiteKey": "7Cnv8r2345",
    "DebtorCode": "JohnSmith123",
    "DebtorGuid": "087EBCB0D2B9418B87B0CDD8DECxxxx",
    "SchemeKey": "d5gj5t",
    "IsTest": true,
    "Type": "RegularInvoice",
    "Culture": "nl-NL",
    "InvoiceDate": "2018-06-05T00:00:00",
    "DueDate": "2019-04-18T00:00:00",
    "InvoiceStatusCode": 10,
    "PreviousStepIndex": 0,
    "PreviousStepDateTime": "0001-01-01T00:00:00",
    "InvoicePayLink": "https://testcheckout.buckaroo.nl/html/?brq_paydirect_inv=xxx",
    "Event": "Cm3WriteOff",
    "EventCategory": "FinancialChange",
    "EventDateTime": "2026-08-03T08:30:34.8621435",
    "EventParameters": [
      {
        "Key": "TransactionKey",
        "Value": "39C880B202D9446EA10EAC29CBBA2345"
      },
      {
        "Key": "TransactionStatusCode",
        "Value": "190"
      },
      {
        "Key": "WriteOffReason",
        "Value": "Bankruptcy"
      }
    ],
    "Currency": "EUR",
    "AmountDebit": 10.0000,
    "AmountCredit": 0.0000,
    "AmountAdminCosts": 0.0000,
    "AmountCreditNotes": 0.0,
    "AmountPaid": 10.0,
    "AmountAdminCostsPaid": 0.0,
    "AmountPendingSlow": 0.0,
    "OpenAmount": 0.0000,
    "OpenAmountAdminCosts": 0.0000,
    "OpenAmountInclAdminCosts": 0.0000,
    "IsPaid": true,
    "CustomParameters": [],
    "AdditionalParameters": [],
    "DebtorFileGuid": null,
    "DebtorFilePayLink": null,
    "DebtorFileNumber": null,
    "OriginalInvoiceNumber": null,
    "AmountWriteOffs": 10.0000,
    "IsWrittenOff": true
  }
}

Did this page help you?