Parameters and Sample AddOrUpdateDebtor

Request

AddOrUpdateDebtor uses all the parameters defined for CreateInvoice starting at the Debtor Group, down to the end. When adding or updating a Debtor, it is required to at least provide a debtor code, identify it as either a Person or a Company by providing the person's last name of the company name and it's culture. It is not possible to change an existing debtor code.

In addition, the following parameters can be added to their respective groups. Remember to include or omit each group as a whole, thus if a group (e.g. Address) is given, except for some of its optional parameters (e.g. Address_HouseNumber), the missing parameters are considered empty.


Parameters

ParameterTypeGroupTypeDescription
AddressUnreachablebooleanAddressThe given address is marked as unreachable (true), or the mark is removed (false).
EmailUnreachablebooleanEmailThe given e-mail address is marked as unreachable (true), or the mark is removed (false).
MobileUnreachablebooleanPhoneThe given mobile phone number is marked as unreachable (true), or the mark is removed (false).
LandlineUnreachablebooleanPhoneThe given landline phone number is marked as unreachable (true), or the mark is removed (false).
FaxUnreachablebooleanPhoneThe given fax number is marked as unreachable (true), or the mark is removed (false).

Example Request

{
   "Services": {
      "ServiceList": [
         {
            "Name": "CreditManagement3",
            "Action": "AddOrUpdateDebtor",
            "Parameters": [
               {
                  "Name": "Code",
                  "GroupType": "Debtor",
                  "GroupID": "",
                  "Value": "Johnsmith99"
               },
               {
                  "Name": "Culture",
                  "GroupType": "Person",
                  "GroupID": "",
                  "Value": "nl-NL"
               },
               {
                  "Name": "LastName",
                  "GroupType": "Person",
                  "GroupID": "",
                  "Value": "Smith"
               }
            ]
         }
      ]
   }
}

Response

Example Response

{
  "Key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "Status": {
    "Code": {
      "Code": 190,
      "Description": "Success"
    },
    "SubCode": {
      "Code": "S001",
      "Description": "Transaction successfully processed"
    },
    "DateTime": "2019-05-17T08:57:38"
  },
  "RequiredAction": null,
  "Services": [
    {
      "Name": "CreditManagement3",
      "Action": null,
      "Parameters": [
        {
          "Name": "DebtorGuid",
          "Value": "xxxxxxxxxxxxxxxx"
        }
      ]
    }
  ],
  "CustomParameters": null,
  "AdditionalParameters": null,
  "RequestErrors": null,
  "ServiceCode": "CreditManagement3",
  "IsTest": true,
  "ConsumerMessage": null
}