Properties
| Name | Type | Description |
|---|---|---|
| total | number | Total |
| orderLines | arraynull | Order lines |
| externalOrderId | string | External order id |
| customerId | string | Customer id |
| created | string | Time that this order was completed |
| coupons | arraynull |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/marsello/main/json-schema/marsello-order-create-model-schema.json",
"title": "OrderCreateModel",
"description": "Create an order",
"x-generated": "2026-10-27",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/marsello-loyalty-api-v1.json#/components/schemas/OrderCreateModel",
"required": [
"created",
"customerId",
"externalOrderId",
"total"
],
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total",
"format": "double"
},
"orderLines": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/OrderLineCreateModel"
},
"description": "Order lines"
},
"externalOrderId": {
"minLength": 1,
"type": "string",
"description": "External order id"
},
"customerId": {
"minLength": 1,
"type": "string",
"description": "Customer id"
},
"created": {
"type": "string",
"description": "Time that this order was completed",
"format": "date-time"
},
"coupons": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/$defs/RewardModel"
}
}
},
"additionalProperties": false,
"$defs": {
"ApiRewardType": {
"enum": [
"Reward",
"Coupon"
],
"type": "string"
},
"OrderLineCreateModel": {
"required": [
"price",
"product",
"quantity"
],
"type": "object",
"properties": {
"product": {
"$ref": "#/$defs/ProductCreateModel"
},
"price": {
"type": "number",
"description": "Price",
"format": "double"
},
"quantity": {
"minimum": 0,
"type": "number",
"description": "Quantity",
"format": "double"
},
"total": {
"type": "number",
"description": "Total",
"format": "double",
"readOnly": true
}
},
"additionalProperties": false,
"description": "Create a transaction line"
},
"ProductCreateModel": {
"required": [
"externalId"
],
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
],
"description": "Name of the product"
},
"description": {
"type": [
"string",
"null"
],
"description": "Description of the product"
},
"sku": {
"type": [
"string",
"null"
],
"description": "SKU of the product"
},
"externalId": {
"minLength": 1,
"type": "string",
"description": "ExternalId of the product (if synced with external system)"
}
},
"additionalProperties": false,
"description": "Create product model"
},
"RewardModel": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
],
"description": "Id of this reward"
},
"name": {
"type": [
"string",
"null"
],
"description": "Name of the reward"
},
"points": {
"type": "integer",
"description": "Number of points required to claim this reward",
"format": "int32"
},
"description": {
"type": [
"string",
"null"
],
"description": "Description of the reward"
},
"expires": {
"type": [
"string",
"null"
],
"description": "Expiry",
"format": "date-time"
},
"redeemCode": {
"type": [
"string",
"null"
],
"description": "Code used to redeem this reward on the external system"
},
"fixedValue": {
"type": [
"number",
"null"
],
"description": "Dollar or Percent-Off value of the discount to be applied",
"format": "double"
},
"minimumSpend": {
"type": [
"number",
"null"
],
"description": "The minimum dollar value required to allow this reward to be redeemed",
"format": "double"
},
"discountType": {
"type": [
"string",
"null"
],
"description": "Discount type of the reward, dollar-off or percent-off"
},
"eligibleProducts": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "The products that this discount can be applied to"
},
"eligibleCategories": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
},
"description": "The categories this discount can be applied to"
},
"tierName": {
"type": [
"string",
"null"
],
"description": "The name of the associated tier"
},
"terms": {
"type": [
"string",
"null"
],
"description": "The terms of the reward"
},
"customRewardRedeemedFulfillmentMessage": {
"type": [
"string",
"null"
],
"description": "The fulfullment message if the reward is Custom"
},
"type": {
"$ref": "#/$defs/ApiRewardType"
}
},
"additionalProperties": false,
"description": "Represents a reward available at a store"
}
}
}
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/marsello-order-create-model"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.