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": "dba584f6-0df6-4a25-8d7a-a1c8f0d57bc8",
"ParentId": "502527c2-11d5-4d2e-9a6c-0e049783039e",
"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-08-06T01:30:59.9097589+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-08-06T01:30:59.9097589+02:00",
"Updated": "2026-08-06T01:30:59.9097589+02:00",
"UpdatedBy": "631823c0-8755-436e-9bc8-cb125154e3bb",
"PriceListId": "c1e39e59-5b60-4733-b4ee-88a3c95fb097",
"Customer_CustomField": [
{
"$id": "2",
"Id": "372a4734-f2db-401f-bf30-b96f0a201c0c",
"FieldId": "7df88064-973f-41eb-8e56-a9b20b5ca4eb",
"CustomerCustomField": {
"$id": "3",
"Id": "44cf08d8-774c-4a84-b492-517e452d1e3d",
"Caption": "sample string 2",
"SortOrder": 3
},
"CustomerId": "47b9d5d3-d186-447e-9632-ee1c4abf0e0a",
"Customer": {
"$ref": "1"
},
"Caption": "sample string 4",
"Text": "sample string 5",
"SortOrder": 6,
"Updated": "2026-08-06T01:30:59.9097589+02:00"
},
{
"$ref": "2"
}
],
"DiscountGroupId": "8add3fe2-c611-45a1-88e1-743451f01a7b",
"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": "4eeb29b3-f2d8-445c-9f3d-cc8a7c7d9dbd",
"Title": "sample string 2",
"Discount": 3.0,
"Created": "2026-08-06T01:30:59.9097589+02:00",
"Updated": "2026-08-06T01:30:59.9097589+02:00",
"Description": "sample string 6"
},
"Parent": {
"$ref": "1"
},
"ShowEdit": true,
"GiftCard": {
"$id": "5",
"CardId": "5895667d-a2e5-4cc0-b47a-984a59bb395c",
"CardNumber": "sample string 2",
"AddedAmount": 3.0,
"Balance": 4.0,
"CustomerId": "8bfab912-3b89-4f97-b36c-4df9c89695ab",
"Title": "sample string 6",
"ValidFrom": "2026-08-06T01:30:59.9097589+02:00",
"ValidTo": "2026-08-06T01:30:59.9097589+02:00",
"Active": true,
"Updated": "2026-08-06T01:30:59.9097589+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": "2a39203d-5a80-4994-9ad4-2e51eb5c0173",
"CustomerId": "443b3676-0a2b-4b6c-a50f-87d8a06aee83",
"ExpiryDate": "2026-08-06T01:30:59.9097589+02:00",
"Active": true,
"Synced": true,
"CustomerName": "sample string 6"
},
"OrderId": "b8a29b72-ffb7-460e-a2d9-357b1ee03a13",
"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.