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. |
Request Formats
application/json, text/json
Sample:
{ "Id": "2659f0be-60a6-4777-b15d-12b1a02a0970", "ParentId": "b6901c53-f0c5-4776-9a79-ceda8a57265d", "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": "2024-05-17T01:19:58.4500916+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": "2024-05-17T01:19:58.4500916+02:00", "Updated": "2024-05-17T01:19:58.4500916+02:00", "UpdatedBy": "c5272f28-f6d2-4ffe-bf83-9f5c92442881", "PriceListId": "5d58e504-c533-4b97-a142-8dcb09926fd0", "Customer_CustomField": [ { "$id": "2", "Id": "b54735ef-60e8-4f4a-b59d-8fe7fd2ae697", "FieldId": "e411c5d6-4f13-4de0-a948-837ccbab7635", "CustomerCustomField": { "$id": "3", "Id": "3d3bea8f-ff4e-4afa-96e6-ab8dc37caeea", "Caption": "sample string 2", "SortOrder": 3 }, "CustomerId": "df84bcd0-c4e2-4b33-8daf-4414fa564560", "Customer": { "$ref": "1" }, "Caption": "sample string 4", "Text": "sample string 5", "SortOrder": 6, "Updated": "2024-05-17T01:19:58.4500916+02:00" }, { "$ref": "2" } ], "DiscountGroupId": "ebb3742c-cb47-49b4-96c1-52280552ce5e", "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": "8e590e5c-df55-4c1c-b6de-52f510d1fb07", "Title": "sample string 2", "Discount": 3.0, "Created": "2024-05-17T01:19:58.4500916+02:00", "Updated": "2024-05-17T01:19:58.4500916+02:00", "Description": "sample string 6" }, "Parent": { "$ref": "1" }, "ShowEdit": true }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.