Skip to content
Navigation

Query customer communications

GET
https://api.caretlegal.net/communications/

Authorization

  • InternalApiKey
    optional
    API key in header
  • PartnerBearer
    optional
    HTTP

Query parameters

  • sourceId
    string
    required

    External customer ID, such as a NetSuite customer internal ID.

  • acfSource
    optional
    string

    Connector/source name in the ACF ledger.

    default: "netsuite"
  • entityType
    optional
    customer
    default: "customer"
  • type
    optional
    string

    Comma-separated communication type filter, e.g. customer_statement.

  • status
    optional
    string

    Comma-separated status filter.

  • limit
    optional
    integer
    maximum: 100 · minimum: 1 · default: 50
  • offset
    optional
    integer
    minimum: 0 · default: 0

Header parameters

  • x-organization-id
    string
    required

    Local organization UUID used to scope ACF resolution and communication logging.

    format: uuid

Returns

200

Communications for the resolved customer.

JSON
  • success
    optional
    boolean
  • data
    optional
    object
    • customerId
      optional
      string

      Resolved local customers.id.

      format: uuid
    • organizationId
      optional
      string
      format: uuid
    • recipientRef
      optional
      object
      • entityType
        customer
        required

        Entity type to resolve through ACF.

      • acfSource
        string
        required

        Connector/source name in the ACF ledger.

      • sourceId
        string
        required

        Source-system entity ID to resolve to a local customer.

    • communications
      optional
      array of
      object
    • pagination
      optional
      object
      • limit
        optional
        integer
      • offset
        optional
        integer
      • count
        optional
        integer

400

Invalid request or organization scope.
JSON
  • success
    optional
    boolean
  • error
    optional
    string
  • details
    optional
    array of
    object
    • path
      optional
      string
    • message
      optional
      string

401

Missing or invalid API key.
JSON
  • success
    optional
    boolean
  • error
    optional
    string
  • details
    optional
    array of
    object
    • path
      optional
      string
    • message
      optional
      string

403

API key lacks communications:read.
JSON
  • success
    optional
    boolean
  • error
    optional
    string
  • details
    optional
    array of
    object
    • path
      optional
      string
    • message
      optional
      string

404

Recipient reference did not resolve to a local customer.
JSON
  • success
    optional
    boolean
  • error
    optional
    string
  • details
    optional
    array of
    object
    • path
      optional
      string
    • message
      optional
      string

Type to search…

↑↓ navigate↵ selectEsc close