POST api/Customer/PostCustomer
Post customer created from NIMPOS systems
Request Information
URI Parameters
None.
Body Parameters
Customer| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| ParentId | globally unique identifier |
None. |
|
| Name | string |
Max length: 100 |
|
| OrgNo | string |
Max length: 50 |
|
| Address1 | string |
None. |
|
| Address2 | string |
None. |
|
| FloorNo | integer |
None. |
|
| PortCode | string |
Max length: 10 |
|
| CustomerNo | string |
Max length: 500 |
|
| City | string |
Max length: 50 |
|
| Phone | string |
Max length: 20 |
|
| string |
Max length: 250 |
||
| ZipCode | string |
Max length: 10 |
|
| Reference | string |
Max length: 250 |
|
| DirectPrint | boolean |
None. |
|
| VehicleId | integer |
None. |
|
| CommunicationTypeId | integer |
None. |
|
| Active | boolean |
None. |
|
| Synced | boolean |
None. |
|
| EnableRUT | boolean |
None. |
|
| RUTDisallowedUntil | date |
None. |
|
| CustomerType | CustomerType |
None. |
|
| PrimaryName | string |
Max length: 100 |
|
| PrimaryPhone | string |
Max length: 20 |
|
| PrimaryEmail | string |
Max length: 250 |
|
| SendReceipt | boolean |
None. |
|
| InstructionAlert | boolean |
None. |
|
| Instructions | string |
Max length: 500 |
|
| PaymentMethod | PaymentMethod |
None. |
|
| DeliveryMethod | DeliveryMethod |
None. |
|
| Created | date |
None. |
|
| Updated | date |
None. |
|
| UpdatedBy | globally unique identifier |
None. |
|
| PriceListId | globally unique identifier |
None. |
|
| Customer_CustomField | Collection of Customer_CustomField |
None. |
|
| DiscountGroupId | globally unique identifier |
None. |
|
| OrgNumber | string |
None. |
|
| CustomerName | string |
None. |
|
| Address | string |
None. |
|
| PrimaryContacts | Collection of Customer |
None. |
|
| ContactReference | string |
None. |
|
| DiscountGroup | DiscountGroup |
None. |
|
| Parent | Customer |
None. |
|
| ShowEdit | boolean |
None. |
|
| GiftCard | GiftCard |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "ed59bb5e-ad1b-46bb-8d50-d72b546070e6",
"ParentId": "93d474dc-e45e-4529-918b-aed2b700391a",
"Name": "sample string 2",
"OrgNo": "sample string 3",
"Address1": "sample string 4",
"Address2": "sample string 5",
"FloorNo": 6,
"PortCode": "sample string 7",
"CustomerNo": "sample string 8",
"City": "sample string 9",
"Phone": "sample string 10",
"Email": "sample string 11",
"ZipCode": "sample string 12",
"Reference": "sample string 13",
"DirectPrint": true,
"VehicleId": 15,
"CommunicationTypeId": 16,
"Active": true,
"Synced": true,
"EnableRUT": true,
"RUTDisallowedUntil": "2026-09-20T13:18:41.0786994+02:00",
"CustomerType": 0,
"PrimaryName": "sample string 20",
"PrimaryPhone": "sample string 21",
"PrimaryEmail": "sample string 22",
"SendReceipt": true,
"InstructionAlert": true,
"Instructions": "sample string 25",
"PaymentMethod": 0,
"DeliveryMethod": 0,
"Created": "2026-09-20T13:18:41.0786994+02:00",
"Updated": "2026-09-20T13:18:41.0786994+02:00",
"UpdatedBy": "f56d0423-c0d3-4538-a0f3-fbb81c895a3e",
"PriceListId": "333497d2-5c4f-4660-a0f3-ddd72f9bd996",
"Customer_CustomField": [
{
"$id": "2",
"Id": "455bc195-afa9-4621-8a3d-2706969c99ec",
"FieldId": "ecad19cf-162b-4e3f-84b6-156c81343880",
"CustomerCustomField": {
"$id": "3",
"Id": "e7bcd1fe-06c8-45f8-a228-8334b9985f0d",
"Caption": "sample string 2",
"SortOrder": 3
},
"CustomerId": "f1aa38cf-0155-42de-82e9-1315d84d8b3c",
"Customer": {
"$ref": "1"
},
"Caption": "sample string 4",
"Text": "sample string 5",
"SortOrder": 6,
"Updated": "2026-09-20T13:18:41.0786994+02:00"
},
{
"$ref": "2"
}
],
"DiscountGroupId": "611eca6e-3f98-46b9-8f3e-7b82b98c0b94",
"OrgNumber": "sample string 3",
"CustomerName": "sample string 2",
"Address": "sample string 4, sample string 12, sample string 9",
"PrimaryContacts": [
{
"$ref": "1"
},
{
"$ref": "1"
}
],
"ContactReference": "sample string 30",
"DiscountGroup": {
"$id": "4",
"DiscountId": "6ace6ed5-185b-41b3-a74c-6d1f6ddb6e7a",
"Title": "sample string 2",
"Discount": 3.0,
"Created": "2026-09-20T13:18:41.0786994+02:00",
"Updated": "2026-09-20T13:18:41.0786994+02:00",
"Description": "sample string 6"
},
"Parent": {
"$ref": "1"
},
"ShowEdit": true,
"GiftCard": {
"$id": "5",
"CardId": "a5669b52-f744-459b-941d-637da121abc5",
"CardNumber": "sample string 2",
"AddedAmount": 3.0,
"Balance": 4.0,
"CustomerId": "15f4ea78-2a7a-4dfc-81b8-9d32c8ba22ac",
"Title": "sample string 6",
"ValidFrom": "2026-09-20T13:18:41.0786994+02:00",
"ValidTo": "2026-09-20T13:18:41.0786994+02:00",
"Active": true,
"Updated": "2026-09-20T13:18:41.0786994+02:00",
"CardType": 0,
"UniqueCode": "sample string 11",
"Synced": true,
"Status": "Aktiva",
"UsedAmount": -1.0,
"CustomerDiscount": 13.0,
"CustomerName": "sample string 14",
"SeasonTicket": {
"$id": "6",
"Id": "9d1101f6-4f9e-49be-a18a-81065ea3ac5b",
"CustomerId": "75c4d930-b201-4d51-8e2e-c971150470b7",
"ExpiryDate": "2026-09-20T13:18:41.0786994+02:00",
"Active": true,
"Synced": true,
"CustomerName": "sample string 6"
},
"OrderId": "ecb4652a-143c-434e-adc1-ebf24d354fcb",
"NewAmount": 16.0,
"VehicleId": 17
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.