Ask for an invitation
Menu

API reference

Products and prices

A product is something sold; a price is what it costs. Payment links, invoices and subscriptions refer to prices. A price's amount and currency never change: archive it (active: false) and create a new one.

The product object

JSON

{
  "id": "prod_9cct573e5ewmrj7f6hyjsqap",
  "object": "product",
  "livemode": true,
  "created": "2026-09-10T10:00:00.000Z",
  "updated": "2026-09-10T10:00:00.000Z",
  "name": "Ethiopia Yirgacheffe, 1 kg",
  "description": "Washed, light roast.",
  "image": "file_3mg14w9wm9h26h2v61wzxhek",
  "active": true,
  "metadata": {
    "sku": "ETH-YIR-1KG"
  }
}

The price object

JSON

{
  "id": "price_mbk5s5r45kwheaq89dbmk2gz",
  "object": "price",
  "livemode": true,
  "created": "2026-09-10T10:01:00.000Z",
  "product": "prod_9cct573e5ewmrj7f6hyjsqap",
  "active": true,
  "type": "one_time",
  "amount": "21.99",
  "currency": "USD",
  "recurring": null,
  "nickname": "Retail",
  "metadata": {}
}
Table: The price object
FieldMeaning
typeOne of one_time, recurring.

Every field

Fields of the product object

Fields of the product 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.
namestringThe product's name, as payers see it.
descriptionstring or nullA longer description; null for none.
imagestring or nullThe file_ id of the product's picture; null for none.
activebooleanfalse once the product is archived: it cannot be sold again.
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.

Fields of the price object

Fields of the price 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.
productstringThe prod_ id of the product the price is for.
activebooleanfalse once the price is archived: it cannot be used on new links, invoices or subscriptions.
typestringOne of one_time, recurring.
amountstringThe price, a decimal string in its currency. It never changes.
currencystringThe currency of the price: an ISO 4217 code or an asset id. It never changes.
recurringobject or nullFor a recurring price, how often it is charged (interval, interval_count); null for a one-time price.
nicknamestring or nullThe merchant's own name for the price; null for none.
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.