Pro
This reference is open to everyone. Calls need an API key, and keys come with Pro at no extra charge.
Compare plans →
Resources / Orders
Orders
One purchase for one show, and every cent of it. Comps, door sales, and sales paid elsewhere are orders too.
The object
code string
Short, for reading out at the door.
status string
paid, refunded, partially_refunded, exchanged, or canceled.
channel string
online, embed, door_cash, door_card, door_tap, comp, pass, door_pass, or elsewhere.
paid_where string
cocoscout, cash, elsewhere, or free.
buyer object
name, email, phone, and whether they follow you.
subtotal_cents … total_cents integer
Every cent: subtotal, discount, tax, fees, total, refunded.
tickets array
Its tickets.
The order object
{ "id": 99120, "code": "K7Q2", "status": "paid", "show_id": 4812, "channel": "online", "paid_where": "cocoscout", "buyer": { "name": "Jordan Lee", "email": "jordan@example.com", "follows": true }, "subtotal_cents": 4000, "discount_cents": 500, "tax_cents": 0, "fees_cents": 650, "total_cents": 4150, "refunded_cents": 0, "discount_code": "SKETCH5", "sold_through_api": true, "paid_at": "2026-12-01T14:06:40-06:00", "created_at": "2026-12-01T14:00:02-06:00", "url": "https://cocoscout.com/tickets/orders/…", "tickets": [ { "code": "T9XK2M", "status": "valid", "ticket_type": { "id": 912, "name": "General" }, "show_id": 4812, "holder_name": "Jordan Lee", "price_cents": 2000, "url": "https://cocoscout.com/tickets/v/T9XK2M" } ]}
List orders
GET
/v1/orders
Orders, oldest first. Holds that were never paid aren't listed.
Query parameters
show_id integer
One show's.
status string
paid, refunded…
channel string
online, comp, elsewhere…
email string
The buyer's email.
q string
Part of the buyer's name.
from, to time
When they were made.
updated_since time
Changed since then.
limit integer
Up to 200 a page, 50 by default.
after string
The last page's `next`, for the page after it.
curl
curl https://api.cocoscout.com/v1/orders \ -H "Authorization: Bearer cs_live_…"
Get an order
GET
/v1/orders/{id}
By id, or by its code (K7Q2).
curl
curl https://api.cocoscout.com/v1/orders/4812 \ -H "Authorization: Bearer cs_live_…"
Response
200
{ "id": 99120, "code": "K7Q2", "status": "paid", "show_id": 4812, "channel": "online", "paid_where": "cocoscout", "buyer": { "name": "Jordan Lee", "email": "jordan@example.com", "follows": true }, "subtotal_cents": 4000, "discount_cents": 500, "tax_cents": 0, "fees_cents": 650, "total_cents": 4150, "refunded_cents": 0, "discount_code": "SKETCH5", "sold_through_api": true, "paid_at": "2026-12-01T14:06:40-06:00", "created_at": "2026-12-01T14:00:02-06:00", "url": "https://cocoscout.com/tickets/orders/…", "tickets": [ { "code": "T9XK2M", "status": "valid", "ticket_type": { "id": 912, "name": "General" }, "show_id": 4812, "holder_name": "Jordan Lee", "price_cents": 2000, "url": "https://cocoscout.com/tickets/v/T9XK2M" } ]}
Record a sale paid elsewhere
POST
/v1/orders
Read-and-write key
Tickets another register or box office already took the money for. Real tickets with QR codes that take seats and get emailed; no money moves through CocoScout, so there's no CocoScout fee and no card fees.
Body
paid string required
Must be "elsewhere".
show_id integer required
Which date.
tickets array required
Each with ticket_type_id and quantity.
buyer object
name and email.
email_tickets boolean
Email the tickets to the buyer (default true).
note string
For your records.
curl
curl -X POST https://api.cocoscout.com/v1/orders \ -H "Authorization: Bearer cs_live_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "paid": "elsewhere", "show_id": 4812, "tickets": [ { "ticket_type_id": 912, "quantity": 2 } ] }'
Quote a refund
GET
/v1/orders/{id}/refund_quote
What a refund would give back, and whether it's within your refund policy.
Query parameters
ticket_codes array
Only these tickets.
keep_fees boolean
Give back price and tax only.
curl
curl https://api.cocoscout.com/v1/orders/4812/refund_quote \ -H "Authorization: Bearer cs_live_…"
Refund an order
POST
/v1/orders/{id}/refunds
Read-and-write key
Back to the buyer's card, under the same rules as CocoScout's refund button. A test key gets the quote and nothing more.
Body
ticket_codes array
Only these tickets.
keep_fees boolean
Give back price and tax only.
reason string
For your records.
outside_policy boolean
Refund even outside the policy.
curl
curl -X POST https://api.cocoscout.com/v1/orders/4812/refunds \ -H "Authorization: Bearer cs_live_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{}'
Move tickets
POST
/v1/orders/{id}/move
Read-and-write key
To another date of the same production that's on sale. The buyer keeps their payment and gets new tickets.
Body
show_id integer required
The date they move to.
ticket_codes array
Only these tickets.
email_buyer boolean
Email the new tickets (default true).
curl
curl -X POST https://api.cocoscout.com/v1/orders/4812/move \ -H "Authorization: Bearer cs_live_…" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "show_id": 4812 }'