Contents
On this page

List Contact Accounts - Plugixa CRM

GET /plugixa-crm/v1/contacts/{id}/accounts

List every account a contact is linked to, primary first. A contact can work with several companies, each with its own role.

Any user with access to Plugixa CRM. With Plugixa CRM Pro roles, the user’s role must also allow reading this contact.

Note. An id that is not a contact answers 200 with an empty list, not 404.

Request

GET https://your-site.example/wp-json/plugixa-crm/v1/contacts/31/accounts

Path parameters

Name Type Description
id integer The contact’s id

Responses

{
  "success": true,
  "data": [
    {
      "id": 7,
      "account_id": 12,
      "contact_id": 31,
      "role": "Buyer",
      "is_primary": 1,
      "is_inactive": 0,
      "created_at": "2026-11-12 09:30:00",
      "account_name": "Northwind Traders",
      "account_type": "customer"
    },
    {
      "id": 9,
      "account_id": 15,
      "contact_id": 31,
      "role": "Advisor",
      "is_primary": 0,
      "is_inactive": 0,
      "created_at": "2026-11-12 10:15:00",
      "account_name": "Initech",
      "account_type": "partner"
    }
  ]
}
Field Type Meaning
data[].id integer The link’s id, used to update or remove it
data[].account_id integer The account
data[].role string|null The contact’s role at that account
data[].is_primary integer 1 for the primary account. A contact has at most one
data[].is_inactive integer 1 when the link is marked inactive
data[].account_name string The account’s name
data[].account_type string The account’s type

Errors

Plus the errors every endpoint can return.

Examples

curl -s "https://your-site.example/wp-json/plugixa-crm/v1/contacts/31/accounts" \
  -u "admin:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-crm/v1/contacts/31/accounts');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'admin:' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const auth = 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`);
const response = await fetch('https://your-site.example/wp-json/plugixa-crm/v1/contacts/31/accounts', {
  headers: {
    'Authorization': auth,
  },
});
const { data } = await response.json();

Quick Links

Share