Referensi API
Kontak
Kontak pembeli yang digabung lintas toko, lengkap dengan statistik pesanan.
List contacts
/v1/contactsContacts with order stats, most recent first.
Scope:contacts:read
Query parameter
qstringopsionalpanjang maks 100
labelstringopsionalpanjang maks 40
limitintegeropsionalmin 1 · maks 200
offsetintegeropsionalmin 0
Response200 · application/json
OK
itemsarray<ContactSummary>wajibTampilkan 6 atribut turunan
idstringwajibformat: uuid
displayNamestringwajibnullablelabelsarray<string>wajibchannelsarray<string>wajibstatsContactStatswajibTampilkan 5 atribut turunan
ordersintegerwajibNon-cancelled orders.
totalSpendstring (decimal)wajibDecimal string with two fraction digits.
currencystringwajibreturnsintegerwajiblastOrderAtstringwajibnullableformat: date-time
createdAtstringwajibformat: date-time
curl "https://api.comnethub.app/v1/contacts?limit=20" \
-H "Authorization: Bearer $THECOMNET_API_KEY"List contact labels
/v1/contacts/labelsLabels in use on contacts.
Scope:contacts:read
Response200 · application/json
OK
itemsarray<string>wajib
curl "https://api.comnethub.app/v1/contacts/labels" \
-H "Authorization: Bearer $THECOMNET_API_KEY"Get contact
/v1/contacts/{contactId}Contact with identities, orders, and conversations.
Scope:contacts:read
Path parameter
contactIdstringwajibformat: uuid
Response200 · application/json
OK
idstringwajibformat: uuid
displayNamestringwajibnullablelabelsarray<string>wajibchannelsarray<string>wajibstatsContactStatswajibTampilkan 5 atribut turunan
ordersintegerwajibNon-cancelled orders.
totalSpendstring (decimal)wajibDecimal string with two fraction digits.
currencystringwajibreturnsintegerwajiblastOrderAtstringwajibnullableformat: date-time
createdAtstringwajibformat: date-time
notesstringwajibnullableidentitiesarray<ContactIdentity>wajibTampilkan 3 atribut turunan
channelstringwajibtiktok, shopee; later whatsapp, instagram.
externalIdstringwajibdisplayNamestringwajibnullable
ordersarray<ChatBuyerOrder>wajibLatest 50.
Tampilkan 7 atribut turunan
orderIdstringwajibformat: uuid
externalOrderIdstringwajibstatusstringwajibmarketplaceStatusstringwajibnullabletotalstring (decimal)wajibDecimal string with two fraction digits.
currencystringwajibplacedAtstringwajibformat: date-time
conversationsarray<ChatConversation>wajibTampilkan 22 atribut turunan
contactIdstringwajibnullableformat: uuid
assignedUserIdstringwajibnullableformat: uuid
labelsarray<string>wajibwaitingSincestringwajibnullableOldest unanswered buyer message; null when the shop spoke last.
format: date-time
latebooleanwajibWaiting longer than the tenant's response target.
idstringwajibformat: uuid
storeIdstringwajibformat: uuid
storeNamestringwajibmarketplacestringwajibSalah satu dari:
tiktokshopeelazadatokopediaexternalConversationIdstringwajibbuyerNamestringwajibnullablebuyerAvatarstringwajibnullablecanSendbooleanwajibFalse when the marketplace does not allow the shop to message this buyer.
unreadCountintegerwajiblastMessageAtstringwajibnullableformat: date-time
lastMessagePreviewstringwajibnullablelastMessageRolestringwajibnullableSalah satu dari:
buyershopagentsystemrobotstatusstringwajibSalah satu dari:
openresolvedneedsHumanbooleanwajibhandoffReasonstringwajibnullableagentPausedbooleanwajibhasDraftbooleanwajib
curl "https://api.comnethub.app/v1/contacts/$CONTACT_ID" \
-H "Authorization: Bearer $THECOMNET_API_KEY"Update contact
/v1/contacts/{contactId}Rename, label, or annotate a contact.
Scope:contacts:write
Path parameter
contactIdstringwajibformat: uuid
Request bodyapplication/json
displayNamestringopsionalnullablepanjang maks 100
labelsarray<string>opsionalitem maks 20
notesstringopsionalnullablepanjang maks 4000
Response200 · application/json
OK
idstringwajibformat: uuid
displayNamestringwajibnullablelabelsarray<string>wajibchannelsarray<string>wajibstatsContactStatswajibTampilkan 5 atribut turunan
ordersintegerwajibNon-cancelled orders.
totalSpendstring (decimal)wajibDecimal string with two fraction digits.
currencystringwajibreturnsintegerwajiblastOrderAtstringwajibnullableformat: date-time
createdAtstringwajibformat: date-time
curl -X PATCH "https://api.comnethub.app/v1/contacts/$CONTACT_ID" \
-H "Authorization: Bearer $THECOMNET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"displayName": "string",
"labels": [
"string"
],
"notes": "string"
}'