---
title: "Mint Offer"
method: POST
path: "/api/v1/commerce/offers"
tags: ["commerce", "commerce"]
---

# Mint Offer

`POST /api/v1/commerce/offers`

## Request

- Base URL: `https://app.goodleads.club` (the document declares no server; this is the origin it was published from)
- URL: `https://app.goodleads.club/api/v1/commerce/offers`
- Auth: API key in header `X-API-Key`

Write down a price agreed in conversation. Returns the code to send the buyer.

## Request body

- OfferIn: Mint. `unit_cents` is the ceiling every grade bills under (min with list). Give `expires_at` or `expires_in_days`, not both; neither = open-ended.
  - `code` string, nullable: Leave blank to mint one like GL-7K3Q9M
  - `unit_cents` integer, required: The agreed price per record, in cents — a ceiling on every grade
  - `cap_records` integer, nullable
  - `cap_cents` integer, nullable
  - `bound_email` string, nullable: Only this buyer may use the code
  - `expires_at` string, date-time, nullable
  - `expires_in_days` integer, nullable
  - `note` string, nullable: Who and why — 'case study, Acme Web Design'

## Response `201`

Successful Response

- OfferRow
  - `code` string, required
  - `unit_cents` integer, required
  - `status` string, required
  - `rule` string, required
  - `cap_records` integer, nullable, required
  - `cap_cents` integer, nullable, required
  - `remaining_records` integer, nullable, required
  - `remaining_cents` integer, nullable, required
  - `redeemed_records` integer, required
  - `redeemed_cents` integer, required
  - `bound_email` string, nullable, required
  - `expires_at` string, date-time, nullable, required
  - `revoked_at` string, date-time, nullable, required
  - `note` string, nullable, required
  - `created_at` string, date-time, nullable, required
  - `orders` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/goodleads/apis/formation-gtm-api.md) · [All operations](https://skmtc.dev/goodleads/apis/formation-gtm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/goodleads/apis/formation-gtm-api/revisions/2068d13a82cf?raw)
