Skip to content

Square: V1 transactions schemas

5 Square schemas with complete fields and constraints.

← V1 transactions operations · All schemas

V1 Update Order — request body — body

FieldTypePresenceDescription and constraints
$objectRootV1UpdateOrderRequest
actionstringRequired within parentThe action to perform on the order (COMPLETE, CANCEL, or REFUND).
See [V1UpdateOrderRequestAction](#type-v1updateorderrequestaction) for possible values
One of: COMPLETE, CANCEL, REFUND
canceled_noteJSONOptional
canceled_note (anyOf 1)stringAlternativeA merchant-specified note about the canceling of the order. Only valid if action is CANCEL.
canceled_note (anyOf 2)nullAlternative
completed_noteJSONOptional
completed_note (anyOf 1)stringAlternativeA merchant-specified note about the completion of the order. Only valid if action is COMPLETE.
completed_note (anyOf 2)nullAlternative
refunded_noteJSONOptional
refunded_note (anyOf 1)stringAlternativeA merchant-specified note about the refunding of the order. Only valid if action is REFUND.
refunded_note (anyOf 2)nullAlternative
shipped_tracking_numberJSONOptional
shipped_tracking_number (anyOf 1)stringAlternativeThe tracking number of the shipment associated with the order. Only valid if action is COMPLETE.
shipped_tracking_number (anyOf 2)nullAlternative

V1 Update Order — response body

FieldTypePresenceDescription and constraints
$objectRootV1Order
btc_price_satoshiJSONOptional
btc_price_satoshi (anyOf 1)JSONAlternative
btc_price_satoshi (anyOf 1) (anyOf 1)numberAlternativeFor Bitcoin transactions, the price of the buyer's order in satoshi (100 million satoshi equals 1 BTC).
btc_price_satoshi (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
btc_price_satoshi (anyOf 2)nullAlternative
btc_receive_addressJSONOptional
btc_receive_address (anyOf 1)stringAlternativeFor Bitcoin transactions, the address that the buyer sent Bitcoin to.
btc_receive_address (anyOf 2)nullAlternative
buyer_emailJSONOptional
buyer_email (anyOf 1)stringAlternativeThe email address of the order's buyer.
buyer_email (anyOf 2)nullAlternative
buyer_noteJSONOptional
buyer_note (anyOf 1)stringAlternativeA note provided by the buyer when the order was created, if any.
buyer_note (anyOf 2)nullAlternative
canceled_noteJSONOptional
canceled_note (anyOf 1)stringAlternativeA note provided by the merchant when the order's state was set to CANCELED, if any.
canceled_note (anyOf 2)nullAlternative
completed_noteJSONOptional
completed_note (anyOf 1)stringAlternativeA note provided by the merchant when the order's state was set to COMPLETED, if any
completed_note (anyOf 2)nullAlternative
created_atstringOptionalThe time when the order was created, in ISO 8601 format.
errorsJSONOptional
errors (anyOf 1)arrayAlternativeAny errors that occurred during the request.
errors (anyOf 1)[]ModelEach itemExpand Get Shift — response body — errors item
errors (anyOf 2)nullAlternative
expires_atJSONOptional
expires_at (anyOf 1)stringAlternativeThe time when the order expires if no action is taken, in ISO 8601 format.
expires_at (anyOf 2)nullAlternative
idstringOptionalThe order's unique identifier.
order_historyJSONOptional
order_history (anyOf 1)arrayAlternativeThe history of actions associated with the order.
order_history (anyOf 1)[]ModelEach itemExpand V1 Update Order — response body — order history The history of actions associated with the order item
order_history (anyOf 2)nullAlternative
payment_idJSONOptional
payment_id (anyOf 1)stringAlternativeThe unique identifier of the payment associated with the order.
payment_id (anyOf 2)nullAlternative
promo_codeJSONOptional
promo_code (anyOf 1)stringAlternativeThe promo code provided by the buyer, if any.
promo_code (anyOf 2)nullAlternative
recipient_nameJSONOptional
recipient_name (anyOf 1)stringAlternativeThe name of the order's buyer.
recipient_name (anyOf 2)nullAlternative
recipient_phone_numberJSONOptional
recipient_phone_number (anyOf 1)stringAlternativeThe phone number to use for the order's delivery.
recipient_phone_number (anyOf 2)nullAlternative
refunded_noteJSONOptional
refunded_note (anyOf 1)stringAlternativeA note provided by the merchant when the order's state was set to REFUNDED, if any.
refunded_note (anyOf 2)nullAlternative
shipping_addressJSONOptional
shipping_address (anyOf 1)ModelAlternativeExpand Get Payment — response body — payment billing address
The address to ship the order to.
shipping_address (anyOf 2)nullAlternative
stateJSONOptional
state (anyOf 1)stringAlternativeWhether 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)nullAlternative
subtotal_moneyJSONOptional
subtotal_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
tenderJSONOptional
tender (anyOf 1)ModelAlternativeExpand 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)nullAlternative
total_discount_moneyJSONOptional
total_discount_money (anyOf 1)ModelAlternativeExpand V1 Update Order — response body — subtotal money amount, currency code
The total of all discounts applied to the order.
total_discount_money (anyOf 2)nullAlternative
total_price_moneyJSONOptional
total_price_money (anyOf 1)ModelAlternativeExpand V1 Update Order — response body — subtotal money amount, currency code
The total cost of the order.
total_price_money (anyOf 2)nullAlternative
total_shipping_moneyJSONOptional
total_shipping_money (anyOf 1)ModelAlternativeExpand V1 Update Order — response body — subtotal money amount, currency code
The shipping cost for the order.
total_shipping_money (anyOf 2)nullAlternative
total_tax_moneyJSONOptional
total_tax_money (anyOf 1)ModelAlternativeExpand V1 Update Order — response body — subtotal money amount, currency code
The total of all taxes applied to the order.
total_tax_money (anyOf 2)nullAlternative
updated_atstringOptionalThe 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

FieldTypePresenceDescription and constraints
$objectRootV1OrderHistoryEntry
actionJSONOptional
action (anyOf 1)stringAlternativeThe 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)nullAlternative
created_atstringOptionalThe time when the action was performed, in ISO 8601 format.

V1 Update Order — response body — subtotal money amount, currency code

FieldTypePresenceDescription and constraints
$objectRoot
amountJSONOptional
amount (anyOf 1)JSONAlternative
amount (anyOf 1) (anyOf 1)integerAlternativeAmount 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)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
amount (anyOf 2)nullAlternative
currency_codeJSONOptional
currency_code (anyOf 1)ModelAlternativeExpand Create Location — response body — location currency

See [Currency](#type-currency) for possible values
currency_code (anyOf 2)nullAlternative

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

FieldTypePresenceDescription and constraints
$objectRootA 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_brandJSONOptional
card_brand (anyOf 1)stringAlternativeThe 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)nullAlternative
change_back_moneyJSONOptional
change_back_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
employee_idJSONOptional
employee_id (anyOf 1)stringAlternativeThe ID of the employee that processed the tender.
employee_id (anyOf 2)nullAlternative
entry_methodJSONOptional
entry_method (anyOf 1)stringAlternativeThe 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)nullAlternative
idstringOptionalThe tender's unique ID.
is_exchangeJSONOptional
is_exchange (anyOf 1)booleanAlternativeIndicates 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)nullAlternative
nameJSONOptional
name (anyOf 1)stringAlternativeA human-readable description of the tender.
name (anyOf 2)nullAlternative
pan_suffixJSONOptional
pan_suffix (anyOf 1)stringAlternativeThe last four digits of the provided credit card's account number.
pan_suffix (anyOf 2)nullAlternative
payment_noteJSONOptional
payment_note (anyOf 1)stringAlternativeNotes 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)nullAlternative
receipt_urlJSONOptional
receipt_url (anyOf 1)stringAlternativeThe URL of the receipt for the tender.
receipt_url (anyOf 2)nullAlternative
refunded_moneyJSONOptional
refunded_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
settled_atJSONOptional
settled_at (anyOf 1)stringAlternativeThe time when the tender was settled, in ISO 8601 format.
settled_at (anyOf 2)nullAlternative
tendered_atJSONOptional
tendered_at (anyOf 1)stringAlternativeThe time when the tender was created, in ISO 8601 format.
tendered_at (anyOf 2)nullAlternative
tendered_moneyJSONOptional
tendered_money (anyOf 1)ModelAlternativeExpand V1 Update Order — response body — subtotal money amount, currency code
The amount of total_money applied to the payment.
tendered_money (anyOf 2)nullAlternative
total_moneyJSONOptional
total_money (anyOf 1)ModelAlternativeExpand 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)nullAlternative
typeJSONOptional
type (anyOf 1)stringAlternativeThe 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)nullAlternative

Referenced models: V1 Update Order — response body — subtotal money amount, currency code

Report an issue with this page

Necessary

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

Always active

Analytics

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

Performance diagnostics

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

Advertising

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

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