Application/Docs
LoginStart free

Docs

Recipes

Integration overviewAuthenticationOpenAPI & SwaggerErrors & versioningRecipes

Recipes

Copy-ready workflows against real /api paths.

Last updated 2026-09-01

Prerequisites

Create a Business Application with the scopes each recipe needs. Send:

  • X-Client-Id
  • X-Client-Secret
  • Content-Type: application/json on bodies

Base path: /api. Replace https://api.example.com with your API host.

Create a customer

Scope: customers.create. Endpoint: POST /api/customers.

Request

curl -X POST https://api.example.com/api/customers \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Client-Secret: YOUR_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Retail",
    "email": "ops@acme.example",
    "address": "100 Market St",
    "status": "active"
  }'

Create an invoice

Scope: invoices.create. Endpoint: POST /api/invoices. Provide from/to names, issue_date, and 1–10 items.

Request

curl -X POST https://api.example.com/api/invoices \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Client-Secret: YOUR_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "invoice_from_name": "Northwind LLC",
    "invoice_from_email": "billing@northwind.example",
    "invoice_to_name": "Acme Retail",
    "invoice_to_email": "ap@acme.example",
    "issue_date": "2026-09-01",
    "due_date": "2026-09-30",
    "items": [
      {
        "name": "Consulting",
        "description": "September retainer",
        "unit_type": "item",
        "unit_price": 500,
        "quantity": 1
      }
    ],
    "tax_amount": 0,
    "discount_amount": 0,
    "notes": "Net 30"
  }'

List products

Scope: products.read. Endpoint: GET /api/products. Response includes success, total, limit, offset, data.

Request

curl "https://api.example.com/api/products?limit=20&offset=0" \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Client-Secret: YOUR_CLIENT_SECRET"

Invite a user

Scope: invitations.create. Endpoint: POST /api/invitations. You need a Business role_id (roles are managed in the UI/session — not via Application scopes). Message is required.

Request

curl -X POST https://api.example.com/api/invitations \
  -H "X-Client-Id: YOUR_CLIENT_ID" \
  -H "X-Client-Secret: YOUR_CLIENT_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "teammate@example.com",
    "role_id": "00000000-0000-0000-0000-000000000000",
    "message": "Welcome to our Business on Application."
  }'

Related

  • Authentication
  • Errors & versioning
  • OpenAPI & Swagger
PreviousErrors & versioningNextSecurity overview
|

On this page