curl --location --request POST '/clients//customers' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"metadata": {
"userId": "TestUser"
},
"customer": {
"customerNo": "543210",
"name": "Owe Armstrong",
"customerCategory": "CONS",
"phoneNo": "99887766",
"secondaryPhoneNo": "997755332",
"organizationNo": "984842252",
"ssn": "12015641779",
"ssnCountry": "NO",
"dateOfBirth": "1956-01-12",
"yearOfBirth": 1956,
"informalName": "Oa",
"customerGroupCode": "VIP",
"priceNetOrGross": "B",
"language": "no",
"currency": "NOK",
"sellerReference": "ARMref",
"buyerReference": "OA",
"bankAccountNo": "815013665841",
"stopReminderUntil": "2026-01-01",
"stopReminderMemo": "Agreed with customer",
"stopDebtCollectionUntil": "2026-01-01",
"stopDebtCollectionMemo": "Agreed with customer",
"stopInterestCalcUntil": "2026-01-01",
"stopInterestCalcMemo": "Agreed with customer",
"dueDays": 17,
"vatLiable": true,
"limitAmount": 2000,
"discountRate": 5.5,
"activeStatusWeb": "Passive",
"customerMessage": "Happy holidays!",
"postalAddress": {
"addressLine1": "C/O ARMchair industries",
"addressLine2": "707 Arm street",
"addressLine3": "Appartment 8",
"postalCode": "1234",
"cityName": "Oslo",
"countryText": "Norway",
"countryCode": "NO"
},
"emailAddressDocument": [
"owea@testarmrest.no"
],
"secondaryEmailAddress": [
"test2.email@testarmrest.no"
],
"distribution": {
"type": "M",
"einvoiceCode": 0
},
"efakturaBlockIds": [
"12345678",
"23456789",
"34567890"
],
"peppolBlockIds": [
"987654321",
"876543210",
"976543210"
],
"digipostBlockIds": [
"owe.armstrong#6UY",
"bill.lossius#8HM"
],
"options": [
"NoUpdatePostalReturn"
]
}
}'