POST api/Customer/PostCustomer
Post customer created from NIMPOS systems
Request Information
URI Parameters
None.
Body Parameters
CustomerName | 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": "ba134704-0a46-424f-bf20-d0adc1b7e9dd", "ParentId": "28ca648a-6188-487f-bb0d-30eb7185d7a1", "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": "2025-07-04T15:25:32.3731633+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": "2025-07-04T15:25:32.3731633+02:00", "Updated": "2025-07-04T15:25:32.3731633+02:00", "UpdatedBy": "219ff240-6538-44fd-8ffc-ad12509b4f2a", "PriceListId": "1bf3a664-fad3-4bf0-8fda-8d1ad69d6f94", "Customer_CustomField": [ { "$id": "2", "Id": "3178845f-e6c6-4844-bb2a-3519cb6a31b1", "FieldId": "9dc29dd8-2990-485b-b940-134e6cd31a5b", "CustomerCustomField": { "$id": "3", "Id": "5dc75829-6cbf-44af-8fc2-5fe397fa2f1f", "Caption": "sample string 2", "SortOrder": 3 }, "CustomerId": "42f16d87-f0cf-47ad-acde-8c3a628e04e1", "Customer": { "$ref": "1" }, "Caption": "sample string 4", "Text": "sample string 5", "SortOrder": 6, "Updated": "2025-07-04T15:25:32.3731633+02:00" }, { "$ref": "2" } ], "DiscountGroupId": "d1b1fb1f-0387-4930-99e1-b836f4d216f8", "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": "449a6d34-81ff-4c9d-9cc7-9600e580d7c6", "Title": "sample string 2", "Discount": 3.0, "Created": "2025-07-04T15:25:32.3731633+02:00", "Updated": "2025-07-04T15:25:32.3731633+02:00", "Description": "sample string 6" }, "Parent": { "$ref": "1" }, "ShowEdit": true, "GiftCard": { "$id": "5", "CardId": "cb3c5a75-ea16-41ba-8d9d-4e7adda73355", "CardNumber": "sample string 2", "AddedAmount": 3.0, "Balance": 4.0, "CustomerId": "a5c2c632-ad6a-42dd-b2b8-805dddbd76dd", "Title": "sample string 6", "ValidFrom": "2025-07-04T15:25:32.3731633+02:00", "ValidTo": "2025-07-04T15:25:32.3731633+02:00", "Active": true, "Updated": "2025-07-04T15:25:32.3731633+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": "14990936-f58f-46a2-8207-473851e9eb73", "CustomerId": "8df1bb0e-489c-4ccb-9f5f-98a7525c9886", "ExpiryDate": "2025-07-04T15:25:32.3731633+02:00", "Active": true, "Synced": true, "CustomerName": "sample string 6" }, "OrderId": "a9b9c49d-e477-4dad-8975-2ca6a2777bf7", "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.