Reference Schemas CommerceOrder

Schema

CommerceOrder

object

Properties

id
CommerceOrderId
number
string
status
string
currency
string
customer
CommerceCustomer
discounts
array
fulfillment
object
items
array
merchant
object
meta
object
notes
array
payment
oneOf
referrer
string
template
object
totals
object

JSON Schema

{ "summary": "A Hyperstatic Commerce Order", "type": "object", "properties": { "id": { "$ref": "#/components/schemas/CommerceOrderId" }, "number": { "type": "string" }, "status": { "type": "string" }, "currency": { "type": "string" }, "customer": { "$ref": "#/components/schemas/CommerceCustomer" }, "discounts": { "type": "array", "items": { "type": "object", "properties": { "saving": { "type": "number" } }, "additionalProperties": true } }, "fulfillment": { "type": "object", "properties": { "carrier": { "type": "string" }, "instructions": { "type": "string" }, "method": { "type": "string", "enum": [ "pickup", "delivery", "shipping", "courier" ] }, "service": { "type": "string" } } }, "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string" }, "name": { "type": "string" }, "image": { "type": "string" }, "url": { "type": "string" }, "quantity": { "type": "number" }, "unit": { "type": "number" }, "average": { "type": "number" }, "subtotal": { "type": "number" }, "saving": { "type": "number" }, "total": { "type": "number" }, "weight": { "type": "number" }, "dimensions": { "type": "object", "properties": { "height": { "type": "number" }, "length": { "type": "number" }, "width": { "type": "number" } } }, "discounts": { "type": "array", "items": { "type": "object" } }, "fields": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "value": { "type": "string" }, "image": { "type": "string" }, "quantity": { "type": "number" }, "subtotal": { "type": "number" }, "total": { "type": "number" }, "fields": { "type": "array", "items": { "$ref": "#/components/schemas/items" } } } } }, "meta": { "type": "object" } } } }, "merchant": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "email": { "type": "string", "format": "email" }, "phone": { "type": "string" }, "address": { "$ref": "#/components/schemas/Address" }, "tax": { "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string" } } } } }, "meta": { "type": "object", "properties": { "created": { "$ref": "#/components/schemas/Timestamp" }, "updated": { "$ref": "#/components/schemas/Timestamp" }, "imported": { "type": "boolean" }, "viewed": { "type": "boolean" } } }, "notes": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "label": { "type": "string" }, "value": { "type": "string" } } } }, "payment": { "oneOf": [ { "$ref": "#/components/schemas/CommercePayment" }, { "type": "array", "items": { "$ref": "#/components/schemas/CommercePayment" } } ] }, "referrer": { "type": "string" }, "template": { "type": "object", "properties": { "logo": { "type": "string" }, "note": { "type": "string" }, "theme": { "type": "string" }, "title": { "type": "string" }, "variant": { "type": "string" } } }, "totals": { "type": "object", "properties": { "items": { "type": "number" }, "saving": { "type": "number" }, "subtotal": { "type": "number" }, "total": { "type": "number" }, "shipping": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "total": { "type": "number" } } } }, "taxes": { "type": "array", "items": { "type": "object", "properties": { "inclusive": { "type": "boolean" }, "name": { "type": "string" }, "total": { "type": "number" } } } } } } } }