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
Parameter | Type | GroupType | Description |
---|---|---|---|
AddressUnreachable | boolean | Address | The given address is marked as unreachable (true), or the mark is removed (false). |
EmailUnreachable | boolean | The given e-mail address is marked as unreachable (true), or the mark is removed (false). | |
MobileUnreachable | boolean | Phone | The given mobile phone number is marked as unreachable (true), or the mark is removed (false). |
LandlineUnreachable | boolean | Phone | The given landline phone number is marked as unreachable (true), or the mark is removed (false). |
FaxUnreachable | boolean | Phone | The 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
}
Updated 5 months ago