Square: V1 transactions schemas
5 Square schemas with complete fields and constraints.
← V1 transactions operations · All schemas
V1 Update Order — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | V1UpdateOrderRequest |
action | string | Required within parent | The action to perform on the order (COMPLETE, CANCEL, or REFUND). See [V1UpdateOrderRequestAction](#type-v1updateorderrequestaction) for possible values One of: COMPLETE, CANCEL, REFUND |
canceled_note | JSON | Optional | |
canceled_note (anyOf 1) | string | Alternative | A merchant-specified note about the canceling of the order. Only valid if action is CANCEL. |
canceled_note (anyOf 2) | null | Alternative | |
completed_note | JSON | Optional | |
completed_note (anyOf 1) | string | Alternative | A merchant-specified note about the completion of the order. Only valid if action is COMPLETE. |
completed_note (anyOf 2) | null | Alternative | |
refunded_note | JSON | Optional | |
refunded_note (anyOf 1) | string | Alternative | A merchant-specified note about the refunding of the order. Only valid if action is REFUND. |
refunded_note (anyOf 2) | null | Alternative | |
shipped_tracking_number | JSON | Optional | |
shipped_tracking_number (anyOf 1) | string | Alternative | The tracking number of the shipment associated with the order. Only valid if action is COMPLETE. |
shipped_tracking_number (anyOf 2) | null | Alternative |
V1 Update Order — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | V1Order |
btc_price_satoshi | JSON | Optional | |
btc_price_satoshi (anyOf 1) | JSON | Alternative | |
btc_price_satoshi (anyOf 1) (anyOf 1) | number | Alternative | For Bitcoin transactions, the price of the buyer's order in satoshi (100 million satoshi equals 1 BTC). |
btc_price_satoshi (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
btc_price_satoshi (anyOf 2) | null | Alternative | |
btc_receive_address | JSON | Optional | |
btc_receive_address (anyOf 1) | string | Alternative | For Bitcoin transactions, the address that the buyer sent Bitcoin to. |
btc_receive_address (anyOf 2) | null | Alternative | |
buyer_email | JSON | Optional | |
buyer_email (anyOf 1) | string | Alternative | The email address of the order's buyer. |
buyer_email (anyOf 2) | null | Alternative | |
buyer_note | JSON | Optional | |
buyer_note (anyOf 1) | string | Alternative | A note provided by the buyer when the order was created, if any. |
buyer_note (anyOf 2) | null | Alternative | |
canceled_note | JSON | Optional | |
canceled_note (anyOf 1) | string | Alternative | A note provided by the merchant when the order's state was set to CANCELED, if any. |
canceled_note (anyOf 2) | null | Alternative | |
completed_note | JSON | Optional | |
completed_note (anyOf 1) | string | Alternative | A note provided by the merchant when the order's state was set to COMPLETED, if any |
completed_note (anyOf 2) | null | Alternative | |
created_at | string | Optional | The time when the order was created, in ISO 8601 format. |
errors | JSON | Optional | |
errors (anyOf 1) | array | Alternative | Any errors that occurred during the request. |
errors (anyOf 1)[] | Model | Each item | Expand Get Shift — response body — errors item |
errors (anyOf 2) | null | Alternative | |
expires_at | JSON | Optional | |
expires_at (anyOf 1) | string | Alternative | The time when the order expires if no action is taken, in ISO 8601 format. |
expires_at (anyOf 2) | null | Alternative | |
id | string | Optional | The order's unique identifier. |
order_history | JSON | Optional | |
order_history (anyOf 1) | array | Alternative | The history of actions associated with the order. |
order_history (anyOf 1)[] | Model | Each item | Expand V1 Update Order — response body — order history The history of actions associated with the order item |
order_history (anyOf 2) | null | Alternative | |
payment_id | JSON | Optional | |
payment_id (anyOf 1) | string | Alternative | The unique identifier of the payment associated with the order. |
payment_id (anyOf 2) | null | Alternative | |
promo_code | JSON | Optional | |
promo_code (anyOf 1) | string | Alternative | The promo code provided by the buyer, if any. |
promo_code (anyOf 2) | null | Alternative | |
recipient_name | JSON | Optional | |
recipient_name (anyOf 1) | string | Alternative | The name of the order's buyer. |
recipient_name (anyOf 2) | null | Alternative | |
recipient_phone_number | JSON | Optional | |
recipient_phone_number (anyOf 1) | string | Alternative | The phone number to use for the order's delivery. |
recipient_phone_number (anyOf 2) | null | Alternative | |
refunded_note | JSON | Optional | |
refunded_note (anyOf 1) | string | Alternative | A note provided by the merchant when the order's state was set to REFUNDED, if any. |
refunded_note (anyOf 2) | null | Alternative | |
shipping_address | JSON | Optional | |
shipping_address (anyOf 1) | Model | Alternative | Expand Get Payment — response body — payment billing address The address to ship the order to. |
shipping_address (anyOf 2) | null | Alternative | |
state | JSON | Optional | |
state (anyOf 1) | string | Alternative | Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. See [V1OrderState](#type-v1orderstate) for possible values Known values: PENDING, OPEN, COMPLETED, CANCELED, REFUNDED, REJECTED |
state (anyOf 2) | null | Alternative | |
subtotal_money | JSON | Optional | |
subtotal_money (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — subtotal money amount, currency code The amount of all items purchased in the order, before taxes and shipping. |
subtotal_money (anyOf 2) | null | Alternative | |
tender | JSON | Optional | |
tender (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — tender card brand, change back money, employee id, entry method, id, is exchange, name, pan suffix, payment note, receipt url, refunded money, settled at, tendered at, tendered money, total money, type The tender used to pay for the order. |
tender (anyOf 2) | null | Alternative | |
total_discount_money | JSON | Optional | |
total_discount_money (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — subtotal money amount, currency code The total of all discounts applied to the order. |
total_discount_money (anyOf 2) | null | Alternative | |
total_price_money | JSON | Optional | |
total_price_money (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — subtotal money amount, currency code The total cost of the order. |
total_price_money (anyOf 2) | null | Alternative | |
total_shipping_money | JSON | Optional | |
total_shipping_money (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — subtotal money amount, currency code The shipping cost for the order. |
total_shipping_money (anyOf 2) | null | Alternative | |
total_tax_money | JSON | Optional | |
total_tax_money (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — subtotal money amount, currency code The total of all taxes applied to the order. |
total_tax_money (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The time when the order was last modified, in ISO 8601 format. |
Referenced models: Get Payment — response body — payment billing address, Get Shift — response body — errors item, V1 Update Order — response body — subtotal money amount, currency code, V1 Update Order — response body — order history The history of actions associated with the order item, V1 Update Order — response body — tender card brand, change back money, employee id, entry method, id, is exchange, name, pan suffix, payment note, receipt url, refunded money, settled at, tendered at, tendered money, total money, type
V1 Update Order — response body — order history The history of actions associated with the order item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | V1OrderHistoryEntry |
action | JSON | Optional | |
action (anyOf 1) | string | Alternative | The type of action performed on the order. See [V1OrderHistoryEntryAction](#type-v1orderhistoryentryaction) for possible values Known values: ORDER_PLACED, DECLINED, PAYMENT_RECEIVED, CANCELED, COMPLETED, REFUNDED, EXPIRED |
action (anyOf 2) | null | Alternative | |
created_at | string | Optional | The time when the action was performed, in ISO 8601 format. |
V1 Update Order — response body — subtotal money amount, currency code
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
amount | JSON | Optional | |
amount (anyOf 1) | JSON | Alternative | |
amount (anyOf 1) (anyOf 1) | integer | Alternative | Amount in the lowest denominated value of this Currency. E.g. in USD these are cents, in JPY they are Yen (which do not have a 'cent' concept). |
amount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
amount (anyOf 2) | null | Alternative | |
currency_code | JSON | Optional | |
currency_code (anyOf 1) | Model | Alternative | Expand Create Location — response body — location currency See [Currency](#type-currency) for possible values |
currency_code (anyOf 2) | null | Alternative |
Referenced models: Create Location — response body — location currency
V1 Update Order — response body — tender card brand, change back money, employee id, entry method, id, is exchange, name, pan suffix, payment note, receipt url, refunded money, settled at, tendered at, tendered money, total money, type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A tender represents a discrete monetary exchange. Square represents this exchange as a money object with a specific currency and amount, where the amount is given in the smallest denomination of the given currency. Square POS can accept more than one form of tender for a single payment (such as by splitting a bill between a credit card and a gift card). The `tender` field of the Payment object lists all forms of tender used for the payment. Split tender payments behave slightly differently from single tender payments: The receipt_url for a split tender corresponds only to the first tender listed in the tender field. To get the receipt URLs for the remaining tenders, use the receipt_url fields of the corresponding Tender objects. *A note on gift cards**: when a customer purchases a Square gift card from a merchant, the merchant receives the full amount of the gift card in the associated payment. When that gift card is used as a tender, the balance of the gift card is reduced and the merchant receives no funds. A `Tender` object with a type of `SQUARE_GIFT_CARD` indicates a gift card was used for some or all of the associated payment. |
card_brand | JSON | Optional | |
card_brand (anyOf 1) | string | Alternative | The brand of a credit card. The brand of credit card provided. See [V1TenderCardBrand](#type-v1tendercardbrand) for possible values Known values: OTHER_BRAND, VISA, MASTER_CARD, AMERICAN_EXPRESS, DISCOVER, DISCOVER_DINERS, JCB, CHINA_UNIONPAY, SQUARE_GIFT_CARD |
card_brand (anyOf 2) | null | Alternative | |
change_back_money | JSON | Optional | |
change_back_money (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — subtotal money amount, currency code The amount of total_money returned to the buyer as change. |
change_back_money (anyOf 2) | null | Alternative | |
employee_id | JSON | Optional | |
employee_id (anyOf 1) | string | Alternative | The ID of the employee that processed the tender. |
employee_id (anyOf 2) | null | Alternative | |
entry_method | JSON | Optional | |
entry_method (anyOf 1) | string | Alternative | The tender's unique ID. See [V1TenderEntryMethod](#type-v1tenderentrymethod) for possible values Known values: MANUAL, SCANNED, SQUARE_CASH, SQUARE_WALLET, SWIPED, WEB_FORM, OTHER |
entry_method (anyOf 2) | null | Alternative | |
id | string | Optional | The tender's unique ID. |
is_exchange | JSON | Optional | |
is_exchange (anyOf 1) | boolean | Alternative | Indicates whether or not the tender is associated with an exchange. If is_exchange is true, the tender represents the value of goods returned in an exchange not the actual money paid. The exchange value reduces the tender amounts needed to pay for items purchased in the exchange. |
is_exchange (anyOf 2) | null | Alternative | |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | A human-readable description of the tender. |
name (anyOf 2) | null | Alternative | |
pan_suffix | JSON | Optional | |
pan_suffix (anyOf 1) | string | Alternative | The last four digits of the provided credit card's account number. |
pan_suffix (anyOf 2) | null | Alternative | |
payment_note | JSON | Optional | |
payment_note (anyOf 1) | string | Alternative | Notes entered by the merchant about the tender at the time of payment, if any. Typically only present for tender with the type: OTHER. |
payment_note (anyOf 2) | null | Alternative | |
receipt_url | JSON | Optional | |
receipt_url (anyOf 1) | string | Alternative | The URL of the receipt for the tender. |
receipt_url (anyOf 2) | null | Alternative | |
refunded_money | JSON | Optional | |
refunded_money (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — subtotal money amount, currency code The total of all refunds applied to this tender. This amount is always negative or zero. |
refunded_money (anyOf 2) | null | Alternative | |
settled_at | JSON | Optional | |
settled_at (anyOf 1) | string | Alternative | The time when the tender was settled, in ISO 8601 format. |
settled_at (anyOf 2) | null | Alternative | |
tendered_at | JSON | Optional | |
tendered_at (anyOf 1) | string | Alternative | The time when the tender was created, in ISO 8601 format. |
tendered_at (anyOf 2) | null | Alternative | |
tendered_money | JSON | Optional | |
tendered_money (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — subtotal money amount, currency code The amount of total_money applied to the payment. |
tendered_money (anyOf 2) | null | Alternative | |
total_money | JSON | Optional | |
total_money (anyOf 1) | Model | Alternative | Expand V1 Update Order — response body — subtotal money amount, currency code The total amount of money provided in this form of tender. |
total_money (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | The type of tender. See [V1TenderType](#type-v1tendertype) for possible values Known values: CREDIT_CARD, CASH, THIRD_PARTY_CARD, NO_SALE, SQUARE_WALLET, SQUARE_GIFT_CARD, UNKNOWN, OTHER |
type (anyOf 2) | null | Alternative |
Referenced models: V1 Update Order — response body — subtotal money amount, currency code