POST api/CustomerAndCustomerAddress/Add
Creates new customer and customer Address.This API can handle single and multiple customer data. Each customer can have list of address like mailing,billing etc.,minimum one address is mandatory.
Request Information
URI Parameters
None.
Body Parameters
Array of Customer and Customer Address.
Collection of CustomerAndCustomerAddressName | Description | Type | Additional information |
---|---|---|---|
CustomerCode |
FocusPoint Customer Code : AutoGeneratedID. Required : N |
string |
Max length: 20 |
Name |
Store Zoo customer's FirstName. Required : Y |
string |
Required Max length: 50 |
Note |
Optional - can be used for other data as needed. Required : N |
string |
Max length: 16 |
CustomField1 |
Optional - can be used for other data as needed. Required : N |
string |
Max length: 50 |
MiddleName |
Store Zoo customer's MiddleName. Required : N |
string |
Max length: 50 |
LastName |
Store Zoo customer's LastName. Required : Y |
string |
Required Max length: 50 |
Gender |
Store Zoo customer's Gender : Male -M, Female - F, Others - O. Required : Y |
string |
None. |
AlternateId |
CRM ID is a unique ID for each customer,this id will be referred throughout the entire process. Required : Y |
string |
Required Max length: 50 |
CustomerAddress |
List of Customer Address, Required : Y |
Collection of CustomerAddress |
None. |
Request Formats
application/json, text/json
[ { "CustomerCode": "sample string 1", "Name": "sample string 2", "Note": "sample string 3", "CustomField1": "sample string 4", "MiddleName": "sample string 5", "LastName": "sample string 6", "Gender": "sample string 7", "AlternateId": "sample string 8", "CustomerAddress": [ { "AlternateId": "sample string 1", "CustomerCode": "sample string 2", "Address1": "sample string 3", "Address2": "sample string 4", "City": "sample string 5", "State": "sample string 6", "Country": "sample string 7", "PostalZipCode": "sample string 8", "ContactNumber": "sample string 9", "Email": "sample string 10", "ContactPerson": "sample string 11" }, { "AlternateId": "sample string 1", "CustomerCode": "sample string 2", "Address1": "sample string 3", "Address2": "sample string 4", "City": "sample string 5", "State": "sample string 6", "Country": "sample string 7", "PostalZipCode": "sample string 8", "ContactNumber": "sample string 9", "Email": "sample string 10", "ContactPerson": "sample string 11" } ] }, { "CustomerCode": "sample string 1", "Name": "sample string 2", "Note": "sample string 3", "CustomField1": "sample string 4", "MiddleName": "sample string 5", "LastName": "sample string 6", "Gender": "sample string 7", "AlternateId": "sample string 8", "CustomerAddress": [ { "AlternateId": "sample string 1", "CustomerCode": "sample string 2", "Address1": "sample string 3", "Address2": "sample string 4", "City": "sample string 5", "State": "sample string 6", "Country": "sample string 7", "PostalZipCode": "sample string 8", "ContactNumber": "sample string 9", "Email": "sample string 10", "ContactPerson": "sample string 11" }, { "AlternateId": "sample string 1", "CustomerCode": "sample string 2", "Address1": "sample string 3", "Address2": "sample string 4", "City": "sample string 5", "State": "sample string 6", "Country": "sample string 7", "PostalZipCode": "sample string 8", "ContactNumber": "sample string 9", "Email": "sample string 10", "ContactPerson": "sample string 11" } ] } ]
Response Information
Resource Description
FocusPoint Membership Code. Example: M010020337
stringResponse Formats
application/json, text/json
"sample string 1"