Quotes, placing orders, the payment, delivery times and moving orders on. Generated from the OpenAPI spec. Each endpoint says which key it needs; see Authentication.
| Method | Path | What it does |
|---|---|---|
| POST | /v1/checkouts |
Buy several listings at once as a guest |
| POST | /v1/checkouts/quote |
Price a guest’s cart |
| GET | /v1/checkouts/{id} |
A guest’s checkout |
| GET | /v1/checkouts/{id}/receipt |
The receipt for a guest’s checkout |
| POST | /v1/me/checkouts |
Buy several listings at once |
| POST | /v1/me/checkouts/quote |
Price a cart without checking out |
| GET | /v1/me/checkouts/{id} |
A checkout of mine |
| GET | /v1/me/checkouts/{id}/receipt |
The receipt for a checkout of mine |
| GET | /v1/me/orders |
List the signed-in user’s orders |
| POST | /v1/me/orders |
Buy a listing |
| POST | /v1/me/orders/quote |
Price an order without placing it |
| GET | /v1/me/orders/{id} |
Get one of the user’s orders |
| GET | /v1/me/orders/{id}/delivery-booking |
When the delivery comes |
| PUT | /v1/me/orders/{id}/delivery-booking |
Choose when the delivery comes |
| GET | /v1/me/orders/{id}/receipt |
The receipt for one of the user’s orders |
| POST | /v1/me/orders/{id}/transitions/{transition} |
Move an order on |
| POST | /v1/orders |
Buy a listing as a guest |
| POST | /v1/orders/quote |
Price a guest’s order |
| GET | /v1/orders/{id} |
A guest’s order |
| GET | /v1/orders/{id}/receipt |
The receipt for a guest’s order |
Buy several listings at once as a guest
Section titled “Buy several listings at once as a guest”POST /v1/checkouts · operation guestCheckOut
Each listing becomes its own order, as if bought alone (its own commission, delivery, seller payout and refund); only the payment is shared. Checkout without signing in, from the shop’s server, as for one guest order: the orders go on the account with the email, and guest_token shows the checkout (GET /v1/checkouts/{id}). Pay within 15 minutes with payment.client_secret. Limited per shopper_ip and per email: 429 when exceeded.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): GuestCheckOutRequest
Responses: 201 GuestCheckoutBody · default a problem
Price a guest’s cart
Section titled “Price a guest’s cart”POST /v1/checkouts/quote · operation quoteGuestCart
Each listing becomes its own order, as if bought alone (its own commission, delivery, seller payout and refund); only the payment is shared. For checkout without signing in, from the shop’s server.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): CartBody
Responses: 200 CartQuoteBody · default a problem
A guest’s checkout
Section titled “A guest’s checkout”GET /v1/checkouts/{id} · operation getGuestCheckout
From the shop’s server, with the checkout’s guest_token: its orders, e.g. for the confirmation page. 404 for any other token.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string | |
token * |
query | string | max 100 chars |
Responses: 200 CheckoutBody · default a problem
The receipt for a guest’s checkout
Section titled “The receipt for a guest’s checkout”GET /v1/checkouts/{id}/receipt · operation getGuestCheckoutReceipt
From the shop’s server, with the checkout’s guest_token. A PDF for the buyer: who it’s from (the marketplace’s receipt settings), who bought, what was paid line by line, the total and the marketplace’s note. 409 until something in it is paid; a canceled order isn’t on it.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string | |
token * |
query | string | max 100 chars |
Responses: 200 The receipt · default a problem
Buy several listings at once
Section titled “Buy several listings at once”POST /v1/me/checkouts · operation checkOut
Each listing becomes its own order, as if bought alone (its own commission, delivery, seller payout and refund); only the payment is shared. Places every order and reserves their stock, or nothing if any item can’t be bought (409, naming body.items[n]). Pay within 15 minutes with payment.client_secret, or the orders expire and the items are released. payment_method invoice works as for one order.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Body (application/json): CheckOutRequest
Responses: 201 PlacedCheckoutBody · default a problem
Price a cart without checking out
Section titled “Price a cart without checking out”POST /v1/me/checkouts/quote · operation quoteCart
Each listing becomes its own order, as if bought alone (its own commission, delivery, seller payout and refund); only the payment is shared. What the buyer would pay, item by item. 409 names an item that can’t be bought (body.items[n]).
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Body (application/json): CartBody
Responses: 200 CartQuoteBody · default a problem
A checkout of mine
Section titled “A checkout of mine”GET /v1/me/checkouts/{id} · operation getMyCheckout
The orders a payment paid for, e.g. for the confirmation page.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string |
Responses: 200 CheckoutBody · default a problem
The receipt for a checkout of mine
Section titled “The receipt for a checkout of mine”GET /v1/me/checkouts/{id}/receipt · operation getMyCheckoutReceipt
Every order the payment paid for, on one receipt. A PDF for the buyer: who it’s from (the marketplace’s receipt settings), who bought, what was paid line by line, the total and the marketplace’s note. 409 until something in it is paid; a canceled order isn’t on it.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string |
Responses: 200 The receipt · default a problem
List the signed-in user’s orders
Section titled “List the signed-in user’s orders”GET /v1/me/orders · operation listMyOrders
As buyer (purchases) or seller (sales), newest first.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
state |
query | string | |
limit |
query | integer | ≥ 1; ≤ 100; default 25 |
offset |
query | integer | ≥ 0; ≤ 10000 |
as |
query | string | one of buyer, seller; default "buyer" |
Responses: 200 OrderListOutputBody · default a problem
Buy a listing
Section titled “Buy a listing”POST /v1/me/orders · operation placeOrder
Reserves the stock and starts the payment. Pay within 15 minutes with payment.client_secret, or the order expires and the item is released. Company customers with invoicing on (the user’s invoicing.enabled) can send payment_method invoice instead: the order is purchased at once, with no payment, and the marketplace invoices them.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Body (application/json): PlaceOrderRequest
Responses: 201 PlacedOutputBody · default a problem
Price an order without placing it
Section titled “Price an order without placing it”POST /v1/me/orders/quote · operation quoteOrder
What the buyer would pay, line by line, e.g. to show a voucher’s effect at checkout. Placing the order prices it the same way.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Body (application/json): QuoteRequest
Responses: 200 QuoteBody · default a problem
Get one of the user’s orders
Section titled “Get one of the user’s orders”GET /v1/me/orders/{id} · operation getMyOrder
Its buyer or its seller.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string |
Responses: 200 OrderBody · default a problem
When the delivery comes
Section titled “When the delivery comes”GET /v1/me/orders/{id}/delivery-booking · operation getMyDeliveryBooking
The buyer’s booked delivery time and the open slots. 409 when the delivery isn’t booked by the buyer (not paid yet, collected, or arranged by the carrier).
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string |
Responses: 200 DeliveryBookingBody · default a problem
Choose when the delivery comes
Section titled “Choose when the delivery comes”PUT /v1/me/orders/{id}/delivery-booking · operation bookMyDelivery
One of the open slots; it can be changed until the lead time.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string |
Body (application/json): SlotInputBody
Responses: 200 DeliveryBookingBody · default a problem
The receipt for one of the user’s orders
Section titled “The receipt for one of the user’s orders”GET /v1/me/orders/{id}/receipt · operation getMyOrderReceipt
Its buyer only. A PDF for the buyer: who it’s from (the marketplace’s receipt settings), who bought, what was paid line by line, the total and the marketplace’s note. 409 until something in it is paid; a canceled order isn’t on it.
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string |
Responses: 200 The receipt · default a problem
Move an order on
Section titled “Move an order on”POST /v1/me/orders/{id}/transitions/{transition} · operation takeMyOrderTransition
One of the order’s available_transitions for the user, e.g. mark-delivered (seller, with data.tracking_number) mark-received (buyer) or cancel-unpaid (buyer, before paying).
Auth: your secret key (Authorization: Bearer sk_…) and the user’s session (X-User-Session: …), from your server
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string | |
transition * |
path | string |
Body (application/json): TransitionInputBody
Responses: 200 OrderBody · default a problem
Buy a listing as a guest
Section titled “Buy a listing as a guest”POST /v1/orders · operation placeGuestOrder
Checkout without signing in, from the shop’s server. The order goes on the account with the email (one that signs in with emailed links is made if there isn’t one); nobody is signed in. Pay within 15 minutes with payment.client_secret. guest_token shows this order (GET /v1/orders/{id}) until the buyer signs in, e.g. with the link in their emails. Limited per shopper_ip and per email: 429 when exceeded.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): GuestOrderRequest
Responses: 201 PlaceGuestOrderResponse · default a problem
Price a guest’s order
Section titled “Price a guest’s order”POST /v1/orders/quote · operation quoteGuestOrder
For checkout without signing in, from the shop’s server: what the buyer would pay, line by line.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Body (application/json): QuoteRequest
Responses: 200 QuoteBody · default a problem
A guest’s order
Section titled “A guest’s order”GET /v1/orders/{id} · operation getGuestOrder
From the shop’s server, with the order’s guest_token: its state, what was paid and how it’s delivered, e.g. for the confirmation page. 404 for any other token.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string | |
token * |
query | string | max 100 chars |
Responses: 200 OrderBody · default a problem
The receipt for a guest’s order
Section titled “The receipt for a guest’s order”GET /v1/orders/{id}/receipt · operation getGuestOrderReceipt
From the shop’s server, with the order’s guest_token. A PDF for the buyer: who it’s from (the marketplace’s receipt settings), who bought, what was paid line by line, the total and the marketplace’s note. 409 until something in it is paid; a canceled order isn’t on it.
Auth: a secret or publishable key (Authorization: Bearer sk_… or pk_…)
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
id * |
path | string | |
token * |
query | string | max 100 chars |
Responses: 200 The receipt · default a problem
Schemas
Section titled “Schemas”Fields marked * are always present in responses and required in requests.
GuestCheckOutRequest
Section titled “GuestCheckOutRequest”| Field | Type | Notes |
|---|---|---|
address |
Address | Where to ship items whose delivery has no address of its own |
currency |
string | What the buyer pays in, one of the marketplace’s; the first listing’s when omitted |
email * |
string (email) | For the receipt and updates; the order goes on the account with this email, made if there isn’t one. max 254 chars |
first_name |
string | max 100 chars |
items * |
CartItemBody[] | 1-20 listings, each once |
last_name |
string | max 100 chars |
locale |
string | The language they shop in, for a new account’s emails |
newsletter |
boolean | They asked for the newsletter |
shopper_ip |
string | The shopper’s IP address, for rate limiting guest checkouts. max 64 chars |
voucher_code |
string | Goes on every item it can; counts as one use. max 40 chars |
GuestCheckoutBody
Section titled “GuestCheckoutBody”| Field | Type | Notes |
|---|---|---|
checkout * |
CheckoutBody | |
guest_token * |
string | Shows this checkout; keep it with the shopper (e.g. in a cookie), never in a link |
payment * |
PaymentStruct |
CartBody
Section titled “CartBody”| Field | Type | Notes |
|---|---|---|
address |
Address | Where to ship items whose delivery has no address of its own |
currency |
string | What the buyer pays in, one of the marketplace’s; the first listing’s when omitted |
items * |
CartItemBody[] | 1-20 listings, each once |
voucher_code |
string | Goes on every item it can; counts as one use. max 40 chars |
CartQuoteBody
Section titled “CartQuoteBody”| Field | Type | Notes |
|---|---|---|
currency * |
string | |
items * |
CartQuoteItemBody[] | In the cart’s order |
total * |
integer |
CheckoutBody
Section titled “CheckoutBody”| Field | Type | Notes |
|---|---|---|
created_at * |
string (date-time) | |
currency * |
string | |
id * |
string | |
orders * |
OrderBody[] | One per listing, each delivered, cancelled and refunded on its own |
payment_method * |
string | one of card, invoice |
total * |
integer | The orders’ totals together, in minor units |
CheckOutRequest
Section titled “CheckOutRequest”| Field | Type | Notes |
|---|---|---|
address |
Address | Where to ship items whose delivery has no address of its own |
currency |
string | What the buyer pays in, one of the marketplace’s; the first listing’s when omitted |
items * |
CartItemBody[] | 1-20 listings, each once |
newsletter |
boolean | Sign the buyer up to the marketplace’s newsletter too |
payment_method |
string | card when omitted; invoice only for accounts with invoicing on (403 otherwise). one of card, invoice |
voucher_code |
string | Goes on every item it can; counts as one use. max 40 chars |
PlacedCheckoutBody
Section titled “PlacedCheckoutBody”| Field | Type | Notes |
|---|---|---|
checkout * |
CheckoutBody | |
payment |
PaymentBody | Card payments only |
OrderListOutputBody
Section titled “OrderListOutputBody”| Field | Type | Notes |
|---|---|---|
items * |
OrderBody[] | |
total |
integer | Console only: how many orders there are with these filters, over every page |
PlaceOrderRequest
Section titled “PlaceOrderRequest”| Field | Type | Notes |
|---|---|---|
currency |
string | What the buyer pays in, one of the marketplace’s; the listing’s when omitted |
delivery |
DeliveryBody | |
listing_id * |
string | |
newsletter |
boolean | Sign the buyer up to the marketplace’s newsletter too |
payment_method |
string | card when omitted; invoice only for accounts with invoicing on (403 otherwise). one of card, invoice |
quantity |
integer | 1 when omitted. ≥ 1; ≤ 100 |
voucher_code |
string | max 40 chars |
PlacedOutputBody
Section titled “PlacedOutputBody”| Field | Type | Notes |
|---|---|---|
order * |
OrderBody | |
payment |
PaymentBody | Card payments only |
QuoteRequest
Section titled “QuoteRequest”| Field | Type | Notes |
|---|---|---|
currency |
string | What the buyer pays in; the listing’s when omitted |
delivery |
DeliveryBody | |
listing_id * |
string | |
quantity |
integer | 1 when omitted. ≥ 1; ≤ 100 |
voucher_code |
string | max 40 chars |
QuoteBody
Section titled “QuoteBody”| Field | Type | Notes |
|---|---|---|
currency * |
string | |
line_items * |
LineItemBody[] | |
total * |
integer |
OrderBody
Section titled “OrderBody”| Field | Type | Notes |
|---|---|---|
available_transitions * |
string[] | What the caller can do now, e.g. mark-delivered |
buyer_id * |
string | |
chargeback |
ChargebackBody | |
checkout_id |
string | The checkout it was paid in with other orders; absent when bought on its own |
created_at * |
string (date-time) | |
currency * |
string | |
delivery * |
map of string | Tracking number, carrier… as given when marked delivered |
history * |
EventBody[] | |
id * |
string | |
invoice |
InvoiceBody | Invoice orders: who’s invoiced, and how far the invoice has got (buyer and operators) |
line_items * |
LineItemBody[] | |
listing_id * |
string | |
payment_method * |
string | one of card, invoice |
payout |
PayoutBody | |
quantity * |
integer | |
refunded_outside |
integer | Refunded in Stripe outside the order, in the order’s currency |
seller_id * |
string | |
state * |
string | pending_payment, purchased, delivered, received, disputed, canceled, payment_expired |
state_entered_at * |
string (date-time) | |
total * |
integer | In minor units of currency |
DeliveryBookingBody
Section titled “DeliveryBookingBody”| Field | Type | Notes |
|---|---|---|
booked |
SlotBody | |
changeable * |
boolean | The booked time can still be changed |
slots * |
SlotBody[] |
SlotInputBody
Section titled “SlotInputBody”| Field | Type | Notes |
|---|---|---|
date * |
string | YYYY-MM-DD |
window * |
string | max 40 chars |
TransitionInputBody
Section titled “TransitionInputBody”| Field | Type | Notes |
|---|---|---|
data |
map of string | E.g. tracking_number and carrier when marking delivered |
GuestOrderRequest
Section titled “GuestOrderRequest”| Field | Type | Notes |
|---|---|---|
currency |
string | What the buyer pays in; the listing’s when omitted |
delivery |
DeliveryBody | |
email * |
string (email) | For the receipt and updates; the order goes on the account with this email, made if there isn’t one. max 254 chars |
first_name |
string | max 100 chars |
last_name |
string | max 100 chars |
listing_id * |
string | |
locale |
string | The language they shop in, for a new account’s emails |
newsletter |
boolean | They asked for the newsletter |
quantity |
integer | 1 when omitted. ≥ 1; ≤ 100 |
shopper_ip |
string | The shopper’s IP address, for rate limiting guest checkouts. max 64 chars |
voucher_code |
string | max 40 chars |
PlaceGuestOrderResponse
Section titled “PlaceGuestOrderResponse”| Field | Type | Notes |
|---|---|---|
guest_token * |
string | Shows this order; keep it with the shopper (e.g. in a cookie), never in a link |
order * |
OrderBody | |
payment * |
PaymentStruct |
Address
Section titled “Address”| Field | Type | Notes |
|---|---|---|
city |
string | |
country * |
string | ISO 3166, e.g. SE |
line1 |
string | |
line2 |
string | |
name |
string | |
phone |
string | |
postal_code * |
string |
CartItemBody
Section titled “CartItemBody”| Field | Type | Notes |
|---|---|---|
delivery |
DeliveryBody | How this item reaches the buyer; shipping without an address uses the cart’s address |
listing_id * |
string | |
quantity |
integer | 1 when omitted. ≥ 1; ≤ 100 |
PaymentStruct
Section titled “PaymentStruct”| Field | Type | Notes |
|---|---|---|
client_secret * |
string | For the payment form |
CartQuoteItemBody
Section titled “CartQuoteItemBody”| Field | Type | Notes |
|---|---|---|
line_items * |
LineItemBody[] | |
listing_id * |
string | |
total * |
integer |
PaymentBody
Section titled “PaymentBody”| Field | Type | Notes |
|---|---|---|
client_secret * |
string | For the payment form |
DeliveryBody
Section titled “DeliveryBody”| Field | Type | Notes |
|---|---|---|
address |
Address | Where to ship to (shipping only) |
method |
string | One of the listing’s; may be omitted when it offers only one. collect: from the marketplace location it’s stored at. one of shipping, pickup, buyer_arranged, collect |
option |
string | Shipping with the marketplace: one of its delivery options (the first when omitted) |
LineItemBody
Section titled “LineItemBody”| Field | Type | Notes |
|---|---|---|
amount * |
integer | |
code * |
string | |
label * |
string | |
quantity * |
integer | |
unit_price * |
integer |
ChargebackBody
Section titled “ChargebackBody”| Field | Type | Notes |
|---|---|---|
id * |
string | |
reason * |
string | |
status * |
string | Stripe’s dispute status, e.g. needs_response, under_review, won, lost |
EventBody
Section titled “EventBody”| Field | Type | Notes |
|---|---|---|
actor * |
string | one of buyer, seller, operator, system |
at * |
string (date-time) | |
data |
map of string | |
from * |
string | |
to * |
string | |
transition * |
string |
InvoiceBody
Section titled “InvoiceBody”| Field | Type | Notes |
|---|---|---|
address * |
string | |
company * |
string | |
due_at |
string (date-time) | terms_days after it was sent |
email * |
string | |
org_number * |
string | |
paid_at |
string (date-time) | |
seller_paid_at |
string (date-time) | Operators only: when the team paid the seller |
sent_at |
string (date-time) | |
terms_days * |
integer | |
vat_number |
string |
PayoutBody
Section titled “PayoutBody”| Field | Type | Notes |
|---|---|---|
amount * |
integer | What the seller is paid |
commission * |
integer | |
currency * |
string | |
status * |
string | pending until the buyer has the item. one of pending, paid, waiting_for_payout_details, held_for_chargeback |
storage_fee |
integer | Taken for storage, per started month |
storage_months |
integer | |
subtotal * |
integer |
SlotBody
Section titled “SlotBody”| Field | Type | Notes |
|---|---|---|
date * |
string | YYYY-MM-DD |
full |
boolean | |
label * |
string | e.g. 08–12 |
window * |
string |