Ask for an invitation
Menu

API reference

Customers

A customer is a payer the merchant keeps a record of. Orrerie never checks a payer's identity; this record is whatever the merchant or the payer typed. refund_addresses are addresses the payer gave for refunds. credit_balance is overpayment kept as credit.

The customer object

JSON

{
  "id": "cus_8ea07c40qsvv19f7rgmeb8ha",
  "object": "customer",
  "livemode": true,
  "created": "2026-10-01T08:00:00.000Z",
  "updated": "2026-10-01T08:00:00.000Z",
  "name": "Jane Doe",
  "email": "jane@example.com",
  "description": "Wholesale buyer",
  "billing_address": {
    "line1": "12 Market Street",
    "line2": null,
    "city": "Portland",
    "region": "OR",
    "postal_code": "97201",
    "country": "US"
  },
  "refund_addresses": [
    {
      "asset": "ethereum:usdc",
      "address": "0xdbF03B407c01E7cD3CBea99509d93f8DDDC8C6FB",
      "added": "2026-10-01T08:00:00.000Z"
    }
  ],
  "credit_balance": {
    "amount": "0.00",
    "currency": "USD"
  },
  "locale": "en",
  "metadata": {
    "crm_id": "88213"
  }
}

Every field

Fields of the customer object

Fields of the customer object
FieldTypeMeaning
idstringUnique identifier: the object prefix, an underscore, 24 lower-case Crockford base32 characters.
objectstringThe type of this object.
livemodebooleantrue for live mode (real money); false for test mode (simulated payments).
createdstring (date-time)When the object was created. RFC 3339, UTC, milliseconds.
updatedstring (date-time)When the object last changed.
namestring or nullThe customer's name, as the merchant or the payer gave it; null when none was given.
emailstring or nullThe customer's email address; null when none was given. Receipts and invoices go there.
descriptionstring or nullThe merchant's own note about the customer; null for none.
billing_addressobject or nullThe customer's billing address, shown on invoices; null when none was given.
billing_address.line1stringThe first line of the street address.
billing_address.line2string or nullThe second line of the street address; null for none.
billing_address.citystringThe city or town.
billing_address.regionstringThe state, province or region.
billing_address.postal_codestringThe postal code.
billing_address.countrystringThe country, an ISO 3166-1 alpha-2 code.
refund_addressesarray of objectsAddresses the payer gave for refunds, newest first.
refund_addresses[].assetstringThe asset the address takes, as an asset id.
refund_addresses[].addressstringThe address itself.
refund_addresses[].addedstring (date-time)When the payer gave it.
credit_balanceobjectOverpayment kept as credit for this customer, usable on later invoices.
credit_balance.amountstringThe credit, a decimal string.
credit_balance.currencystringThe currency of the credit.
localestringThe language of the customer's emails and pages: auto or en.
metadataobjectUp to 50 keys of your own data. Key up to 40 characters, value a string up to 500 characters. Never used by Orrerie; never put secrets or personal data here.

Endpoints

Events

Webhook events whose data.object is an object of this page.