Docs contents
Partners
Business partners — the customers, suppliers and other counterparties your organization trades with — plus their contacts and addresses. Master data shared by sales, purchasing, distribution, finance and CRM. Sync a CRM, an e-invoice provider or an external directory against these endpoints.
/v1/partnersScope: partners:readList partners
Returns a cursor-paginated list of partners. Filter by type or search by name and tax code.
| limitoptional | integerPage size, 1–200 (default 50). |
| cursoroptional | stringPagination cursor from a previous response. |
| typeoptional | stringFilter by role: customer or supplier. |
| searchoptional | stringMatch against name and tax code. |
curl "https://api.apusplatform.com/v1/partners" \
-H "Authorization: Bearer $APUS_TOKEN"{
"data": [
{
"id": "prt_1a2b",
"code": "CUST-000142",
"name": "Cong ty TNHH Thanh Long",
"type": [
"customer"
],
"tax_code": "0312345678",
"email": "ketoan@thanhlong.vn",
"currency": "VND",
"active": true,
"updated_at": "2026-07-12T04:20:11Z"
}
],
"has_more": true,
"next_cursor": "crsr_9a10"
}/v1/partnersScope: partners:writeCreate a partner
Creates a partner. tax_code, when supplied, must be unique.
| namerequired | stringLegal or trading name. |
| typerequired | stringOne or more roles: customer, supplier. |
| tax_codeoptional | stringTax identification number (unique). |
| emailoptional | stringPrimary contact email. |
curl -X POST "https://api.apusplatform.com/v1/partners" \
-H "Authorization: Bearer $APUS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Cong ty TNHH Thanh Long",
"type": [
"customer"
],
"tax_code": "0312345678",
"email": "ketoan@thanhlong.vn"
}'{
"id": "prt_1a2b",
"code": "CUST-000142",
"created_at": "2026-07-20T02:10:00Z"
}/v1/partners/{id}Scope: partners:readRetrieve a partner
Returns a single partner by its id, or by tax code (prefix the value with tax_).
| idrequired | stringPartner id. |
curl "https://api.apusplatform.com/v1/partners/prt_1a2b" \
-H "Authorization: Bearer $APUS_TOKEN"{
"id": "prt_1a2b",
"code": "CUST-000142",
"name": "Cong ty TNHH Thanh Long",
"type": [
"customer"
],
"tax_code": "0312345678",
"email": "ketoan@thanhlong.vn",
"currency": "VND",
"active": true,
"updated_at": "2026-07-12T04:20:11Z"
}/v1/partners/{id}Scope: partners:writeUpdate a partner
Updates mutable fields of a partner. Only supplied fields change.
| idrequired | stringPartner id. |
| nameoptional | stringLegal or trading name. |
| typeoptional | stringOne or more roles: customer, supplier. |
| emailoptional | stringPrimary contact email. |
| activeoptional | booleanActivate or archive the partner. |
curl -X PATCH "https://api.apusplatform.com/v1/partners/prt_1a2b" \
-H "Authorization: Bearer $APUS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": [
"customer",
"supplier"
],
"email": "muahang@thanhlong.vn"
}'{
"id": "prt_1a2b",
"code": "CUST-000142",
"updated_at": "2026-07-20T02:12:00Z"
}/v1/partners/{id}Scope: partners:writeArchive a partner
Archives a partner (soft delete). It stays referenced by historical documents.
| idrequired | stringPartner id. |
curl -X DELETE "https://api.apusplatform.com/v1/partners/{id}" \
-H "Authorization: Bearer $APUS_TOKEN"HTTP/1.1 204 No Content/v1/partners/{id}/contactsScope: partners:readList partner contacts
Returns the people recorded against a partner.
| idrequired | stringPartner id. |
curl "https://api.apusplatform.com/v1/partners/{id}/contacts" \
-H "Authorization: Bearer $APUS_TOKEN"{
"data": [
{
"id": "con_5f6g",
"name": "Nguyen Thi Mai",
"email": "mai@thanhlong.vn",
"phone": "+84 28 3822 1234",
"role": "Accountant"
}
]
}/v1/partners/{id}/contactsScope: partners:writeAdd a contact
Adds a contact person to a partner.
| idrequired | stringPartner id. |
| namerequired | stringFull name. |
| emailoptional | stringContact email. |
| phoneoptional | stringContact phone number. |
| roleoptional | stringJob title or role, e.g. Accountant. |
curl -X POST "https://api.apusplatform.com/v1/partners/con_5f6g/contacts" \
-H "Authorization: Bearer $APUS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Nguyen Thi Mai",
"email": "mai@thanhlong.vn",
"phone": "+84 28 3822 1234",
"role": "Accountant"
}'{
"id": "con_5f6g",
"name": "Nguyen Thi Mai",
"created_at": "2026-07-20T02:14:00Z"
}/v1/partners/{id}/addressesScope: partners:readList partner addresses
Returns the billing and shipping addresses recorded against a partner.
| idrequired | stringPartner id. |
curl "https://api.apusplatform.com/v1/partners/{id}/addresses" \
-H "Authorization: Bearer $APUS_TOKEN"{
"data": [
{
"id": "adr_7h8i",
"type": "billing",
"line1": "128 Nguyen Hue",
"city": "Ho Chi Minh City",
"country": "VN"
}
]
}/v1/partners/{id}/addressesScope: partners:writeAdd an address
Adds a billing or shipping address to a partner.
| idrequired | stringPartner id. |
| line1required | stringStreet address line. |
| cityoptional | stringCity or province. |
| countryoptional | stringISO 3166-1 alpha-2 country code. |
| typeoptional | stringAddress role: billing or shipping. |
curl -X POST "https://api.apusplatform.com/v1/partners/adr_7h8i/addresses" \
-H "Authorization: Bearer $APUS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"line1": "128 Nguyen Hue",
"city": "Ho Chi Minh City",
"country": "VN",
"type": "billing"
}'{
"id": "adr_7h8i",
"type": "billing",
"created_at": "2026-07-20T02:16:00Z"
}Ready to build?
Create an API client in the Account Console to get your credentials, or talk to an integration engineer about your use case.