Skip to content

Settle a group-checkout share over the processor rail

POST
/g/{token}/pay
curl --request POST \
--url https://quikstik-core.fly.dev/g/example/pay \
--header 'Content-Type: application/json' \
--data '{ "provider": "example", "instrument_token": "example" }'

Settles the payer’s group-checkout share addressed by the capability token — money-only: seats stay on the parent booking. Token-authed (no tenant/bearer). The amount is never taken from the payer: it is the server-priced group share. The payer supplies only the processor and a tokenized instrument; the processor reference and settled amount are returned. Fail-closed: 503 when no backend is wired.

token
required
string

Opaque, unguessable group-checkout capability token.

Media typeapplication/json

What the payer supplies to settle their share. The amount is never taken from the payer — it is the server-priced group share.

object
provider
required

Processor provider (e.g. stripe, finix).

string
instrument_token
required

Tokenized payment instrument for this share.

string

Example generated

{
"provider": "example",
"instrument_token": "example"
}

Share settled

Media typeapplication/json
object
processor_ref
required

Processor reference for the settled charge.

string
amount_minor
required

Settled amount, in minor units.

integer format: int64

Example generated

{
"processor_ref": "example",
"amount_minor": 1
}

Malformed request body (missing provider or instrument token)

No durable backend is wired for this operation (fail-closed)

Media typeapplication/json
object
reason
required

Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).

string

Example

{
"reason": "sold_out"
}