Ask for an invitation
Menu

API reference

Payment links

A payment link is a reusable URL, https://pay.orrerie.com/l/<plink_id>. Each visit that starts paying creates one order and one checkout session. amount_type: "fixed" uses the link's amount or prices; amount_type: "open" lets the payer type an amount between min_amount and max_amount (donations, tips, "pay what you owe").

JSON

{
  "id": "plink_gg6as78pk82ndt25m36vjeey",
  "object": "payment_link",
  "livemode": true,
  "created": "2026-09-10T10:05:00.000Z",
  "updated": "2026-09-10T10:05:00.000Z",
  "active": true,
  "name": "Ethiopia Yirgacheffe, 1 kg",
  "url": "https://pay.orrerie.com/l/plink_gg6as78pk82ndt25m36vjeey",
  "amount_type": "fixed",
  "amount": "21.99",
  "currency": "USD",
  "min_amount": null,
  "max_amount": null,
  "line_items": [
    {
      "price": "price_mbk5s5r45kwheaq89dbmk2gz",
      "quantity": 1,
      "adjustable_quantity": {
        "enabled": true,
        "minimum": 1,
        "maximum": 10
      }
    }
  ],
  "collect": {
    "email": "required",
    "name": "optional",
    "shipping_address": "hidden"
  },
  "success_url": "https://acme.example/thanks",
  "allow_publishable_key": true,
  "order_expiry_seconds": 3600,
  "max_uses": null,
  "uses": 17,
  "paid_uses": 14,
  "expires_at": null,
  "metadata": {}
}
Table: The payment_link object
FieldMeaning
amount_typeOne of fixed, open.

Every field

Fields of the payment_link 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.
activebooleanfalse once the link is switched off: its page takes no new payments.
namestringThe link's name, as payers see it.
urlstringThe link's page on the payer site.
amount_typestringOne of fixed, open.
amountstring or nullThe fixed amount of a link priced by amount; null for a link priced by its line items or an open amount.
currencystringThe currency the link is priced in.
min_amountstring or nullThe least a payer may type on an open link; null for the platform's minimum.
max_amountstring or nullThe most a payer may type on an open link; null for the tier's limit.
line_itemsarray of objectsWhat the link sells, when it is priced from prices.
line_items[].pricestringThe price_ id sold.
line_items[].quantityintegerHow many, unless the payer may choose.
line_items[].adjustable_quantityobjectWhether the payer may choose the quantity, and between which bounds.
collectobjectWhich details the link's page asks the payer for.
collect.emailstringrequired, optional or hidden.
collect.namestringrequired, optional or hidden.
collect.shipping_addressstringrequired, optional or hidden.
success_urlstring or nullWhere the payer is sent after paying; null for the payer site's own page.
allow_publishable_keybooleantrue when a publishable key may start checkouts from the link.
order_expiry_secondsintegerHow long each order the link makes stays payable, in seconds.
max_usesinteger or nullHow many paid orders the link takes before it switches off; null for no limit.
usesintegerHow many orders the link has made.
paid_usesintegerHow many of them were paid.
expires_atstring or nullWhen the link switches itself off; null for never.
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.