Skip to content
Last updated

Generate a client report

Prerequisites

Client reporting endpoints

EndpointMethodDescription
/v1/clientsGETList all client accounts
/v1/clients/{id}GETRetrieve details for a specific client

Option A: List all clients

Send GET /v1/clients to retrieve all client accounts visible to the authenticated account.

curl https://api.dev.paradisegateway.net/v1/clients \
  -H "APIKEY: YOUR-API-KEY"

Response

The response is an array of client objects.

[
  {
    "id": "CLIENT-3MtwBwLkdIwHu7ix28a3tqPa",
    "object": "client",
    "dba": "Acme Jewelry",
    "parent_id": "CLIENT-01JMRSPCK7XVNP3KS8F2W4T6Y",
    "type": "merchant",
    "admin_contact_details": {
      "first_name": "John",
      "last_name": "Doe",
      "email": "john.doe@example.com",
      "phone": "+15551234567",
      "time_zone": "America/New_York"
    },
    "correlation_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
]

Option B: Retrieve a specific client

Send GET /v1/clients/{id} to get the full details of a single client account.

curl https://api.dev.paradisegateway.net/v1/clients/CLIENT-3MtwBwLkdIwHu7ix28a3tqPa \
  -H "APIKEY: YOUR-API-KEY"

Key client fields

FieldDescription
idUnique client identifier
dbaDoing-business-as name
typemerchant or reseller
parent_idParent account in the hierarchy
admin_contact_detailsPrimary admin contact information

Visibility rules

The list of clients you see depends on your API key's position in the account hierarchy:

Your account typeClients visible
Top-level resellerAll merchants and sub-resellers in your hierarchy
Sub-resellerOnly merchants under your account
MerchantOnly your own client record

Next steps