API reference
Contacts
Buyer contacts merged across stores, with order stats.
List contacts
/v1/contactsContacts with order stats, most recent first.
Scopes:contacts:read
Query parameters
qstringoptionalmax length 100
labelstringoptionalmax length 40
limitintegeroptionalmin 1 · max 200
offsetintegeroptionalmin 0
Response200 · application/json
OK
itemsarray<ContactSummary>requiredShow 6 child attributes
idstringrequiredformat: uuid
displayNamestringrequirednullablelabelsarray<string>requiredchannelsarray<string>requiredstatsContactStatsrequiredShow 5 child attributes
ordersintegerrequiredNon-cancelled orders.
totalSpendstring (decimal)requiredDecimal string with two fraction digits.
currencystringrequiredreturnsintegerrequiredlastOrderAtstringrequirednullableformat: date-time
createdAtstringrequiredformat: 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.
Scopes:contacts:read
Response200 · application/json
OK
itemsarray<string>required
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.
Scopes:contacts:read
Path parameters
contactIdstringrequiredformat: uuid
Response200 · application/json
OK
idstringrequiredformat: uuid
displayNamestringrequirednullablelabelsarray<string>requiredchannelsarray<string>requiredstatsContactStatsrequiredShow 5 child attributes
ordersintegerrequiredNon-cancelled orders.
totalSpendstring (decimal)requiredDecimal string with two fraction digits.
currencystringrequiredreturnsintegerrequiredlastOrderAtstringrequirednullableformat: date-time
createdAtstringrequiredformat: date-time
notesstringrequirednullableidentitiesarray<ContactIdentity>requiredShow 3 child attributes
channelstringrequiredtiktok, shopee; later whatsapp, instagram.
externalIdstringrequireddisplayNamestringrequirednullable
ordersarray<ChatBuyerOrder>requiredLatest 50.
Show 7 child attributes
orderIdstringrequiredformat: uuid
externalOrderIdstringrequiredstatusstringrequiredmarketplaceStatusstringrequirednullabletotalstring (decimal)requiredDecimal string with two fraction digits.
currencystringrequiredplacedAtstringrequiredformat: date-time
conversationsarray<ChatConversation>requiredShow 22 child attributes
contactIdstringrequirednullableformat: uuid
assignedUserIdstringrequirednullableformat: uuid
labelsarray<string>requiredwaitingSincestringrequirednullableOldest unanswered buyer message; null when the shop spoke last.
format: date-time
latebooleanrequiredWaiting longer than the tenant's response target.
idstringrequiredformat: uuid
storeIdstringrequiredformat: uuid
storeNamestringrequiredmarketplacestringrequiredOne of:
tiktokshopeelazadatokopediaexternalConversationIdstringrequiredbuyerNamestringrequirednullablebuyerAvatarstringrequirednullablecanSendbooleanrequiredFalse when the marketplace does not allow the shop to message this buyer.
unreadCountintegerrequiredlastMessageAtstringrequirednullableformat: date-time
lastMessagePreviewstringrequirednullablelastMessageRolestringrequirednullableOne of:
buyershopagentsystemrobotstatusstringrequiredOne of:
openresolvedneedsHumanbooleanrequiredhandoffReasonstringrequirednullableagentPausedbooleanrequiredhasDraftbooleanrequired
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.
Scopes:contacts:write
Path parameters
contactIdstringrequiredformat: uuid
Request bodyapplication/json
displayNamestringoptionalnullablemax length 100
labelsarray<string>optionalmax items 20
notesstringoptionalnullablemax length 4000
Response200 · application/json
OK
idstringrequiredformat: uuid
displayNamestringrequirednullablelabelsarray<string>requiredchannelsarray<string>requiredstatsContactStatsrequiredShow 5 child attributes
ordersintegerrequiredNon-cancelled orders.
totalSpendstring (decimal)requiredDecimal string with two fraction digits.
currencystringrequiredreturnsintegerrequiredlastOrderAtstringrequirednullableformat: date-time
createdAtstringrequiredformat: 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"
}'