Offerings and live prices

Apps fetch the current prices. A price change does not need an app update.

AGENTS.md

An offering is the catalog an app shows. It contains packages such as monthly or yearly. Each package points at a product, and the product holds the amount in ETB. Edit the amount or the mapping in the dashboard. The next getOfferings() call returns the new price.

Fetch the catalog

GET /api/v1/offerings/
{
  "offering": {
    "identifier": "default",
    "is_current": true,
    "packages": [
      {
        "identifier": "monthly",
        "display_name": "Monthly",
        "product": { "name": "Pro", "amount_etb": "100.00", "price_version": 2 }
      }
    ]
  }
}

App-scoped API keys use their own app. A company-wide key must pass app_id.

Price change during checkout

Open checkouts keep the amount they were created with. If the product price changes, the checkout payload sets price_changed and current_product_amount_etb. The customer sees “Price updated to X ETB” and chooses Continue or Cancel. Continue calls POST /api/public/gateway/checkouts/:id/recreate/, which cancels the old checkout and creates a new one at the current price. The amount never changes silently.