Contact
Get Contacts
GET
https://open-api.zortout.com/v4/Contact/GetContacts
Get list of contacts.
Query Parameters
Name | Type | Description |
---|---|---|
keyword | String | Keyword to search at least 3 characters |
page | Int | Page (Default = 1) |
limit | Int | Limit per page (Max = 500) |
Headers
Name | Type | Description |
---|---|---|
storename* | String | Store Name |
apikey* | String | API Key |
apisecret* | String | API Secret |
contactidlist | String | Contact ID List Ex. 1234,5678 |
Parameter | Type | Description/Example |
---|---|---|
res | Response | Response Code 200- Success |
list | Contact (Array) | Contact List (Array) |
count | Int | Total contact number by filter |
Contact (Array) | Type | Description/Example |
---|---|---|
id | Int | Contact ID |
name | String | Contact Name |
code | String | Contact Code |
idnumber | String | Contact ID Number/Tax ID |
phone | String | Contact Phone |
String | Contact Email | |
address | String | Contact Address |
branchname | String | Branch Name |
branchno | String | Branch No |
String | ||
line | String | LINE |
String | ||
imagepath | String | Image Url |
tag | String (Array) | Tag List (Array) |
properties | Property (Array) | Custom Properties List |
Property (Array) | Type | Description/Example |
---|---|---|
id | Int | Property ID |
name | String | Property Name |
value | String | Property Value |
Get Contact Detail
GET
https://open-api.zortout.com/v4/Contact/GetContactDetail
Get contact detail
Query Parameters
Name | Type | Description |
---|---|---|
id* | Int | Contact ID |
Headers
Name | Type | Description |
---|---|---|
storename* | String | Store Name |
apikey* | String | API Key |
apisecret* | String | API Secret |
Parameter | Type | Description/Example |
---|---|---|
id | Int | Contact ID |
name | String | Contact Name |
code | String | Contact Code |
idnumber | String | Contact ID Number/Tax ID |
phone | String | Contact Phone |
String | Contact Email | |
address | String | Contact Address |
branchname | String | Branch Name |
branchno | String | Branch No |
String | ||
line | String | LINE |
String | ||
imagepath | String | Image Url |
subContactList | SubContact (Array) | Subcontact List (Array) |
shippingList | ShippingAddress (Array) | Shipping Address List (Array) |
tag | String (Array) | Tag List (Array) |
properties | Property (Array) | Custom Properties List |
SubContact (Array) | Type | Description/Example |
---|---|---|
name | String | Subcontact Name |
position | String | Subcontact Position |
phone | String | Subcontact Phone |
mobile | String | Subcontact Mobile |
String | Subcontact Email | |
isMain | Boolean | Main Status |
ShippingAddress (Array) | Type | Description/Example |
---|---|---|
name | String | Shipping Name |
address | String | Shipping Address |
phone | String | Shipping Phone |
String | Shipping Email | |
isMain | Boolean | Main Status |
Property (Array) | Type | Description/Example |
---|---|---|
id | Int | Property ID |
name | String | Property Name |
value | String | Property Value |
Add Contact
POST
https://open-api.zortout.com/v4/Contact/AddContact
Add contact.
Headers
Name | Type | Description |
---|---|---|
storename* | String | Store Name |
apikey* | String | API Key |
apisecret* | String | API Secret |
Request Body
Name | Type | Description |
---|---|---|
code* | String | Contact Code |
name* | String | Contact Name |
idnumber | String | Contact ID Number/Tax ID |
phone | String | Contact Phone |
String | Contact Email | |
address | String | Contact Address |
branchname | String | Branch Name |
branchno | String | Branch No |
String | ||
line | String | Line |
String | ||
∟ value | String | Property Value |
∟ name | String | Property Name Require if id = 0 or null *Must have either id or name |
∟ id | Int | Property ID *Must have either id or name |
properties | Property (Array) | Custom Properties List |
Parameter | Type | Description/Example |
---|---|---|
resCode | String | Response Code 200- Succes |
resDesc | String | Response Description |
detail | Detail | Detail |
Detail | Type | Description/Example |
---|---|---|
id | Int | Contact ID |
Update Contact
POST
https://open-api.zortout.com/v4/Contact/UpdateContact
Edit contact info
Query Parameters
Name | Type | Description |
---|---|---|
id* | Int | Contact ID |
Headers
Name | Type | Description |
---|---|---|
storename* | String | Store Name |
apisecret* | String | API Secret |
apikey* | String | API Key |
Request Body
Name | Type | Description |
---|---|---|
idnumber | String | Contact ID Number/Tax ID |
code* | String | Contact Code |
String | ||
name | String | Contact Name |
branchname | String | Branch Name |
line | String | Line |
address | String | Contact Address |
phone | String | Contact Phone |
String | Contact Email | |
String | ||
branchno | String | Branch No |
Parameter | Type | Description/Example |
---|---|---|
resCode | String | Response Code 200- Success |
resDesc | String | Response Description |
Last updated