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": "70455200-f5ff-4fa3-ab11-a65ff8c12242",
"ParentId": "afee2c9b-e0e8-42dd-82a4-5c0d07a2e589",
"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-03-21T23:43:05.6235019+01: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-03-21T23:43:05.6235019+01:00",
"Updated": "2026-03-21T23:43:05.6235019+01:00",
"UpdatedBy": "f90e486c-92d9-4edc-9559-493e6cfafdf4",
"PriceListId": "564ddc0f-8a1c-434a-ba84-7e2af2f909db",
"Customer_CustomField": [
{
"$id": "2",
"Id": "81b5b541-5371-4710-9bd7-343963cbbdd8",
"FieldId": "7d48a2d2-dbbc-4976-ad74-38f06dd263cc",
"CustomerCustomField": {
"$id": "3",
"Id": "f53a139c-75d6-43bc-bf67-8827663d8cec",
"Caption": "sample string 2",
"SortOrder": 3
},
"CustomerId": "af79b806-4309-405d-b440-8ee6a70eaebf",
"Customer": {
"$ref": "1"
},
"Caption": "sample string 4",
"Text": "sample string 5",
"SortOrder": 6,
"Updated": "2026-03-21T23:43:05.6235019+01:00"
},
{
"$ref": "2"
}
],
"DiscountGroupId": "ed46b19f-f7d6-49fd-b5f9-a72043d85a02",
"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": "9803f7b4-0cfc-46e0-8c15-38be6814d5d2",
"Title": "sample string 2",
"Discount": 3.0,
"Created": "2026-03-21T23:43:05.6235019+01:00",
"Updated": "2026-03-21T23:43:05.6235019+01:00",
"Description": "sample string 6"
},
"Parent": {
"$ref": "1"
},
"ShowEdit": true,
"GiftCard": {
"$id": "5",
"CardId": "26d480be-1510-45d3-9bad-923b22a7e75c",
"CardNumber": "sample string 2",
"AddedAmount": 3.0,
"Balance": 4.0,
"CustomerId": "5db822f1-d6e2-4cb4-be46-d55d2df2d2ba",
"Title": "sample string 6",
"ValidFrom": "2026-03-21T23:43:05.6235019+01:00",
"ValidTo": "2026-03-21T23:43:05.6235019+01:00",
"Active": true,
"Updated": "2026-03-21T23:43:05.6235019+01: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": "453177d9-c5ea-4758-b133-cfcfc616a69a",
"CustomerId": "9db29389-3a5b-45e9-9dd3-7e6d55e1e0b3",
"ExpiryDate": "2026-03-21T23:43:05.6235019+01:00",
"Active": true,
"Synced": true,
"CustomerName": "sample string 6"
},
"OrderId": "d1444d65-e23e-4045-8115-684246a6bddb",
"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.