Client Payload

What It Does

Use category: "client" to create, update, or delete individual and company clients. Create clients before sending disbursements that reference them.

Field Summary

Required Fields

FieldRequiredNotes
client_idAlwaysUnique client identifier.
stepAlwayscreate, update, or delete.
nameCreateClient name.
emailCreateClient email address.
phoneCreateClient phone number.
addressCreateClient address.
countryCreateISO 3166-1 alpha-2 country code, for example US.
is_companyCreatetrue for company clients, false for individual clients.
registration_numberCreateID card or passport for an individual; company registration for a company.
genderIndividual createRequired unless is_company is true.
contact_personCompany createRequired when is_company is true.

Common optional fields:

FieldNotes
infoAdditional structured metadata.

country must be ISO 3166-1 alpha-2, for example US, GB, FR, or BR.

gender accepts male, female, or company. For company clients, omit gender or send company; the worker stores company clients with gender = "company".

Create Individual Client

{
  "category": "client",
  "data": {
    "client_id": "BR-2024-001",
    "step": "create",
    "name": "John Doe",
    "email": "john.doe@example.com",
    "phone": "+1234567890",
    "address": "123 Main St, New York, NY 10001",
    "country": "US",
    "is_company": false,
    "registration_number": "ID-1234567890",
    "gender": "male"
  }
}

Create Company Client

{
  "category": "client",
  "data": {
    "client_id": "BR-2024-002",
    "step": "create",
    "name": "Acme Corporation Inc.",
    "email": "contact@acme.com",
    "phone": "+1234567890",
    "address": "456 Business Ave, New York, NY 10002",
    "country": "US",
    "is_company": true,
    "contact_person": "Jane Smith",
    "registration_number": "CR-2024-001234",
    "info": {
      "key": "value"
    }
  }
}

Update

Send step: "update" with the same client_id and fields to change.

{
  "category": "client",
  "data": {
    "client_id": "BR-2024-001",
    "step": "update",
    "email": "new.email@example.com",
    "phone": "+1234567899"
  }
}

Delete

{
  "category": "client",
  "data": {
    "client_id": "BR-2024-001",
    "step": "delete"
  }
}

Notes