POST api/customer/getOrCreateCustomer?updateOldDetails={updateOldDetails}&locationId={locationId}
Request Information
Allows access to child location using parent company token, in this case use location id parameter
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
updateOldDetails | boolean |
Default value is False |
|
locationId | integer |
None. |
Body Parameters
ApiCustomerInfoName | Description | Type | Additional information |
---|---|---|---|
LocationId | integer |
None. |
|
CustomerId | integer |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
string |
None. |
||
CellPhone | string |
None. |
|
WorkPhone | string |
None. |
|
Dob | date |
None. |
|
Gender | integer |
None. |
|
CustomerCode | string |
None. |
|
Address | string |
None. |
|
Address2 | string |
None. |
|
City | string |
None. |
|
Zip | string |
None. |
|
Country | string |
None. |
|
State | string |
None. |
|
Country2LetterIsoCode | string |
None. |
|
Country3LetterIsoCode | string |
None. |
|
StateCode | string |
None. |
|
RewardPoints | decimal number |
None. |
|
NopExternalId | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "LocationId": 1, "CustomerId": 2, "FirstName": "sample string 3", "LastName": "sample string 4", "Email": "sample string 5", "CellPhone": "sample string 6", "WorkPhone": "sample string 7", "Dob": "2025-04-02T20:39:09.7054763-04:00", "Gender": 1, "CustomerCode": "sample string 8", "Address": "sample string 9", "Address2": "sample string 10", "City": "sample string 11", "Zip": "sample string 12", "Country": "sample string 13", "State": "sample string 14", "Country2LetterIsoCode": "sample string 15", "Country3LetterIsoCode": "sample string 16", "StateCode": "sample string 17", "RewardPoints": 1.0, "NopExternalId": "sample string 18" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |