SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Contacts

POST

List Contacts

Customers and vendors, with what each one owes or is owed.

Parameters

organizationIdUUID!required

Organization ID

nameString!required

"list_contacts"

params.contact_typeString

customer or vendor

params.nameString

Part of the name

params.include_inactiveBoolean

Include contacts that were turned off

params.limitInt

Page size (default 50, max 200)

params.offsetInt

Number of contacts to skip

Request
mutation {
  previewOp(
    organizationId: "a1b2c3d4-..."
    name: "list_contacts"
    params: { contact_type: "customer", name: "north" }
  ) { success result }
}
Response
{
  "data": {
    "previewOp": {
      "success": true,
      "result": {
        "summary": "1 Contact(s); Showing 1.",
        "data": {
          "total": 1,
          "contacts": [
            {
              "id": "b2c3d4e5-...",
              "name": "North Group",
              "type": "customer",
              "email": "[email protected]",
              "phone": null,
              "balance": "4520.00",
              "active": true,
              "invoice_currency": null,
              "region": "ON",
              "send_to": ["[email protected]"],
              "legal_name": "North Group Holdings Ltd.",
              "contact_name": "Dana Park",
              "billing_address": "200 Bay Street
Toronto, ON M5J 2J2"
            }
          ]
        }
      }
    }
  }
}