PlandalfDocsSign inStart free trial

API and webhooks

Customers

Read a customer's details by their Plandalf id, the customer.id in webhook payloads. The dashboard's view of customers is in Customers.

Example

curl https://admin.plandalf.dev/api/v1/customers/1 \
  -H "Authorization: Bearer $PLANDALF_API_KEY"

A key only reads its own organization's customers. Any other id returns 404.

Endpoint

Retrieve a customer

GET /api/v1/customers/{customer}

customer is the customer's numeric id, as sent in webhook payloads.

Parameters

NameInTypeWhat it is
customerpathintegerThe customer ID
curl https://admin.plandalf.dev/api/v1/customers/:customer \
  -H "Authorization: Bearer $PLANDALF_API_KEY"

Response

{
  "id": "string",
  "reference_id": "string",
  "name": "string",
  "email": "string",
  "currency": "string",
  "timezone": "string",
  "has_default_payment_method": true,
  "is_new_customer": true,
  "created_at": "string"
}

Errors

StatusWhen
401The API key or OAuth token is missing or invalid.
404Nothing with that id or code exists in this organization.