Skip to content

Square: Orders schemas (part 2)

33 Square schemas with complete fields and constraints.

← Orders operations · All schemas

Create Order — request body — body order returns item return service charges array item

FieldTypePresenceDescription and constraints
$objectRootRepresents the service charge applied to the original order.
amount_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount of a non-percentage-based service charge.

Either `percentage` or `amount_money` should be set, but not both.
amount_money (anyOf 2)nullAlternative
applied_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of money applied to the order by the service charge, including
any inclusive tax amounts, as calculated by Square.

- For fixed-amount service charges, `applied_money` is equal to `amount_money`.
- For percentage-based service charges, `applied_money` is the money calculated using the percentage.
Read only: true
applied_taxesJSONOptional
applied_taxes (anyOf 1)arrayAlternativeThe list of references to `OrderReturnTax` entities applied to the
`OrderReturnServiceCharge`. Each `OrderLineItemAppliedTax` has a `tax_uid`
that references the `uid` of a top-level `OrderReturnTax` that is being
applied to the `OrderReturnServiceCharge`. 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
calculation_phasestringOptionalRepresents a phase in the process of calculating order totals.
Service charges are applied after the indicated phase.

[Read more about how order totals are calculated.](https://developer.squareup.com/docs/orders-api/how-it-works#how-totals-are-calculated)
The calculation phase after which to apply the service charge.
See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values
One of: SUBTOTAL_PHASE, TOTAL_PHASE, APPORTIONED_PERCENTAGE_PHASE, APPORTIONED_AMOUNT_PHASE
Read only: true
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe catalog object ID of the associated [OrderServiceCharge](entity:OrderServiceCharge).
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 service charge 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 service charge.
Maximum length: 255
name (anyOf 2)nullAlternative
percentageJSONOptional
percentage (anyOf 1)stringAlternativeThe percentage of the service charge, as a string representation of
a decimal number. For example, a value of `"7.25"` corresponds to a
percentage of 7.25%.

Either `percentage` or `amount_money` should be set, but not both.
Maximum length: 10
percentage (anyOf 2)nullAlternative
scopeJSONOptional
scope (anyOf 1)stringAlternativeIndicates whether this is a line-item or order-level apportioned
service charge.
Indicates the level at which the apportioned service charge applies. For `ORDER`
scoped service charges, Square generates references in `applied_service_charges` on
all order line items that do not have them. For `LINE_ITEM` scoped service charges,
the service charge only applies to line items with a service charge reference in their
`applied_service_charges` field.

This field is immutable. To change the scope of an apportioned service charge, you must delete
the apportioned service charge and re-add it as a new apportioned service charge.
See [OrderServiceChargeScope](#type-orderservicechargescope) for possible values
One of: OTHER_SERVICE_CHARGE_SCOPE, LINE_ITEM, ORDER
scope (anyOf 2)nullAlternative
source_service_charge_uidJSONOptional
source_service_charge_uid (anyOf 1)stringAlternativeThe service charge `uid` from the order containing the original
service charge. `source_service_charge_uid` is `null` for
unlinked returns.
Maximum length: 60
source_service_charge_uid (anyOf 2)nullAlternative
taxableJSONOptional
taxable (anyOf 1)booleanAlternativeIndicates whether the surcharge can be taxed. Service charges
calculated in the `TOTAL_PHASE` cannot be marked as taxable.
taxable (anyOf 2)nullAlternative
total_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of money to collect for the service charge.

__NOTE__: If an inclusive tax is applied to the service charge, `total_money`
does not equal `applied_money` plus `total_tax_money` because the inclusive
tax amount is already included in both `applied_money` and `total_tax_money`.
Read only: true
total_tax_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of tax money to collect for the service charge.
Read only: true
treatment_typeJSONOptional
treatment_type (anyOf 1)stringAlternativeIndicates whether the service charge will be treated as a value-holding line item or
apportioned toward a line item.
Indicates whether the service charge will be treated as a value-holding line item or apportioned toward a line item.
See [OrderServiceChargeTreatmentType](#type-orderservicechargetreatmenttype) for possible values
One of: LINE_ITEM_TREATMENT, APPORTIONED_TREATMENT
treatment_type (anyOf 2)nullAlternative
typestringOptionalThe type of the service charge.
See [OrderServiceChargeType](#type-orderservicechargetype) for possible values
One of: AUTO_GRATUITY, CUSTOM
Read only: true
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the return 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

Create Order — request body — body order returns item return taxes array item

FieldTypePresenceDescription and constraints
$objectRootRepresents a tax being returned that applies to one or more return line items in an order.

Fixed-amount, order-scoped taxes 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.
applied_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of money applied by the tax in an order.
Read only: true
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe catalog object ID referencing [CatalogTax](entity:CatalogTax).
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 tax 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 tax'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.
For example, a value of `"7.25"` corresponds to a percentage of 7.25%.
Maximum length: 10
percentage (anyOf 2)nullAlternative
scopeJSONOptional
scope (anyOf 1)stringAlternativeIndicates whether this is a line-item or order-level tax.
Indicates the level at which the `OrderReturnTax` applies. For `ORDER` scoped
taxes, Square generates references in `applied_taxes` on all
`OrderReturnLineItem`s. For `LINE_ITEM` scoped taxes, the tax is only applied to
`OrderReturnLineItem`s with references in their `applied_discounts` field.
See [OrderLineItemTaxScope](#type-orderlineitemtaxscope) for possible values
One of: OTHER_TAX_SCOPE, LINE_ITEM, ORDER
scope (anyOf 2)nullAlternative
source_tax_uidJSONOptional
source_tax_uid (anyOf 1)stringAlternativeThe tax `uid` from the order that contains the original tax charge.
Maximum length: 60
source_tax_uid (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeIndicates how the tax is applied to the associated line item or order.
Indicates the calculation method used to apply the tax.
See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values
One of: UNKNOWN_TAX, ADDITIVE, INCLUSIVE
type (anyOf 2)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the returned 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 returns item return tips array item

FieldTypePresenceDescription and constraints
$objectRootA tip being returned.
applied_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of tip being returned
--
Read only: true
source_tender_idJSONOptional
source_tender_id (anyOf 1)stringAlternativeThe tender `id` from the order that contains the original application of this tip.
Maximum length: 192
source_tender_id (anyOf 2)nullAlternative
source_tender_uidJSONOptional
source_tender_uid (anyOf 1)stringAlternativeThe tender `uid` from the order that contains the original application of this tip.
Maximum length: 192
source_tender_uid (anyOf 2)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the tip 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 rounding adjustment

FieldTypePresenceDescription and constraints
$objectRootA rounding adjustment of the money being returned. Commonly used to apply cash rounding
when the minimum unit of the account is smaller than the lowest physical denomination of the currency.
amount_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The actual rounding adjustment amount.
amount_money (anyOf 2)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the rounding adjustment from the original sale order.
name (anyOf 2)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the rounding adjustment 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 service charges A list of service charges applied to the order item

FieldTypePresenceDescription and constraints
$objectRootRepresents a service charge applied to an order.
amount_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount of a non-percentage-based service charge.

Exactly one of `percentage` or `amount_money` should be set.
amount_money (anyOf 2)nullAlternative
applied_moneyModelOptionalExpand Create Payment — request body — body tip money
The amount of money applied to the order by the service charge,
including any inclusive tax amounts, as calculated by Square.

- For fixed-amount service charges, `applied_money` is equal to `amount_money`.
- For percentage-based service charges, `applied_money` is the money
calculated using the percentage.
Read only: true
applied_taxesJSONOptional
applied_taxes (anyOf 1)arrayAlternativeThe list of references to the taxes applied to this service charge. Each
`OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level
`OrderLineItemTax` that is being applied to this service charge. On reads, the amount applied
is populated.

An `OrderLineItemAppliedTax` is automatically created on every taxable service charge
for all `ORDER` scoped taxes that are added to the order. `OrderLineItemAppliedTax` records
for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any taxable
service charge. Taxable service charges have the `taxable` field set to `true` and calculated
in the `SUBTOTAL_PHASE`.

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
calculation_phaseJSONOptional
calculation_phase (anyOf 1)stringAlternativeRepresents a phase in the process of calculating order totals.
Service charges are applied after the indicated phase.

[Read more about how order totals are calculated.](https://developer.squareup.com/docs/orders-api/how-it-works#how-totals-are-calculated)
The calculation phase at which to apply the service charge.
See [OrderServiceChargeCalculationPhase](#type-orderservicechargecalculationphase) for possible values
One of: SUBTOTAL_PHASE, TOTAL_PHASE, APPORTIONED_PERCENTAGE_PHASE, APPORTIONED_AMOUNT_PHASE
calculation_phase (anyOf 2)nullAlternative
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe catalog object ID referencing the service charge [CatalogObject](entity:CatalogObject).
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 service charge 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 service charge. 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 service charge. This is unused and null for AUTO_GRATUITY to match the behavior on Bills.
Maximum length: 512
name (anyOf 2)nullAlternative
percentageJSONOptional
percentage (anyOf 1)stringAlternativeThe service charge percentage as a string representation of a
decimal number. For example, `"7.25"` indicates a service charge of 7.25%.

Exactly 1 of `percentage` or `amount_money` should be set.
Maximum length: 10
percentage (anyOf 2)nullAlternative
scopeJSONOptional
scope (anyOf 1)stringAlternativeIndicates whether this is a line-item or order-level apportioned
service charge.
Indicates the level at which the apportioned service charge applies. For `ORDER`
scoped service charges, Square generates references in `applied_service_charges` on
all order line items that do not have them. For `LINE_ITEM` scoped service charges,
the service charge only applies to line items with a service charge reference in their
`applied_service_charges` field.

This field is immutable. To change the scope of an apportioned service charge, you must delete
the apportioned service charge and re-add it as a new apportioned service charge.
See [OrderServiceChargeScope](#type-orderservicechargescope) for possible values
One of: OTHER_SERVICE_CHARGE_SCOPE, LINE_ITEM, ORDER
scope (anyOf 2)nullAlternative
taxableJSONOptional
taxable (anyOf 1)booleanAlternativeIndicates whether the service charge can be taxed. If set to `true`,
order-level taxes automatically apply to the service charge. Note that
service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable.
taxable (anyOf 2)nullAlternative
total_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of money to collect for the service charge.

__Note__: If an inclusive tax is applied to the service charge,
`total_money` does not equal `applied_money` plus `total_tax_money`
because the inclusive tax amount is already included in both
`applied_money` and `total_tax_money`.
Read only: true
total_tax_moneyModelOptionalExpand Create Payment — request body — body tip money
The total amount of tax money to collect for the service charge.
Read only: true
treatment_typeJSONOptional
treatment_type (anyOf 1)stringAlternativeIndicates whether the service charge will be treated as a value-holding line item or
apportioned toward a line item.
Indicates whether the service charge will be treated as a value-holding line item or apportioned toward a line item.
See [OrderServiceChargeTreatmentType](#type-orderservicechargetreatmenttype) for possible values
One of: LINE_ITEM_TREATMENT, APPORTIONED_TREATMENT
treatment_type (anyOf 2)nullAlternative
typestringOptionalThe type of the service charge.
See [OrderServiceChargeType](#type-orderservicechargetype) for possible values
One of: AUTO_GRATUITY, CUSTOM
Read only: true
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the 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

Create Order — request body — body order taxes The list of all taxes associated with the order item

FieldTypePresenceDescription and constraints
$objectRootRepresents a tax that applies to one or more line item in the order.

Fixed-amount, order-scoped taxes are distributed across all non-zero line item totals.
The amount distributed to each line item is relative to the amount the item
contributes to the order subtotal.
applied_moneyJSONOptional
applied_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount of money applied to the order by the tax.

- For percentage-based taxes, `applied_money` is the money
calculated using the percentage.
applied_money (anyOf 2)nullAlternative
auto_appliedbooleanOptionalDetermines 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
catalog_object_idJSONOptional
catalog_object_id (anyOf 1)stringAlternativeThe catalog object ID referencing [CatalogTax](entity:CatalogTax).
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 tax 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 tax. 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 tax'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. For example, a value of `"7.25"` corresponds to a percentage of
7.25%.
Maximum length: 10
percentage (anyOf 2)nullAlternative
scopeJSONOptional
scope (anyOf 1)stringAlternativeIndicates whether this is a line-item or order-level tax.
Indicates the level at which the tax applies. For `ORDER` scoped taxes,
Square generates references in `applied_taxes` on all order line items that do
not have them. For `LINE_ITEM` scoped taxes, the tax only applies to line items
with references in their `applied_taxes` field.

This field is immutable. To change the scope, you must delete the tax and
re-add it as a new tax.
See [OrderLineItemTaxScope](#type-orderlineitemtaxscope) for possible values
One of: OTHER_TAX_SCOPE, LINE_ITEM, ORDER
scope (anyOf 2)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeIndicates how the tax is applied to the associated line item or order.
Indicates the calculation method used to apply the tax.
See [OrderLineItemTaxType](#type-orderlineitemtaxtype) for possible values
One of: UNKNOWN_TAX, ADDITIVE, INCLUSIVE
type (anyOf 2)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the 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 tenders item

FieldTypePresenceDescription and constraints
$objectRootRepresents a tender (i.e., a method of payment) used in a Square transaction.
additional_recipientsJSONOptional
additional_recipients (anyOf 1)arrayAlternativeAdditional recipients (other than the merchant) receiving a portion of this tender.
For example, fees assessed on the 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_moneyJSONOptional
amount_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The total amount of the tender, including `tip_money`. If the tender has a `payment_id`,
the `total_money` of the corresponding [Payment](entity:Payment) will be equal to the
`amount_money` of the tender.
amount_money (anyOf 2)nullAlternative
bank_account_detailsJSONOptional
bank_account_details (anyOf 1)ModelAlternativeExpand Create Order — request body — body order tenders item bank account details status
The details of the bank account tender.

This value is present only if the value of `type` is `BANK_ACCOUNT`.
bank_account_details (anyOf 2)nullAlternative
buy_now_pay_later_detailsJSONOptional
buy_now_pay_later_details (anyOf 1)ModelAlternativeExpand CreateOrder — request body — body / order / tenders / item / buy_now_pay_later_details / buy_now_pay_later_brand: OTHER BRAND, AFTERPAY
The details of a Buy Now Pay Later tender.

This value is present only if the value of `type` is `BUY_NOW_PAY_LATER`.
buy_now_pay_later_details (anyOf 2)nullAlternative
card_detailsJSONOptional
card_details (anyOf 1)ModelAlternativeExpand Create Order — request body — body order tenders item card details card, entry method, status
The details of the card tender.

This value is present only if the value of `type` is `CARD`.
card_details (anyOf 2)nullAlternative
cash_detailsJSONOptional
cash_details (anyOf 1)ModelAlternativeExpand Create Order — request body — body order tenders item cash details buyer tendered money, change back money
The details of the cash tender.

This value is present only if the value of `type` is `CASH`.
cash_details (anyOf 2)nullAlternative
created_atstringOptionalThe timestamp for when the tender was created, in RFC 3339 format.
Maximum length: 32
Read only: true
customer_idJSONOptional
customer_id (anyOf 1)stringAlternativeIf the tender is associated with a customer or represents a customer's card on file,
this is the ID of the associated customer.
Maximum length: 191
customer_id (anyOf 2)nullAlternative
idstringOptionalThe tender's unique ID. It is the associated payment ID.
Maximum length: 192
location_idJSONOptional
location_id (anyOf 1)stringAlternativeThe ID of the transaction's associated location.
Maximum length: 50
location_id (anyOf 2)nullAlternative
noteJSONOptional
note (anyOf 1)stringAlternativeAn optional note associated with the tender at the time of payment.
Maximum length: 500
note (anyOf 2)nullAlternative
payment_idJSONOptional
payment_id (anyOf 1)stringAlternativeThe ID of the [Payment](entity:Payment) that corresponds to this tender.
This value is only present for payments created with the v2 Payments API.
Maximum length: 192
payment_id (anyOf 2)nullAlternative
processing_fee_moneyJSONOptional
processing_fee_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount of any Square processing fees applied to the tender.

This field is not immediately populated when a new transaction is created.
It is usually available after about ten seconds.
processing_fee_money (anyOf 2)nullAlternative
square_account_detailsJSONOptional
square_account_details (anyOf 1)ModelAlternativeExpand Create Order — request body — body order tenders item square account details status
The details of a Square Account tender.

This value is present only if the value of `type` is `SQUARE_ACCOUNT`.
square_account_details (anyOf 2)nullAlternative
tip_moneyJSONOptional
tip_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The tip's amount of the tender.
tip_money (anyOf 2)nullAlternative
transaction_idJSONOptional
transaction_id (anyOf 1)stringAlternativeThe ID of the tender's associated transaction.
Maximum length: 192
transaction_id (anyOf 2)nullAlternative
typestringRequired within parentIndicates a tender's type.
The type of tender, such as `CARD` or `CASH`.
See [TenderType](#type-tendertype) for possible values
One of: CARD, CASH, THIRD_PARTY_CARD, SQUARE_GIFT_CARD, NO_SALE, BANK_ACCOUNT, WALLET, BUY_NOW_PAY_LATER, SQUARE_ACCOUNT, OTHER

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 tenders item bank account details status, CreateOrder — request body — body / order / tenders / item / buy_now_pay_later_details / buy_now_pay_later_brand: OTHER BRAND, AFTERPAY, Create Order — request body — body order tenders item card details card, entry method, status, Create Order — request body — body order tenders item cash details buyer tendered money, change back money, Create Order — request body — body order tenders item square account details status

Create Order — request body — body order tenders item bank account details status

FieldTypePresenceDescription and constraints
$objectRootRepresents the details of a tender with `type` `BANK_ACCOUNT`.

See [BankAccountPaymentDetails](entity:BankAccountPaymentDetails)
for more exposed details of a bank account payment.
statusJSONOptional
status (anyOf 1)stringAlternativeIndicates the bank account payment's current status.
The bank account payment's current state.

See [TenderBankAccountPaymentDetailsStatus](entity:TenderBankAccountDetailsStatus) for possible values.
See [TenderBankAccountDetailsStatus](#type-tenderbankaccountdetailsstatus) for possible values
One of: PENDING, COMPLETED, FAILED
status (anyOf 2)nullAlternative

Create Order — request body — body order tenders item card details card, entry method, status

FieldTypePresenceDescription and constraints
$objectRootRepresents additional details of a tender with `type` `CARD` or `SQUARE_GIFT_CARD`
cardJSONOptional
card (anyOf 1)ModelAlternativeExpand Create Card — request body — body card
The credit card's non-confidential details.
card (anyOf 2)nullAlternative
entry_methodJSONOptional
entry_method (anyOf 1)stringAlternativeIndicates the method used to enter the card's details.
The method used to enter the card's details for the transaction.
See [TenderCardDetailsEntryMethod](#type-tendercarddetailsentrymethod) for possible values
One of: SWIPED, KEYED, EMV, ON_FILE, CONTACTLESS
entry_method (anyOf 2)nullAlternative
statusJSONOptional
status (anyOf 1)stringAlternativeIndicates the card transaction's current status.
The credit card payment's current state (such as `AUTHORIZED` or
`CAPTURED`). See [TenderCardDetailsStatus](entity:TenderCardDetailsStatus)
for possible values.
See [TenderCardDetailsStatus](#type-tendercarddetailsstatus) for possible values
One of: AUTHORIZED, CAPTURED, VOIDED, FAILED
status (anyOf 2)nullAlternative

Referenced models: Create Card — request body — body card

Create Order — request body — body order tenders item cash details buyer tendered money, change back money

FieldTypePresenceDescription and constraints
$objectRootRepresents the details of a tender with `type` `CASH`.
buyer_tendered_moneyJSONOptional
buyer_tendered_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The total amount of cash provided by the buyer, before change is given.
buyer_tendered_money (anyOf 2)nullAlternative
change_back_moneyJSONOptional
change_back_money (anyOf 1)ModelAlternativeExpand Create Payment — request body — body tip money
The amount of change returned to the buyer.
change_back_money (anyOf 2)nullAlternative

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

Create Order — request body — body order tenders item square account details status

FieldTypePresenceDescription and constraints
$objectRootRepresents the details of a tender with `type` `SQUARE_ACCOUNT`.
statusJSONOptional
status (anyOf 1)stringAlternativeThe Square Account payment's current state (such as `AUTHORIZED` or
`CAPTURED`). See [TenderSquareAccountDetailsStatus](entity:TenderSquareAccountDetailsStatus)
for possible values.
See [Status](#type-status) for possible values
One of: AUTHORIZED, CAPTURED, VOIDED, FAILED
status (anyOf 2)nullAlternative

Create Order — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in the response body of
a request to the `CreateOrder` endpoint.

Either `errors` or `order` is present in a given response, but never both.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
orderModelOptionalExpand Pay Order — response body — order
The newly created order.

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

CreateOrder — request body — body / order / tenders / item / buy_now_pay_later_details / buy_now_pay_later_brand: OTHER BRAND, AFTERPAY

FieldTypePresenceDescription and constraints
$objectRootRepresents the details of a tender with `type` `BUY_NOW_PAY_LATER`.
buy_now_pay_later_brandstringOptionalThe Buy Now Pay Later brand.
See [Brand](#type-brand) for possible values
One of: OTHER_BRAND, AFTERPAY
Read only: true
statusJSONOptional
status (anyOf 1)stringAlternativeThe buy now pay later payment's current state (such as `AUTHORIZED` or
`CAPTURED`). See [TenderBuyNowPayLaterDetailsStatus](entity:TenderBuyNowPayLaterDetailsStatus)
for possible values.
See [Status](#type-status) for possible values
One of: AUTHORIZED, CAPTURED, VOIDED, FAILED
status (anyOf 2)nullAlternative

Pay Order — request body — body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in requests to the
[PayOrder](api-endpoint:Orders-PayOrder) endpoint.
idempotency_keystringRequired within parentA value you specify that uniquely identifies this request among requests you have sent. If
you are unsure whether a particular payment request was completed successfully, you can reattempt
it with the same idempotency key without worrying about duplicate payments.

For more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency).
Maximum length: 192
Minimum length: 1
order_versionJSONOptional
order_version (anyOf 1)integerAlternativeThe version of the order being paid. If not supplied, the latest version will be paid.
order_version (anyOf 2)nullAlternative
payment_idsJSONOptional
payment_ids (anyOf 1)arrayAlternativeThe IDs of the [payments](entity:Payment) to collect.
The payment total must match the order total.
payment_ids (anyOf 1)[]stringEach item
payment_ids (anyOf 2)nullAlternative

Pay Order — response body

FieldTypePresenceDescription and constraints
$objectRootDefines the fields that are included in the response body of a request to the
[PayOrder](api-endpoint:Orders-PayOrder) endpoint.
errorsarrayOptionalAny errors that occurred during the request.
errors[]ModelEach itemExpand Get Shift — response body — errors item
orderModelOptionalExpand Pay Order — response body — order
The paid, updated [order](entity:Order).

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

Pay Order — response 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 Pay Order — response 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 Pay Order — response 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 Pay Order — response 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 Pay Order — response body — order total money
The net amount of money due on the order.
Read only: true
net_amountsModelOptionalExpand Pay Order — response 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 Pay Order — response body — order refunds item
return_amountsModelOptionalExpand Pay Order — response 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 Pay Order — response 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 Pay Order — response 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 Pay Order — response 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
Known values: 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 Pay Order — response 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 Pay Order — response 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 Pay Order — response body — order total money
The total amount of discount money to collect for the order.
Read only: true
total_moneyModelOptionalExpand Pay Order — response body — order total money
The total amount of money to collect for the order.
Read only: true
total_service_charge_moneyModelOptionalExpand Pay Order — response body — order total 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 Pay Order — response body — order total money
The total amount of tax money to collect for the order.
Read only: true
total_tip_moneyModelOptionalExpand Pay Order — response body — order total 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
versionJSONOptional
version (anyOf 1)integerAlternativeThe 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).
version (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Pay Order — response body — order pricing options auto apply discounts, auto apply taxes, Pay Order — response body — order rewards item, Pay Order — response body — order source Represents the origination details of an order, Pay Order — response body — order fulfillments Details about order fulfillment item, Pay Order — response body — order total money, Pay Order — response body — order line items The line items included in the order item, Pay Order — response body — order discounts array item, Pay Order — response body — order taxes The list of all taxes associated with the order item, Pay Order — response body — order net amounts, Pay Order — response body — order returns item, Pay Order — response body — order rounding adjustment, Pay Order — response body — order service charges A list of service charges applied to the order item, Pay Order — response body — order refunds item, Pay Order — response body — order tenders item

Pay Order — response 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 Pay Order — response body — order total 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 Pay Order — response body — order total 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
catalog_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
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
Known values: 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
Known values: 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: Pay Order — response body — order total money

Pay Order — response 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 Pay Order — response 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 Pay Order — response 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
Known values: 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 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
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 Pay Order — response 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
Known values: 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
Known values: 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: Pay Order — response body — order fulfillments Details about order fulfillment item entries item, Pay Order — response 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 in store details canceled at, completed at, in progress at, note, placed at, prepared at, recipient, 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, Pay Order — response 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

Pay Order — response 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 Pay Order — response 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
Known values: 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: Pay Order — response body — order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient

Pay Order — response 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 Get Payment — response body — payment billing 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: Get Payment — response body — payment billing address

Pay Order — response body — order fulfillments Details about order fulfillment item entries item

FieldTypePresenceDescription and constraints
$objectRootLinks an order line item to a fulfillment. 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.
line_item_uidstringRequired within parentThe `uid` from the order line item.
Minimum length: 1
metadataJSONOptional
metadata (anyOf 1)objectAlternativeApplication-defined data attached to this fulfillment entry. 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
quantitystringRequired within parentThe quantity of the line item being fulfilled, formatted as a decimal number.
For example, `"3"`.

Fulfillments for line items with a `quantity_unit` can have non-integer quantities.
For example, `"1.70000"`.
Maximum length: 12
Minimum length: 1
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID that identifies the fulfillment entry only within this order.
Maximum length: 60
uid (anyOf 2)nullAlternative

Pay Order — response 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 Pay Order — response 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: Pay Order — response body — order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient

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

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 Pay Order — response 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
Known values: 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, Pay Order — response body — order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient

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

FieldTypePresenceDescription and constraints
$objectRootSpecific details for curbside pickup.
buyer_arrived_atJSONOptional
buyer_arrived_at (anyOf 1)stringAlternativeThe [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates)
indicating when the buyer arrived and is waiting for pickup. The timestamp must be in RFC 3339 format
(for example, "2016-09-04T23:59:33.123Z").
buyer_arrived_at (anyOf 2)nullAlternative
curbside_detailsJSONOptional
curbside_details (anyOf 1)stringAlternativeSpecific details for curbside pickup, such as parking number and vehicle model.
Maximum length: 250
curbside_details (anyOf 2)nullAlternative

Pay Order — response 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 Pay Order — response 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: Pay Order — response body — order fulfillments Details about order fulfillment item delivery details Describes delivery details of an order fulfillment recipient Information about the fulfillment recipient

Pay Order — response 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 Pay Order — response 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 Pay Order — response 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 Pay Order — response 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 Pay Order — response body — order total 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
catalog_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
catalog_version (anyOf 2)nullAlternative
gross_sales_moneyModelOptionalExpand Pay Order — response body — order total 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
Known values: 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 Pay Order — response 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 Pay Order — response 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 Pay Order — response body — order total money
The total amount of discount money to collect for the line item.
Read only: true
total_moneyModelOptionalExpand Pay Order — response body — order total money
The total amount of money to collect for this line item.
Read only: true
total_service_charge_moneyModelOptionalExpand Pay Order — response body — order total money
The total amount of apportioned service charge money to collect for the line item.
Read only: true
total_tax_moneyModelOptionalExpand Pay Order — response body — order total 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 Pay Order — response body — order total 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: Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes, Pay Order — response body — order total money, Pay Order — response body — order line items The line items included in the order item applied discounts array item, Pay Order — response body — order line items The line items included in the order item applied service charges array item, Pay Order — response body — order line items The line items included in the order item applied taxes array item, Pay Order — response 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 quantity unit catalog object id, catalog version, measurement unit, precision

Pay Order — response 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 Pay Order — response body — order total 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: Pay Order — response body — order total money

Pay Order — response body — order line items The line items included in the order item applied service charges array item

FieldTypePresenceDescription and constraints
$objectRoot
applied_moneyModelOptionalExpand Pay Order — response body — order total 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: Pay Order — response body — order total money

Pay Order — response 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 Pay Order — response body — order total 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: Pay Order — response body — order total money

Pay Order — response 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 Pay Order — response body — order total 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
catalog_version (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
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 Pay Order — response body — order total 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: Pay Order — response body — order total money

Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes

FieldTypePresenceDescription and constraints
$objectRootDescribes 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).
blocked_discountsJSONOptional
blocked_discounts (anyOf 1)arrayAlternativeA list of discounts blocked from applying to the line item.
Discounts can be blocked by the `discount_uid` (for ad hoc discounts) or
the `discount_catalog_object_id` (for catalog discounts).
blocked_discounts (anyOf 1)[]ModelEach itemExpand Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes blocked discounts array item
blocked_discounts (anyOf 2)nullAlternative
blocked_service_chargesJSONOptional
blocked_service_charges (anyOf 1)arrayAlternativeA list of service charges blocked from applying to the line item.
Service charges can be blocked by the `service_charge_uid` (for ad hoc
service charges) or the `service_charge_catalog_object_id` (for catalog
service charges).
blocked_service_charges (anyOf 1)[]ModelEach itemExpand Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes blocked service charges array item
blocked_service_charges (anyOf 2)nullAlternative
blocked_taxesJSONOptional
blocked_taxes (anyOf 1)arrayAlternativeA list of taxes blocked from applying to the line item.
Taxes can be blocked by the `tax_uid` (for ad hoc taxes) or
the `tax_catalog_object_id` (for catalog taxes).
blocked_taxes (anyOf 1)[]ModelEach itemExpand Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes blocked taxes array item
blocked_taxes (anyOf 2)nullAlternative

Referenced models: Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes blocked discounts 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 blocked service charges 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 blocked taxes 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 blocked discounts array item

FieldTypePresenceDescription and constraints
$objectRootA discount to block from applying to a line item. The discount must be
identified by either `discount_uid` or `discount_catalog_object_id`, but not both.
discount_catalog_object_idJSONOptional
discount_catalog_object_id (anyOf 1)stringAlternativeThe `catalog_object_id` of the discount that should be blocked.
Use this field to block catalog discounts. For ad hoc discounts, use the
`discount_uid` field.
Maximum length: 192
discount_catalog_object_id (anyOf 2)nullAlternative
discount_uidJSONOptional
discount_uid (anyOf 1)stringAlternativeThe `uid` of the discount that should be blocked. Use this field to block
ad hoc discounts. For catalog discounts, use the `discount_catalog_object_id` field.
Maximum length: 60
discount_uid (anyOf 2)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID of the `BlockedDiscount` within the order.
Maximum length: 60
uid (anyOf 2)nullAlternative

Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes blocked service charges array item

FieldTypePresenceDescription and constraints
$objectRootA service charge to block from applying to a line item. The service charge
must be identified by either `service_charge_uid` or
`service_charge_catalog_object_id`, but not both.
service_charge_catalog_object_idJSONOptional
service_charge_catalog_object_id (anyOf 1)stringAlternativeThe `catalog_object_id` of the service charge that should be blocked.
Use this field to block catalog service charges. For ad hoc service charges,
use the `service_charge_uid` field.
Maximum length: 192
service_charge_catalog_object_id (anyOf 2)nullAlternative
service_charge_uidJSONOptional
service_charge_uid (anyOf 1)stringAlternativeThe `uid` of the service charge that should be blocked. Use this field to
block ad hoc service charges. For catalog service charges, use the
`service_charge_catalog_object_id` field.
Maximum length: 60
service_charge_uid (anyOf 2)nullAlternative
uidJSONOptional
uid (anyOf 1)stringAlternativeA unique ID of the `BlockedServiceCharge` within the order.
Maximum length: 60
uid (anyOf 2)nullAlternative

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.