curl --location --request POST '/clients//customers/batches' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"metadata": {
"userId": "TestUser"
},
"customers": [
{
"customerNo": "543210",
"name": "Owe Armstrong",
"customerCategory": "CONS",
"phoneNo": "99887766",
"organizationNo": "984842252",
"dateOfBirth": "1956-01-12",
"sellerReference": "ARMref",
"buyerReference": "OA",
"postalAddress": {
"addressLine1": "C/O ARMchair industries",
"addressLine2": "707 Arm street",
"addressLine3": "Appartment 8",
"postalCode": "1234",
"cityName": "Oslo",
"countryText": "Norway"
},
"emailAddressDocument": [
"owea@testarmrest.no"
],
"secondaryEmailAddress": [
"test2.email@testarmrest.no"
],
"distribution": {
"type": "M",
"einvoiceCode": 0
}
},
{
"customerNo": "765432",
"name": "Bill Lossius",
"customerCategory": "CONS",
"phoneNo": "98989898",
"organizationNo": "987654321",
"buyerReference": "BL",
"postalAddress": {
"addressLine1": "Farm alley 9",
"addressLine2": "Birchwood neighborhood",
"postalCode": "5432",
"cityName": "Bergen",
"countryCode": "NO"
},
"distribution": {
"type": "M"
}
}
]
}'