Provision an offering and its variants
POST
/offerings
const url = 'https://quikstik-core.fly.dev/offerings';const options = { method: 'POST', headers: { 'x-tenant-id': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"offering_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","catalog_product_id":"example","canonical_name":"example","slug":"example","variants":[{"variant_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","display_name":"example","units":"example","duration_minutes":1,"meeting_point_name":"example","meeting_point_address":"example","capacity":1}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://quikstik-core.fly.dev/offerings \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-tenant-id: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --data '{ "offering_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "catalog_product_id": "example", "canonical_name": "example", "slug": "example", "variants": [ { "variant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "display_name": "example", "units": "example", "duration_minutes": 1, "meeting_point_name": "example", "meeting_point_address": "example", "capacity": 1 } ] }'Operator-scoped, command-mediated provisioning of an offering and its variants into the durable catalog. Persisting catalog identity durably is the hardened posture: bookings, capacity, departures, and money bind to persisted variant rows, not to a transient in-memory reference. Creates or replaces by identity (idempotent).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-tenant-id
required
string format: uuid
Tenant identifier (UUID).
Authn/authz semantics are intentionally TBD for this contract slice; this header exists to keep the contract explicitly multi-tenant from day 0.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
offering_id
required
string format: uuid
catalog_product_id
required
string
canonical_name
required
string
slug
required
string
variants
required
Array<object>
object
variant_id
required
string format: uuid
display_name
required
string
units
string
duration_minutes
integer
meeting_point_name
string
meeting_point_address
string
capacity
integer
Example generated
{ "offering_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "catalog_product_id": "example", "canonical_name": "example", "slug": "example", "variants": [ { "variant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "display_name": "example", "units": "example", "duration_minutes": 1, "meeting_point_name": "example", "meeting_point_address": "example", "capacity": 1 } ]}Responses
Section titled “Responses”Offering provisioned
Malformed (empty field, no variants, empty variant name, or duplicate variant id)