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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the service charge applied to the original order. |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
applied_money | Model | Optional | Expand 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_taxes | JSON | Optional | |
applied_taxes (anyOf 1) | array | Alternative | The 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)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item applied taxes array item |
applied_taxes (anyOf 2) | null | Alternative | |
calculation_phase | string | Optional | Represents 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_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID of the associated [OrderServiceCharge](entity:OrderServiceCharge). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this service charge references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the service charge. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
scope | JSON | Optional | |
scope (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
source_service_charge_uid | JSON | Optional | |
source_service_charge_uid (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
taxable | JSON | Optional | |
taxable (anyOf 1) | boolean | Alternative | Indicates whether the surcharge can be taxed. Service charges calculated in the `TOTAL_PHASE` cannot be marked as taxable. |
taxable (anyOf 2) | null | Alternative | |
total_money | Model | Optional | Expand 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_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of tax money to collect for the service charge. Read only: true |
treatment_type | JSON | Optional | |
treatment_type (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
type | string | Optional | The type of the service charge. See [OrderServiceChargeType](#type-orderservicechargetype) for possible values One of: AUTO_GRATUITY, CUSTOM Read only: true |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the return service charge only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money, Create Order — request body — body order line items The line items included in the order item applied taxes array item
Create Order — request body — body order returns item return taxes array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_money | Model | Optional | Expand Create Payment — request body — body tip money The amount of money applied by the tax in an order. Read only: true |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing [CatalogTax](entity:CatalogTax). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this tax references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The tax's name. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The percentage of the tax, as a string representation of a decimal number. For example, a value of `"7.25"` corresponds to a percentage of 7.25%. Maximum length: 10 |
percentage (anyOf 2) | null | Alternative | |
scope | JSON | Optional | |
scope (anyOf 1) | string | Alternative | Indicates whether this is a line-item or order-level 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) | null | Alternative | |
source_tax_uid | JSON | Optional | |
source_tax_uid (anyOf 1) | string | Alternative | The tax `uid` from the order that contains the original tax charge. Maximum length: 60 |
source_tax_uid (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the returned tax only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order returns item return tips array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A tip being returned. |
applied_money | Model | Optional | Expand Create Payment — request body — body tip money The amount of tip being returned -- Read only: true |
source_tender_id | JSON | Optional | |
source_tender_id (anyOf 1) | string | Alternative | The tender `id` from the order that contains the original application of this tip. Maximum length: 192 |
source_tender_id (anyOf 2) | null | Alternative | |
source_tender_uid | JSON | Optional | |
source_tender_uid (anyOf 1) | string | Alternative | The tender `uid` from the order that contains the original application of this tip. Maximum length: 192 |
source_tender_uid (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the tip only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order rounding adjustment
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A 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_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The actual rounding adjustment amount. |
amount_money (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the rounding adjustment from the original sale order. |
name (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the rounding adjustment only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order service charges A list of service charges applied to the order item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a service charge applied to an order. |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
applied_money | Model | Optional | Expand 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_taxes | JSON | Optional | |
applied_taxes (anyOf 1) | array | Alternative | The 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)[] | Model | Each item | Expand Create Order — request body — body order line items The line items included in the order item applied taxes array item |
applied_taxes (anyOf 2) | null | Alternative | |
calculation_phase | JSON | Optional | |
calculation_phase (anyOf 1) | string | Alternative | Represents 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) | null | Alternative | |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing the service charge [CatalogObject](entity:CatalogObject). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this service charge references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this 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).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
scope | JSON | Optional | |
scope (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
taxable | JSON | Optional | |
taxable (anyOf 1) | boolean | Alternative | Indicates 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) | null | Alternative | |
total_money | Model | Optional | Expand 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_money | Model | Optional | Expand Create Payment — request body — body tip money The total amount of tax money to collect for the service charge. Read only: true |
treatment_type | JSON | Optional | |
treatment_type (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
type | string | Optional | The type of the service charge. See [OrderServiceChargeType](#type-orderservicechargetype) for possible values One of: AUTO_GRATUITY, CUSTOM Read only: true |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the service charge only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money, Create Order — request body — body order line items The line items included in the order item applied taxes array item
Create Order — request body — body order taxes The list of all taxes associated with the order item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents 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_money | JSON | Optional | |
applied_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
auto_applied | boolean | Optional | Determines 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_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing [CatalogTax](entity:CatalogTax). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this tax references. Format: int64 Minimum: -9223372036854775808 Maximum: 9223372036854775807 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^(?:-(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-8]))))))))))))))))|-[1-9][0-9]{0,17}|0|(?:1[0-9]{18}|[2-8][0-9]{18}|9(?:0[0-9]{17}|1[0-9]{17}|2(?:0[0-9]{16}|1[0-9]{16}|2(?:0[0-9]{15}|[1-2][0-9]{15}|3(?:0[0-9]{14}|[1-2][0-9]{14}|3(?:0[0-9]{13}|[1-6][0-9]{13}|7(?:0[0-9]{12}|1[0-9]{12}|20(?:0[0-9]{10}|[1-2][0-9]{10}|3(?:0[0-9]{9}|[1-5][0-9]{9}|6(?:0[0-9]{8}|[1-7][0-9]{8}|8(?:0[0-9]{7}|[1-4][0-9]{7}|5(?:0[0-9]{6}|[1-3][0-9]{6}|4(?:0[0-9]{5}|[1-6][0-9]{5}|7(?:0[0-9]{4}|[1-6][0-9]{4}|7(?:0[0-9]{3}|[1-4][0-9]{3}|5(?:0[0-9]{2}|[1-7][0-9]{2}|80[0-7]))))))))))))))))|[1-9][0-9]{0,17})$(?!\n) |
catalog_version (anyOf 2) | null | Alternative | |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this 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).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The tax's name. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The percentage of the tax, as a string representation of a decimal number. For example, a value of `"7.25"` corresponds to a percentage of 7.25%. Maximum length: 10 |
percentage (anyOf 2) | null | Alternative | |
scope | JSON | Optional | |
scope (anyOf 1) | string | Alternative | Indicates whether this is a line-item or order-level 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) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the tax only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order tenders item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a tender (i.e., a method of payment) used in a Square transaction. |
additional_recipients | JSON | Optional | |
additional_recipients (anyOf 1) | array | Alternative | Additional 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)[] | Model | Each item | Expand Create Order — request body — body order refunds item additional recipients array item |
additional_recipients (anyOf 2) | null | Alternative | |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
bank_account_details | JSON | Optional | |
bank_account_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
buy_now_pay_later_details | JSON | Optional | |
buy_now_pay_later_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
card_details | JSON | Optional | |
card_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
cash_details | JSON | Optional | |
cash_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
created_at | string | Optional | The timestamp for when the tender was created, in RFC 3339 format. Maximum length: 32 Read only: true |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | If 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) | null | Alternative | |
id | string | Optional | The tender's unique ID. It is the associated payment ID. Maximum length: 192 |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the transaction's associated location. Maximum length: 50 |
location_id (anyOf 2) | null | Alternative | |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | An optional note associated with the tender at the time of payment. Maximum length: 500 |
note (anyOf 2) | null | Alternative | |
payment_id | JSON | Optional | |
payment_id (anyOf 1) | string | Alternative | The 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) | null | Alternative | |
processing_fee_money | JSON | Optional | |
processing_fee_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
square_account_details | JSON | Optional | |
square_account_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
tip_money | JSON | Optional | |
tip_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The tip's amount of the tender. |
tip_money (anyOf 2) | null | Alternative | |
transaction_id | JSON | Optional | |
transaction_id (anyOf 1) | string | Alternative | The ID of the tender's associated transaction. Maximum length: 192 |
transaction_id (anyOf 2) | null | Alternative | |
type | string | Required within parent | Indicates 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the details of a tender with `type` `BANK_ACCOUNT`. See [BankAccountPaymentDetails](entity:BankAccountPaymentDetails) for more exposed details of a bank account payment. |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative |
Create Order — request body — body order tenders item card details card, entry method, status
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents additional details of a tender with `type` `CARD` or `SQUARE_GIFT_CARD` |
card | JSON | Optional | |
card (anyOf 1) | Model | Alternative | Expand Create Card — request body — body card The credit card's non-confidential details. |
card (anyOf 2) | null | Alternative | |
entry_method | JSON | Optional | |
entry_method (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | Indicates 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) | null | Alternative |
Referenced models: Create Card — request body — body card
Create Order — request body — body order tenders item cash details buyer tendered money, change back money
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the details of a tender with `type` `CASH`. |
buyer_tendered_money | JSON | Optional | |
buyer_tendered_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
change_back_money | JSON | Optional | |
change_back_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The amount of change returned to the buyer. |
change_back_money (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Order — request body — body order tenders item square account details status
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the details of a tender with `type` `SQUARE_ACCOUNT`. |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | The 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) | null | Alternative |
Create Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the `CreateOrder` endpoint. Either `errors` or `order` is present in a given response, but never both. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
order | Model | Optional | Expand Pay Order — response body — order The 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents the details of a tender with `type` `BUY_NOW_PAY_LATER`. |
buy_now_pay_later_brand | string | Optional | The Buy Now Pay Later brand. See [Brand](#type-brand) for possible values One of: OTHER_BRAND, AFTERPAY Read only: true |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | The 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) | null | Alternative |
Pay Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in requests to the [PayOrder](api-endpoint:Orders-PayOrder) endpoint. |
idempotency_key | string | Required within parent | A 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_version | JSON | Optional | |
order_version (anyOf 1) | integer | Alternative | The version of the order being paid. If not supplied, the latest version will be paid. |
order_version (anyOf 2) | null | Alternative | |
payment_ids | JSON | Optional | |
payment_ids (anyOf 1) | array | Alternative | The IDs of the [payments](entity:Payment) to collect. The payment total must match the order total. |
payment_ids (anyOf 1)[] | string | Each item | |
payment_ids (anyOf 2) | null | Alternative |
Pay Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that are included in the response body of a request to the [PayOrder](api-endpoint:Orders-PayOrder) endpoint. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
order | Model | Optional | Expand Pay Order — response body — order The paid, updated [order](entity:Order). |
Referenced models: Get Shift — response body — errors item, Pay Order — response body — order
Pay Order — response body — order
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains all information related to a single order to process with Square, including line items that specify the products to purchase. `Order` objects also include information about any associated tenders, refunds, and returns. All Connect V2 Transactions have all been converted to Orders including all associated itemization data. |
closed_at | string | Optional | The timestamp for when the order reached a terminal [state](entity:OrderState), in RFC 3339 format (for example "2016-09-04T23:59:33.123Z"). Read only: true |
created_at | string | Optional | The timestamp for when the order was created, at server side, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | The ID of the [customer](entity:Customer) associated with the order. You should specify a `customer_id` on the order (or the payment) to ensure that transactions are reliably linked to customers. Omitting this field might result in the creation of new [instant profiles](https://developer.squareup.com/docs/customers-api/what-it-does#instant-profiles). Maximum length: 191 |
customer_id (anyOf 2) | null | Alternative | |
discounts | JSON | Optional | |
discounts (anyOf 1) | array | Alternative | The list of all discounts associated with the order. Discounts can be scoped to either `ORDER` or `LINE_ITEM`. For discounts scoped to `LINE_ITEM`, an `OrderLineItemAppliedDiscount` must be added to each line item that the discount applies to. For discounts with `ORDER` scope, the server generates an `OrderLineItemAppliedDiscount` for every line item. __IMPORTANT__: If `LINE_ITEM` scope is set on any discounts in this field, using the deprecated `line_items.discounts` field results in an error. Use `line_items.applied_discounts` instead. |
discounts (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order discounts array item |
discounts (anyOf 2) | null | Alternative | |
fulfillments | JSON | Optional | |
fulfillments (anyOf 1) | array | Alternative | Details about order fulfillment. Orders can only be created with at most one fulfillment. However, orders returned by the API might contain multiple fulfillments. |
fulfillments (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order fulfillments Details about order fulfillment item |
fulfillments (anyOf 2) | null | Alternative | |
id | string | Optional | The order's unique ID. Read only: true |
line_items | JSON | Optional | |
line_items (anyOf 1) | array | Alternative | The line items included in the order. |
line_items (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order line items The line items included in the order item |
line_items (anyOf 2) | null | Alternative | |
location_id | string | Required within parent | The ID of the seller location that this order is associated with. Minimum length: 1 |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this order. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
net_amount_due_money | Model | Optional | Expand Pay Order — response body — order total money The net amount of money due on the order. Read only: true |
net_amounts | Model | Optional | Expand Pay Order — response body — order net amounts The net money amounts (sale money - return money). Read only: true |
pricing_options | JSON | Optional | |
pricing_options (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order pricing options auto apply discounts, auto apply taxes Pricing options for an order. The options affect how the order's price is calculated. They can be used, for example, to apply automatic price adjustments that are based on preconfigured [pricing rules](entity:CatalogPricingRule). |
pricing_options (anyOf 2) | null | Alternative | |
reference_id | JSON | Optional | |
reference_id (anyOf 1) | string | Alternative | A client-specified ID to associate an entity in another system with this order. Maximum length: 40 |
reference_id (anyOf 2) | null | Alternative | |
refunds | array | Optional | The refunds that are part of this order. Read only: true |
refunds[] | Model | Each item | Expand Pay Order — response body — order refunds item |
return_amounts | Model | Optional | Expand Pay Order — response body — order net amounts The rollup of the returned money amounts. Read only: true |
returns | array | Optional | A collection of items from sale orders being returned in this one. Normally part of an itemized return or exchange. There is exactly one `Return` object per sale `Order` being referenced. Read only: true |
returns[] | Model | Each item | Expand Pay Order — response body — order returns item |
rewards | array | Optional | A set-like list of Rewards that have been added to the Order. Read only: true |
rewards[] | Model | Each item | Expand Pay Order — response body — order rewards item |
rounding_adjustment | Model | Optional | Expand 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_charges | JSON | Optional | |
service_charges (anyOf 1) | array | Alternative | A list of service charges applied to the order. |
service_charges (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order service charges A list of service charges applied to the order item |
service_charges (anyOf 2) | null | Alternative | |
source | JSON | Optional | |
source (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order source Represents the origination details of an order The latest source details of the order. This field reflects the most recent source that interacted with or modified the order, and may change during the order lifecycle. For example: - An order created via API (source.name = "MyPOS") paid with Square Terminal may have source updated to reflect the Terminal application (which uses REGISTER, like POS) - An order updated or completed by a different application may have source updated to reflect that application. To preserve the original source from order creation regardless of subsequent updates, use the `creation_source` field instead. |
source (anyOf 2) | null | Alternative | |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | The state of the order. The current state of the order. See [OrderState](#type-orderstate) for possible values Known values: OPEN, COMPLETED, CANCELED, DRAFT |
state (anyOf 2) | null | Alternative | |
taxes | JSON | Optional | |
taxes (anyOf 1) | array | Alternative | The list of all taxes associated with the order. Taxes can be scoped to either `ORDER` or `LINE_ITEM`. For taxes with `LINE_ITEM` scope, an `OrderLineItemAppliedTax` must be added to each line item that the tax applies to. For taxes with `ORDER` scope, the server generates an `OrderLineItemAppliedTax` for every line item. On reads, each tax in the list includes the total amount of that tax applied to the order. __IMPORTANT__: If `LINE_ITEM` scope is set on any taxes in this field, using the deprecated `line_items.taxes` field results in an error. Use `line_items.applied_taxes` instead. |
taxes (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order taxes The list of all taxes associated with the order item |
taxes (anyOf 2) | null | Alternative | |
tenders | array | Optional | The tenders that were used to pay for the order. Read only: true |
tenders[] | Model | Each item | Expand Pay Order — response body — order tenders item |
ticket_name | JSON | Optional | |
ticket_name (anyOf 1) | string | Alternative | A short-term identifier for the order (such as a customer first name, table number, or auto-generated order number that resets daily). Maximum length: 255 |
ticket_name (anyOf 2) | null | Alternative | |
total_discount_money | Model | Optional | Expand Pay Order — response body — order total money The total amount of discount money to collect for the order. Read only: true |
total_money | Model | Optional | Expand Pay Order — response body — order total money The total amount of money to collect for the order. Read only: true |
total_service_charge_money | Model | Optional | Expand 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_money | Model | Optional | Expand Pay Order — response body — order total money The total amount of tax money to collect for the order. Read only: true |
total_tip_money | Model | Optional | Expand Pay Order — response body — order total money The total amount of tip money to collect for the order. Read only: true |
updated_at | string | Optional | The timestamp for when the order was last updated, at server side, in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
version | JSON | Optional | |
version (anyOf 1) | integer | Alternative | The version number, which is incremented each time an update is committed to the order. Orders not created through the API do not include a version number and therefore cannot be updated. [Read more about working with versions](https://developer.squareup.com/docs/orders-api/manage-orders/update-orders). |
version (anyOf 2) | string | Alternative | Pattern: ^-?[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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a discount that applies to one or more line items in an order. Fixed-amount, order-scoped discounts are distributed across all non-zero line item totals. The amount distributed to each line item is relative to the amount contributed by the item to the order subtotal. |
amount_money | JSON | Optional | |
amount_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
applied_money | JSON | Optional | |
applied_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing [CatalogDiscount](entity:CatalogDiscount). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this discount references. Format: int64 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
catalog_version (anyOf 2) | null | Alternative | |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this discount. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The discount's name. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
percentage | JSON | Optional | |
percentage (anyOf 1) | string | Alternative | The percentage of the discount, as a string representation of a decimal number. A value of `7.25` corresponds to a percentage of 7.25%. `percentage` is not set for amount-based discounts. Maximum length: 10 |
percentage (anyOf 2) | null | Alternative | |
pricing_rule_id | string | Optional | The object ID of a [pricing rule](entity:CatalogPricingRule) to be applied automatically to this discount. The specification and application of the discounts, to which a `pricing_rule_id` is assigned, are completely controlled by the corresponding pricing rule. Read only: true |
reward_ids | array | Optional | The reward IDs corresponding to this discount. The application and specification of discounts that have `reward_ids` are completely controlled by the backing criteria corresponding to the reward tiers of the rewards that are added to the order through the Loyalty API. To manually unapply discounts that are the result of added rewards, the rewards must be removed from the order through the Loyalty API. Read only: true |
reward_ids[] | string | Each item | |
scope | JSON | Optional | |
scope (anyOf 1) | string | Alternative | Indicates whether this is a line-item or order-level discount. Indicates the level at which the discount applies. For `ORDER` scoped discounts, Square generates references in `applied_discounts` on all order line items that do not have them. For `LINE_ITEM` scoped discounts, the discount only applies to line items with a discount reference in their `applied_discounts` field. This field is immutable. To change the scope of a discount, you must delete the discount and re-add it as a new discount. See [OrderLineItemDiscountScope](#type-orderlineitemdiscountscope) for possible values Known values: OTHER_DISCOUNT_SCOPE, LINE_ITEM, ORDER |
scope (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | Indicates how the discount is applied to the associated line item or order. The type of the discount. Discounts that do not reference a catalog object ID must have a type of `FIXED_PERCENTAGE` or `FIXED_AMOUNT`. See [OrderLineItemDiscountType](#type-orderlineitemdiscounttype) for possible values Known values: UNKNOWN_DISCOUNT, FIXED_PERCENTAGE, FIXED_AMOUNT, VARIABLE_PERCENTAGE, VARIABLE_AMOUNT |
type (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the discount only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Pay Order — response body — order fulfillments Details about order fulfillment item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains details about how to fulfill this order. Orders can only be created with at most one fulfillment using the API. However, orders returned by the Orders API might contain multiple fulfillments because sellers can create multiple fulfillments using Square products such as Square Online. |
delivery_details | JSON | Optional | |
delivery_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
entries | array | Optional | A list of entries pertaining to the fulfillment of an order. Each entry must reference a valid `uid` for an order line item in the `line_item_uid` field, as well as a `quantity` to fulfill. Multiple entries can reference the same line item `uid`, as long as the total quantity among all fulfillment entries referencing a single line item does not exceed the quantity of the order's line item itself. An order cannot be marked as `COMPLETED` before all fulfillments are `COMPLETED`, `CANCELED`, or `FAILED`. Fulfillments can be created and completed independently before order completion. Read only: true |
entries[] | Model | Each item | Expand Pay Order — response body — order fulfillments Details about order fulfillment item entries item |
in_store_details | JSON | Optional | |
in_store_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
line_item_application | string | Optional | The `line_item_application` describes what order line items this fulfillment applies to. It can be `ALL` or `ENTRY_LIST` with a supplied list of fulfillment entries. Describes what order line items this fulfillment applies to. It can be `ALL` or `ENTRY_LIST` with a supplied list of fulfillment entries. See [FulfillmentFulfillmentLineItemApplication](#type-fulfillmentfulfillmentlineitemapplication) for possible values Known values: ALL, ENTRY_LIST Read only: true |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this fulfillment. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
pickup_details | JSON | Optional | |
pickup_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
shipment_details | JSON | Optional | |
shipment_details (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | The current state of this fulfillment. The state of the fulfillment. See [FulfillmentState](#type-fulfillmentstate) for possible values Known values: PROPOSED, RESERVED, PREPARED, COMPLETED, CANCELED, FAILED |
state (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | The type of fulfillment. The type of the fulfillment. See [FulfillmentType](#type-fulfillmenttype) for possible values Known values: PICKUP, SHIPMENT, DELIVERY, IN_STORE |
type (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the fulfillment only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes delivery details of an order fulfillment. |
cancel_reason | JSON | Optional | |
cancel_reason (anyOf 1) | string | Alternative | The delivery cancellation reason. Max length: 100 characters. Maximum length: 100 |
cancel_reason (anyOf 2) | null | Alternative | |
canceled_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was canceled. This field is automatically set when the fulfillment `state` changes to `CANCELED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
completed_at | JSON | Optional | |
completed_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicates when the seller completed the fulfillment. This field is automatically set when fulfillment `state` changes to `COMPLETED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
completed_at (anyOf 2) | null | Alternative | |
courier_pickup_at | JSON | Optional | |
courier_pickup_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when an order can be picked up by the courier for delivery. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
courier_pickup_at (anyOf 2) | null | Alternative | |
courier_pickup_window_duration | JSON | Optional | |
courier_pickup_window_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) after `courier_pickup_at` in which the courier should pick up the order. The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. |
courier_pickup_window_duration (anyOf 2) | null | Alternative | |
courier_provider_name | JSON | Optional | |
courier_provider_name (anyOf 1) | string | Alternative | The name of the courier provider. Maximum length: 255 |
courier_provider_name (anyOf 2) | null | Alternative | |
courier_support_phone_number | JSON | Optional | |
courier_support_phone_number (anyOf 1) | string | Alternative | The support phone number of the courier. Maximum length: 17 |
courier_support_phone_number (anyOf 2) | null | Alternative | |
deliver_at | JSON | Optional | |
deliver_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) that represents the start of the delivery period. The application can set this field while the fulfillment `state` is `PROPOSED`, `RESERVED`, or `PREPARED` (any time before the terminal state such as `COMPLETED`, `CANCELED`, and `FAILED`). The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). For fulfillments with the schedule type `ASAP`, this is automatically set to the current time plus `prep_time_duration`, if available. |
deliver_at (anyOf 2) | null | Alternative | |
delivered_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was delivered to the recipient. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
delivery_window_duration | JSON | Optional | |
delivery_window_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) after `deliver_at` in which to deliver the order. Applications can set this field when the fulfillment `state` is `PROPOSED`, `RESERVED`, or `PREPARED` (any time before the terminal state such as `COMPLETED`, `CANCELED`, and `FAILED`). The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. |
delivery_window_duration (anyOf 2) | null | Alternative | |
dropoff_notes | JSON | Optional | |
dropoff_notes (anyOf 1) | string | Alternative | A note to provide additional instructions about how to deliver the order. Maximum length: 550 |
dropoff_notes (anyOf 2) | null | Alternative | |
external_delivery_id | JSON | Optional | |
external_delivery_id (anyOf 1) | string | Alternative | The identifier for the delivery created by the third-party courier service. Maximum length: 50 |
external_delivery_id (anyOf 2) | null | Alternative | |
in_progress_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicates when the seller started processing the fulfillment. This field is automatically set when the fulfillment `state` changes to `RESERVED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
is_no_contact_delivery | JSON | Optional | |
is_no_contact_delivery (anyOf 1) | boolean | Alternative | Whether the delivery is preferred to be no contact. |
is_no_contact_delivery (anyOf 2) | null | Alternative | |
managed_delivery | JSON | Optional | |
managed_delivery (anyOf 1) | boolean | Alternative | The flag to indicate the delivery is managed by a third party (ie DoorDash), which means we may not receive all recipient information for PII purposes. |
managed_delivery (anyOf 2) | null | Alternative | |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | Provides additional instructions about the delivery fulfillment. It is displayed in the Square Point of Sale application and set by the API. Maximum length: 550 |
note (anyOf 2) | null | Alternative | |
placed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Must be in RFC 3339 timestamp format, e.g., "2016-09-04T23:59:33.123Z". Read only: true |
prep_time_duration | JSON | Optional | |
prep_time_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) needed to prepare and deliver this fulfillment. The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. |
prep_time_duration (anyOf 2) | null | Alternative | |
ready_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the seller marked the fulfillment as ready for courier pickup. This field is automatically set when the fulfillment `state` changes to PREPARED. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
recipient | JSON | Optional | |
recipient (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
rejected_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was rejected. This field is automatically set when the fulfillment `state` changes to `FAILED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
schedule_type | JSON | Optional | |
schedule_type (anyOf 1) | string | Alternative | The schedule type of the delivery fulfillment. Indicates the fulfillment delivery schedule type. If `SCHEDULED`, then `deliver_at` is required. The default is `SCHEDULED`. See [OrderFulfillmentDeliveryDetailsScheduleType](#type-orderfulfillmentdeliverydetailsscheduletype) for possible values Known values: SCHEDULED, ASAP |
schedule_type (anyOf 2) | null | Alternative | |
square_delivery_id | JSON | Optional | |
square_delivery_id (anyOf 1) | string | Alternative | The identifier for the delivery created by Square. Maximum length: 50 |
square_delivery_id (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Information about the fulfillment recipient. |
address | JSON | Optional | |
address (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
customer_id | JSON | Optional | |
customer_id (anyOf 1) | string | Alternative | The ID of the customer associated with the fulfillment. If `customer_id` is provided, the fulfillment recipient's `display_name`, `email_address`, and `phone_number` are automatically populated from the targeted customer profile. If these fields are set in the request, the request values override the information from the customer profile. If the targeted customer profile does not contain the necessary information and these fields are left unset, the request results in an error. Maximum length: 191 |
customer_id (anyOf 2) | null | Alternative | |
display_name | JSON | Optional | |
display_name (anyOf 1) | string | Alternative | The display name of the fulfillment recipient. This field is required. If provided, the display name overrides the corresponding customer profile value indicated by `customer_id`. Maximum length: 255 |
display_name (anyOf 2) | null | Alternative | |
email_address | JSON | Optional | |
email_address (anyOf 1) | string | Alternative | The email address of the fulfillment recipient. If provided, the email address overrides the corresponding customer profile value indicated by `customer_id`. Maximum length: 255 |
email_address (anyOf 2) | null | Alternative | |
phone_number | JSON | Optional | |
phone_number (anyOf 1) | string | Alternative | The phone number of the fulfillment recipient. This field is required. If provided, the phone number overrides the corresponding customer profile value indicated by `customer_id`. Maximum length: 18 |
phone_number (anyOf 2) | null | Alternative |
Referenced models: Get Payment — response body — payment billing address
Pay Order — response body — order fulfillments Details about order fulfillment item entries item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Links 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_uid | string | Required within parent | The `uid` from the order line item. Minimum length: 1 |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-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).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
quantity | string | Required within parent | The 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 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the fulfillment entry only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains the details necessary to fulfill an in-store order. |
canceled_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was canceled. This field is automatically set when the fulfillment `state` changes to `CANCELED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
completed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was completed. This field is automatically set when the fulfillment `state` changes to `COMPLETED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
in_progress_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicates when the seller started processing the fulfillment. This field is automatically set when the fulfillment `state` changes to `RESERVED`. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | A note to provide additional instructions about the in-store fulfillment displayed in the Square Point of Sale application and set by the API. Maximum length: 550 |
note (anyOf 2) | null | Alternative | |
placed_at | JSON | Optional | |
placed_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
placed_at (anyOf 2) | null | Alternative | |
prepared_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was moved to the `PREPARED` state, which indicates that the fulfillment is ready. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
recipient | JSON | Optional | |
recipient (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains details necessary to fulfill a pickup order. |
accepted_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was marked in progress. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
auto_complete_duration | JSON | Optional | |
auto_complete_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) after which an in-progress pickup fulfillment is automatically moved to the `COMPLETED` state. The duration must be in RFC 3339 format (for example, "PT4H" for 4 hours). If not set, this pickup fulfillment remains in progress until it is canceled or completed. |
auto_complete_duration (anyOf 2) | null | Alternative | |
cancel_reason | JSON | Optional | |
cancel_reason (anyOf 1) | string | Alternative | A description of why the pickup was canceled. The maximum length: 100 characters. Maximum length: 100 |
cancel_reason (anyOf 2) | null | Alternative | |
canceled_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was canceled. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
curbside_pickup_details | JSON | Optional | |
curbside_pickup_details (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order fulfillments Details about order fulfillment item pickup details accepted at, auto complete duration, cancel reason, canceled at, curbside pickup details, expired at, expires at, is curbside pickup, note, picked up at, pickup at, pickup window duration, placed at, prep time duration, ready at, recipient, rejected at, schedule type curbside pickup details Specific details for curbside pickup Specific details for curbside pickup. These details can only be populated if `is_curbside_pickup` is set to `true`. |
curbside_pickup_details (anyOf 2) | null | Alternative | |
expired_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment expired. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
expires_at | JSON | Optional | |
expires_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment expires if it is not marked in progress. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). The expiration time can only be set up to 7 days in the future. If `expires_at` is not set, any new payments attached to the order are automatically completed. |
expires_at (anyOf 2) | null | Alternative | |
is_curbside_pickup | JSON | Optional | |
is_curbside_pickup (anyOf 1) | boolean | Alternative | If set to `true`, indicates that this pickup order is for curbside pickup, not in-store pickup. |
is_curbside_pickup (anyOf 2) | null | Alternative | |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | A note to provide additional instructions about the pickup fulfillment displayed in the Square Point of Sale application and set by the API. Maximum length: 500 |
note (anyOf 2) | null | Alternative | |
picked_up_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was picked up by the recipient. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
pickup_at | JSON | Optional | |
pickup_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) that represents the start of the pickup window. Must be in RFC 3339 timestamp format, e.g., "2016-09-04T23:59:33.123Z". For fulfillments with the schedule type `ASAP`, this is automatically set to the current time plus `prep_time_duration`, if available. |
pickup_at (anyOf 2) | null | Alternative | |
pickup_window_duration | JSON | Optional | |
pickup_window_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) in which the order should be picked up after the `pickup_at` timestamp. The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. Can be used as an informational guideline for merchants. |
pickup_window_duration (anyOf 2) | null | Alternative | |
placed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was placed. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
prep_time_duration | JSON | Optional | |
prep_time_duration (anyOf 1) | string | Alternative | The [duration](https://developer.squareup.com/docs/build-basics/working-with-dates) needed to prepare this fulfillment. The duration must be in RFC 3339 format (for example, "PT30M" for 30 minutes). Don't confuse "M" for months with "M" for minutes. "P5M" means 5 months, while "PT5M" means 5 minutes. |
prep_time_duration (anyOf 2) | null | Alternative | |
ready_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment is marked as ready for pickup. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
recipient | JSON | Optional | |
recipient (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
rejected_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the fulfillment was rejected. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
schedule_type | JSON | Optional | |
schedule_type (anyOf 1) | string | Alternative | The schedule type of the pickup fulfillment. The schedule type of the pickup fulfillment. Defaults to `SCHEDULED`. See [FulfillmentPickupDetailsScheduleType](#type-fulfillmentpickupdetailsscheduletype) for possible values Known values: SCHEDULED, ASAP |
schedule_type (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order fulfillments Details about order fulfillment item pickup details accepted at, auto complete duration, cancel reason, canceled at, curbside pickup details, expired at, expires at, is curbside pickup, note, picked up at, pickup at, pickup window duration, placed at, prep time duration, ready at, recipient, rejected at, schedule type curbside pickup details Specific details for curbside pickup, 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Specific details for curbside pickup. |
buyer_arrived_at | JSON | Optional | |
buyer_arrived_at (anyOf 1) | string | Alternative | The [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) | null | Alternative | |
curbside_details | JSON | Optional | |
curbside_details (anyOf 1) | string | Alternative | Specific details for curbside pickup, such as parking number and vehicle model. Maximum length: 250 |
curbside_details (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Contains the details necessary to fulfill a shipment order. |
cancel_reason | JSON | Optional | |
cancel_reason (anyOf 1) | string | Alternative | A description of why the shipment was canceled. Maximum length: 100 |
cancel_reason (anyOf 2) | null | Alternative | |
canceled_at | JSON | Optional | |
canceled_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating the shipment was canceled. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
canceled_at (anyOf 2) | null | Alternative | |
carrier | JSON | Optional | |
carrier (anyOf 1) | string | Alternative | The shipping carrier being used to ship this fulfillment (such as UPS, FedEx, or USPS). Maximum length: 50 |
carrier (anyOf 2) | null | Alternative | |
expected_shipped_at | JSON | Optional | |
expected_shipped_at (anyOf 1) | string | Alternative | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the shipment is expected to be delivered to the shipping carrier. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). |
expected_shipped_at (anyOf 2) | null | Alternative | |
failed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the shipment failed to be completed. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
failure_reason | JSON | Optional | |
failure_reason (anyOf 1) | string | Alternative | A description of why the shipment failed to be completed. Maximum length: 100 |
failure_reason (anyOf 2) | null | Alternative | |
in_progress_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment was moved to the `RESERVED` state, which indicates that preparation of this shipment has begun. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
packaged_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment was moved to the `PREPARED` state, which indicates that the fulfillment is packaged. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
placed_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when the shipment was requested. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
recipient | JSON | Optional | |
recipient (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
shipped_at | string | Optional | The [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) indicating when this fulfillment was moved to the `COMPLETED` state, which indicates that the fulfillment has been given to the shipping carrier. The timestamp must be in RFC 3339 format (for example, "2016-09-04T23:59:33.123Z"). Read only: true |
shipping_note | JSON | Optional | |
shipping_note (anyOf 1) | string | Alternative | A note with additional information for the shipping carrier. Maximum length: 500 |
shipping_note (anyOf 2) | null | Alternative | |
shipping_type | JSON | Optional | |
shipping_type (anyOf 1) | string | Alternative | A description of the type of shipping product purchased from the carrier (such as First Class, Priority, or Express). Maximum length: 255 |
shipping_type (anyOf 2) | null | Alternative | |
tracking_number | JSON | Optional | |
tracking_number (anyOf 1) | string | Alternative | The reference number provided by the carrier to track the shipment's progress. Maximum length: 100 |
tracking_number (anyOf 2) | null | Alternative | |
tracking_url | JSON | Optional | |
tracking_url (anyOf 1) | string | Alternative | A link to the tracking webpage on the carrier's website. Maximum length: 2000 |
tracking_url (anyOf 2) | null | Alternative |
Pay Order — response body — order line items The line items included in the order item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a line item in an order. Each line item describes a different product to purchase, with its own quantity and price details. |
applied_discounts | JSON | Optional | |
applied_discounts (anyOf 1) | array | Alternative | The list of references to discounts applied to this line item. Each `OrderLineItemAppliedDiscount` has a `discount_uid` that references the `uid` of a top-level `OrderLineItemDiscounts` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedDiscount` is automatically created on every line item for all `ORDER` scoped discounts that are added to the order. `OrderLineItemAppliedDiscount` records for `LINE_ITEM` scoped discounts must be added in requests for the discount to apply to any line items. To change the amount of a discount, modify the referenced top-level discount. |
applied_discounts (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order line items The line items included in the order item applied discounts array item |
applied_discounts (anyOf 2) | null | Alternative | |
applied_service_charges | JSON | Optional | |
applied_service_charges (anyOf 1) | array | Alternative | The list of references to service charges applied to this line item. Each `OrderLineItemAppliedServiceCharge` has a `service_charge_id` that references the `uid` of a top-level `OrderServiceCharge` applied to the line item. On reads, the amount applied is populated. To change the amount of a service charge, modify the referenced top-level service charge. |
applied_service_charges (anyOf 1)[] | Model | Each item | Expand 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) | null | Alternative | |
applied_taxes | JSON | Optional | |
applied_taxes (anyOf 1) | array | Alternative | The list of references to taxes applied to this line item. Each `OrderLineItemAppliedTax` has a `tax_uid` that references the `uid` of a top-level `OrderLineItemTax` applied to the line item. On reads, the amount applied is populated. An `OrderLineItemAppliedTax` is automatically created on every line item for all `ORDER` scoped taxes added to the order. `OrderLineItemAppliedTax` records for `LINE_ITEM` scoped taxes must be added in requests for the tax to apply to any line items. To change the amount of a tax, modify the referenced top-level tax. |
applied_taxes (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order line items The line items included in the order item applied taxes array item |
applied_taxes (anyOf 2) | null | Alternative | |
base_price_money | JSON | Optional | |
base_price_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The [CatalogItemVariation](entity:CatalogItemVariation) ID applied to this line item. Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this line item references. Format: int64 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
catalog_version (anyOf 2) | null | Alternative | |
gross_sales_money | Model | Optional | Expand 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_type | JSON | Optional | |
item_type (anyOf 1) | string | Alternative | Represents the line item type. The type of line item: an itemized sale, a non-itemized sale (custom amount), or the activation or reloading of a gift card. See [OrderLineItemItemType](#type-orderlineitemitemtype) for possible values Known values: ITEM, CUSTOM_AMOUNT, GIFT_CARD |
item_type (anyOf 2) | null | Alternative | |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this line item. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
modifiers | JSON | Optional | |
modifiers (anyOf 1) | array | Alternative | The [CatalogModifier](entity:CatalogModifier)s applied to this line item. |
modifiers (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order line items The line items included in the order item modifiers array item |
modifiers (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the line item. Maximum length: 512 |
name (anyOf 2) | null | Alternative | |
note | JSON | Optional | |
note (anyOf 1) | string | Alternative | An optional note associated with the line item. Maximum length: 2000 |
note (anyOf 2) | null | Alternative | |
pricing_blocklists | JSON | Optional | |
pricing_blocklists (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes Describes pricing adjustments that are blocked from automatic application to a line item. For more information, see [Apply Taxes and Discounts](https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts). |
pricing_blocklists (anyOf 2) | null | Alternative | |
quantity | string | Required within parent | The count, or measurement, of a line item being purchased: If `quantity` is a whole number, and `quantity_unit` is not specified, then `quantity` denotes an item count. For example: `3` apples. If `quantity` is a whole or decimal number, and `quantity_unit` is also specified, then `quantity` denotes a measurement. For example: `2.25` pounds of broccoli. For more information, see [Specify item quantity and measurement unit](https://developer.squareup.com/docs/orders-api/create-orders#specify-item-quantity-and-measurement-unit). Line items with a quantity of `0` are automatically removed when paying for or otherwise completing the order. Maximum length: 12 Minimum length: 1 |
quantity_unit | JSON | Optional | |
quantity_unit (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
total_discount_money | Model | Optional | Expand Pay Order — response body — order total money The total amount of discount money to collect for the line item. Read only: true |
total_money | Model | Optional | Expand Pay Order — response body — order total money The total amount of money to collect for this line item. Read only: true |
total_service_charge_money | Model | Optional | Expand 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_money | Model | Optional | Expand Pay Order — response body — order total money The total amount of tax money to collect for the line item. Read only: true |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the line item only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative | |
variation_name | JSON | Optional | |
variation_name (anyOf 1) | string | Alternative | The name of the variation applied to this line item. Maximum length: 400 |
variation_name (anyOf 2) | null | Alternative | |
variation_total_price_money | Model | Optional | Expand 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an applied portion of a discount to a line item in an order. Order scoped discounts have automatically applied discounts present for each line item. Line-item scoped discounts must have applied discounts added manually for any applicable line items. The corresponding applied money is automatically computed based on participating line items. |
applied_money | Model | Optional | Expand Pay Order — response body — order total money The amount of money applied by the discount to the line item. Read only: true |
discount_uid | string | Required within parent | The `uid` of the discount that the applied discount represents. It must reference a discount present in the `order.discounts` field. This field is immutable. To change which discounts apply to a line item, you must delete the discount and re-add it as a new `OrderLineItemAppliedDiscount`. Maximum length: 60 Minimum length: 1 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the applied discount only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
applied_money | Model | Optional | Expand 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_uid | string | Required within parent | The `uid` of the service charge that the applied service charge represents. It must reference a service charge present in the `order.service_charges` field. This field is immutable. To change which service charges apply to a line item, delete and add a new `OrderLineItemAppliedServiceCharge`. Maximum length: 60 Minimum length: 1 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the applied service charge only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an applied portion of a tax to a line item in an order. Order-scoped taxes automatically include the applied taxes in each line item. Line item taxes must be referenced from any applicable line items. The corresponding applied money is automatically computed, based on the set of participating line items. |
applied_money | Model | Optional | Expand Pay Order — response body — order total money The amount of money applied by the tax to the line item. Read only: true |
auto_applied | boolean | Optional | Indicates whether the tax was automatically applied to the order based on the catalog configuration. For an example, see [Automatically Apply Taxes to an Order](https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes). Read only: true |
tax_uid | string | Required within parent | The `uid` of the tax for which this applied tax represents. It must reference a tax present in the `order.taxes` field. This field is immutable. To change which taxes apply to a line item, delete and add a new `OrderLineItemAppliedTax`. Maximum length: 60 Minimum length: 1 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the applied tax only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A [CatalogModifier](entity:CatalogModifier). |
base_price_money | JSON | Optional | |
base_price_money (anyOf 1) | Model | Alternative | Expand 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) | null | Alternative | |
catalog_object_id | JSON | Optional | |
catalog_object_id (anyOf 1) | string | Alternative | The catalog object ID referencing [CatalogModifier](entity:CatalogModifier). Maximum length: 192 |
catalog_object_id (anyOf 2) | null | Alternative | |
catalog_version | JSON | Optional | |
catalog_version (anyOf 1) | JSON | Alternative | |
catalog_version (anyOf 1) (anyOf 1) | integer | Alternative | The version of the catalog object that this modifier references. Format: int64 |
catalog_version (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
catalog_version (anyOf 2) | null | Alternative | |
metadata | JSON | Optional | |
metadata (anyOf 1) | object | Alternative | Application-defined data attached to this order. Metadata fields are intended to store descriptive references or associations with an entity in another system or store brief information about the object. Square does not process this field; it only stores and returns it in relevant API calls. Do not use metadata to store any sensitive information (such as personally identifiable information or card details). Keys written by applications must be 60 characters or less and must be in the character set `[a-zA-Z0-9_-]`. Entries can also include metadata generated by Square. These keys are prefixed with a namespace, separated from the key with a ':' character. Values have a maximum length of 255 characters. An application can have up to 10 entries per metadata field. Entries written by applications are private and can only be read or modified by the same application. For more information, see [Metadata](https://developer.squareup.com/docs/build-basics/metadata). Additional keys: see wildcard field |
metadata (anyOf 1).* | string | Additional keys | |
metadata (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the item modifier. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
parent_modifier_uid | JSON | Optional | |
parent_modifier_uid (anyOf 1) | string | Alternative | The `uid` of the parent modifier, if this modifier is nested under another modifier. Maximum length: 60 |
parent_modifier_uid (anyOf 2) | null | Alternative | |
quantity | JSON | Optional | |
quantity (anyOf 1) | string | Alternative | The quantity of the line item modifier. The modifier quantity can be 0 or more. For example, suppose a restaurant offers a cheeseburger on the menu. When a buyer orders this item, the restaurant records the purchase by creating an `Order` object with a line item for a burger. The line item includes a line item modifier: the name is cheese and the quantity is 1. The buyer has the option to order extra cheese (or no cheese). If the buyer chooses the extra cheese option, the modifier quantity increases to 2. If the buyer does not want any cheese, the modifier quantity is set to 0. |
quantity (anyOf 2) | null | Alternative | |
total_price_money | Model | Optional | Expand 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 |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID that identifies the modifier only within this order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
Referenced models: 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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | 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). |
blocked_discounts | JSON | Optional | |
blocked_discounts (anyOf 1) | array | Alternative | A 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)[] | Model | Each item | Expand Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes blocked discounts array item |
blocked_discounts (anyOf 2) | null | Alternative | |
blocked_service_charges | JSON | Optional | |
blocked_service_charges (anyOf 1) | array | Alternative | A 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)[] | Model | Each item | Expand Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes blocked service charges array item |
blocked_service_charges (anyOf 2) | null | Alternative | |
blocked_taxes | JSON | Optional | |
blocked_taxes (anyOf 1) | array | Alternative | A 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)[] | Model | Each item | Expand Pay Order — response body — order line items The line items included in the order item pricing blocklists blocked discounts, blocked service charges, blocked taxes blocked taxes array item |
blocked_taxes (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A 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_id | JSON | Optional | |
discount_catalog_object_id (anyOf 1) | string | Alternative | The `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) | null | Alternative | |
discount_uid | JSON | Optional | |
discount_uid (anyOf 1) | string | Alternative | The `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) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID of the `BlockedDiscount` within the order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |
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
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A 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_id | JSON | Optional | |
service_charge_catalog_object_id (anyOf 1) | string | Alternative | The `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) | null | Alternative | |
service_charge_uid | JSON | Optional | |
service_charge_uid (anyOf 1) | string | Alternative | The `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) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID of the `BlockedServiceCharge` within the order. Maximum length: 60 |
uid (anyOf 2) | null | Alternative |