Square: Orders schemas (part 1)
28 Square schemas with complete fields and constraints.
← Orders operations · All schemas
Batch Retrieve Orders — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in requests to the `BatchRetrieveOrders` endpoint. |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the location for these orders. This field is optional: omit it to retrieve orders within the scope of the current authorization's merchant ID. |
location_id (anyOf 2) | null | Alternative | |
order_ids | array | Required within parent | The IDs of the orders to retrieve. A maximum of 100 orders can be retrieved per request. |
order_ids[] | string | Each item |
Batch Retrieve Orders — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the `BatchRetrieveOrders` endpoint. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
orders | array | Optional | The requested orders. This will omit any requested orders that do not exist. |
orders[] | Model | Each item | Expand Pay Order — response body — order |
Referenced models: Get Shift — response body — errors item, Pay Order — response body — order
Calculate Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
order | Model | Required within parent | Expand Create Order — request body — body order The order to be calculated. Expects the entire order, not a sparse update. |
proposed_rewards | JSON | Optional | |
proposed_rewards (anyOf 1) | array | Alternative | Identifies one or more loyalty reward tiers to apply during the order calculation. The discounts defined by the reward tiers are added to the order only to preview the effect of applying the specified rewards. The rewards do not correspond to actual redemptions; that is, no `reward`s are created. Therefore, the reward `id`s are random strings used only to reference the reward tier. |
proposed_rewards (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order rewards item |
proposed_rewards (anyOf 2) | null | Alternative |
Referenced models: Create Order — request body — body order, Pay Order — response body — order rewards item
Calculate Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
order | Model | Optional | Expand Pay Order — response body — order The calculated version of the order provided in the request. |
Referenced models: Get Shift — response body — errors item, Pay Order — response body — order
Clone Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in requests to the [CloneOrder](api-endpoint:Orders-CloneOrder) endpoint. |
idempotency_key | JSON | Optional | |
idempotency_key (anyOf 1) | string | Alternative | A value you specify that uniquely identifies this clone request. If you are unsure whether a particular order was cloned successfully, you can reattempt the call with the same idempotency key without worrying about creating duplicate cloned orders. The originally cloned order is returned. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). |
idempotency_key (anyOf 2) | null | Alternative | |
order_id | string | Required within parent | The ID of the order to clone. |
version | integer | Optional | An optional order version for concurrency protection. If a version is provided, it must match the latest stored version of the order to clone. If a version is not provided, the API clones the latest version. |
Clone Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the [CloneOrder](api-endpoint:Orders-CloneOrder) endpoint. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
order | Model | Optional | Expand Pay Order — response body — order The cloned order. |
Referenced models: Get Shift — response body — errors item, Pay Order — response body — order
Create Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
idempotency_key | string | Optional | A value you specify that uniquely identifies this order among orders you have created. If you are unsure whether a particular order was created successfully, you can try it again with the same idempotency key without worrying about creating duplicate orders. For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency). Maximum length: 192 |
order | Model | Optional | Expand Create Order — request body — body order The order to create. If this field is set, the only other top-level field that can be set is the `idempotency_key`. |
Referenced models: Create Order — request body — body order
Create Order — request body — body order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains all information related to a single order to process with Square, including line items that specify the products to purchase. `Order` objects also include information about any associated tenders, refunds, and returns. All Connect V2 Transactions have all been converted to Orders including all associated itemization data. |
closed_at | string | Optional | The timestamp for when the order reached a terminal [state](entity:OrderState), in RFC 3339 format (for example "2016-09-04T23:59:33.123Z"). Read only: true |
created_at | string | Optional | The timestamp for when the order was created, at server side, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | The ID of the [customer](entity:Customer) associated with the order. You should specify a `customer_id` on the order (or the payment) to ensure that transactions are reliably linked to customers. Omitting this field might result in the creation of new [instant profiles](https://developer.squareup.com/docs/customers-api/what-it-does#instant-profiles). Maximum length: 191 |
customer_id (anyOf 2) | null | Alternative | |
discounts | JSON | Optional | |
discounts (anyOf 1) | array | Alternative | The list of all discounts associated with the order. Discounts can be scoped to either `ORDER` or `LINE_ITEM`. For discounts scoped to `LINE_ITEM`, an `OrderLineItemAppliedDiscount` must be added to each line item that the discount applies to. For discounts with `ORDER` scope, the server generates an `OrderLineItemAppliedDiscount` for every line item. __IMPORTANT__: If `LINE_ITEM` scope is set on any discounts in this field, using the deprecated `line_items.discounts` field results in an error. Use `line_items.applied_discounts` instead. |
discounts (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order discounts array item |
discounts (anyOf 2) | null | Alternative | |
fulfillments | JSON | Optional | |
fulfillments (anyOf 1) | array | Alternative | Details about order fulfillment. Orders can only be created with at most one fulfillment. However, orders returned by the API might contain multiple fulfillments. |
fulfillments (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order fulfillments Details about order fulfillment item |
fulfillments (anyOf 2) | null | Alternative | |
id | string | Optional | The order's unique ID. Read only: true |
line_items | JSON | Optional | |
line_items (anyOf 1) | array | Alternative | The line items included in the order. |
line_items (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item |
line_items (anyOf 2) | null | Alternative | |
location_id | string | Required within parent | The ID of the seller location that this order is associated with. Minimum length: 1 |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this order. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
net_amount_due_money | Model | Optional | Expand Create Payment — request body — body tip money The net amount of money due on the order. Read only: true |
net_amounts | Model | Optional | Expand Create Order — request body — body order net amounts The net money amounts (sale money - return money). Read only: true |
pricing_options | JSON | Optional | |
pricing_options (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order pricing options auto apply discounts, auto apply taxes Pricing options for an order. The options affect how the order's price is calculated. They can be used, for example, to apply automatic price adjustments that are based on preconfigured [pricing rules](entity:CatalogPricingRule). |
pricing_options (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID to associate an entity in another system with this order. Maximum length: 40 |
reference_id (anyOf 2) | null | Alternative | |
refunds | array | Optional | The refunds that are part of this order. Read only: true |
refunds[] | Model | Each item | Expand Create Order — request body — body order refunds item |
return_amounts | Model | Optional | Expand Create Order — request body — body order net amounts The rollup of the returned money amounts. Read only: true |
returns | array | Optional | A collection of items from sale orders being returned in this one. Normally part of an itemized return or exchange. There is exactly one `Return` object per sale `Order` being referenced. Read only: true |
returns[] | Model | Each item | Expand Create Order — request body — body order returns item |
rewards | array | Optional | A set-like list of Rewards that have been added to the Order. Read only: true |
rewards[] | Model | Each item | Expand Pay Order — response body — order rewards item |
rounding_adjustment | Model | Optional | Expand Create Order — request body — body order rounding adjustment A positive rounding adjustment to the total of the order. This adjustment is commonly used to apply cash rounding when the minimum unit of account is smaller than the lowest physical denomination of the currency. Read only: true |
service_charges | JSON | Optional | |
service_charges (anyOf 1) | array | Alternative | A list of service charges applied to the order. |
service_charges (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order service charges A list of service charges applied to the order item |
service_charges (anyOf 2) | null | Alternative | |
source | JSON | Optional | |
source (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order source Represents the origination details of an order The latest source details of the order. This field reflects the most recent source that interacted with or modified the order, and may change during the order lifecycle. For example: - An order created via API (source.name = "MyPOS") paid with Square Terminal may have source updated to reflect the Terminal application (which uses REGISTER, like POS) - An order updated or completed by a different application may have source updated to reflect that application. To preserve the original source from order creation regardless of subsequent updates, use the `creation_source` field instead. |
source (anyOf 2) | null | Alternative | |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | The state of the order. The current state of the order. See [OrderState](#type-orderstate) for possible values One of: OPEN, COMPLETED, CANCELED, DRAFT |
state (anyOf 2) | null | Alternative | |
taxes | JSON | Optional | |
taxes (anyOf 1) | array | Alternative | The list of all taxes associated with the order. Taxes can be scoped to either `ORDER` or `LINE_ITEM`. For taxes with `LINE_ITEM` scope, an `OrderLineItemAppliedTax` must be added to each line item that the tax applies to. For taxes with `ORDER` scope, the server generates an `OrderLineItemAppliedTax` for every line item. On reads, each tax in the list includes the total amount of that tax applied to the order. __IMPORTANT__: If `LINE_ITEM` scope is set on any taxes in this field, using the deprecated `line_items.taxes` field results in an error. Use `line_items.applied_taxes` instead. |
taxes (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order taxes The list of all taxes associated with the order item |
taxes (anyOf 2) | null | Alternative | |
tenders | array | Optional | The tenders that were used to pay for the order. Read only: true |
tenders[] | Model | Each item | Expand Create Order — request body — body order tenders item |
ticket_name | JSON | Optional | |
ticket_name (anyOf 1) | string | Alternative | A short-term identifier for the order (such as a customer first name, table number, or auto-generated order number that resets daily). Maximum length: 255 |
ticket_name (anyOf 2) | null | Alternative | |
total_discount_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of discount money to collect for the order. Read only: true |
total_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of money to collect for the order. Read only: true |
total_service_charge_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of money collected in service charges for the order. Note: `total_service_charge_money` is the sum of `applied_money` fields for each individual service charge. Therefore, `total_service_charge_money` only includes inclusive tax amounts, not additive tax amounts. Read only: true |
total_tax_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of tax money to collect for the order. Read only: true |
total_tip_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of tip money to collect for the order. Read only: true |
updated_at | string | Optional | The timestamp for when the order was last updated, at server side, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
version | integer | Optional | The version number, which is incremented each time an update is committed to the order. Orders not created through the API do not include a version number and therefore cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/orders-api/manage-orders/update-orders). |
Referenced models: Create Order — request body — body order fulfillments Details about order fulfillment item, Create Payment — request body — body tip money, Create Order — request body — body order line items The line items included in the order item, Create Order — request body — body order discounts array item, Create Order — request body — body order taxes The list of all taxes associated with the order item, Create Order — request body — body order net amounts, Pay Order — response body — order pricing options auto apply discounts, auto apply taxes, Create Order — request body — body order returns item, Pay Order — response body — order rewards item, Create Order — request body — body order rounding adjustment, Create Order — request body — body order service charges A list of service charges applied to the order item, Pay Order — response body — order source Represents the origination details of an order, Create Order — request body — body order refunds item, Create Order — request body — body order tenders item
Create Order — request body — body order discounts array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a discount that applies to one or more line items in an order. Fixed-amount, order-scoped discounts are distributed across all non-zero line item totals. The amount distributed to each line item is relative to the amount contributed by the item to the order subtotal. |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The total declared monetary amount of the discount. `amount_money` is not set for percentage-based discounts. |
amount_money (anyOf 2) | null | Alternative | |
applied_money | JSON | Optional | |
applied_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The amount of discount actually applied to the line item. The amount represents the amount of money applied as a line-item scoped discount. When an amount-based discount is scoped to the entire order, the value of `applied_money` is different than `amount_money` because the total amount of the discount is distributed across all line items. |
applied_money (anyOf 2) | null | Alternative | |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing [CatalogDiscount](entity:CatalogDiscount). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this discount references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this discount. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The discount's name. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The percentage of the discount, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. `percentage` is not set for amount-based discounts. Maximum length: 10 |
percentage (anyOf 2) | null | Alternative | |
pricing_rule_id | string | Optional | The object ID of a [pricing rule](entity:CatalogPricingRule) to be applied automatically to this discount. The specification and application of the discounts, to which a `pricing_rule_id` is assigned, are completely controlled by the corresponding pricing rule. Read only: true |
reward_ids | array | Optional | The reward IDs corresponding to this discount. The application and specification of discounts that have `reward_ids` are completely controlled by the backing criteria corresponding to the reward tiers of the rewards that are added to the order through the Loyalty API. To manually unapply discounts that are the result of added rewards, the rewards must be removed from the order through the Loyalty API. Read only: true |
reward_ids[] | string | Each item | |
scope | JSON | Optional | |
scope (anyOf 1) | string | Alternative | Indicates whether this is a line-item or order-level discount. Indicates the level at which the discount applies. For `ORDER` scoped discounts, Square generates references in `applied_discounts` on all order line items that do not have them. For `LINE_ITEM` scoped discounts, the discount only applies to line items with a discount reference in their `applied_discounts` field. This field is immutable. To change the scope of a discount, you must delete the discount and re-add it as a new discount. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values One of: OTHER_DISCOUNT_SCOPE, LINE_ITEM, ORDER |
scope (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Indicates how the discount is applied to the associated line item or order. The type of the discount. Discounts that do not reference a catalog object ID must have a type of `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values One of: UNKNOWN_DISCOUNT, FIXED_PERCENTAGE, FIXED_AMOUNT, VARIABLE_PERCENTAGE, VARIABLE_AMOUNT |
type (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the discount only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order fulfillments Details about order fulfillment item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains details about how to fulfill this order. Orders can only be created with at most one fulfillment using the API. However, orders returned by the Orders API might contain multiple fulfillments because sellers can create multiple fulfillments using Square products such as Square Online. |
delivery_details | JSON | Optional | |
delivery_details (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment Describes delivery details of an order fulfillment. |
delivery_details (anyOf 2) | null | Alternative | |
entries | array | Optional | A list of entries pertaining to the fulfillment of an order. Each entry must reference a valid `uid` for an order line item in the `line_item_uid` field, as well as a `quantity` to fulfill. Multiple entries can reference the same line item `uid`, as long as the total quantity among all fulfillment entries referencing a single line item does not exceed the quantity of the order's line item itself. An order cannot be marked as `COMPLETED` before all fulfillments are `COMPLETED`, `CANCELED`, or `FAILED`. Fulfillments can be created and completed independently before order completion. Read only: true |
entries[] | Model | Each item | Expand Pay Order — response body — order fulfillments Details about order fulfillment item entries item |
in_store_details | JSON | Optional | |
in_store_details (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order fulfillments Details about order fulfillment item in store details canceled at, completed at, in progress at, note, placed at, prepared at, recipient Contains details for an in-store fulfillment. These details are required when the fulfillment type is `IN_STORE`. |
in_store_details (anyOf 2) | null | Alternative | |
line_item_application | string | Optional | The `line_item_application` describes what order line items this fulfillment applies to. It can be `ALL` or `ENTRY_LIST` with a supplied list of fulfillment entries. Describes what order line items this fulfillment applies to. It can be `ALL` or `ENTRY_LIST` with a supplied list of fulfillment entries. See [FulfillmentFulfillmentLineItemApplication](#type-fulfillmentfulfillmentlineitemapplication) for possible values One of: ALL, ENTRY_LIST Read only: true |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this fulfillment. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
pickup_details | JSON | Optional | |
pickup_details (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order fulfillments Details about order fulfillment item pickup details accepted at, auto complete duration, cancel reason, canceled at, curbside pickup details, expired at, expires at, is curbside pickup, note, picked up at, pickup at, pickup window duration, placed at, prep time duration, ready at, recipient, rejected at, schedule type Contains details for a pickup fulfillment. These details are required when the fulfillment type is `PICKUP`. |
pickup_details (anyOf 2) | null | Alternative | |
shipment_details | JSON | Optional | |
shipment_details (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order fulfillments Details about order fulfillment item shipment details cancel reason, canceled at, carrier, expected shipped at, failed at, failure reason, in progress at, packaged at, placed at, recipient, shipped at, shipping note, shipping type, tracking number, tracking url Contains details for a shipment fulfillment. These details are required when the fulfillment type is `SHIPMENT`. A shipment fulfillment's relationship to fulfillment `state`: `PROPOSED`: A shipment is requested. `RESERVED`: Fulfillment in progress. Shipment processing. `PREPARED`: Shipment packaged. Shipping label created. `COMPLETED`: Package has been shipped. `CANCELED`: Shipment has been canceled. `FAILED`: Shipment has failed. |
shipment_details (anyOf 2) | null | Alternative | |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | The current state of this fulfillment. The state of the fulfillment. See [FulfillmentState](#type-fulfillmentstate) for possible values One of: PROPOSED, RESERVED, PREPARED, COMPLETED, CANCELED, FAILED |
state (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | The type of fulfillment. The type of the fulfillment. See [FulfillmentType](#type-fulfillmenttype) for possible values One of: PICKUP, SHIPMENT, DELIVERY, IN_STORE |
type (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the fulfillment only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Order — request body — body order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment, Pay Order — response body — order fulfillments Details about order fulfillment item entries item, Create Order — request body — body order fulfillments Details about order fulfillment item in store details canceled at, completed at, in progress at, note, placed at, prepared at, recipient, Create Order — request body — body order fulfillments Details about order fulfillment item pickup details accepted at, auto complete duration, cancel reason, canceled at, curbside pickup details, expired at, expires at, is curbside pickup, note, picked up at, pickup at, pickup window duration, placed at, prep time duration, ready at, recipient, rejected at, schedule type, Create Order — request body — body order fulfillments Details about order fulfillment item shipment details cancel reason, canceled at, carrier, expected shipped at, failed at, failure reason, in progress at, packaged at, placed at, recipient, shipped at, shipping note, shipping type, tracking number, tracking url
Create Order — request body — body order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes delivery details of an order fulfillment. |
cancel_reason | JSON | Optional | |
cancel_reason (anyOf 1) | string | Alternative | The delivery cancellation reason. Max length: 100 characters. Maximum length: 100 |
cancel_reason (anyOf 2) | null | Alternative | |
canceled_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was canceled. This field is automatically set when the fulfillment `state` changes to `CANCELED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
completed_at | JSON | Optional | |
completed_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicates when the seller completed the fulfillment. This field is automatically set when fulfillment `state` changes to `COMPLETED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
completed_at (anyOf 2) | null | Alternative | |
courier_pickup_at | JSON | Optional | |
courier_pickup_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when an order can be picked up by the courier for delivery. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
courier_pickup_at (anyOf 2) | null | Alternative | |
courier_pickup_window_duration | JSON | Optional | |
courier_pickup_window_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) after `courier_pickup_at` in which the courier should pick up the order. The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. |
courier_pickup_window_duration (anyOf 2) | null | Alternative | |
courier_provider_name | JSON | Optional | |
courier_provider_name (anyOf 1) | string | Alternative | The name of the courier provider. Maximum length: 255 |
courier_provider_name (anyOf 2) | null | Alternative | |
courier_support_phone_number | JSON | Optional | |
courier_support_phone_number (anyOf 1) | string | Alternative | The support phone number of the courier. Maximum length: 17 |
courier_support_phone_number (anyOf 2) | null | Alternative | |
deliver_at | JSON | Optional | |
deliver_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) that represents the start of the delivery period. The application can set this field while the fulfillment `state` is `PROPOSED`, `RESERVED`, or `PREPARED` (any time before the terminal state such as `COMPLETED`, `CANCELED`, and `FAILED`). The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). For fulfillments with the schedule type `ASAP`, this is automatically set to the current time plus `prep_time_duration`, if available. |
deliver_at (anyOf 2) | null | Alternative | |
delivered_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was delivered to the recipient. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
delivery_window_duration | JSON | Optional | |
delivery_window_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) after `deliver_at` in which to deliver the order. Applications can set this field when the fulfillment `state` is `PROPOSED`, `RESERVED`, or `PREPARED` (any time before the terminal state such as `COMPLETED`, `CANCELED`, and `FAILED`). The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. |
delivery_window_duration (anyOf 2) | null | Alternative | |
dropoff_notes | JSON | Optional | |
dropoff_notes (anyOf 1) | string | Alternative | A note to provide additional instructions about how to deliver the order. Maximum length: 550 |
dropoff_notes (anyOf 2) | null | Alternative | |
external_delivery_id | JSON | Optional | |
external_delivery_id (anyOf 1) | string | Alternative | The identifier for the delivery created by the third-party courier service. Maximum length: 50 |
external_delivery_id (anyOf 2) | null | Alternative | |
in_progress_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicates when the seller started processing the fulfillment. This field is automatically set when the fulfillment `state` changes to `RESERVED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
is_no_contact_delivery | JSON | Optional | |
is_no_contact_delivery (anyOf 1) | boolean | Alternative | Whether the delivery is preferred to be no contact. |
is_no_contact_delivery (anyOf 2) | null | Alternative | |
managed_delivery | JSON | Optional | |
managed_delivery (anyOf 1) | boolean | Alternative | The flag to indicate the delivery is managed by a third party (ie DoorDash), which means we may not receive all recipient information for PII purposes. |
managed_delivery (anyOf 2) | null | Alternative | |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | Provides additional instructions about the delivery fulfillment. It is displayed in the Square Point of Sale application and set by the API. Maximum length: 550 |
note (anyOf 2) | null | Alternative | |
placed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Must be in RFC 3339 timestamp format, e.g., "2016-09-04T23:59:33.123Z". Read only: true |
prep_time_duration | JSON | Optional | |
prep_time_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) needed to prepare and deliver this fulfillment. The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. |
prep_time_duration (anyOf 2) | null | Alternative | |
ready_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the seller marked the fulfillment as ready for courier pickup. This field is automatically set when the fulfillment `state` changes to PREPARED. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
recipient | JSON | Optional | |
recipient (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient The contact information for the person to receive the fulfillment. |
recipient (anyOf 2) | null | Alternative | |
rejected_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was rejected. This field is automatically set when the fulfillment `state` changes to `FAILED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
schedule_type | JSON | Optional | |
schedule_type (anyOf 1) | string | Alternative | The schedule type of the delivery fulfillment. Indicates the fulfillment delivery schedule type. If `SCHEDULED`, then `deliver_at` is required. The default is `SCHEDULED`. See [OrderFulfillmentDeliveryDetailsScheduleType](#type-orderfulfillmentdeliverydetailsscheduletype) for possible values One of: SCHEDULED, ASAP |
schedule_type (anyOf 2) | null | Alternative | |
square_delivery_id | JSON | Optional | |
square_delivery_id (anyOf 1) | string | Alternative | The identifier for the delivery created by Square. Maximum length: 50 |
square_delivery_id (anyOf 2) | null | Alternative |
Create Order — request body — body order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Information about the fulfillment recipient. |
address | JSON | Optional | |
address (anyOf 1) | Model | Alternative | Expand Create Customer — request body — body address The address of the fulfillment recipient. This field is required. If provided, the address overrides the corresponding customer profile value indicated by `customer_id`. |
address (anyOf 2) | null | Alternative | |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | The ID of the customer associated with the fulfillment. If `customer_id` is provided, the fulfillment recipient's `display_name`, `email_address`, and `phone_number` are automatically populated from the targeted customer profile. If these fields are set in the request, the request values override the information from the customer profile. If the targeted customer profile does not contain the necessary information and these fields are left unset, the request results in an error. Maximum length: 191 |
customer_id (anyOf 2) | null | Alternative | |
display_name | JSON | Optional | |
display_name (anyOf 1) | string | Alternative | The display name of the fulfillment recipient. This field is required. If provided, the display name overrides the corresponding customer profile value indicated by `customer_id`. Maximum length: 255 |
display_name (anyOf 2) | null | Alternative | |
email_address | JSON | Optional | |
email_address (anyOf 1) | string | Alternative | The email address of the fulfillment recipient. If provided, the email address overrides the corresponding customer profile value indicated by `customer_id`. Maximum length: 255 |
email_address (anyOf 2) | null | Alternative | |
phone_number | JSON | Optional | |
phone_number (anyOf 1) | string | Alternative | The phone number of the fulfillment recipient. This field is required. If provided, the phone number overrides the corresponding customer profile value indicated by `customer_id`. Maximum length: 18 |
phone_number (anyOf 2) | null | Alternative |
Referenced models: Create Customer — request body — body address
Create Order — request body — body order fulfillments Details about order fulfillment item in store details canceled at, completed at, in progress at, note, placed at, prepared at, recipient
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains the details necessary to fulfill an in-store order. |
canceled_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was canceled. This field is automatically set when the fulfillment `state` changes to `CANCELED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
completed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was completed. This field is automatically set when the fulfillment `state` changes to `COMPLETED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
in_progress_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicates when the seller started processing the fulfillment. This field is automatically set when the fulfillment `state` changes to `RESERVED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | A note to provide additional instructions about the in-store fulfillment displayed in the Square Point of Sale application and set by the API. Maximum length: 550 |
note (anyOf 2) | null | Alternative | |
placed_at | JSON | Optional | |
placed_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
placed_at (anyOf 2) | null | Alternative | |
prepared_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was moved to the `PREPARED` state, which indicates that the fulfillment is ready. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
recipient | JSON | Optional | |
recipient (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient Information about the person to receive this in-store fulfillment. |
recipient (anyOf 2) | null | Alternative |
Create Order — request body — body order fulfillments Details about order fulfillment item pickup details accepted at, auto complete duration, cancel reason, canceled at, curbside pickup details, expired at, expires at, is curbside pickup, note, picked up at, pickup at, pickup window duration, placed at, prep time duration, ready at, recipient, rejected at, schedule type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains details necessary to fulfill a pickup order. |
accepted_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was marked in progress. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
auto_complete_duration | JSON | Optional | |
auto_complete_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) after which an in-progress pickup fulfillment is automatically moved to the `COMPLETED` state. The duration must be in RFC 3339 format (for example, "PT4H" for 4 hours). If not set, this pickup fulfillment remains in progress until it is canceled or completed. |
auto_complete_duration (anyOf 2) | null | Alternative | |
cancel_reason | JSON | Optional | |
cancel_reason (anyOf 1) | string | Alternative | A description of why the pickup was canceled. The maximum length: 100 characters. Maximum length: 100 |
cancel_reason (anyOf 2) | null | Alternative | |
canceled_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
curbside_pickup_details | JSON | Optional | |
curbside_pickup_details (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order fulfillments Details about order fulfillment item pickup details accepted at, auto complete duration, cancel reason, canceled at, curbside pickup details, expired at, expires at, is curbside pickup, note, picked up at, pickup at, pickup window duration, placed at, prep time duration, ready at, recipient, rejected at, schedule type curbside pickup details Specific details for curbside pickup Specific details for curbside pickup. These details can only be populated if `is_curbside_pickup` is set to `true`. |
curbside_pickup_details (anyOf 2) | null | Alternative | |
expired_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment expired. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
expires_at | JSON | Optional | |
expires_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment expires if it is not marked in progress. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. If `expires_at` is not set, any new payments attached to the order are automatically completed. |
expires_at (anyOf 2) | null | Alternative | |
is_curbside_pickup | JSON | Optional | |
is_curbside_pickup (anyOf 1) | boolean | Alternative | If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. |
is_curbside_pickup (anyOf 2) | null | Alternative | |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | A note to provide additional instructions about the pickup fulfillment displayed in the Square Point of Sale application and set by the API. Maximum length: 500 |
note (anyOf 2) | null | Alternative | |
picked_up_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
pickup_at | JSON | Optional | |
pickup_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., "2016-09-04T23:59:33.123Z". For fulfillments with the schedule type `ASAP`, this is automatically set to the current time plus `prep_time_duration`, if available. |
pickup_at (anyOf 2) | null | Alternative | |
pickup_window_duration | JSON | Optional | |
pickup_window_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) in which the order should be picked up after the `pickup_at` timestamp. The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. Can be used as an informational guideline for merchants. |
pickup_window_duration (anyOf 2) | null | Alternative | |
placed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
prep_time_duration | JSON | Optional | |
prep_time_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) needed to prepare this fulfillment. The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. |
prep_time_duration (anyOf 2) | null | Alternative | |
ready_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
recipient | JSON | Optional | |
recipient (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient Information about the person to pick up this fulfillment from a physical location. |
recipient (anyOf 2) | null | Alternative | |
rejected_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
schedule_type | JSON | Optional | |
schedule_type (anyOf 1) | string | Alternative | The schedule type of the pickup fulfillment. The schedule type of the pickup fulfillment. Defaults to `SCHEDULED`. See [FulfillmentPickupDetailsScheduleType](#type-fulfillmentpickupdetailsscheduletype) for possible values One of: SCHEDULED, ASAP |
schedule_type (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order fulfillments Details about order fulfillment item pickup details accepted at, auto complete duration, cancel reason, canceled at, curbside pickup details, expired at, expires at, is curbside pickup, note, picked up at, pickup at, pickup window duration, placed at, prep time duration, ready at, recipient, rejected at, schedule type curbside pickup details Specific details for curbside pickup, Create Order — request body — body order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient
Create Order — request body — body order fulfillments Details about order fulfillment item shipment details cancel reason, canceled at, carrier, expected shipped at, failed at, failure reason, in progress at, packaged at, placed at, recipient, shipped at, shipping note, shipping type, tracking number, tracking url
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains the details necessary to fulfill a shipment order. |
cancel_reason | JSON | Optional | |
cancel_reason (anyOf 1) | string | Alternative | A description of why the shipment was canceled. Maximum length: 100 |
cancel_reason (anyOf 2) | null | Alternative | |
canceled_at | JSON | Optional | |
canceled_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating the shipment was canceled. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
canceled_at (anyOf 2) | null | Alternative | |
carrier | JSON | Optional | |
carrier (anyOf 1) | string | Alternative | The shipping carrier being used to ship this fulfillment (such as UPS, FedEx, or USPS). Maximum length: 50 |
carrier (anyOf 2) | null | Alternative | |
expected_shipped_at | JSON | Optional | |
expected_shipped_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the shipment is expected to be delivered to the shipping carrier. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
expected_shipped_at (anyOf 2) | null | Alternative | |
failed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the shipment failed to be completed. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
failure_reason | JSON | Optional | |
failure_reason (anyOf 1) | string | Alternative | A description of why the shipment failed to be completed. Maximum length: 100 |
failure_reason (anyOf 2) | null | Alternative | |
in_progress_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment was moved to the `RESERVED` state, which indicates that preparation of this shipment has begun. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
packaged_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment was moved to the `PREPARED` state, which indicates that the fulfillment is packaged. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
placed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the shipment was requested. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
recipient | JSON | Optional | |
recipient (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient Information about the person to receive this shipment fulfillment. |
recipient (anyOf 2) | null | Alternative | |
shipped_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment was moved to the `COMPLETED` state, which indicates that the fulfillment has been given to the shipping carrier. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
shipping_note | JSON | Optional | |
shipping_note (anyOf 1) | string | Alternative | A note with additional information for the shipping carrier. Maximum length: 500 |
shipping_note (anyOf 2) | null | Alternative | |
shipping_type | JSON | Optional | |
shipping_type (anyOf 1) | string | Alternative | A description of the type of shipping product purchased from the carrier (such as First Class, Priority, or Express). Maximum length: 255 |
shipping_type (anyOf 2) | null | Alternative | |
tracking_number | JSON | Optional | |
tracking_number (anyOf 1) | string | Alternative | The reference number provided by the carrier to track the shipment's progress. Maximum length: 100 |
tracking_number (anyOf 2) | null | Alternative | |
tracking_url | JSON | Optional | |
tracking_url (anyOf 1) | string | Alternative | A link to the tracking webpage on the carrier's website. Maximum length: 2000 |
tracking_url (anyOf 2) | null | Alternative |
Create Order — request body — body order line items The line items included in the order item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a line item in an order. Each line item describes a different product to purchase, with its own quantity and price details. |
applied_discounts | JSON | Optional | |
applied_discounts (anyOf 1) | array | Alternative | The list of references to discounts applied to this line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderLineItemDiscounts` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedDiscount` is automatically created on every line item for all `ORDER` scoped discounts that are added to the order. `OrderLineItemAppliedDiscount` records for `LINE_ITEM` scoped discounts must be added in requests for the discount to apply to any line items. To change the amount of a discount, modify the referenced top-level discount. |
applied_discounts (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item applied discounts array item |
applied_discounts (anyOf 2) | null | Alternative | |
applied_service_charges | JSON | Optional | |
applied_service_charges (anyOf 1) | array | Alternative | The list of references to service charges applied to this line item. Each `OrderLineItemAppliedServiceCharge` has a `service_charge_id` that references the `uid` of a top-level `OrderServiceCharge` applied to the line item. On reads, the amount applied is populated. To change the amount of a service charge, modify the referenced top-level service charge. |
applied_service_charges (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item applied service charges array item |
applied_service_charges (anyOf 2) | null | Alternative | |
applied_taxes | JSON | Optional | |
applied_taxes (anyOf 1) | array | Alternative | The list of references to taxes applied to this line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` is automatically created on every line item for all `ORDER` scoped taxes added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any line items. To change the amount of a tax, modify the referenced top-level tax. |
applied_taxes (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item applied taxes array item |
applied_taxes (anyOf 2) | null | Alternative | |
base_price_money | JSON | Optional | |
base_price_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The base price for a single unit of the line item. Note - If inclusive tax is set on this item it will be included in this value. |
base_price_money (anyOf 2) | null | Alternative | |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The [CatalogItemVariation](entity:CatalogItemVariation) ID applied to this line item. Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this line item references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
gross_sales_money | Model | Optional | Expand Create Payment — request body — body tip money The amount of money made in gross sales for this line item. The amount is calculated as the sum of the variation's total price and each modifier's total price. For inclusive tax items in the US, Canada, and Japan, tax is deducted from `gross_sales_money`. For Europe and Australia, inclusive tax remains as part of the gross sale calculation. Read only: true |
item_type | JSON | Optional | |
item_type (anyOf 1) | string | Alternative | Represents the line item type. The type of line item: an itemized sale, a non-itemized sale (custom amount), or the activation or reloading of a gift card. See [OrderLineItemItemType](#type-orderlineitemitemtype) for possible values One of: ITEM, CUSTOM_AMOUNT, GIFT_CARD |
item_type (anyOf 2) | null | Alternative | |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this line item. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
modifiers | JSON | Optional | |
modifiers (anyOf 1) | array | Alternative | The [CatalogModifier](entity:CatalogModifier)s applied to this line item. |
modifiers (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item modifiers array item |
modifiers (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the line item. Maximum length: 512 |
name (anyOf 2) | null | Alternative | |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | An optional note associated with the line item. Maximum length: 2000 |
note (anyOf 2) | null | Alternative | |
pricing_blocklists | JSON | Optional | |
pricing_blocklists (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes Describes pricing adjustments that are blocked from automatic application to a line item. For more information, see [Apply Taxes and Discounts](https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts). |
pricing_blocklists (anyOf 2) | null | Alternative | |
quantity | string | Required within parent | The count, or measurement, of a line item being purchased: If `quantity` is a whole number, and `quantity_unit` is not specified, then `quantity` denotes an item count. For example: `3` apples. If `quantity` is a whole or decimal number, and `quantity_unit` is also specified, then `quantity` denotes a measurement. For example: `2.25` pounds of broccoli. For more information, see [Specify item quantity and measurement unit](https://developer.squareup.com/docs/orders-api/create-orders#specify-item-quantity-and-measurement-unit). Line items with a quantity of `0` are automatically removed when paying for or otherwise completing the order. Maximum length: 12 Minimum length: 1 |
quantity_unit | JSON | Optional | |
quantity_unit (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order line items The line items included in the order item quantity unit catalog object id, catalog version, measurement unit, precision The measurement unit and decimal precision that this line item's quantity is measured in. |
quantity_unit (anyOf 2) | null | Alternative | |
total_discount_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of discount money to collect for the line item. Read only: true |
total_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of money to collect for this line item. Read only: true |
total_service_charge_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of apportioned service charge money to collect for the line item. Read only: true |
total_tax_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of tax money to collect for the line item. Read only: true |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the line item only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative | |
variation_name | JSON | Optional | |
variation_name (anyOf 1) | string | Alternative | The name of the variation applied to this line item. Maximum length: 400 |
variation_name (anyOf 2) | null | Alternative | |
variation_total_price_money | Model | Optional | Expand Create Payment — request body — body tip money The total price of all item variations sold in this line item. The price is calculated as `base_price_money` multiplied by `quantity`. It does not include modifiers. Note - If inclusive tax is set on this item it will be included in this value. Read only: true |
Referenced models: Create Payment — request body — body tip money, Create Order — request body — body order line items The line items included in the order item applied discounts array item, Create Order — request body — body order line items The line items included in the order item applied service charges array item, Create Order — request body — body order line items The line items included in the order item applied taxes array item, Create Order — request body — body order line items The line items included in the order item modifiers array item, Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes, Create Order — request body — body order line items The line items included in the order item quantity unit catalog object id, catalog version, measurement unit, precision
Create Order — request body — body order line items The line items included in the order item applied discounts array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an applied portion of a discount to a line item in an order. Order scoped discounts have automatically applied discounts present for each line item. Line-item scoped discounts must have applied discounts added manually for any applicable line items. The corresponding applied money is automatically computed based on participating line items. |
applied_money | Model | Optional | Expand Create Payment — request body — body tip money The amount of money applied by the discount to the line item. Read only: true |
discount_uid | string | Required within parent | The `uid` of the discount that the applied discount represents. It must reference a discount present in the `order.discounts` field. This field is immutable. To change which discounts apply to a line item, you must delete the discount and re-add it as a new `OrderLineItemAppliedDiscount`. Maximum length: 60 Minimum length: 1 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the applied discount only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order line items The line items included in the order item applied service charges array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
applied_money | Model | Optional | Expand Create Payment — request body — body tip money The amount of money applied by the service charge to the line item. Read only: true |
service_charge_uid | string | Required within parent | The `uid` of the service charge that the applied service charge represents. It must reference a service charge present in the `order.service_charges` field. This field is immutable. To change which service charges apply to a line item, delete and add a new `OrderLineItemAppliedServiceCharge`. Maximum length: 60 Minimum length: 1 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the applied service charge only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order line items The line items included in the order item applied taxes array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an applied portion of a tax to a line item in an order. Order-scoped taxes automatically include the applied taxes in each line item. Line item taxes must be referenced from any applicable line items. The corresponding applied money is automatically computed, based on the set of participating line items. |
applied_money | Model | Optional | Expand Create Payment — request body — body tip money The amount of money applied by the tax to the line item. Read only: true |
auto_applied | boolean | Optional | Indicates whether the tax was automatically applied to the order based on the catalog configuration. For an example, see [Automatically Apply Taxes to an Order](https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes). Read only: true |
tax_uid | string | Required within parent | The `uid` of the tax for which this applied tax represents. It must reference a tax present in the `order.taxes` field. This field is immutable. To change which taxes apply to a line item, delete and add a new `OrderLineItemAppliedTax`. Maximum length: 60 Minimum length: 1 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the applied tax only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order line items The line items included in the order item modifiers array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A [CatalogModifier](entity:CatalogModifier). |
base_price_money | JSON | Optional | |
base_price_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The base price for the modifier. `base_price_money` is required for ad hoc modifiers. If both `catalog_object_id` and `base_price_money` are set, `base_price_money` will override the predefined [CatalogModifier](entity:CatalogModifier) price. |
base_price_money (anyOf 2) | null | Alternative | |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing [CatalogModifier](entity:CatalogModifier). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this modifier references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this order. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the item modifier. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
parent_modifier_uid | JSON | Optional | |
parent_modifier_uid (anyOf 1) | string | Alternative | The `uid` of the parent modifier, if this modifier is nested under another modifier. Maximum length: 60 |
parent_modifier_uid (anyOf 2) | null | Alternative | |
quantity | JSON | Optional | |
quantity (anyOf 1) | string | Alternative | The quantity of the line item modifier. The modifier quantity can be 0 or more. For example, suppose a restaurant offers a cheeseburger on the menu. When a buyer orders this item, the restaurant records the purchase by creating an `Order` object with a line item for a burger. The line item includes a line item modifier: the name is cheese and the quantity is 1. The buyer has the option to order extra cheese (or no cheese). If the buyer chooses the extra cheese option, the modifier quantity increases to 2. If the buyer does not want any cheese, the modifier quantity is set to 0. |
quantity (anyOf 2) | null | Alternative | |
total_price_money | Model | Optional | Expand Create Payment — request body — body tip money The total price of the item modifier for its line item. This is the modifier's `base_price_money` multiplied by the line item's quantity. Read only: true |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the modifier only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order line items The line items included in the order item quantity unit catalog object id, catalog version, measurement unit, precision
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains the measurement unit for a quantity and a precision that specifies the number of digits after the decimal point for decimal quantities. |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing the [CatalogMeasurementUnit](entity:CatalogMeasurementUnit). This field is set when this is a catalog-backed measurement unit. |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this measurement unit references. This field is set when this is a catalog-backed measurement unit. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
measurement_unit | JSON | Optional | |
measurement_unit (anyOf 1) | Model | Alternative | Expand Upsert Catalog Object — request body — body object measurement unit data measurement unit, precision measurement unit area unit, custom unit, generic unit, length unit, time unit, type, volume unit, weight unit A [MeasurementUnit](entity:MeasurementUnit) that represents the unit of measure for the quantity. |
measurement_unit (anyOf 2) | null | Alternative | |
precision | JSON | Optional | |
precision (anyOf 1) | integer | Alternative | For non-integer quantities, represents the number of digits after the decimal point that are recorded for this quantity. For example, a precision of 1 allows quantities such as `"1.0"` and `"1.1"`, but not `"1.01"`. Min: 0. Max: 5. |
precision (anyOf 2) | null | Alternative |
Create Order — request body — body order net amounts
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A collection of various money amounts. |
discount_money | JSON | Optional | |
discount_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The money associated with discounts. |
discount_money (anyOf 2) | null | Alternative | |
service_charge_money | JSON | Optional | |
service_charge_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The money associated with service charges. |
service_charge_money (anyOf 2) | null | Alternative | |
tax_money | JSON | Optional | |
tax_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The money associated with taxes. |
tax_money (anyOf 2) | null | Alternative | |
tip_money | JSON | Optional | |
tip_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The money associated with tips. |
tip_money (anyOf 2) | null | Alternative | |
total_money | JSON | Optional | |
total_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The total money. |
total_money (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order refunds item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a refund processed for a Square transaction. |
additional_recipients | JSON | Optional | |
additional_recipients (anyOf 1) | array | Alternative | Additional recipients (other than the merchant) receiving a portion of this refund. For example, fees assessed on a refund of a purchase by a third party integration. |
additional_recipients (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order refunds item additional recipients array item |
additional_recipients (anyOf 2) | null | Alternative | |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount of money refunded to the buyer. |
created_at | string | Optional | The timestamp for when the refund was created, in RFC 3339 format. Maximum length: 32 Read only: true |
id | string | Required within parent | The refund's unique ID. Maximum length: 255 |
location_id | string | Required within parent | The ID of the refund's associated location. Maximum length: 50 |
processing_fee_money | JSON | Optional | |
processing_fee_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The amount of Square processing fee money refunded to the *merchant*. |
processing_fee_money (anyOf 2) | null | Alternative | |
reason | string | Required within parent | The reason for the refund being issued. Maximum length: 192 |
status | string | Required within parent | Indicates a refund's current status. The current status of the refund (`PENDING`, `APPROVED`, `REJECTED`, or `FAILED`). See [RefundStatus](#type-refundstatus) for possible values One of: PENDING, APPROVED, REJECTED, FAILED |
tender_id | JSON | Optional | |
tender_id (anyOf 1) | string | Alternative | The ID of the refunded tender. Maximum length: 192 |
tender_id (anyOf 2) | null | Alternative | |
transaction_id | JSON | Optional | |
transaction_id (anyOf 1) | string | Alternative | The ID of the transaction that the refunded tender is part of. Maximum length: 192 |
transaction_id (anyOf 2) | null | Alternative |
Referenced models: Create Order — request body — body order refunds item additional recipients array item, Create Payment — request body — body tip money
Create Order — request body — body order refunds item additional recipients array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an additional recipient (other than the merchant) receiving a portion of this tender. |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount of money distributed to the recipient. |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The description of the additional recipient. Maximum length: 100 |
description (anyOf 2) | null | Alternative | |
location_id | string | Required within parent | The location ID for a recipient (other than the merchant) receiving a portion of this tender. Maximum length: 50 Minimum length: 1 |
receivable_id | JSON | Optional | |
receivable_id (anyOf 1) | string | Alternative | The unique ID for the RETIRED `AdditionalRecipientReceivable` object. This field should be empty for any `AdditionalRecipient` objects created after the retirement. Maximum length: 192 |
receivable_id (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order returns item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The set of line items, service charges, taxes, discounts, tips, and other items being returned in an order. |
return_amounts | JSON | Optional | |
return_amounts (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order net amounts An aggregate monetary value being returned by this return entry. |
return_amounts (anyOf 2) | null | Alternative | |
return_discounts | JSON | Optional | |
return_discounts (anyOf 1) | array | Alternative | A collection of references to discounts being returned for an order, including the total applied discount amount to be returned. The discounts must reference a top-level discount ID from the source order. |
return_discounts (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order returns item return discounts array item |
return_discounts (anyOf 2) | null | Alternative | |
return_line_items | JSON | Optional | |
return_line_items (anyOf 1) | array | Alternative | A collection of line items that are being returned. |
return_line_items (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order returns item return line items A collection of line items that are being returned item |
return_line_items (anyOf 2) | null | Alternative | |
return_service_charges | JSON | Optional | |
return_service_charges (anyOf 1) | array | Alternative | A collection of service charges that are being returned. |
return_service_charges (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order returns item return service charges array item |
return_service_charges (anyOf 2) | null | Alternative | |
return_taxes | JSON | Optional | |
return_taxes (anyOf 1) | array | Alternative | A collection of references to taxes being returned for an order, including the total applied tax amount to be returned. The taxes must reference a top-level tax ID from the source order. |
return_taxes (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order returns item return taxes array item |
return_taxes (anyOf 2) | null | Alternative | |
return_tips | JSON | Optional | |
return_tips (anyOf 1) | array | Alternative | A collection of references to tips being returned for an order. |
return_tips (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order returns item return tips array item |
return_tips (anyOf 2) | null | Alternative | |
rounding_adjustment | JSON | Optional | |
rounding_adjustment (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order rounding adjustment A positive or negative rounding adjustment to the total value being returned. Adjustments are commonly used to apply cash rounding when the minimum unit of the account is smaller than the lowest physical denomination of the currency. |
rounding_adjustment (anyOf 2) | null | Alternative | |
source_order_id | JSON | Optional | |
source_order_id (anyOf 1) | string | Alternative | An order that contains the original sale of these return line items. This is unset for unlinked returns. |
source_order_id (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the return only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Order — request body — body order net amounts, Create Order — request body — body order returns item return discounts array item, Create Order — request body — body order returns item return line items A collection of line items that are being returned item, Create Order — request body — body order returns item return service charges array item, Create Order — request body — body order returns item return taxes array item, Create Order — request body — body order returns item return tips array item, Create Order — request body — body order rounding adjustment
Create Order — request body — body order returns item return discounts array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a discount being returned that applies to one or more return line items in an order. Fixed-amount, order-scoped discounts are distributed across all non-zero return line item totals. The amount distributed to each return line item is relative to that item’s contribution to the order subtotal. |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The total declared monetary amount of the discount. `amount_money` is not set for percentage-based discounts. |
amount_money (anyOf 2) | null | Alternative | |
applied_money | Model | Optional | Expand Create Payment — request body — body tip money The amount of discount actually applied to this line item. When an amount-based discount is at the order level, this value is different from `amount_money` because the discount is distributed across the line items. Read only: true |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing [CatalogDiscount](entity:CatalogDiscount). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this discount references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The discount's name. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The percentage of the tax, as a string representation of a decimal number. A value of `"7.25"` corresponds to a percentage of 7.25%. `percentage` is not set for amount-based discounts. Maximum length: 10 |
percentage (anyOf 2) | null | Alternative | |
scope | JSON | Optional | |
scope (anyOf 1) | string | Alternative | Indicates whether this is a line-item or order-level discount. Indicates the level at which the `OrderReturnDiscount` applies. For `ORDER` scoped discounts, the server generates references in `applied_discounts` on all `OrderReturnLineItem`s. For `LINE_ITEM` scoped discounts, the discount is only applied to `OrderReturnLineItem`s with references in their `applied_discounts` field. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values One of: OTHER_DISCOUNT_SCOPE, LINE_ITEM, ORDER |
scope (anyOf 2) | null | Alternative | |
source_discount_uid | JSON | Optional | |
source_discount_uid (anyOf 1) | string | Alternative | The discount `uid` from the order that contains the original application of this discount. Maximum length: 60 |
source_discount_uid (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Indicates how the discount is applied to the associated line item or order. The type of the discount. If it is created by the API, it is `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. Discounts that do not reference a catalog object ID must have a type of `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values One of: UNKNOWN_DISCOUNT, FIXED_PERCENTAGE, FIXED_AMOUNT, VARIABLE_PERCENTAGE, VARIABLE_AMOUNT |
type (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the returned discount only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order returns item return line items A collection of line items that are being returned item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The line item being returned in an order. |
applied_discounts | JSON | Optional | |
applied_discounts (anyOf 1) | array | Alternative | The list of references to `OrderReturnDiscount` entities applied to the return line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderReturnDiscount` applied to the return line item. On reads, the applied amount is populated. |
applied_discounts (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item applied discounts array item |
applied_discounts (anyOf 2) | null | Alternative | |
applied_service_charges | JSON | Optional | |
applied_service_charges (anyOf 1) | array | Alternative | The list of references to `OrderReturnServiceCharge` entities applied to the return line item. Each `OrderLineItemAppliedServiceCharge` has a `service_charge_uid` that references the `uid` of a top-level `OrderReturnServiceCharge` applied to the return line item. On reads, the applied amount is populated. |
applied_service_charges (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item applied service charges array item |
applied_service_charges (anyOf 2) | null | Alternative | |
applied_taxes | JSON | Optional | |
applied_taxes (anyOf 1) | array | Alternative | The list of references to `OrderReturnTax` entities applied to the return line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderReturnTax` applied to the return line item. On reads, the applied amount is populated. |
applied_taxes (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item applied taxes array item |
applied_taxes (anyOf 2) | null | Alternative | |
base_price_money | JSON | Optional | |
base_price_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The base price for a single unit of the line item. |
base_price_money (anyOf 2) | null | Alternative | |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The [CatalogItemVariation](entity:CatalogItemVariation) ID applied to this return line item. Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this line item references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
gross_return_money | Model | Optional | Expand Create Payment — request body — body tip money The gross return amount of money calculated as (item base price + modifiers price) * quantity. Read only: true |
item_type | JSON | Optional | |
item_type (anyOf 1) | string | Alternative | Represents the line item type. The type of line item: an itemized return, a non-itemized return (custom amount), or the return of an unactivated gift card sale. See [OrderLineItemItemType](#type-orderlineitemitemtype) for possible values One of: ITEM, CUSTOM_AMOUNT, GIFT_CARD |
item_type (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the line item. Maximum length: 512 |
name (anyOf 2) | null | Alternative | |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | The note of the return line item. Maximum length: 2000 |
note (anyOf 2) | null | Alternative | |
quantity | string | Required within parent | The quantity returned, formatted as a decimal number. For example, `"3"`. Line items with a `quantity_unit` can have non-integer quantities. For example, `"1.70000"`. Maximum length: 12 Minimum length: 1 |
quantity_unit | JSON | Optional | |
quantity_unit (anyOf 1) | Model | Alternative | Expand Create Order — request body — body order line items The line items included in the order item quantity unit catalog object id, catalog version, measurement unit, precision The unit and precision that this return line item's quantity is measured in. |
quantity_unit (anyOf 2) | null | Alternative | |
return_modifiers | JSON | Optional | |
return_modifiers (anyOf 1) | array | Alternative | The [CatalogModifier](entity:CatalogModifier)s applied to this line item. |
return_modifiers (anyOf 1)[] | Model | Each item | Expand Create Order — request body — body order returns item return line items A collection of line items that are being returned item return modifiers array item |
return_modifiers (anyOf 2) | null | Alternative | |
source_line_item_uid | JSON | Optional | |
source_line_item_uid (anyOf 1) | string | Alternative | The `uid` of the line item in the original sale order. Maximum length: 60 |
source_line_item_uid (anyOf 2) | null | Alternative | |
total_discount_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of discount money to return for the line item. Read only: true |
total_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of money to return for this line item. Read only: true |
total_service_charge_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of apportioned service charge money to return for the line item. Read only: true |
total_tax_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of tax money to return for the line item. Read only: true |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID for this return line-item entry. Maximum length: 60 |
uid (anyOf 2) | null | Alternative | |
variation_name | JSON | Optional | |
variation_name (anyOf 1) | string | Alternative | The name of the variation applied to this return line item. Maximum length: 400 |
variation_name (anyOf 2) | null | Alternative | |
variation_total_price_money | Model | Optional | Expand Create Payment — request body — body tip money The total price of all item variations returned in this line item. The price is calculated as `base_price_money` multiplied by `quantity` and does not include modifiers. Read only: true |
Referenced models: Create Payment — request body — body tip money, Create Order — request body — body order line items The line items included in the order item applied discounts array item, Create Order — request body — body order line items The line items included in the order item applied service charges array item, Create Order — request body — body order line items The line items included in the order item applied taxes array item, Create Order — request body — body order line items The line items included in the order item quantity unit catalog object id, catalog version, measurement unit, precision, Create Order — request body — body order returns item return line items A collection of line items that are being returned item return modifiers array item
Create Order — request body — body order returns item return line items A collection of line items that are being returned item return modifiers array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A line item modifier being returned. |
base_price_money | JSON | Optional | |
base_price_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The base price for the modifier. `base_price_money` is required for ad hoc modifiers. If both `catalog_object_id` and `base_price_money` are set, `base_price_money` overrides the predefined [CatalogModifier](entity:CatalogModifier) price. |
base_price_money (anyOf 2) | null | Alternative | |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing [CatalogModifier](entity:CatalogModifier). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this line item modifier references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the item modifier. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
quantity | JSON | Optional | |
quantity (anyOf 1) | string | Alternative | The quantity of the line item modifier. The modifier quantity can be 0 or more. For example, suppose a restaurant offers a cheeseburger on the menu. When a buyer orders this item, the restaurant records the purchase by creating an `Order` object with a line item for a burger. The line item includes a line item modifier: the name is cheese and the quantity is 1. The buyer has the option to order extra cheese (or no cheese). If the buyer chooses the extra cheese option, the modifier quantity increases to 2. If the buyer does not want any cheese, the modifier quantity is set to 0. |
quantity (anyOf 2) | null | Alternative | |
source_modifier_uid | JSON | Optional | |
source_modifier_uid (anyOf 1) | string | Alternative | The modifier `uid` from the order's line item that contains the original sale of this line item modifier. Maximum length: 60 |
source_modifier_uid (anyOf 2) | null | Alternative | |
total_price_money | Model | Optional | Expand Create Payment — request body — body tip money The total price of the item modifier for its line item. This is the modifier's `base_price_money` multiplied by the line item's quantity. Read only: true |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the return modifier only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money