Square: Checkout schemas
47 Square schemas with complete fields and constraints.
← Checkout operations · All schemas
Create Checkout — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the parameters that can be included in the body of a request to the `CreateCheckout` endpoint. |
additional_recipients | array | Optional | The basic primitive of a multi-party transaction. The value is optional. The transaction facilitated by you can be split from here. If you provide this value, the `amount_money` value in your `additional_recipients` field cannot be more than 90% of the `total_money` calculated by Square for your order. The `location_id` must be a valid seller location where the checkout is occurring. This field requires `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission. This field is currently not supported in the Square Sandbox. |
additional_recipients[] | Model | Each item | Expand Create Checkout — request body — body additional recipients item |
ask_for_shipping_address | boolean | Optional | If `true`, Square Checkout collects shipping information on your behalf and stores that information with the transaction information in the Square Seller Dashboard. Default: `false`. |
idempotency_key | string | Required within parent | A unique string that identifies this checkout among others you have created. It can be any valid string but must be unique for every order sent to Square Checkout for a given location ID. The idempotency key is used to avoid processing the same order more than once. If you are unsure whether a particular checkout was created successfully, you can attempt it again with the same idempotency key and all the same other parameters without worrying about creating duplicates. You should use a random number/string generator native to the language you are working in to generate strings for your idempotency keys. For more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency). Maximum length: 192 Minimum length: 1 |
merchant_support_email | string | Optional | The email address to display on the Square Checkout confirmation page and confirmation email that the buyer can use to contact the seller. If this value is not set, the confirmation page and email display the primary email address associated with the seller's Square account. Default: none; only exists if explicitly set. Maximum length: 254 |
note | string | Optional | An optional note to associate with the `checkout` object. This value cannot exceed 60 characters. Maximum length: 60 |
order | Model | Required within parent | Expand Create Order — request body — body The order including line items to be checked out. |
pre_populate_buyer_email | string | Optional | If provided, the buyer's email is prepopulated on the checkout page as an editable text field. Default: none; only exists if explicitly set. Maximum length: 254 |
pre_populate_shipping_address | Model | Optional | Expand Create Customer — request body — body address If provided, the buyer's shipping information is prepopulated on the checkout page as editable text fields. Default: none; only exists if explicitly set. |
redirect_url | string | Optional | The URL to redirect to after the checkout is completed with `checkoutId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect URL is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: `http://www.example.com/order-complete?checkoutId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx` If you do not provide a redirect URL, Square Checkout displays an order confirmation page on your behalf; however, it is strongly recommended that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow. Default: none; only exists if explicitly set. Maximum length: 800 |
Referenced models: Create Customer — request body — body address, Create Checkout — request body — body additional recipients item, Create Order — request body — body
Create Checkout — request body — body additional recipients item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an additional recipient (other than the merchant) entitled to a portion of the tender. Support is currently limited to USD, CAD and GBP currencies |
amount_money | Model | Required within parent | Expand Create Payment — request body — body tip money The amount of money distributed to the recipient. |
description | string | Required within parent | The description of the additional recipient. Maximum length: 100 Minimum length: 1 |
location_id | string | Required within parent | The location ID for a recipient (other than the merchant) receiving a portion of the tender. Maximum length: 50 Minimum length: 1 |
Referenced models: Create Payment — request body — body tip money
Create Checkout — 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 `CreateCheckout` endpoint. |
checkout | Model | Optional | Expand Create Checkout — response body — checkout The newly created `checkout` object associated with the provided idempotency key. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
Referenced models: Create Checkout — response body — checkout, Get Shift — response body — errors item
Create Checkout — response body — checkout
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Square Checkout lets merchants accept online payments for supported payment types using a checkout workflow hosted on squareup.com. |
additional_recipients | JSON | Optional | |
additional_recipients (anyOf 1) | array | Alternative | Additional recipients (other than the merchant) receiving a portion of this checkout. For example, fees assessed on the purchase by a third party integration. |
additional_recipients (anyOf 1)[] | Model | Each item | Expand Create Checkout — response body — checkout additional recipients array item |
additional_recipients (anyOf 2) | null | Alternative | |
ask_for_shipping_address | JSON | Optional | |
ask_for_shipping_address (anyOf 1) | boolean | Alternative | If `true`, Square Checkout will collect shipping information on your behalf and store that information with the transaction information in your Square Dashboard. Default: `false`. |
ask_for_shipping_address (anyOf 2) | null | Alternative | |
checkout_page_url | JSON | Optional | |
checkout_page_url (anyOf 1) | string | Alternative | The URL that the buyer's browser should be redirected to after the checkout is completed. |
checkout_page_url (anyOf 2) | null | Alternative | |
created_at | string | Optional | The time when the checkout was created, in RFC 3339 format. Read only: true |
id | string | Optional | ID generated by Square Checkout when a new checkout is requested. |
merchant_support_email | JSON | Optional | |
merchant_support_email (anyOf 1) | string | Alternative | The email address to display on the Square Checkout confirmation page and confirmation email that the buyer can use to contact the merchant. If this value is not set, the confirmation page and email will display the primary email address associated with the merchant's Square account. Default: none; only exists if explicitly set. |
merchant_support_email (anyOf 2) | null | Alternative | |
order | JSON | Optional | |
order (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order Order to be checked out. |
order (anyOf 2) | null | Alternative | |
pre_populate_buyer_email | JSON | Optional | |
pre_populate_buyer_email (anyOf 1) | string | Alternative | If provided, the buyer's email is pre-populated on the checkout page as an editable text field. Default: none; only exists if explicitly set. |
pre_populate_buyer_email (anyOf 2) | null | Alternative | |
pre_populate_shipping_address | JSON | Optional | |
pre_populate_shipping_address (anyOf 1) | Model | Alternative | Expand Get Payment — response body — payment billing address If provided, the buyer's shipping info is pre-populated on the checkout page as editable text fields. Default: none; only exists if explicitly set. |
pre_populate_shipping_address (anyOf 2) | null | Alternative | |
redirect_url | JSON | Optional | |
redirect_url (anyOf 1) | string | Alternative | The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: <pre><code>http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx</code></pre> If you do not provide a redirect URL, Square Checkout will display an order confirmation page on your behalf; however Square strongly recommends that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow. |
redirect_url (anyOf 2) | null | Alternative |
Referenced models: Create Checkout — response body — checkout additional recipients array item, Get Payment — response body — payment billing address, Pay Order — response body — order
Create Checkout — response body — checkout additional recipients array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents an additional recipient (other than the merchant) receiving a portion of this tender. |
amount_money | Model | Required within parent | Expand Pay Order — response body — order total money The amount of money distributed to the recipient. |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The description of the additional recipient. Maximum length: 100 |
description (anyOf 2) | null | Alternative | |
location_id | string | Required within parent | The location ID for a recipient (other than the merchant) receiving a portion of this tender. Maximum length: 50 Minimum length: 1 |
receivable_id | JSON | Optional | |
receivable_id (anyOf 1) | string | Alternative | The unique ID for the RETIRED `AdditionalRecipientReceivable` object. This field should be empty for any `AdditionalRecipient` objects created after the retirement. Maximum length: 192 |
receivable_id (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Create Payment Link — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
checkout_options | Model | Optional | Expand Create Payment Link — request body — body checkout options Describes optional fields to add to the resulting checkout page. For more information, see [Optional Checkout Configurations](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations). |
description | string | Optional | A description of the payment link. You provide this optional description that is useful in your application context. It is not used anywhere. Maximum length: 4096 |
idempotency_key | string | Optional | A unique string that identifies this `CreatePaymentLinkRequest` request. If you do not provide a unique string (or provide an empty string as the value), the endpoint treats each request as independent. For more information, see [Idempotency](https://developer.squareup.com/docs/working-with-apis/idempotency). Maximum length: 192 |
order | Model | Optional | Expand Create Order — request body — body order Describes the `Order` for which to create a checkout link. For more information, see [Square Order Checkout](https://developer.squareup.com/docs/checkout-api/square-order-checkout). |
payment_note | string | Optional | A note for the payment. After processing the payment, Square adds this note to the resulting `Payment` as well as the post payment confirmation email. Maximum length: 500 |
pre_populated_data | Model | Optional | Expand Create Payment Link — request body — body pre populated data Describes fields to prepopulate in the resulting checkout page. For more information, see [Prepopulate the shipping address](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations#prepopulate-the-shipping-address). |
quick_pay | Model | Optional | Expand Create Payment Link — request body — body quick pay Describes an ad hoc item and price for which to generate a quick pay checkout link. For more information, see [Quick Pay Checkout](https://developer.squareup.com/docs/checkout-api/quick-pay-checkout). |
Referenced models: Create Payment Link — request body — body checkout options, Create Order — request body — body order, Create Payment Link — request body — body pre populated data, Create Payment Link — request body — body quick pay
Create Payment Link — request body — body checkout options
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
accepted_payment_methods | JSON | Optional | |
accepted_payment_methods (anyOf 1) | Model | Alternative | Expand Create Payment Link — request body — body checkout options accepted payment methods afterpay clearpay, apple pay, bank account, cash app pay, google pay The methods allowed for buyers during checkout. |
accepted_payment_methods (anyOf 2) | null | Alternative | |
allow_tipping | JSON | Optional | |
allow_tipping (anyOf 1) | boolean | Alternative | Indicates whether the payment allows tipping. |
allow_tipping (anyOf 2) | null | Alternative | |
app_fee_money | JSON | Optional | |
app_fee_money (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money The amount of money that the developer is taking as a fee for facilitating the payment on behalf of the seller. The amount cannot be more than 90% of the total amount of the payment. The amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-monetary-amounts). The fee currency code must match the currency associated with the seller that is accepting the payment. The application must be from a developer account in the same country and using the same currency code as the seller. For more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). To set this field, `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/collect-fees/additional-considerations#permissions). |
app_fee_money (anyOf 2) | null | Alternative | |
ask_for_shipping_address | JSON | Optional | |
ask_for_shipping_address (anyOf 1) | boolean | Alternative | Indicates whether to include the address fields in the payment form. |
ask_for_shipping_address (anyOf 2) | null | Alternative | |
custom_fields | JSON | Optional | |
custom_fields (anyOf 1) | array | Alternative | The custom fields requesting information from the buyer. |
custom_fields (anyOf 1)[] | Model | Each item | Expand Create Payment Link — request body — body checkout options custom fields array item |
custom_fields (anyOf 2) | null | Alternative | |
enable_coupon | JSON | Optional | |
enable_coupon (anyOf 1) | boolean | Alternative | Indicates whether to include the `Add coupon` section for the buyer to provide a Square marketing coupon in the payment form. |
enable_coupon (anyOf 2) | null | Alternative | |
enable_loyalty | JSON | Optional | |
enable_loyalty (anyOf 1) | boolean | Alternative | Indicates whether to include the `REWARDS` section for the buyer to opt in to loyalty, redeem rewards in the payment form, or both. |
enable_loyalty (anyOf 2) | null | Alternative | |
merchant_support_email | JSON | Optional | |
merchant_support_email (anyOf 1) | string | Alternative | The email address that buyers can use to contact the seller. Maximum length: 256 |
merchant_support_email (anyOf 2) | null | Alternative | |
phone_collection | JSON | Optional | |
phone_collection (anyOf 1) | string | Alternative | Indicates how the buyer's phone number is collected on the checkout page. When `REQUIRED` (default), the buyer must provide a phone number to complete checkout. When `OPTIONAL`, the phone field is shown but not required. When `HIDDEN`, the field is not shown. Leaving this field unset preserves the historical behavior (`REQUIRED`). See [PhoneCollection](#type-phonecollection) for possible values One of: REQUIRED, OPTIONAL, HIDDEN |
phone_collection (anyOf 2) | null | Alternative | |
redirect_url | JSON | Optional | |
redirect_url (anyOf 1) | string | Alternative | The confirmation page URL to redirect the buyer to after Square processes the payment. Maximum length: 2048 |
redirect_url (anyOf 2) | null | Alternative | |
shipping_fee | JSON | Optional | |
shipping_fee (anyOf 1) | Model | Alternative | Expand Create Payment Link — request body — body checkout options shipping fee charge, name The fee associated with shipping to be applied to the `Order` as a service charge. |
shipping_fee (anyOf 2) | null | Alternative | |
subscription_plan_id | JSON | Optional | |
subscription_plan_id (anyOf 1) | string | Alternative | The ID of the subscription plan for the buyer to pay and subscribe. For more information, see [Subscription Plan Checkout](https://developer.squareup.com/docs/checkout-api/subscription-plan-checkout). Maximum length: 255 |
subscription_plan_id (anyOf 2) | null | Alternative |
Referenced models: Create Payment Link — request body — body checkout options accepted payment methods afterpay clearpay, apple pay, bank account, cash app pay, google pay, Create Payment Link — request body — body checkout options custom fields array item, Create Payment — request body — body tip money, Create Payment Link — request body — body checkout options shipping fee charge, name
Create Payment Link — request body — body checkout options accepted payment methods afterpay clearpay, apple pay, bank account, cash app pay, google pay
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
afterpay_clearpay | JSON | Optional | |
afterpay_clearpay (anyOf 1) | boolean | Alternative | Whether Afterpay/Clearpay is accepted at checkout. |
afterpay_clearpay (anyOf 2) | null | Alternative | |
apple_pay | JSON | Optional | |
apple_pay (anyOf 1) | boolean | Alternative | Whether Apple Pay is accepted at checkout. |
apple_pay (anyOf 2) | null | Alternative | |
bank_account | JSON | Optional | |
bank_account (anyOf 1) | boolean | Alternative | Whether ACH bank transfer payments are accepted at checkout. When enabled, buyers can pay directly from their bank account via Plaid. This payment method is supported only for seller locations in the United States. When omitted from CreatePaymentLink, ACH is enabled for eligible one-time USD payments unless the seller has disabled ACH in their merchant settings. Set this field to false to disable ACH for the link. Existing links retain their saved setting when this field is omitted from an update. |
bank_account (anyOf 2) | null | Alternative | |
cash_app_pay | JSON | Optional | |
cash_app_pay (anyOf 1) | boolean | Alternative | Whether Cash App Pay is accepted at checkout. |
cash_app_pay (anyOf 2) | null | Alternative | |
google_pay | JSON | Optional | |
google_pay (anyOf 1) | boolean | Alternative | Whether Google Pay is accepted at checkout. |
google_pay (anyOf 2) | null | Alternative |
Create Payment Link — request body — body checkout options custom fields array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes a custom form field to add to the checkout page to collect more information from buyers during checkout. For more information, see [Specify checkout options](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations#specify-checkout-options-1). |
title | string | Required within parent | The title of the custom field. Maximum length: 50 Minimum length: 1 |
Create Payment Link — request body — body checkout options shipping fee charge, name
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
charge | Model | Required within parent | Expand Create Payment — request body — body tip money The amount and currency for the shipping fee. |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name for the shipping fee. |
name (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Create Payment Link — request body — body pre populated data
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes buyer data to prepopulate in the payment form. For more information, see [Optional Checkout Configurations](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations). |
buyer_address | JSON | Optional | |
buyer_address (anyOf 1) | Model | Alternative | Expand Create Customer — request body — body address The buyer address to prepopulate in the payment form. |
buyer_address (anyOf 2) | null | Alternative | |
buyer_email | JSON | Optional | |
buyer_email (anyOf 1) | string | Alternative | The buyer email to prepopulate in the payment form. Maximum length: 256 |
buyer_email (anyOf 2) | null | Alternative | |
buyer_phone_number | JSON | Optional | |
buyer_phone_number (anyOf 1) | string | Alternative | The buyer phone number to prepopulate in the payment form. Maximum length: 17 |
buyer_phone_number (anyOf 2) | null | Alternative |
Referenced models: Create Customer — request body — body address
Create Payment Link — request body — body quick pay
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes an ad hoc item and price to generate a quick pay checkout link. For more information, see [Quick Pay Checkout](https://developer.squareup.com/docs/checkout-api/quick-pay-checkout). |
location_id | string | Required within parent | The ID of the business location the checkout is associated with. |
name | string | Required within parent | The ad hoc item name. In the resulting `Order`, this name appears as the line item name. Maximum length: 255 Minimum length: 1 |
price_money | Model | Required within parent | Expand Create Payment — request body — body tip money The price of the item. |
Referenced models: Create Payment — request body — body tip money
Create Payment Link — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
payment_link | Model | Optional | Expand Create Payment Link — response body — payment link The created payment link. |
related_resources | Model | Optional | Expand Create Payment Link — response body — related resources The list of related objects. |
Referenced models: Get Shift — response body — errors item, Create Payment Link — response body — payment link, Create Payment Link — response body — related resources
Create Payment Link — response body — payment link
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
checkout_options | JSON | Optional | |
checkout_options (anyOf 1) | Model | Alternative | Expand Create Payment Link — response body — payment link checkout options accepted payment methods, allow tipping, app fee money, ask for shipping address, custom fields, enable coupon, enable loyalty, merchant support email, phone collection, redirect url, shipping fee, subscription plan id The checkout options configured for the payment link. For more information, see [Optional Checkout Configurations](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations). |
checkout_options (anyOf 2) | null | Alternative | |
created_at | string | Optional | The timestamp when the payment link was created, in RFC 3339 format. Read only: true |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The optional description of the `payment_link` object. It is primarily for use by your application and is not used anywhere. Maximum length: 4096 |
description (anyOf 2) | null | Alternative | |
id | string | Optional | The Square-assigned ID of the payment link. Read only: true |
long_url | string | Optional | The long URL of the payment link. Maximum length: 255 Read only: true |
order_id | string | Optional | The ID of the order associated with the payment link. Maximum length: 192 Read only: true |
payment_note | JSON | Optional | |
payment_note (anyOf 1) | string | Alternative | A note for the payment. After processing the payment, Square adds this note to the resulting `Payment` as well as the post payment confirmation email. Maximum length: 500 |
payment_note (anyOf 2) | null | Alternative | |
pre_populated_data | JSON | Optional | |
pre_populated_data (anyOf 1) | Model | Alternative | Expand Create Payment Link — response body — payment link pre populated data buyer address, buyer email, buyer phone number Describes buyer data to prepopulate on the checkout page. |
pre_populated_data (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the payment link was last updated, in RFC 3339 format. Read only: true |
url | string | Optional | The shortened URL of the payment link. Maximum length: 255 Read only: true |
version | JSON | Required within parent | |
version (anyOf 1) | integer | Alternative | The Square-assigned version number, which is incremented each time an update is committed to the payment link. Maximum: 65535 |
version (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Create Payment Link — response body — payment link checkout options accepted payment methods, allow tipping, app fee money, ask for shipping address, custom fields, enable coupon, enable loyalty, merchant support email, phone collection, redirect url, shipping fee, subscription plan id, Create Payment Link — response body — payment link pre populated data buyer address, buyer email, buyer phone number
Create Payment Link — response body — payment link checkout options accepted payment methods, allow tipping, app fee money, ask for shipping address, custom fields, enable coupon, enable loyalty, merchant support email, phone collection, redirect url, shipping fee, subscription plan id
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
accepted_payment_methods | JSON | Optional | |
accepted_payment_methods (anyOf 1) | Model | Alternative | Expand Create Payment Link — request body — body checkout options accepted payment methods afterpay clearpay, apple pay, bank account, cash app pay, google pay The methods allowed for buyers during checkout. |
accepted_payment_methods (anyOf 2) | null | Alternative | |
allow_tipping | JSON | Optional | |
allow_tipping (anyOf 1) | boolean | Alternative | Indicates whether the payment allows tipping. |
allow_tipping (anyOf 2) | null | Alternative | |
app_fee_money | JSON | Optional | |
app_fee_money (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money The amount of money that the developer is taking as a fee for facilitating the payment on behalf of the seller. The amount cannot be more than 90% of the total amount of the payment. The amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-monetary-amounts). The fee currency code must match the currency associated with the seller that is accepting the payment. The application must be from a developer account in the same country and using the same currency code as the seller. For more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees). To set this field, `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/collect-fees/additional-considerations#permissions). |
app_fee_money (anyOf 2) | null | Alternative | |
ask_for_shipping_address | JSON | Optional | |
ask_for_shipping_address (anyOf 1) | boolean | Alternative | Indicates whether to include the address fields in the payment form. |
ask_for_shipping_address (anyOf 2) | null | Alternative | |
custom_fields | JSON | Optional | |
custom_fields (anyOf 1) | array | Alternative | The custom fields requesting information from the buyer. |
custom_fields (anyOf 1)[] | Model | Each item | Expand Create Payment Link — request body — body checkout options custom fields array item |
custom_fields (anyOf 2) | null | Alternative | |
enable_coupon | JSON | Optional | |
enable_coupon (anyOf 1) | boolean | Alternative | Indicates whether to include the `Add coupon` section for the buyer to provide a Square marketing coupon in the payment form. |
enable_coupon (anyOf 2) | null | Alternative | |
enable_loyalty | JSON | Optional | |
enable_loyalty (anyOf 1) | boolean | Alternative | Indicates whether to include the `REWARDS` section for the buyer to opt in to loyalty, redeem rewards in the payment form, or both. |
enable_loyalty (anyOf 2) | null | Alternative | |
merchant_support_email | JSON | Optional | |
merchant_support_email (anyOf 1) | string | Alternative | The email address that buyers can use to contact the seller. Maximum length: 256 |
merchant_support_email (anyOf 2) | null | Alternative | |
phone_collection | JSON | Optional | |
phone_collection (anyOf 1) | string | Alternative | Indicates how the buyer's phone number is collected on the checkout page. When `REQUIRED` (default), the buyer must provide a phone number to complete checkout. When `OPTIONAL`, the phone field is shown but not required. When `HIDDEN`, the field is not shown. Leaving this field unset preserves the historical behavior (`REQUIRED`). See [PhoneCollection](#type-phonecollection) for possible values Known values: REQUIRED, OPTIONAL, HIDDEN |
phone_collection (anyOf 2) | null | Alternative | |
redirect_url | JSON | Optional | |
redirect_url (anyOf 1) | string | Alternative | The confirmation page URL to redirect the buyer to after Square processes the payment. Maximum length: 2048 |
redirect_url (anyOf 2) | null | Alternative | |
shipping_fee | JSON | Optional | |
shipping_fee (anyOf 1) | Model | Alternative | Expand Create Payment Link — response body — payment link checkout options accepted payment methods, allow tipping, app fee money, ask for shipping address, custom fields, enable coupon, enable loyalty, merchant support email, phone collection, redirect url, shipping fee, subscription plan id shipping fee charge, name The fee associated with shipping to be applied to the `Order` as a service charge. |
shipping_fee (anyOf 2) | null | Alternative | |
subscription_plan_id | JSON | Optional | |
subscription_plan_id (anyOf 1) | string | Alternative | The ID of the subscription plan for the buyer to pay and subscribe. For more information, see [Subscription Plan Checkout](https://developer.squareup.com/docs/checkout-api/subscription-plan-checkout). Maximum length: 255 |
subscription_plan_id (anyOf 2) | null | Alternative |
Referenced models: Create Payment Link — request body — body checkout options accepted payment methods afterpay clearpay, apple pay, bank account, cash app pay, google pay, Create Payment Link — request body — body checkout options custom fields array item, Pay Order — response body — order total money, Create Payment Link — response body — payment link checkout options accepted payment methods, allow tipping, app fee money, ask for shipping address, custom fields, enable coupon, enable loyalty, merchant support email, phone collection, redirect url, shipping fee, subscription plan id shipping fee charge, name
Create Payment Link — response body — payment link checkout options accepted payment methods, allow tipping, app fee money, ask for shipping address, custom fields, enable coupon, enable loyalty, merchant support email, phone collection, redirect url, shipping fee, subscription plan id shipping fee charge, name
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
charge | Model | Required within parent | Expand Pay Order — response body — order total money The amount and currency for the shipping fee. |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name for the shipping fee. |
name (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Create Payment Link — response body — payment link pre populated data buyer address, buyer email, buyer phone number
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Describes buyer data to prepopulate in the payment form. For more information, see [Optional Checkout Configurations](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations). |
buyer_address | JSON | Optional | |
buyer_address (anyOf 1) | Model | Alternative | Expand Get Payment — response body — payment billing address The buyer address to prepopulate in the payment form. |
buyer_address (anyOf 2) | null | Alternative | |
buyer_email | JSON | Optional | |
buyer_email (anyOf 1) | string | Alternative | The buyer email to prepopulate in the payment form. Maximum length: 256 |
buyer_email (anyOf 2) | null | Alternative | |
buyer_phone_number | JSON | Optional | |
buyer_phone_number (anyOf 1) | string | Alternative | The buyer phone number to prepopulate in the payment form. Maximum length: 17 |
buyer_phone_number (anyOf 2) | null | Alternative |
Referenced models: Get Payment — response body — payment billing address
Create Payment Link — response body — related resources
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
orders | JSON | Optional | |
orders (anyOf 1) | array | Alternative | The order associated with the payment link. |
orders (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order |
orders (anyOf 2) | null | Alternative | |
subscription_plans | JSON | Optional | |
subscription_plans (anyOf 1) | array | Alternative | The subscription plan associated with the payment link. |
subscription_plans (anyOf 1)[] | Model | Each item | Expand Create Catalog Image — response body — image |
subscription_plans (anyOf 2) | null | Alternative |
Referenced models: Create Catalog Image — response body — image, Pay Order — response body — order
Delete Payment Link — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cancelled_order_id | string | Optional | The ID of the order that is canceled. When a payment link is deleted, Square updates the the `state` (of the order that the checkout link created) to CANCELED. |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
id | string | Optional | The ID of the link that is deleted. |
Referenced models: Get Shift — response body — errors item
List Payment Links — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
cursor | string | Optional | When a response is truncated, it includes a cursor that you can use in a subsequent request to retrieve the next set of gift cards. If a cursor is not present, this is the final response. For more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination). |
errors | array | Optional | Errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
payment_links | array | Optional | The list of payment links. |
payment_links[] | Model | Each item | Expand Create Payment Link — response body — payment link |
Referenced models: Get Shift — response body — errors item, Create Payment Link — response body — payment link
Retrieve Location Settings — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
location_settings | Model | Optional | Expand Update Location Settings — response body — location settings The location settings. |
Referenced models: Update Location Settings — response body — location settings, Get Shift — response body — errors item
Retrieve Merchant Settings — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
merchant_settings | Model | Optional | Expand Update Merchant Settings — response body — merchant settings The merchant settings. |
Referenced models: Update Merchant Settings — response body — merchant settings, Get Shift — response body — errors item
Retrieve Payment Link — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
payment_link | Model | Optional | Expand Create Payment Link — response body — payment link The payment link that is retrieved. |
Referenced models: Get Shift — response body — errors item, Create Payment Link — response body — payment link
Update Location Settings — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
location_settings | Model | Required within parent | Expand Update Location Settings — request body — body location settings Describe your updates using the `location_settings` object. Make sure it contains only the fields that have changed. |
Referenced models: Update Location Settings — request body — body location settings
Update Location Settings — request body — body location settings
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
branding | JSON | Optional | |
branding (anyOf 1) | Model | Alternative | Expand Update Location Settings — request body — body location settings branding button color, button shape, header type The branding settings for this location. |
branding (anyOf 2) | null | Alternative | |
coupons | JSON | Optional | |
coupons (anyOf 1) | Model | Alternative | Expand Update Location Settings — response body — location settings coupons enabled The coupon settings for this location. |
coupons (anyOf 2) | null | Alternative | |
customer_notes_enabled | JSON | Optional | |
customer_notes_enabled (anyOf 1) | boolean | Alternative | Indicates whether customers are allowed to leave notes at checkout. |
customer_notes_enabled (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the location that these settings apply to. |
location_id (anyOf 2) | null | Alternative | |
policies | JSON | Optional | |
policies (anyOf 1) | array | Alternative | Policy information is displayed at the bottom of the checkout pages. You can set a maximum of two policies. |
policies (anyOf 1)[] | Model | Each item | Expand Update Location Settings — response body — location settings policies array item |
policies (anyOf 2) | null | Alternative | |
tipping | JSON | Optional | |
tipping (anyOf 1) | Model | Alternative | Expand Update Location Settings — request body — body location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips The tip settings for this location. |
tipping (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the settings were last updated, in RFC 3339 format. Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00 Read only: true |
Referenced models: Update Location Settings — request body — body location settings branding button color, button shape, header type, Update Location Settings — response body — location settings coupons enabled, Update Location Settings — response body — location settings policies array item, Update Location Settings — request body — body location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips
Update Location Settings — request body — body location settings branding button color, button shape, header type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
button_color | JSON | Optional | |
button_color (anyOf 1) | string | Alternative | The HTML-supported hex color for the button on the checkout page (for example, "#FFFFFF"). Maximum length: 7 Minimum length: 7 |
button_color (anyOf 2) | null | Alternative | |
button_shape | JSON | Optional | |
button_shape (anyOf 1) | string | Alternative | The shape of the button on the checkout page. See [ButtonShape](#type-buttonshape) for possible values One of: SQUARED, ROUNDED, PILL |
button_shape (anyOf 2) | null | Alternative | |
header_type | JSON | Optional | |
header_type (anyOf 1) | string | Alternative | Show the location logo on the checkout page. See [HeaderType](#type-headertype) for possible values One of: BUSINESS_NAME, FRAMED_LOGO, FULL_WIDTH_LOGO |
header_type (anyOf 2) | null | Alternative |
Update Location Settings — request body — body location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
default_percent | JSON | Optional | |
default_percent (anyOf 1) | integer | Alternative | Set the pre-selected percentage amounts that appear at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more. |
default_percent (anyOf 2) | null | Alternative | |
default_smart_tip | JSON | Optional | |
default_smart_tip (anyOf 1) | Model | Alternative | Expand Create Payment — request body — body tip money Set the pre-selected whole amount that appears at checkout when Smart Tip is enabled and the transaction amount is less than $10. |
default_smart_tip (anyOf 2) | null | Alternative | |
percentages | JSON | Optional | |
percentages (anyOf 1) | array | Alternative | Set three custom percentage amounts that buyers can select at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more. |
percentages (anyOf 1)[] | integer | Each item | |
percentages (anyOf 2) | null | Alternative | |
smart_tipping_enabled | JSON | Optional | |
smart_tipping_enabled (anyOf 1) | boolean | Alternative | Enables Smart Tip Amounts. If Smart Tip Amounts is enabled, tipping works as follows: If a transaction is less than $10, the available tipping options include No Tip, $1, $2, or $3. If a transaction is $10 or more, the available tipping options include No Tip, 15%, 20%, or 25%. You can set custom percentage amounts with the `percentages` field. |
smart_tipping_enabled (anyOf 2) | null | Alternative | |
smart_tips | JSON | Optional | |
smart_tips (anyOf 1) | array | Alternative | Show the Smart Tip Amounts for this location. |
smart_tips (anyOf 1)[] | Model | Each item | Expand Create Payment — request body — body tip money |
smart_tips (anyOf 2) | null | Alternative |
Referenced models: Create Payment — request body — body tip money
Update Location Settings — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred when updating the location settings. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
location_settings | Model | Optional | Expand Update Location Settings — response body — location settings The updated location settings. |
Referenced models: Update Location Settings — response body — location settings, Get Shift — response body — errors item
Update Location Settings — response body — location settings
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
branding | JSON | Optional | |
branding (anyOf 1) | Model | Alternative | Expand Update Location Settings — response body — location settings branding button color, button shape, header type The branding settings for this location. |
branding (anyOf 2) | null | Alternative | |
coupons | JSON | Optional | |
coupons (anyOf 1) | Model | Alternative | Expand Update Location Settings — response body — location settings coupons enabled The coupon settings for this location. |
coupons (anyOf 2) | null | Alternative | |
customer_notes_enabled | JSON | Optional | |
customer_notes_enabled (anyOf 1) | boolean | Alternative | Indicates whether customers are allowed to leave notes at checkout. |
customer_notes_enabled (anyOf 2) | null | Alternative | |
location_id | JSON | Optional | |
location_id (anyOf 1) | string | Alternative | The ID of the location that these settings apply to. |
location_id (anyOf 2) | null | Alternative | |
policies | JSON | Optional | |
policies (anyOf 1) | array | Alternative | Policy information is displayed at the bottom of the checkout pages. You can set a maximum of two policies. |
policies (anyOf 1)[] | Model | Each item | Expand Update Location Settings — response body — location settings policies array item |
policies (anyOf 2) | null | Alternative | |
tipping | JSON | Optional | |
tipping (anyOf 1) | Model | Alternative | Expand Update Location Settings — response body — location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips The tip settings for this location. |
tipping (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the settings were last updated, in RFC 3339 format. Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00 Read only: true |
Referenced models: Update Location Settings — response body — location settings coupons enabled, Update Location Settings — response body — location settings policies array item, Update Location Settings — response body — location settings branding button color, button shape, header type, Update Location Settings — response body — location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips
Update Location Settings — response body — location settings branding button color, button shape, header type
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
button_color | JSON | Optional | |
button_color (anyOf 1) | string | Alternative | The HTML-supported hex color for the button on the checkout page (for example, "#FFFFFF"). Maximum length: 7 Minimum length: 7 |
button_color (anyOf 2) | null | Alternative | |
button_shape | JSON | Optional | |
button_shape (anyOf 1) | string | Alternative | The shape of the button on the checkout page. See [ButtonShape](#type-buttonshape) for possible values Known values: SQUARED, ROUNDED, PILL |
button_shape (anyOf 2) | null | Alternative | |
header_type | JSON | Optional | |
header_type (anyOf 1) | string | Alternative | Show the location logo on the checkout page. See [HeaderType](#type-headertype) for possible values Known values: BUSINESS_NAME, FRAMED_LOGO, FULL_WIDTH_LOGO |
header_type (anyOf 2) | null | Alternative |
Update Location Settings — response body — location settings coupons enabled
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
enabled | JSON | Optional | |
enabled (anyOf 1) | boolean | Alternative | Indicates whether coupons are enabled for this location. |
enabled (anyOf 2) | null | Alternative |
Update Location Settings — response body — location settings policies array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The description of the policy. Maximum length: 4096 |
description (anyOf 2) | null | Alternative | |
title | JSON | Optional | |
title (anyOf 1) | string | Alternative | The title of the policy. This is required when setting the description, though you can update it in a different request. Maximum length: 50 |
title (anyOf 2) | null | Alternative | |
uid | JSON | Optional | |
uid (anyOf 1) | string | Alternative | A unique ID to identify the policy when making changes. You must set the UID for policy updates, but it’s optional when setting new policies. |
uid (anyOf 2) | null | Alternative |
Update Location Settings — response body — location settings tipping default percent, default smart tip, percentages, smart tipping enabled, smart tips
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
default_percent | JSON | Optional | |
default_percent (anyOf 1) | JSON | Alternative | |
default_percent (anyOf 1) (anyOf 1) | integer | Alternative | Set the pre-selected percentage amounts that appear at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more. |
default_percent (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
default_percent (anyOf 2) | null | Alternative | |
default_smart_tip | JSON | Optional | |
default_smart_tip (anyOf 1) | Model | Alternative | Expand Pay Order — response body — order total money Set the pre-selected whole amount that appears at checkout when Smart Tip is enabled and the transaction amount is less than $10. |
default_smart_tip (anyOf 2) | null | Alternative | |
percentages | JSON | Optional | |
percentages (anyOf 1) | array | Alternative | Set three custom percentage amounts that buyers can select at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more. |
percentages (anyOf 1)[] | JSON | Each item | |
percentages (anyOf 1)[] (anyOf 1) | integer | Alternative | |
percentages (anyOf 1)[] (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
percentages (anyOf 2) | null | Alternative | |
smart_tipping_enabled | JSON | Optional | |
smart_tipping_enabled (anyOf 1) | boolean | Alternative | Enables Smart Tip Amounts. If Smart Tip Amounts is enabled, tipping works as follows: If a transaction is less than $10, the available tipping options include No Tip, $1, $2, or $3. If a transaction is $10 or more, the available tipping options include No Tip, 15%, 20%, or 25%. You can set custom percentage amounts with the `percentages` field. |
smart_tipping_enabled (anyOf 2) | null | Alternative | |
smart_tips | JSON | Optional | |
smart_tips (anyOf 1) | array | Alternative | Show the Smart Tip Amounts for this location. |
smart_tips (anyOf 1)[] | Model | Each item | Expand Pay Order — response body — order total money |
smart_tips (anyOf 2) | null | Alternative |
Referenced models: Pay Order — response body — order total money
Update Merchant Settings — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
merchant_settings | Model | Required within parent | Expand Update Merchant Settings — request body — body merchant settings Describe your updates using the `merchant_settings` object. Make sure it contains only the fields that have changed. |
Referenced models: Update Merchant Settings — request body — body merchant settings
Update Merchant Settings — request body — body merchant settings
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
payment_methods | JSON | Optional | |
payment_methods (anyOf 1) | Model | Alternative | Expand Update Merchant Settings — request body — body merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay The set of payment methods accepted for the merchant's account. |
payment_methods (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the settings were last updated, in RFC 3339 format. Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00 Read only: true |
Referenced models: Update Merchant Settings — request body — body merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay
Update Merchant Settings — request body — body merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay
Referenced models: Update Merchant Settings — request body — body merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay, Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay cash app The settings allowed for a payment method
Update Merchant Settings — request body — body merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The settings allowed for AfterpayClearpay. |
enabled | boolean | Optional | Indicates whether the payment method is enabled for the account. Read only: true |
item_eligibility_range | JSON | Optional | |
item_eligibility_range (anyOf 1) | Model | Alternative | Expand Update Merchant Settings — request body — body merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay item eligibility range A range of purchase price that qualifies Afterpay is shown as an option for item totals falling within the configured range. |
item_eligibility_range (anyOf 2) | null | Alternative | |
order_eligibility_range | JSON | Optional | |
order_eligibility_range (anyOf 1) | Model | Alternative | Expand Update Merchant Settings — request body — body merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay item eligibility range A range of purchase price that qualifies Afterpay is shown as an option for order totals falling within the configured range. |
order_eligibility_range (anyOf 2) | null | Alternative |
Update Merchant Settings — request body — body merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay item eligibility range A range of purchase price that qualifies
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A range of purchase price that qualifies. |
max | Model | Required within parent | Expand Create Payment — request body — body tip money The upper bound of the range. |
min | Model | Required within parent | Expand Create Payment — request body — body tip money The lower bound of the range. |
Referenced models: Create Payment — request body — body tip money
Update Merchant Settings — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred when updating the merchant settings. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
merchant_settings | Model | Optional | Expand Update Merchant Settings — response body — merchant settings The updated merchant settings. |
Referenced models: Update Merchant Settings — response body — merchant settings, Get Shift — response body — errors item
Update Merchant Settings — response body — merchant settings
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
payment_methods | JSON | Optional | |
payment_methods (anyOf 1) | Model | Alternative | Expand Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay The set of payment methods accepted for the merchant's account. |
payment_methods (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the settings were last updated, in RFC 3339 format. Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00 Read only: true |
Referenced models: Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay
Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay
Referenced models: Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay cash app The settings allowed for a payment method, Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay
Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The settings allowed for AfterpayClearpay. |
enabled | boolean | Optional | Indicates whether the payment method is enabled for the account. Read only: true |
item_eligibility_range | JSON | Optional | |
item_eligibility_range (anyOf 1) | Model | Alternative | Expand Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay item eligibility range A range of purchase price that qualifies Afterpay is shown as an option for item totals falling within the configured range. |
item_eligibility_range (anyOf 2) | null | Alternative | |
order_eligibility_range | JSON | Optional | |
order_eligibility_range (anyOf 1) | Model | Alternative | Expand Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay item eligibility range A range of purchase price that qualifies Afterpay is shown as an option for order totals falling within the configured range. |
order_eligibility_range (anyOf 2) | null | Alternative |
Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay afterpay clearpay The settings allowed for Afterpay Clearpay item eligibility range A range of purchase price that qualifies
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | A range of purchase price that qualifies. |
max | Model | Required within parent | Expand Pay Order — response body — order total money The upper bound of the range. |
min | Model | Required within parent | Expand Pay Order — response body — order total money The lower bound of the range. |
Referenced models: Pay Order — response body — order total money
Update Merchant Settings — response body — merchant settings payment methods afterpay clearpay, apple pay, bank account, cash app, google pay cash app The settings allowed for a payment method
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The settings allowed for a payment method. |
enabled | JSON | Optional | |
enabled (anyOf 1) | boolean | Alternative | Indicates whether the payment method is enabled for the account. |
enabled (anyOf 2) | null | Alternative |
Update Payment Link — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
payment_link | Model | Required within parent | Expand Update Payment Link — request body — body payment link The `payment_link` object describing the updates to apply. For more information, see [Update a payment link](https://developer.squareup.com/docs/checkout-api/manage-checkout#update-a-payment-link). |
Referenced models: Update Payment Link — request body — body payment link
Update Payment Link — request body — body payment link
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
checkout_options | JSON | Optional | |
checkout_options (anyOf 1) | Model | Alternative | Expand Create Payment Link — request body — body checkout options The checkout options configured for the payment link. For more information, see [Optional Checkout Configurations](https://developer.squareup.com/docs/checkout-api/optional-checkout-configurations). |
checkout_options (anyOf 2) | null | Alternative | |
created_at | string | Optional | The timestamp when the payment link was created, in RFC 3339 format. Read only: true |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The optional description of the `payment_link` object. It is primarily for use by your application and is not used anywhere. Maximum length: 4096 |
description (anyOf 2) | null | Alternative | |
id | string | Optional | The Square-assigned ID of the payment link. Read only: true |
long_url | string | Optional | The long URL of the payment link. Maximum length: 255 Read only: true |
order_id | string | Optional | The ID of the order associated with the payment link. Maximum length: 192 Read only: true |
payment_note | JSON | Optional | |
payment_note (anyOf 1) | string | Alternative | A note for the payment. After processing the payment, Square adds this note to the resulting `Payment` as well as the post payment confirmation email. Maximum length: 500 |
payment_note (anyOf 2) | null | Alternative | |
pre_populated_data | JSON | Optional | |
pre_populated_data (anyOf 1) | Model | Alternative | Expand Create Payment Link — request body — body pre populated data Describes buyer data to prepopulate on the checkout page. |
pre_populated_data (anyOf 2) | null | Alternative | |
updated_at | string | Optional | The timestamp when the payment link was last updated, in RFC 3339 format. Read only: true |
url | string | Optional | The shortened URL of the payment link. Maximum length: 255 Read only: true |
version | integer | Required within parent | The Square-assigned version number, which is incremented each time an update is committed to the payment link. Maximum: 65535 |
Referenced models: Create Payment Link — request body — body checkout options, Create Payment Link — request body — body pre populated data
Update Payment Link — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
errors | array | Optional | Any errors that occurred when updating the payment link. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
payment_link | Model | Optional | Expand Create Payment Link — response body — payment link The updated payment link. |
Referenced models: Get Shift — response body — errors item, Create Payment Link — response body — payment link