Properties
| Name | Type | Description |
|---|---|---|
| id | string | |
| order_status | object | |
| payment_status | stringnull | paid, pending, failed, refunded, reversed or partially_paid (a deposit was paid at checkout and `balance_due` is left; more values may be added) |
| payment_method | stringnull | How the customer pays, such as mercadopago or manualPayment (by hand, to payment_wallet when it has one) |
| payment_editable | boolean | true when the merchant sets the payment_status: on manualPayment orders, and on partially_paid ones, whose balance can be marked paid once collected by hand |
| amount_paid | numbernull | What the customer has paid of `total`, before any refund: the deposit while partially_paid, the total once paid, 0 while unpaid; null without a price. A refund gives back at most this. |
| balance_due | number | What's left to pay after a deposit; 0 unless partially_paid. Collect it with a payment link (createPaymentLink), or set payment_status to paid once collected by hand. |
| payment_proof | objectnull | The proof of payment (a transfer receipt or screenshot) the customer uploaded from their order page for a manualPayment order, or null. Check it before setting payment_status to paid. The customer may |
| payment_wallet | objectnull | The store's wallet or bank-transfer key a manualPayment order is paid to (see wallets in the checkout settings), as it was when the order was placed; null for other orders. The customer pays it by han |
| payment_follow_up | object | How the store chases an unpaid manualPayment order (see unpaid_orders in the checkout settings): the payment reminders sent to the customer and when the order will be cancelled if the payment doesn't |
| currency | stringnull | |
| total | numbernull | The order total |
| shipping_cost | numbernull | |
| tip | numbernull | What the customer added as a tip, included in total; null without one |
| tax_total | numbernull | The tax on the order (sum of taxes), part of total either way; null without tax |
| taxes | array | The tax by rate. `included` tells whether the prices already held it (total unchanged) or it was added on top of them. Tips are never taxed. Ocapi shows and charges tax as the store configures it; fil |
| service_charge | numbernull | The store's service charge, added to total; null without one |
| service_charge_label | stringnull | Its name, like Servicio |
| options_total | number | What the priced options chosen in the store's checkout questions added to total (the sum of option_charges); 0 without any |
| option_charges | array | The priced options the customer chose in the store's checkout questions, each its own line in total. They're taxed at the store's rate, as goods, and never discounted. |
| answers | array | The customer's answers to the store's checkout questions, in the order they were asked (also kept, free-form, in contact.answers) |
| delivery_files | array | The files the store delivered with the order (see listDeliveryFiles) |
| contact | objectnull | Free-form: name, email, phone, and answers ([{ id, question, answer }]) to the store's checkout questions when it asks any |
| shipping | objectnull | Free-form: address, addressDetails, city, postal; or, when the customer collects the order, method: pickup with pickupLocation { id, name, address } |
| delivery_slot | objectnull | When the customer asked to have it delivered or to collect it (with method: pickup), in the store's time zone; null when the store doesn't schedule deliveries |
| receipt_number | stringnull | The receipt's number with the store's prefix, like R-1024. Each store numbers its paid orders in sequence, once; null until the order is paid |
| receipt_url | stringnull | The order's printable receipt on the storefront: a signed link that needs no sign-in, safe to send to the customer. It is a purchase receipt from the store, not a government-certified electronic invoi |
| bookings | array | The times, days or stays booked by the order's bookable services (also in each item's booking); empty when it has none |
| tickets | array | The event tickets the order got, one per place, with their codes; empty until it's paid, or when it has no events |
| subscription_id | stringnull | The subscription (sbn_...) the order started or delivers for (getSubscription); null for other orders, and for a first order until it's paid |
| points_redeemed | integer | Loyalty points the customer spent on the order (getLoyalty); 0 without |
| points_discount | number | What those points took off the items, already out of their prices and the total |
| points_earned | integer | Points the order earned once fully paid, less what refunds took back |
| license_keys | array | The license keys the order took, one per unit of a product that delivers keys: held while it isn't paid in full, assigned (the customer sees them) once it is. Codes are masked unless getOrder is calle |
| tracking | objectnull | The carrier's tracking, set when the merchant ships; null without one |
| delivery | object | Its local delivery with one of the store's drivers and the proof of delivery; null without a driver |
| table | objectnull | The table it was ordered from by QR code (dine-in, see listTables), with its name as it was then; null for other orders. Its shipping is method: dineIn |
| table_session | objectnull | The table's sitting the order belongs to: every order placed at the table until the staff close it, from one phone or several; null for other orders |
| whatsapp_updates | object | The order updates the customer gets on WhatsApp from Ocapi's number (see whatsapp_order_updates in Settings) |
| items | array | Free-form line items; read fields leniently |
| created_at | string | |
| updated_at | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/ocapi-shop/json-schema/ocapi-shop-order-schema.json",
"title": "Order",
"x-generated": "2026-11-19",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/ocapi-shop-openapi.yml#/components/schemas/Order",
"type": "object",
"required": [
"id",
"order_status",
"payment_status",
"payment_method",
"payment_editable",
"currency",
"total",
"shipping_cost",
"tip",
"contact",
"shipping",
"items",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "string"
},
"order_status": {
"$ref": "#/$defs/OrderStatus"
},
"payment_status": {
"type": [
"string",
"null"
],
"description": "paid, pending, failed, refunded, reversed or partially_paid (a deposit was paid at checkout and `balance_due` is left; more values may be added)"
},
"payment_method": {
"type": [
"string",
"null"
],
"description": "How the customer pays, such as mercadopago or manualPayment (by hand, to payment_wallet when it has one)"
},
"payment_editable": {
"type": "boolean",
"description": "true when the merchant sets the payment_status: on manualPayment orders, and on partially_paid ones, whose balance can be marked paid once collected by hand"
},
"amount_paid": {
"type": [
"number",
"null"
],
"description": "What the customer has paid of `total`, before any refund: the deposit while partially_paid, the total once paid, 0 while unpaid; null without a price. A refund gives back at most this."
},
"balance_due": {
"type": "number",
"description": "What's left to pay after a deposit; 0 unless partially_paid. Collect it with a payment link (createPaymentLink), or set payment_status to paid once collected by hand."
},
"payment_proof": {
"type": [
"object",
"null"
],
"description": "The proof of payment (a transfer receipt or screenshot) the customer uploaded from their order page for a\nmanualPayment order, or null. Check it before setting payment_status to paid. The customer may replace it while\nthe payment is pending.\n",
"required": [
"url",
"filename",
"content_type",
"byte_size",
"uploaded_at"
],
"properties": {
"url": {
"type": "string",
"description": "A private link that opens the file. It expires after 10 minutes: get the order again for a fresh one"
},
"filename": {
"type": "string"
},
"content_type": {
"type": "string",
"description": "image/jpeg, image/png, image/webp, image/heic, image/heif or application/pdf"
},
"byte_size": {
"type": "integer"
},
"uploaded_at": {
"type": "string",
"format": "date-time"
}
}
},
"payment_wallet": {
"type": [
"object",
"null"
],
"description": "The store's wallet or bank-transfer key a manualPayment order is paid to (see wallets in the checkout settings),\nas it was when the order was placed; null for other orders. The customer pays it by hand and uploads a\npayment_proof; set payment_status to paid once the money is in.\n",
"required": [
"id",
"kind",
"name",
"account",
"holder_name"
],
"properties": {
"id": {
"type": "string",
"description": "The wallet's id (wal_...); it may have been removed since"
},
"kind": {
"$ref": "#/$defs/PaymentWalletKind"
},
"name": {
"type": "string",
"description": "What the customer saw, such as Nequi or Pix"
},
"account": {
"type": "string",
"description": "The number, key, alias or CLABE paid to"
},
"holder_name": {
"type": [
"string",
"null"
]
}
}
},
"payment_follow_up": {
"type": "object",
"description": "How the store chases an unpaid manualPayment order (see unpaid_orders in the checkout settings): the payment\nreminders sent to the customer and when the order will be cancelled if the payment doesn't arrive. Reminders and\nthe cancel stop once the order is paid, shipped or cancelled, or the customer uploads a payment proof.\n",
"required": [
"reminders_sent",
"last_reminder_at",
"next_reminder_at",
"auto_cancel_at",
"keep_unpaid",
"auto_cancelled_at"
],
"properties": {
"reminders_sent": {
"type": "integer",
"description": "Payment reminders sent so far"
},
"last_reminder_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "When the last reminder went out"
},
"next_reminder_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "When the next reminder is due; null when no more will go out"
},
"auto_cancel_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "When the order will be cancelled if still unpaid; null when it won't be"
},
"keep_unpaid": {
"type": "boolean",
"description": "Whether the merchant kept the order from being cancelled automatically"
},
"auto_cancelled_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "When the store cancelled it automatically for going unpaid"
}
}
},
"currency": {
"type": [
"string",
"null"
]
},
"total": {
"type": [
"number",
"null"
],
"description": "The order total"
},
"shipping_cost": {
"type": [
"number",
"null"
]
},
"tip": {
"type": [
"number",
"null"
],
"description": "What the customer added as a tip, included in total; null without one"
},
"tax_total": {
"type": [
"number",
"null"
],
"description": "The tax on the order (sum of taxes), part of total either way; null without tax"
},
"taxes": {
"type": "array",
"description": "The tax by rate. `included` tells whether the prices already held it (total unchanged) or it was added on top\nof them. Tips are never taxed. Ocapi shows and charges tax as the store configures it; filing it is the merchant's job.\n",
"items": {
"type": "object",
"required": [
"label",
"rate",
"amount",
"included"
],
"properties": {
"label": {
"type": "string",
"description": "The store's name for the tax, like IVA"
},
"rate": {
"type": "number",
"description": "Percent"
},
"amount": {
"type": "number"
},
"included": {
"type": "boolean"
}
}
}
},
"service_charge": {
"type": [
"number",
"null"
],
"description": "The store's service charge, added to total; null without one"
},
"service_charge_label": {
"type": [
"string",
"null"
],
"description": "Its name, like Servicio"
},
"options_total": {
"type": "number",
"description": "What the priced options chosen in the store's checkout questions added to total (the sum of option_charges); 0 without any"
},
"option_charges": {
"type": "array",
"description": "The priced options the customer chose in the store's checkout questions, each its own line in total. They're\ntaxed at the store's rate, as goods, and never discounted.\n",
"items": {
"type": "object",
"required": [
"question_id",
"question",
"option",
"amount"
],
"properties": {
"question_id": {
"type": "string"
},
"question": {
"type": "string",
"description": "The question as it was asked"
},
"option": {
"type": [
"string",
"null"
],
"description": "The option chosen; null for a ticked checkbox"
},
"amount": {
"type": "number"
}
}
}
},
"answers": {
"type": "array",
"description": "The customer's answers to the store's checkout questions, in the order they were asked (also kept, free-form, in contact.answers)",
"items": {
"$ref": "#/$defs/OrderAnswer"
}
},
"delivery_files": {
"type": "array",
"description": "The files the store delivered with the order (see listDeliveryFiles)",
"items": {
"$ref": "#/$defs/DeliveryFile"
}
},
"contact": {
"type": [
"object",
"null"
],
"description": "Free-form: name, email, phone, and answers ([{ id, question, answer }]) to the store's checkout questions when it asks any"
},
"shipping": {
"type": [
"object",
"null"
],
"description": "Free-form: address, addressDetails, city, postal; or, when the customer collects the order, method: pickup with pickupLocation { id, name, address }"
},
"delivery_slot": {
"type": [
"object",
"null"
],
"description": "When the customer asked to have it delivered or to collect it (with method: pickup), in the store's time zone; null when the store doesn't schedule deliveries",
"required": [
"date",
"start",
"end"
],
"properties": {
"date": {
"type": "string",
"format": "date"
},
"start": {
"type": [
"string",
"null"
],
"description": "Like 10:00; null when the store takes days only"
},
"end": {
"type": [
"string",
"null"
]
}
}
},
"receipt_number": {
"type": [
"string",
"null"
],
"description": "The receipt's number with the store's prefix, like R-1024. Each store numbers its paid orders in sequence, once; null until the order is paid"
},
"receipt_url": {
"type": [
"string",
"null"
],
"format": "uri",
"description": "The order's printable receipt on the storefront: a signed link that needs no sign-in, safe to send to the customer.\nIt is a purchase receipt from the store, not a government-certified electronic invoice. null until the order is paid\n"
},
"bookings": {
"type": "array",
"description": "The times, days or stays booked by the order's bookable services (also in each item's booking); empty when it has none",
"items": {
"$ref": "#/$defs/OrderBooking"
}
},
"tickets": {
"type": "array",
"description": "The event tickets the order got, one per place, with their codes; empty until it's paid, or when it has no events",
"items": {
"$ref": "#/$defs/EventTicket"
}
},
"subscription_id": {
"type": [
"string",
"null"
],
"description": "The subscription (sbn_...) the order started or delivers for (getSubscription); null for other orders, and for a first order until it's paid"
},
"points_redeemed": {
"type": "integer",
"description": "Loyalty points the customer spent on the order (getLoyalty); 0 without"
},
"points_discount": {
"type": "number",
"description": "What those points took off the items, already out of their prices and the total"
},
"points_earned": {
"type": "integer",
"description": "Points the order earned once fully paid, less what refunds took back"
},
"license_keys": {
"type": "array",
"description": "The license keys the order took, one per unit of a product that delivers keys: held while it isn't paid in\nfull, assigned (the customer sees them) once it is. Codes are masked unless getOrder is called with\nreveal_license_keys=true. Empty when it bought none, or the pool was empty.\n",
"items": {
"$ref": "#/$defs/OrderLicenseKey"
}
},
"tracking": {
"type": [
"object",
"null"
],
"description": "The carrier's tracking, set when the merchant ships; null without one",
"required": [
"number",
"url"
],
"properties": {
"number": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
],
"description": "Where the customer follows the parcel"
},
"carrier": {
"type": "string",
"description": "The carrier's key (servientrega, coordinadora, andreani, correios, dhl, fedex, ups…), when the merchant named one"
}
}
},
"delivery": {
"oneOf": [
{
"$ref": "#/$defs/OrderDelivery"
},
{
"type": "null"
}
],
"description": "Its local delivery with one of the store's drivers and the proof of delivery; null without a driver"
},
"table": {
"type": [
"object",
"null"
],
"description": "The table it was ordered from by QR code (dine-in, see listTables), with its name as it was then; null for other orders. Its shipping is method: dineIn",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"table_session": {
"type": [
"object",
"null"
],
"description": "The table's sitting the order belongs to: every order placed at the table until the staff close it, from one phone or several; null for other orders",
"required": [
"id",
"open",
"opened_at",
"closed_at"
],
"properties": {
"id": {
"type": "string"
},
"open": {
"type": "boolean",
"description": "Whether the table is still open"
},
"opened_at": {
"type": "string",
"format": "date-time"
},
"closed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "When the staff closed the table, recording what was left to pay as paid"
}
}
},
"whatsapp_updates": {
"type": "object",
"description": "The order updates the customer gets on WhatsApp from Ocapi's number (see whatsapp_order_updates in Settings)",
"required": [
"consent",
"messages"
],
"properties": {
"consent": {
"type": "boolean",
"description": "Whether the customer asked for WhatsApp updates at checkout"
},
"messages": {
"type": "array",
"description": "The updates sent so far, oldest first",
"items": {
"type": "object",
"required": [
"id",
"event",
"status",
"error",
"created_at",
"updated_at"
],
"properties": {
"id": {
"type": "string"
},
"event": {
"type": "string",
"description": "confirmed, paid, shipped, or payment_reminder_1 to payment_reminder_3. More values may be added"
},
"status": {
"type": "string",
"description": "queued, sent, delivered, read or failed. More values may be added"
},
"error": {
"type": [
"string",
"null"
],
"description": "Why it couldn't be sent, when status is failed"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time",
"description": "When the status last changed"
}
}
}
}
}
},
"items": {
"type": "array",
"description": "Free-form line items; read fields leniently",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The product's ID"
},
"sku": {
"type": [
"string",
"null"
]
},
"title": {
"type": "string",
"description": "The product name when ordered"
},
"variant": {
"type": [
"string",
"null"
]
},
"imageUrl": {
"type": [
"string",
"null"
]
},
"quantity": {
"type": [
"integer",
"string"
]
},
"unitPrice": {
"type": [
"number",
"null"
]
},
"unitCost": {
"type": "number",
"description": "What one unit cost the merchant when the order was placed; absent without a cost. Only the store's owners get it"
},
"booking": {
"type": "object",
"description": "A bookable service's booking, camelCase: kind, date, start, end, checkout, nights, overCapacity"
},
"preorder": {
"type": "boolean",
"description": "true when the line was ordered on pre-order, past the product's stock"
},
"preorderQuantity": {
"type": "integer",
"description": "How many of the line's units are on pre-order; the rest came from stock"
},
"shipsOn": {
"type": [
"string",
"null"
],
"format": "date",
"description": "When a pre-order line ships, when the product says"
},
"preorderOverCapacity": {
"type": "boolean",
"description": "true when the payment arrived after the product's pre-order limit filled up; the merchant should agree on the delivery"
},
"wholesale": {
"type": "boolean",
"description": "true when the line was priced for one of the store's wholesale buyers; regularUnitPrice then holds the retail price"
},
"bundle": {
"type": "array",
"description": "For a bundle, the products it held when ordered; the order's stock moves by these",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The component product's ID"
},
"variant": {
"type": "string"
},
"quantity": {
"type": "integer",
"description": "Units of it in one bundle"
}
}
}
}
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
}
},
"$defs": {
"Booking": {
"type": "object",
"description": "A booked time, day or stay, in the store's time zone",
"required": [
"kind",
"date",
"start",
"end",
"checkout",
"nights",
"over_capacity"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"appointment",
"date",
"nights",
"event"
]
},
"date": {
"type": "string",
"format": "date",
"description": "The day, or the check-in day"
},
"start": {
"type": [
"string",
"null"
],
"description": "Like 10:00, for appointments and events"
},
"end": {
"type": [
"string",
"null"
]
},
"checkout": {
"type": [
"string",
"null"
],
"format": "date",
"description": "The check-out day, for stays"
},
"nights": {
"type": [
"integer",
"null"
]
},
"over_capacity": {
"type": "boolean",
"description": "The payment arrived after every place was taken: arrange another time with the customer"
}
}
},
"DeliveryFile": {
"type": "object",
"required": [
"id",
"url",
"filename",
"content_type",
"byte_size",
"uploaded_at"
],
"properties": {
"id": {
"type": "string"
},
"url": {
"type": [
"string",
"null"
],
"description": "A private link that opens the file. It expires after 10 minutes. null when file storage is unavailable"
},
"filename": {
"type": "string"
},
"content_type": {
"type": "string",
"description": "image/jpeg, image/png, image/webp, image/heic, image/heif, application/pdf or application/zip"
},
"byte_size": {
"type": "integer"
},
"uploaded_at": {
"type": "string",
"format": "date-time"
}
}
},
"EventTicket": {
"type": "object",
"description": "One place at an event, issued with its code once its order is paid",
"required": [
"id",
"code",
"order_id",
"product_id",
"title",
"tier",
"attendee_name",
"customer_name",
"customer_email",
"status",
"checked_in_at"
],
"properties": {
"id": {
"type": "string"
},
"code": {
"type": "string",
"description": "What the door scans or types: 16 characters, encoded in the ticket's QR code"
},
"order_id": {
"type": "string"
},
"product_id": {
"type": "string",
"description": "The event"
},
"title": {
"type": [
"string",
"null"
],
"description": "The event's name when it was bought"
},
"tier": {
"type": [
"string",
"null"
],
"description": "The ticket type (the variant bought), if the event has types"
},
"attendee_name": {
"type": [
"string",
"null"
],
"description": "The name the buyer gave this ticket"
},
"customer_name": {
"type": [
"string",
"null"
]
},
"customer_email": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"enum": [
"valid",
"checked_in",
"cancelled",
"refunded",
"unpaid"
],
"description": "valid can get in; checked_in already did; cancelled, refunded (or charged back) and unpaid orders' tickets can't"
},
"checked_in_at": {
"type": [
"string",
"null"
],
"format": "date-time"
}
}
},
"OrderAnswer": {
"type": "object",
"required": [
"id",
"question",
"type",
"answer",
"option_ids",
"file"
],
"properties": {
"id": {
"type": "string",
"description": "The question's id"
},
"question": {
"type": "string",
"description": "The question as it was asked"
},
"type": {
"type": "string",
"description": "The question's type (see CheckoutQuestion); text for answers given before types existed. More values may be added"
},
"answer": {
"type": "string",
"description": "The answer as text: what was typed, the options chosen (comma-separated), Sí/Yes for a ticked checkbox, a date as 2026-12-24, a number, or a file's name"
},
"option_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "The options chosen, for choices"
},
"file": {
"type": [
"object",
"null"
],
"description": "The file the customer attached, for a file question",
"required": [
"url",
"filename",
"content_type",
"byte_size"
],
"properties": {
"url": {
"type": [
"string",
"null"
],
"description": "A private link that opens the file. It expires after 10 minutes: get the order again for a fresh one. null when file storage is unavailable"
},
"filename": {
"type": "string"
},
"content_type": {
"type": "string",
"description": "image/jpeg, image/png, image/webp, image/heic, image/heif or application/pdf"
},
"byte_size": {
"type": "integer"
}
}
}
}
},
"OrderBooking": {
"allOf": [
{
"$ref": "#/$defs/Booking"
},
{
"type": "object",
"required": [
"product_id",
"title",
"quantity"
],
"properties": {
"product_id": {
"type": "string"
},
"title": {
"type": "string"
},
"quantity": {
"type": "integer",
"description": "Places taken"
}
}
}
]
},
"OrderDelivery": {
"type": "object",
"description": "A local delivery by one of the store's drivers, from assignment to the proof of delivery.",
"required": [
"driver",
"status",
"notes",
"assigned_at",
"departed_at",
"delivered_at",
"failed_at",
"failure_reason",
"recipient_name",
"location",
"amount_to_collect",
"cash_collected",
"proof"
],
"properties": {
"driver": {
"type": [
"object",
"null"
],
"description": "Who takes it; null once the driver was removed from the store",
"required": [
"id",
"name",
"phone"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"phone": {
"type": "string"
}
}
},
"status": {
"type": "string",
"description": "assigned, out_for_delivery (the order is shipped), delivered (the order is delivered) or failed (the driver couldn't deliver it; a shipped order goes back to processing). More values may be added"
},
"notes": {
"type": [
"string",
"null"
],
"description": "The notes the driver sees with the order"
},
"assigned_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "When the current driver got it"
},
"departed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "When the driver set out with it"
},
"delivered_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "When the driver delivered it"
},
"failed_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "When the driver reported they couldn't deliver it"
},
"failure_reason": {
"type": [
"string",
"null"
],
"description": "Why it couldn't be delivered, in the store's language"
},
"recipient_name": {
"type": [
"string",
"null"
],
"description": "Who received it",
"when the driver wrote it down": null
},
"location": {
"type": [
"object",
"null"
],
"description": "Where the driver's phone was on delivering it, when the driver shared it",
"required": [
"latitude",
"longitude",
"accuracy"
],
"properties": {
"latitude": {
"type": "number"
},
"longitude": {
"type": "number"
},
"accuracy": {
"type": [
"integer",
"null"
],
"description": "In meters"
}
}
},
"amount_to_collect": {
"type": "number",
"description": "What the driver collects at the door: a pending manual payment's total, or the balance after a deposit; 0 when paid"
},
"cash_collected": {
"type": [
"number",
"null"
],
"description": "What the driver said they collected in cash on delivering it; null when nothing"
},
"proof": {
"type": [
"object",
"null"
],
"description": "The photo the driver took on delivering it; null before",
"required": [
"url",
"content_type",
"byte_size"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "A link to the photo",
"valid for 10 minutes": null
},
"content_type": {
"type": "string"
},
"byte_size": {
"type": "integer"
}
}
}
}
},
"OrderLicenseKey": {
"type": "object",
"required": [
"id",
"product_id",
"variant",
"status",
"code",
"assigned_at",
"revoked_at"
],
"properties": {
"id": {
"type": "string"
},
"product_id": {
"type": "string",
"description": "The product the key came from"
},
"variant": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string",
"enum": [
"held",
"assigned",
"revoked"
],
"description": "held until the order is paid in full; revoked keys are no longer valid"
},
"code": {
"type": "string",
"description": "The key, masked like ••••AB12 unless reveal_license_keys=true"
},
"assi
# --- truncated at 32 KB (33 KB total) ---
# Full source: https://artifacts.apis.io/ocapi-shop/json-schema/ocapi-shop-order-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/ocapi-shop-order"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.