Square: Merchants schemas
3 Square schemas with complete fields and constraints.
← Merchants operations · All schemas
List Merchants — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response object returned by the [ListMerchant](api-endpoint:Merchants-ListMerchants) endpoint. |
cursor | JSON | Optional | |
cursor (anyOf 1) | integer | Alternative | If the response is truncated, the cursor to use in next request to fetch next set of objects. |
cursor (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
errors | array | Optional | Information on errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
merchant | array | Optional | The requested `Merchant` entities. |
merchant[] | Model | Each item | Expand Retrieve Merchant — response body — merchant |
Referenced models: Get Shift — response body — errors item, Retrieve Merchant — response body — merchant
Retrieve Merchant — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response object returned by the [RetrieveMerchant](api-endpoint:Merchants-RetrieveMerchant) endpoint. |
errors | array | Optional | Information on errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
merchant | Model | Optional | Expand Retrieve Merchant — response body — merchant The requested `Merchant` object. |
Referenced models: Get Shift — response body — errors item, Retrieve Merchant — response body — merchant
Retrieve Merchant — response body — merchant
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a business that sells with Square. |
business_name | JSON | Optional | |
business_name (anyOf 1) | string | Alternative | The name of the merchant's overall business. |
business_name (anyOf 2) | null | Alternative | |
country | Model | Required within parent | Expand Create Location — response body — location country The country code associated with the merchant, in the two-letter format of ISO 3166. For example, `US` or `JP`. See [Country](#type-country) for possible values |
created_at | string | Optional | The time when the merchant was created, in RFC 3339 format. For more information, see [Working with Dates](https://developer.squareup.com/docs/build-basics/working-with-dates). Read only: true |
currency | JSON | Optional | |
currency (anyOf 1) | Model | Alternative | Expand Create Location — response body — location currency The currency associated with the merchant, in ISO 4217 format. For example, the currency code for US dollars is `USD`. See [Currency](#type-currency) for possible values |
currency (anyOf 2) | null | Alternative | |
id | string | Optional | The Square-issued ID of the merchant. |
language_code | JSON | Optional | |
language_code (anyOf 1) | string | Alternative | The code indicating the [language preferences](https://developer.squareup.com/docs/build-basics/general-considerations/language-preferences) of the merchant, in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A). For example, `en-US` or `fr-CA`. |
language_code (anyOf 2) | null | Alternative | |
main_location_id | JSON | Optional | |
main_location_id (anyOf 1) | string | Alternative | The ID of the [main `Location`](https://developer.squareup.com/docs/locations-api#about-the-main-location) for this merchant. |
main_location_id (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | The merchant's status. See [MerchantStatus](#type-merchantstatus) for possible values Known values: ACTIVE, INACTIVE |
status (anyOf 2) | null | Alternative |
Referenced models: Create Location — response body — location country, Create Location — response body — location currency