curl --location --request POST '/webapi/api/Batch?senderid' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data-raw '{
"batchid": "string",
"offline": true,
"creditor": [
{
"idnumber": "string",
"parentidnumber": "string",
"onlydebtcollection": true,
"vattype": 0,
"fullname": "string",
"street": "string",
"city": "string",
"zipcode": "string",
"countrycode": "st",
"emailinvoice": "string",
"bankaccountno": "string",
"swift": "string",
"iban": "string",
"message": "string",
"contact": {
"fullname": "string",
"workphone": "string",
"email": "string",
"isinvoicequery": true,
"isremittancereport": true,
"isorderconfirmation": true,
"iscollectionlist": true,
"isweb": true
},
"contact2": {
"fullname": "string",
"workphone": "string",
"email": "string",
"isinvoicequery": true,
"isremittancereport": true,
"isorderconfirmation": true,
"iscollectionlist": true,
"isweb": true
},
"password": "stringstri",
"erpsettingid": "string",
"sourceid": 0,
"erpclientid": "string",
"vismanetcompanyid": "string",
"reminderflow": 0,
"debtcollectiontransfer": 0,
"invoicearchive": 0,
"hasforeigndebtors": true,
"hasforeigncurrency": true,
"disabled": true
}
],
"invoice": [
{
"type": "PAYMENT_REMINDER",
"invoiceNumber": "string",
"vat": true,
"fees": true,
"originalInvoiceAmount": 0,
"currency": "string",
"invoiceDate": "2019-08-24T14:15:22.123Z",
"dueDate": "2019-08-24T14:15:22.123Z",
"collectionNoticeDate": "2019-08-24T14:15:22.123Z",
"ocrReferenceNumber": "string",
"uniqueSourceInvoiceId": "string",
"description": "string",
"debtors": [
{
"type": "PRIVATE",
"firstname": "string",
"lastname": "string",
"name": "string",
"customerNumber": "string",
"identificationNumber": "string",
"organizationNumber": "string",
"dateOfBirth": "2019-08-24",
"emails": [
{
"value": "string"
}
],
"phoneNumbers": [
{
"countryCode": "string",
"originalValue": "string",
"value": "string"
}
],
"addresses": [
{
"street": "string",
"city": "string",
"zipCode": "string",
"countryCode": "string"
}
]
}
],
"claims": [
{
"type": "PRINCIPAL",
"remainingAmount": 0,
"description": "string"
}
]
}
],
"payment": [
{
"invoiceId": "4f163819-178d-470c-a246-d6768476a6ec",
"type": "DIRECT_PAYMENT",
"amount": 0,
"currency": "string",
"date": "2019-08-24T14:15:22.123Z",
"description": "string",
"uniqueSourcePaymentId": "string"
}
],
"action": [
{
"creditorid": "string",
"ledgerref": "string",
"actiontype": 0,
"duedate": "2019-08-24T14:15:22.123Z",
"subject": "string",
"conversationid": "string",
"message": "string"
}
]
}'