Accept an experiment's quote and create an invoice
Convenience endpoint that does the same thing as POST /quotes/{id}/confirm
but addressed by experiment ID — the server resolves the quote ID internally.
Like /quotes/{id}/confirm, it is categorically non-settling: it
finalizes the (open, unpaid) invoice and returns 200 + the invoice + a
HATEOAS payment pointer (the Stripe-hosted page for async; /invoices/{id}/pay
for a machine rail). It never settles or emits a payment 402.
Authorizations
Biscuit-based bearer token. Obtain tokens from the Adaptyv Portal or via the /tokens endpoint. Tokens encode organization membership and role-based capabilities; the API verifies the token's cryptographic signature and authorization claims before processing requests. Use /tokens/attenuate to create restricted tokens for delegation.
Path Parameters
Experiment identifier
Body
Request payload for accepting a quote
Used when a customer decides to accept a quoted price.
Response
Quote accepted; the (open, unpaid) invoice is finalized and the payment block points at where/how to pay
Response after accepting a quote
Confirms the quote acceptance and provides invoice information if applicable.
Quote ID that was accepted
New status (accepted after confirmation)
draft, open, accepted, canceled, stale Stripe-hosted URL where the customer can view and pay the generated invoice
"https://invoice.stripe.com/i/acct_1234/test_5678"
ID of the invoice generated from this quote (if applicable)
Hypermedia pointer to where and how to pay the finalized (open, unpaid)
invoice. Present on the non-settling confirm response — hosted_invoice
for an async-invoice quote, machine for a machine rail. Absent on
other uses of this DTO (e.g. an already-settled response).