Skip to content

Square: Orders schemas (part 1)

28 Square schemas with complete fields and constraints.

← Orders operations · All schemas

Batch Retrieve Orders — request body — body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in requests to the
`BatchRetrieveOrders` endpoint.
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe 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)nullAlternative
order_idsarrayRequired within parentThe IDs of the orders to retrieve. A maximum of 100 orders can be retrieved per request.
order_ids[]stringEach item

Batch Retrieve Orders — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in the response body of
a request to the `BatchRetrieveOrders` endpoint.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
ordersarrayOptionalThe requested orders. This will omit any requested orders that do not exist.
orders[]ModelEach itemExpand Pay Order — response body — order

Referenced models: Get Shift — response body — errors item, Pay Order — response body — order

Calculate Order — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
orderModelRequired within parentExpand Create Order — request body — body order
The order to be calculated. Expects the entire order, not a sparse update.
proposed_rewardsJSONOptional
proposed_rewards (anyOf 1)arrayAlternativeIdentifies 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)[]ModelEach itemExpand Pay Order — response body — order rewards item
proposed_rewards (anyOf 2)nullAlternative

Referenced models: Create Order — request body — body order, Pay Order — response body — order rewards item

Calculate Order — response body

FieldTypePresenceDescription and constraints
$objectRoot
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
orderModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in requests to the
[CloneOrder](api-endpoint:Orders-CloneOrder) endpoint.
idempotency_keyJSONOptional
idempotency_key (anyOf 1)stringAlternativeA 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)nullAlternative
order_idstringRequired within parentThe ID of the order to clone.
versionintegerOptionalAn 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

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in the response body of
a request to the [CloneOrder](api-endpoint:Orders-CloneOrder) endpoint.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
orderModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRoot
idempotency_keystringOptionalA 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
orderModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRootContains 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_atstringOptionalThe 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_atstringOptionalThe 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_idJSONOptional
customer_id (anyOf 1)stringAlternativeThe 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)nullAlternative
discountsJSONOptional
discounts (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand Create Order — request body — body order discounts array item
discounts (anyOf 2)nullAlternative
fulfillmentsJSONOptional
fulfillments (anyOf 1)arrayAlternativeDetails 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)[]ModelEach itemExpand Create Order — request body — body order fulfillments Details about order fulfillment item
fulfillments (anyOf 2)nullAlternative
idstringOptionalThe order's unique ID.
Read only: true
line_itemsJSONOptional
line_items (anyOf 1)arrayAlternativeThe line items included in the order.
line_items (anyOf 1)[]ModelEach itemExpand Create Order — request body — body order line items The line items included in the order item
line_items (anyOf 2)nullAlternative
location_idstringRequired within parentThe ID of the seller location that this order is associated with.
Minimum length: 1
metadataJSONOptional
metadata (anyOf 1)objectAlternativeApplication-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).*stringAdditional keys
metadata (anyOf 2)nullAlternative
net_amount_due_moneyModelOptionalExpand Create Payment — request body — body tip money
The net amount of money due on the order.
Read only: true
net_amountsModelOptionalExpand Create Order — request body — body order net amounts
The net money amounts (sale money - return money).
Read only: true
pricing_optionsJSONOptional
pricing_options (anyOf 1)ModelAlternativeExpand 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)nullAlternative
reference_idJSONOptional
reference_id (anyOf 1)stringAlternativeA client-specified ID to associate an entity in another system
with this order.
Maximum length: 40
reference_id (anyOf 2)nullAlternative
refundsarrayOptionalThe refunds that are part of this order.
Read only: true
refunds[]ModelEach itemExpand Create Order — request body — body order refunds item
return_amountsModelOptionalExpand Create Order — request body — body order net amounts
The rollup of the returned money amounts.
Read only: true
returnsarrayOptionalA 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[]ModelEach itemExpand Create Order — request body — body order returns item
rewardsarrayOptionalA set-like list of Rewards that have been added to the Order.
Read only: true
rewards[]ModelEach itemExpand Pay Order — response body — order rewards item
rounding_adjustmentModelOptionalExpand 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_chargesJSONOptional
service_charges (anyOf 1)arrayAlternativeA list of service charges applied to the order.
service_charges (anyOf 1)[]ModelEach itemExpand Create Order — request body — body order service charges A list of service charges applied to the order item
service_charges (anyOf 2)nullAlternative
sourceJSONOptional
source (anyOf 1)ModelAlternativeExpand 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)nullAlternative
stateJSONOptional
state (anyOf 1)stringAlternativeThe 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)nullAlternative
taxesJSONOptional
taxes (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand Create Order — request body — body order taxes The list of all taxes associated with the order item
taxes (anyOf 2)nullAlternative
tendersarrayOptionalThe tenders that were used to pay for the order.
Read only: true
tenders[]ModelEach itemExpand Create Order — request body — body order tenders item
ticket_nameJSONOptional
ticket_name (anyOf 1)stringAlternativeA 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)nullAlternative
total_discount_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of discount money to collect for the order.
Read only: true
total_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of money to collect for the order.
Read only: true
total_service_charge_moneyModelOptionalExpand 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_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of tax money to collect for the order.
Read only: true
total_tip_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of tip money to collect for the order.
Read only: true
updated_atstringOptionalThe 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
versionintegerOptionalThe 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

FieldTypePresenceDescription and constraints
$objectRootRepresents 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_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
applied_moneyJSONOptional
applied_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe catalog object ID referencing [CatalogDiscount](entity:CatalogDiscount).
Maximum length: 192
catalog_object_id (anyOf 2)nullAlternative
catalog_versionJSONOptional
catalog_version (anyOf 1)JSONAlternative
catalog_version (anyOf 1) (anyOf 1)integerAlternativeThe version of the catalog object that this discount references.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
catalog_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)nullAlternative
metadataJSONOptional
metadata (anyOf 1)objectAlternativeApplication-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).*stringAdditional keys
metadata (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe discount's name.
Maximum length: 255
name (anyOf 2)nullAlternative
percentageJSONOptional
percentage (anyOf 1)stringAlternativeThe 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)nullAlternative
pricing_rule_idstringOptionalThe 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_idsarrayOptionalThe 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[]stringEach item
scopeJSONOptional
scope (anyOf 1)stringAlternativeIndicates 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)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeIndicates 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)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the discount only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

Referenced models: Create Payment — request body — body tip money

Create Order — request body — body order fulfillments Details about order fulfillment item

FieldTypePresenceDescription and constraints
$objectRootContains 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_detailsJSONOptional
delivery_details (anyOf 1)ModelAlternativeExpand 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)nullAlternative
entriesarrayOptionalA 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[]ModelEach itemExpand Pay Order — response body — order fulfillments Details about order fulfillment item entries item
in_store_detailsJSONOptional
in_store_details (anyOf 1)ModelAlternativeExpand 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)nullAlternative
line_item_applicationstringOptionalThe `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
metadataJSONOptional
metadata (anyOf 1)objectAlternativeApplication-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).*stringAdditional keys
metadata (anyOf 2)nullAlternative
pickup_detailsJSONOptional
pickup_details (anyOf 1)ModelAlternativeExpand 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)nullAlternative
shipment_detailsJSONOptional
shipment_details (anyOf 1)ModelAlternativeExpand 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)nullAlternative
stateJSONOptional
state (anyOf 1)stringAlternativeThe 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)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe 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)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the fulfillment only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootDescribes delivery details of an order fulfillment.
cancel_reasonJSONOptional
cancel_reason (anyOf 1)stringAlternativeThe delivery cancellation reason. Max length: 100 characters.
Maximum length: 100
cancel_reason (anyOf 2)nullAlternative
canceled_atstringOptionalThe [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_atJSONOptional
completed_at (anyOf 1)stringAlternativeThe [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)nullAlternative
courier_pickup_atJSONOptional
courier_pickup_at (anyOf 1)stringAlternativeThe [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)nullAlternative
courier_pickup_window_durationJSONOptional
courier_pickup_window_duration (anyOf 1)stringAlternativeThe [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)nullAlternative
courier_provider_nameJSONOptional
courier_provider_name (anyOf 1)stringAlternativeThe name of the courier provider.
Maximum length: 255
courier_provider_name (anyOf 2)nullAlternative
courier_support_phone_numberJSONOptional
courier_support_phone_number (anyOf 1)stringAlternativeThe support phone number of the courier.
Maximum length: 17
courier_support_phone_number (anyOf 2)nullAlternative
deliver_atJSONOptional
deliver_at (anyOf 1)stringAlternativeThe [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)nullAlternative
delivered_atstringOptionalThe [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_durationJSONOptional
delivery_window_duration (anyOf 1)stringAlternativeThe [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)nullAlternative
dropoff_notesJSONOptional
dropoff_notes (anyOf 1)stringAlternativeA note to provide additional instructions about how to deliver the order.
Maximum length: 550
dropoff_notes (anyOf 2)nullAlternative
external_delivery_idJSONOptional
external_delivery_id (anyOf 1)stringAlternativeThe identifier for the delivery created by the third-party courier service.
Maximum length: 50
external_delivery_id (anyOf 2)nullAlternative
in_progress_atstringOptionalThe [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_deliveryJSONOptional
is_no_contact_delivery (anyOf 1)booleanAlternativeWhether the delivery is preferred to be no contact.
is_no_contact_delivery (anyOf 2)nullAlternative
managed_deliveryJSONOptional
managed_delivery (anyOf 1)booleanAlternativeThe 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)nullAlternative
noteJSONOptional
note (anyOf 1)stringAlternativeProvides 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)nullAlternative
placed_atstringOptionalThe [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_durationJSONOptional
prep_time_duration (anyOf 1)stringAlternativeThe [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)nullAlternative
ready_atstringOptionalThe [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
recipientJSONOptional
recipient (anyOf 1)ModelAlternativeExpand 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)nullAlternative
rejected_atstringOptionalThe [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_typeJSONOptional
schedule_type (anyOf 1)stringAlternativeThe 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)nullAlternative
square_delivery_idJSONOptional
square_delivery_id (anyOf 1)stringAlternativeThe identifier for the delivery created by Square.
Maximum length: 50
square_delivery_id (anyOf 2)nullAlternative

Referenced models: 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 delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient

FieldTypePresenceDescription and constraints
$objectRootInformation about the fulfillment recipient.
addressJSONOptional
address (anyOf 1)ModelAlternativeExpand 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)nullAlternative
customer_idJSONOptional
customer_id (anyOf 1)stringAlternativeThe 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)nullAlternative
display_nameJSONOptional
display_name (anyOf 1)stringAlternativeThe 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)nullAlternative
email_addressJSONOptional
email_address (anyOf 1)stringAlternativeThe 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)nullAlternative
phone_numberJSONOptional
phone_number (anyOf 1)stringAlternativeThe 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)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootContains the details necessary to fulfill an in-store order.
canceled_atstringOptionalThe [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_atstringOptionalThe [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_atstringOptionalThe [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
noteJSONOptional
note (anyOf 1)stringAlternativeA 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)nullAlternative
placed_atJSONOptional
placed_at (anyOf 1)stringAlternativeThe [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)nullAlternative
prepared_atstringOptionalThe [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
recipientJSONOptional
recipient (anyOf 1)ModelAlternativeExpand 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)nullAlternative

Referenced models: 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 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

FieldTypePresenceDescription and constraints
$objectRootContains details necessary to fulfill a pickup order.
accepted_atstringOptionalThe [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_durationJSONOptional
auto_complete_duration (anyOf 1)stringAlternativeThe [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)nullAlternative
cancel_reasonJSONOptional
cancel_reason (anyOf 1)stringAlternativeA description of why the pickup was canceled. The maximum length: 100 characters.
Maximum length: 100
cancel_reason (anyOf 2)nullAlternative
canceled_atstringOptionalThe [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_detailsJSONOptional
curbside_pickup_details (anyOf 1)ModelAlternativeExpand 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)nullAlternative
expired_atstringOptionalThe [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_atJSONOptional
expires_at (anyOf 1)stringAlternativeThe [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)nullAlternative
is_curbside_pickupJSONOptional
is_curbside_pickup (anyOf 1)booleanAlternativeIf set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup.
is_curbside_pickup (anyOf 2)nullAlternative
noteJSONOptional
note (anyOf 1)stringAlternativeA 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)nullAlternative
picked_up_atstringOptionalThe [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_atJSONOptional
pickup_at (anyOf 1)stringAlternativeThe [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)nullAlternative
pickup_window_durationJSONOptional
pickup_window_duration (anyOf 1)stringAlternativeThe [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)nullAlternative
placed_atstringOptionalThe [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_durationJSONOptional
prep_time_duration (anyOf 1)stringAlternativeThe [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)nullAlternative
ready_atstringOptionalThe [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
recipientJSONOptional
recipient (anyOf 1)ModelAlternativeExpand 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)nullAlternative
rejected_atstringOptionalThe [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_typeJSONOptional
schedule_type (anyOf 1)stringAlternativeThe 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)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootContains the details necessary to fulfill a shipment order.
cancel_reasonJSONOptional
cancel_reason (anyOf 1)stringAlternativeA description of why the shipment was canceled.
Maximum length: 100
cancel_reason (anyOf 2)nullAlternative
canceled_atJSONOptional
canceled_at (anyOf 1)stringAlternativeThe [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)nullAlternative
carrierJSONOptional
carrier (anyOf 1)stringAlternativeThe shipping carrier being used to ship this fulfillment (such as UPS, FedEx, or USPS).
Maximum length: 50
carrier (anyOf 2)nullAlternative
expected_shipped_atJSONOptional
expected_shipped_at (anyOf 1)stringAlternativeThe [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)nullAlternative
failed_atstringOptionalThe [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_reasonJSONOptional
failure_reason (anyOf 1)stringAlternativeA description of why the shipment failed to be completed.
Maximum length: 100
failure_reason (anyOf 2)nullAlternative
in_progress_atstringOptionalThe [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_atstringOptionalThe [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_atstringOptionalThe [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
recipientJSONOptional
recipient (anyOf 1)ModelAlternativeExpand 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)nullAlternative
shipped_atstringOptionalThe [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_noteJSONOptional
shipping_note (anyOf 1)stringAlternativeA note with additional information for the shipping carrier.
Maximum length: 500
shipping_note (anyOf 2)nullAlternative
shipping_typeJSONOptional
shipping_type (anyOf 1)stringAlternativeA 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)nullAlternative
tracking_numberJSONOptional
tracking_number (anyOf 1)stringAlternativeThe reference number provided by the carrier to track the shipment's progress.
Maximum length: 100
tracking_number (anyOf 2)nullAlternative
tracking_urlJSONOptional
tracking_url (anyOf 1)stringAlternativeA link to the tracking webpage on the carrier's website.
Maximum length: 2000
tracking_url (anyOf 2)nullAlternative

Referenced models: 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 line items The line items included in the order item

FieldTypePresenceDescription and constraints
$objectRootRepresents a line item in an order. Each line item describes a different
product to purchase, with its own quantity and price details.
applied_discountsJSONOptional
applied_discounts (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand Create Order — request body — body order line items The line items included in the order item applied discounts array item
applied_discounts (anyOf 2)nullAlternative
applied_service_chargesJSONOptional
applied_service_charges (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand 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)nullAlternative
applied_taxesJSONOptional
applied_taxes (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand Create Order — request body — body order line items The line items included in the order item applied taxes array item
applied_taxes (anyOf 2)nullAlternative
base_price_moneyJSONOptional
base_price_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe [CatalogItemVariation](entity:CatalogItemVariation) ID applied to this line item.
Maximum length: 192
catalog_object_id (anyOf 2)nullAlternative
catalog_versionJSONOptional
catalog_version (anyOf 1)JSONAlternative
catalog_version (anyOf 1) (anyOf 1)integerAlternativeThe version of the catalog object that this line item references.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
catalog_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)nullAlternative
gross_sales_moneyModelOptionalExpand 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_typeJSONOptional
item_type (anyOf 1)stringAlternativeRepresents 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)nullAlternative
metadataJSONOptional
metadata (anyOf 1)objectAlternativeApplication-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).*stringAdditional keys
metadata (anyOf 2)nullAlternative
modifiersJSONOptional
modifiers (anyOf 1)arrayAlternativeThe [CatalogModifier](entity:CatalogModifier)s applied to this line item.
modifiers (anyOf 1)[]ModelEach itemExpand Create Order — request body — body order line items The line items included in the order item modifiers array item
modifiers (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the line item.
Maximum length: 512
name (anyOf 2)nullAlternative
noteJSONOptional
note (anyOf 1)stringAlternativeAn optional note associated with the line item.
Maximum length: 2000
note (anyOf 2)nullAlternative
pricing_blocklistsJSONOptional
pricing_blocklists (anyOf 1)ModelAlternativeExpand 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)nullAlternative
quantitystringRequired within parentThe 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_unitJSONOptional
quantity_unit (anyOf 1)ModelAlternativeExpand 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)nullAlternative
total_discount_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of discount money to collect for the line item.
Read only: true
total_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of money to collect for this line item.
Read only: true
total_service_charge_moneyModelOptionalExpand 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_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of tax money to collect for the line item.
Read only: true
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the line item only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative
variation_nameJSONOptional
variation_name (anyOf 1)stringAlternativeThe name of the variation applied to this line item.
Maximum length: 400
variation_name (anyOf 2)nullAlternative
variation_total_price_moneyModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRootRepresents 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_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of money applied by the discount to the line item.
Read only: true
discount_uidstringRequired within parentThe `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
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the applied discount only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRoot
applied_moneyModelOptionalExpand 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_uidstringRequired within parentThe `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
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the applied service charge only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootRepresents 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_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of money applied by the tax to the line item.
Read only: true
auto_appliedbooleanOptionalIndicates 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_uidstringRequired within parentThe `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
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the applied tax only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootA [CatalogModifier](entity:CatalogModifier).
base_price_moneyJSONOptional
base_price_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe catalog object ID referencing [CatalogModifier](entity:CatalogModifier).
Maximum length: 192
catalog_object_id (anyOf 2)nullAlternative
catalog_versionJSONOptional
catalog_version (anyOf 1)JSONAlternative
catalog_version (anyOf 1) (anyOf 1)integerAlternativeThe version of the catalog object that this modifier references.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
catalog_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)nullAlternative
metadataJSONOptional
metadata (anyOf 1)objectAlternativeApplication-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).*stringAdditional keys
metadata (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the item modifier.
Maximum length: 255
name (anyOf 2)nullAlternative
parent_modifier_uidJSONOptional
parent_modifier_uid (anyOf 1)stringAlternativeThe `uid` of the parent modifier, if this modifier is nested under another modifier.
Maximum length: 60
parent_modifier_uid (anyOf 2)nullAlternative
quantityJSONOptional
quantity (anyOf 1)stringAlternativeThe 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)nullAlternative
total_price_moneyModelOptionalExpand 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
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the modifier only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootContains the measurement unit for a quantity and a precision that
specifies the number of digits after the decimal point for decimal quantities.
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe 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)nullAlternative
catalog_versionJSONOptional
catalog_version (anyOf 1)JSONAlternative
catalog_version (anyOf 1) (anyOf 1)integerAlternativeThe 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)stringAlternativePattern: ^(?:-(?: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)nullAlternative
measurement_unitJSONOptional
measurement_unit (anyOf 1)ModelAlternativeExpand 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)nullAlternative
precisionJSONOptional
precision (anyOf 1)integerAlternativeFor 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)nullAlternative

Referenced models: 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

Create Order — request body — body order net amounts

FieldTypePresenceDescription and constraints
$objectRootA collection of various money amounts.
discount_moneyJSONOptional
discount_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The money associated with discounts.
discount_money (anyOf 2)nullAlternative
service_charge_moneyJSONOptional
service_charge_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The money associated with service charges.
service_charge_money (anyOf 2)nullAlternative
tax_moneyJSONOptional
tax_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The money associated with taxes.
tax_money (anyOf 2)nullAlternative
tip_moneyJSONOptional
tip_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The money associated with tips.
tip_money (anyOf 2)nullAlternative
total_moneyJSONOptional
total_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The total money.
total_money (anyOf 2)nullAlternative

Referenced models: Create Payment — request body — body tip money

Create Order — request body — body order refunds item

FieldTypePresenceDescription and constraints
$objectRootRepresents a refund processed for a Square transaction.
additional_recipientsJSONOptional
additional_recipients (anyOf 1)arrayAlternativeAdditional 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)[]ModelEach itemExpand Create Order — request body — body order refunds item additional recipients array item
additional_recipients (anyOf 2)nullAlternative
amount_moneyModelRequired within parentExpand Create Payment — request body — body tip money
The amount of money refunded to the buyer.
created_atstringOptionalThe timestamp for when the refund was created, in RFC 3339 format.
Maximum length: 32
Read only: true
idstringRequired within parentThe refund's unique ID.
Maximum length: 255
location_idstringRequired within parentThe ID of the refund's associated location.
Maximum length: 50
processing_fee_moneyJSONOptional
processing_fee_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount of Square processing fee money refunded to the *merchant*.
processing_fee_money (anyOf 2)nullAlternative
reasonstringRequired within parentThe reason for the refund being issued.
Maximum length: 192
statusstringRequired within parentIndicates 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_idJSONOptional
tender_id (anyOf 1)stringAlternativeThe ID of the refunded tender.
Maximum length: 192
tender_id (anyOf 2)nullAlternative
transaction_idJSONOptional
transaction_id (anyOf 1)stringAlternativeThe ID of the transaction that the refunded tender is part of.
Maximum length: 192
transaction_id (anyOf 2)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootRepresents an additional recipient (other than the merchant) receiving a portion of this tender.
amount_moneyModelRequired within parentExpand Create Payment — request body — body tip money
The amount of money distributed to the recipient.
descriptionJSONOptional
description (anyOf 1)stringAlternativeThe description of the additional recipient.
Maximum length: 100
description (anyOf 2)nullAlternative
location_idstringRequired within parentThe location ID for a recipient (other than the merchant) receiving a portion of this tender.
Maximum length: 50
Minimum length: 1
receivable_idJSONOptional
receivable_id (anyOf 1)stringAlternativeThe 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)nullAlternative

Referenced models: Create Payment — request body — body tip money

Create Order — request body — body order returns item

FieldTypePresenceDescription and constraints
$objectRootThe set of line items, service charges, taxes, discounts, tips, and other items being returned in an order.
return_amountsJSONOptional
return_amounts (anyOf 1)ModelAlternativeExpand Create Order — request body — body order net amounts
An aggregate monetary value being returned by this return entry.
return_amounts (anyOf 2)nullAlternative
return_discountsJSONOptional
return_discounts (anyOf 1)arrayAlternativeA 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)[]ModelEach itemExpand Create Order — request body — body order returns item return discounts array item
return_discounts (anyOf 2)nullAlternative
return_line_itemsJSONOptional
return_line_items (anyOf 1)arrayAlternativeA collection of line items that are being returned.
return_line_items (anyOf 1)[]ModelEach itemExpand 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)nullAlternative
return_service_chargesJSONOptional
return_service_charges (anyOf 1)arrayAlternativeA collection of service charges that are being returned.
return_service_charges (anyOf 1)[]ModelEach itemExpand Create Order — request body — body order returns item return service charges array item
return_service_charges (anyOf 2)nullAlternative
return_taxesJSONOptional
return_taxes (anyOf 1)arrayAlternativeA 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)[]ModelEach itemExpand Create Order — request body — body order returns item return taxes array item
return_taxes (anyOf 2)nullAlternative
return_tipsJSONOptional
return_tips (anyOf 1)arrayAlternativeA collection of references to tips being returned for an order.
return_tips (anyOf 1)[]ModelEach itemExpand Create Order — request body — body order returns item return tips array item
return_tips (anyOf 2)nullAlternative
rounding_adjustmentJSONOptional
rounding_adjustment (anyOf 1)ModelAlternativeExpand 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)nullAlternative
source_order_idJSONOptional
source_order_id (anyOf 1)stringAlternativeAn order that contains the original sale of these return line items. This is unset
for unlinked returns.
source_order_id (anyOf 2)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the return only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootRepresents 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_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
applied_moneyModelOptionalExpand 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_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe catalog object ID referencing [CatalogDiscount](entity:CatalogDiscount).
Maximum length: 192
catalog_object_id (anyOf 2)nullAlternative
catalog_versionJSONOptional
catalog_version (anyOf 1)JSONAlternative
catalog_version (anyOf 1) (anyOf 1)integerAlternativeThe version of the catalog object that this discount references.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
catalog_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe discount's name.
Maximum length: 255
name (anyOf 2)nullAlternative
percentageJSONOptional
percentage (anyOf 1)stringAlternativeThe 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)nullAlternative
scopeJSONOptional
scope (anyOf 1)stringAlternativeIndicates 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)nullAlternative
source_discount_uidJSONOptional
source_discount_uid (anyOf 1)stringAlternativeThe discount `uid` from the order that contains the original application of this discount.
Maximum length: 60
source_discount_uid (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeIndicates 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)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the returned discount only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootThe line item being returned in an order.
applied_discountsJSONOptional
applied_discounts (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand Create Order — request body — body order line items The line items included in the order item applied discounts array item
applied_discounts (anyOf 2)nullAlternative
applied_service_chargesJSONOptional
applied_service_charges (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand 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)nullAlternative
applied_taxesJSONOptional
applied_taxes (anyOf 1)arrayAlternativeThe 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)[]ModelEach itemExpand Create Order — request body — body order line items The line items included in the order item applied taxes array item
applied_taxes (anyOf 2)nullAlternative
base_price_moneyJSONOptional
base_price_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The base price for a single unit of the line item.
base_price_money (anyOf 2)nullAlternative
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe [CatalogItemVariation](entity:CatalogItemVariation) ID applied to this return line item.
Maximum length: 192
catalog_object_id (anyOf 2)nullAlternative
catalog_versionJSONOptional
catalog_version (anyOf 1)JSONAlternative
catalog_version (anyOf 1) (anyOf 1)integerAlternativeThe version of the catalog object that this line item references.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
catalog_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)nullAlternative
gross_return_moneyModelOptionalExpand 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_typeJSONOptional
item_type (anyOf 1)stringAlternativeRepresents 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)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the line item.
Maximum length: 512
name (anyOf 2)nullAlternative
noteJSONOptional
note (anyOf 1)stringAlternativeThe note of the return line item.
Maximum length: 2000
note (anyOf 2)nullAlternative
quantitystringRequired within parentThe 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_unitJSONOptional
quantity_unit (anyOf 1)ModelAlternativeExpand 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)nullAlternative
return_modifiersJSONOptional
return_modifiers (anyOf 1)arrayAlternativeThe [CatalogModifier](entity:CatalogModifier)s applied to this line item.
return_modifiers (anyOf 1)[]ModelEach itemExpand 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)nullAlternative
source_line_item_uidJSONOptional
source_line_item_uid (anyOf 1)stringAlternativeThe `uid` of the line item in the original sale order.
Maximum length: 60
source_line_item_uid (anyOf 2)nullAlternative
total_discount_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of discount money to return for the line item.
Read only: true
total_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of money to return for this line item.
Read only: true
total_service_charge_moneyModelOptionalExpand 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_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of tax money to return for the line item.
Read only: true
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID for this return line-item entry.
Maximum length: 60
uid (anyOf 2)nullAlternative
variation_nameJSONOptional
variation_name (anyOf 1)stringAlternativeThe name of the variation applied to this return line item.
Maximum length: 400
variation_name (anyOf 2)nullAlternative
variation_total_price_moneyModelOptionalExpand 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

FieldTypePresenceDescription and constraints
$objectRootA line item modifier being returned.
base_price_moneyJSONOptional
base_price_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe catalog object ID referencing [CatalogModifier](entity:CatalogModifier).
Maximum length: 192
catalog_object_id (anyOf 2)nullAlternative
catalog_versionJSONOptional
catalog_version (anyOf 1)JSONAlternative
catalog_version (anyOf 1) (anyOf 1)integerAlternativeThe version of the catalog object that this line item modifier references.
Format: int64
Minimum: -9223372036854775808
Maximum: 9223372036854775807
catalog_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^(?:-(?: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)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the item modifier.
Maximum length: 255
name (anyOf 2)nullAlternative
quantityJSONOptional
quantity (anyOf 1)stringAlternativeThe 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)nullAlternative
source_modifier_uidJSONOptional
source_modifier_uid (anyOf 1)stringAlternativeThe 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)nullAlternative
total_price_moneyModelOptionalExpand 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
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the return modifier only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

Referenced models: Create Payment — request body — body tip money

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.