Create a Contact
Create a contact
POST
https://{{workspace}}.myeshopbox.com/api/v1/contact
This endpoint is required to create a contact in the workspace.
Path Parameters
Request Body
{
"accountSlug": "raymond",
"contactName": "MONTE CARLO FASHIONS LTD.UNIT-6",
"contactCode": "PW52",
"networkKey": "montecarlo",
"contactType": "vendor",
"gstin": "06AADCB2230M1ZX",
"address":{
"addressLine1": "Khasra no 5/16/2,17, Near Subash Chowk, Sohana Road Village Behrampur",
"city": "gurgaon",
"state": "HARYANA",
"pincode": "122018",
"country": "India"
},
"contact":{
"phoneNumber": "87564435",
"email":"montecarlo.eshop@gmail.com"
},
"status":"active"
"customField": [
{
"label": "occassion",
"internalName": "occassion",
"value": [
"eid",
"holi",
"classy"
]
},
{
"label": "batch",
"internalName": "batch",
"value": [
"currency"
]
}
],
"createdAt": "2020-03-19T15:24:12.000Z",
"updatedAt": "2020-03-19T15:24:12.000Z"
}
curl -X POST https://{{workspace}}.myeshopbox.com/api/v1/contact\
-H "Authorization: Bearer XXXX" \
-H "Content-Type: application/json" \
-d $'{
"data": {
"contactName": "MONTE CARLO FASHIONS LTD.UNIT-6",
"contactCode": "PW52",
"contactType": "vendor",
"networkKey": "montecarlo",
"address":{
"addressLine": "Khasra no 5/16/2,17, Near Subash Chowk, Sohana Road Village Behrampur",
"city": "gurgaon",
"pincode": "122018",
"state": "HARYANA",
"country": "India"
},
"gstin": "06AADCB2230M1ZX",
"contact":{
"phoneNumber": "87564435",
"email":"montecarlo.eshop@gmail.com"
},
"customField": [
{
"label": "occassion",
"internalName": "occassion",
"value": [
"eid",
"holi",
"classy"
]
},
{
"label": "batch",
"internalName": "batch",
"value": [
"currency"
]
}
]
}
Last updated