Square: Locations schemas
19 Square schemas with complete fields and constraints.
← Locations operations · All schemas
Create Location — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The request object for the [CreateLocation](api-endpoint:Locations-CreateLocation) endpoint. |
location | Model | Optional | Expand Create Location — request body — body location The initial values of the location being created. The `name` field is required and must be unique within a seller account. All other fields are optional, but any information you care about for the location should be included. The remaining fields are automatically added based on the data from the [main location](https://developer.squareup.com/docs/locations-api#about-the-main-location). |
Referenced models: Create Location — request body — body location
Create Location — request body — body location
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents one of a business' [locations](https://developer.squareup.com/docs/locations-api). |
address | JSON | Optional | |
address (anyOf 1) | Model | Alternative | Expand Create Customer — request body — body address The physical address of the location. |
address (anyOf 2) | null | Alternative | |
business_email | JSON | Optional | |
business_email (anyOf 1) | string | Alternative | The email address of the location. This can be unique to the location and is not always the email address for the business owner or administrator. Maximum length: 255 |
business_email (anyOf 2) | null | Alternative | |
business_hours | JSON | Optional | |
business_hours (anyOf 1) | Model | Alternative | Expand Create Location — request body — body location business hours The hours of operation for a location The hours of operation for the location. |
business_hours (anyOf 2) | null | Alternative | |
business_name | JSON | Optional | |
business_name (anyOf 1) | string | Alternative | The name of the location's overall business. This name is present on receipts and other customer-facing branding, and can be changed no more than three times in a twelve-month period. Maximum length: 255 |
business_name (anyOf 2) | null | Alternative | |
capabilities | array | Optional | The Square features that are enabled for the location. See [LocationCapability](entity:LocationCapability) for possible values. See [LocationCapability](#type-locationcapability) for possible values Read only: true |
capabilities[] | string | Each item | The capabilities a location might have. One of: CREDIT_CARD_PROCESSING, AUTOMATIC_TRANSFERS, UNLINKED_REFUNDS |
coordinates | JSON | Optional | |
coordinates (anyOf 1) | Model | Alternative | Expand Create Location — request body — body location coordinates Latitude and longitude coordinates The physical coordinates (latitude and longitude) of the location. |
coordinates (anyOf 2) | null | Alternative | |
country | Model | Optional | Expand Create Location — request body — body location country The country of the location, in the two-letter format of ISO 3166. For example, `US` or `JP`. See [Country](entity:Country) for possible values. See [Country](#type-country) for possible values Read only: true |
created_at | string | Optional | The time when the location was created, in RFC 3339 format. For more information, see [Working with Dates](https://developer.squareup.com/docs/build-basics/working-with-dates). Maximum length: 25 Minimum length: 20 Read only: true |
currency | Model | Optional | Expand Create Location — request body — body location currency The currency used for all transactions at this location, in ISO 4217 format. For example, the currency code for US dollars is `USD`. See [Currency](entity:Currency) for possible values. See [Currency](#type-currency) for possible values Read only: true |
custom_receipt_text | JSON | Optional | |
custom_receipt_text (anyOf 1) | string | Alternative | The custom text that appears on receipts issued for this location. This text can also be configured in the Seller Dashboard (Receipts section). Maximum length: 1000 |
custom_receipt_text (anyOf 2) | null | Alternative | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The description of the location. For example, `Main Street location`. Maximum length: 1024 |
description (anyOf 2) | null | Alternative | |
facebook_url | JSON | Optional | |
facebook_url (anyOf 1) | string | Alternative | The Facebook profile URL of the location. The URL should begin with 'facebook.com/'. For example, `https://www.facebook.com/square`. Maximum length: 255 |
facebook_url (anyOf 2) | null | Alternative | |
full_format_logo_url | string | Optional | The URL of a full-format logo image for the location. When configured in the Seller Dashboard (Receipts section), the logo appears on transactions (such as receipts and invoices) that Square generates on behalf of the seller. This image can be wider than it is tall and should be at least 1280x648 pixels. Read only: true |
id | string | Optional | A short generated string of letters and numbers that uniquely identifies this location instance. Maximum length: 32 Read only: true |
instagram_username | JSON | Optional | |
instagram_username (anyOf 1) | string | Alternative | The Instagram username of the location without the '@' symbol. For example, `square`. Maximum length: 30 Minimum length: 1 |
instagram_username (anyOf 2) | null | Alternative | |
language_code | JSON | Optional | |
language_code (anyOf 1) | string | Alternative | The language associated with the location, in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A). For more information, see [Language Preferences](https://developer.squareup.com/docs/build-basics/general-considerations/language-preferences). Maximum length: 5 Minimum length: 2 |
language_code (anyOf 2) | null | Alternative | |
logo_url | string | Optional | The URL of the logo image for the location. When configured in the Seller Dashboard (Receipts section), the logo appears on transactions (such as receipts and invoices) that Square generates on behalf of the seller. This image should have a roughly square (1:1) aspect ratio and should be at least 200x200 pixels. Maximum length: 255 Read only: true |
mcc | JSON | Optional | |
mcc (anyOf 1) | string | Alternative | A four-digit number that describes the kind of goods or services sold at the location. The [merchant category code (MCC)](https://developer.squareup.com/docs/locations-api#initialize-a-merchant-category-code) of the location as standardized by ISO 18245. For example, `5045`, for a location that sells computer goods and software. Maximum length: 4 Minimum length: 4 |
mcc (anyOf 2) | null | Alternative | |
merchant_id | string | Optional | The ID of the merchant that owns the location. Maximum length: 32 Read only: true |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the location. This information appears in the Seller Dashboard as the nickname. A location name must be unique within a seller account. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
phone_number | JSON | Optional | |
phone_number (anyOf 1) | string | Alternative | The phone number of the location. For example, `+1 855-700-6000`. Maximum length: 17 |
phone_number (anyOf 2) | null | Alternative | |
pos_background_url | string | Optional | The URL of the Point of Sale background image for the location. Maximum length: 255 Read only: true |
return_policy | JSON | Optional | |
return_policy (anyOf 1) | string | Alternative | The return policy that appears on receipts issued for this location. This text can also be configured in the Seller Dashboard (Receipts section). Maximum length: 1000 |
return_policy (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | A location's status. The status of the location. See [LocationStatus](#type-locationstatus) for possible values One of: ACTIVE, INACTIVE |
status (anyOf 2) | null | Alternative | |
tax_ids | Model | Optional | Expand Create Location — response body — location tax ids The tax IDs for this location. Read only: true |
timezone | JSON | Optional | |
timezone (anyOf 1) | string | Alternative | The [IANA time zone](https://www.iana.org/time-zones) identifier for the time zone of the location. For example, `America/Los_Angeles`. Maximum length: 30 |
timezone (anyOf 2) | null | Alternative | |
twitter_username | JSON | Optional | |
twitter_username (anyOf 1) | string | Alternative | The Twitter username of the location without the '@' symbol. For example, `Square`. Maximum length: 15 Minimum length: 1 |
twitter_username (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | A location's type. The type of the location. See [LocationType](#type-locationtype) for possible values One of: PHYSICAL, MOBILE |
type (anyOf 2) | null | Alternative | |
website_url | JSON | Optional | |
website_url (anyOf 1) | string | Alternative | The website URL of the location. For example, `https://squareup.com`. Maximum length: 255 |
website_url (anyOf 2) | null | Alternative |
Referenced models: Create Customer — request body — body address, Create Location — request body — body location business hours The hours of operation for a location, Create Location — request body — body location coordinates Latitude and longitude coordinates, Create Location — request body — body location country, Create Location — request body — body location currency, Create Location — response body — location tax ids
Create Location — request body — body location business hours The hours of operation for a location
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The hours of operation for a location. |
periods | JSON | Optional | |
periods (anyOf 1) | array | Alternative | The list of time periods during which the business is open. There can be at most 10 periods per day. |
periods (anyOf 1)[] | Model | Each item | Expand Create Location — request body — body location business hours The hours of operation for a location periods array item |
periods (anyOf 2) | null | Alternative |
Referenced models: Create Location — request body — body location business hours The hours of operation for a location periods array item
Create Location — request body — body location business hours The hours of operation for a location periods array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a period of time during which a business location is open. |
day_of_week | JSON | Optional | |
day_of_week (anyOf 1) | string | Alternative | Indicates the specific day of the week. The day of the week for this time period. See [DayOfWeek](#type-dayofweek) for possible values One of: SUN, MON, TUE, WED, THU, FRI, SAT |
day_of_week (anyOf 2) | null | Alternative | |
end_local_time | JSON | Optional | |
end_local_time (anyOf 1) | string | Alternative | The end time of a business hours period, specified in local time using partial-time RFC 3339 format. For example, `21:00:00` for a period ending at 9:00 in the evening. Note that the seconds value is always :00, but it is appended for conformance to the RFC. |
end_local_time (anyOf 2) | null | Alternative | |
start_local_time | JSON | Optional | |
start_local_time (anyOf 1) | string | Alternative | The start time of a business hours period, specified in local time using partial-time RFC 3339 format. For example, `8:30:00` for a period starting at 8:30 in the morning. Note that the seconds value is always :00, but it is appended for conformance to the RFC. |
start_local_time (anyOf 2) | null | Alternative |
Create Location — request body — body location coordinates Latitude and longitude coordinates
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Latitude and longitude coordinates. |
latitude | JSON | Optional | |
latitude (anyOf 1) | number | Alternative | The latitude of the coordinate expressed in degrees. |
latitude (anyOf 2) | null | Alternative | |
longitude | JSON | Optional | |
longitude (anyOf 1) | number | Alternative | The longitude of the coordinate expressed in degrees. |
longitude (anyOf 2) | null | Alternative |
Create Location — request body — body location country
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Indicates the country associated with another entity, such as a business. Values are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm). One of: ZZ, AD, AE, AF, AG, AI, AL, AM, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW |
Create Location — request body — body location currency
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://wikipedia.org/wiki/ISO_4217). One of: UNKNOWN_CURRENCY, AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYR, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LTL, LVL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SLE, SOS, SRD, SSP, STD, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, USS, UYI, UYU, UZS, VEF, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XTS, XXX, YER, ZAR, ZMK, ZMW, BTC, XUS |
Create Location — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response object returned by the [CreateLocation](api-endpoint:Locations-CreateLocation) endpoint. |
errors | array | Optional | Information about [errors](https://developer.squareup.com/docs/build-basics/handling-errors) encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
location | Model | Optional | Expand Create Location — response body — location The newly created `Location` object. |
Referenced models: Get Shift — response body — errors item, Create Location — response body — location
Create Location — response body — location
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents one of a business' [locations](https://developer.squareup.com/docs/locations-api). |
address | JSON | Optional | |
address (anyOf 1) | Model | Alternative | Expand Get Payment — response body — payment billing address The physical address of the location. |
address (anyOf 2) | null | Alternative | |
business_email | JSON | Optional | |
business_email (anyOf 1) | string | Alternative | The email address of the location. This can be unique to the location and is not always the email address for the business owner or administrator. Maximum length: 255 |
business_email (anyOf 2) | null | Alternative | |
business_hours | JSON | Optional | |
business_hours (anyOf 1) | Model | Alternative | Expand Create Location — response body — location business hours The hours of operation for a location The hours of operation for the location. |
business_hours (anyOf 2) | null | Alternative | |
business_name | JSON | Optional | |
business_name (anyOf 1) | string | Alternative | The name of the location's overall business. This name is present on receipts and other customer-facing branding, and can be changed no more than three times in a twelve-month period. Maximum length: 255 |
business_name (anyOf 2) | null | Alternative | |
capabilities | array | Optional | The Square features that are enabled for the location. See [LocationCapability](entity:LocationCapability) for possible values. See [LocationCapability](#type-locationcapability) for possible values Read only: true |
capabilities[] | string | Each item | The capabilities a location might have. Known values: CREDIT_CARD_PROCESSING, AUTOMATIC_TRANSFERS, UNLINKED_REFUNDS |
coordinates | JSON | Optional | |
coordinates (anyOf 1) | Model | Alternative | Expand Create Location — response body — location coordinates Latitude and longitude coordinates The physical coordinates (latitude and longitude) of the location. |
coordinates (anyOf 2) | null | Alternative | |
country | Model | Optional | Expand Create Location — response body — location country The country of the location, in the two-letter format of ISO 3166. For example, `US` or `JP`. See [Country](entity:Country) for possible values. See [Country](#type-country) for possible values Read only: true |
created_at | string | Optional | The time when the location was created, in RFC 3339 format. For more information, see [Working with Dates](https://developer.squareup.com/docs/build-basics/working-with-dates). Maximum length: 25 Minimum length: 20 Read only: true |
currency | Model | Optional | Expand Create Location — response body — location currency The currency used for all transactions at this location, in ISO 4217 format. For example, the currency code for US dollars is `USD`. See [Currency](entity:Currency) for possible values. See [Currency](#type-currency) for possible values Read only: true |
custom_receipt_text | JSON | Optional | |
custom_receipt_text (anyOf 1) | string | Alternative | The custom text that appears on receipts issued for this location. This text can also be configured in the Seller Dashboard (Receipts section). Maximum length: 1000 |
custom_receipt_text (anyOf 2) | null | Alternative | |
description | JSON | Optional | |
description (anyOf 1) | string | Alternative | The description of the location. For example, `Main Street location`. Maximum length: 1024 |
description (anyOf 2) | null | Alternative | |
facebook_url | JSON | Optional | |
facebook_url (anyOf 1) | string | Alternative | The Facebook profile URL of the location. The URL should begin with 'facebook.com/'. For example, `https://www.facebook.com/square`. Maximum length: 255 |
facebook_url (anyOf 2) | null | Alternative | |
full_format_logo_url | string | Optional | The URL of a full-format logo image for the location. When configured in the Seller Dashboard (Receipts section), the logo appears on transactions (such as receipts and invoices) that Square generates on behalf of the seller. This image can be wider than it is tall and should be at least 1280x648 pixels. Read only: true |
id | string | Optional | A short generated string of letters and numbers that uniquely identifies this location instance. Maximum length: 32 Read only: true |
instagram_username | JSON | Optional | |
instagram_username (anyOf 1) | string | Alternative | The Instagram username of the location without the '@' symbol. For example, `square`. Maximum length: 30 Minimum length: 1 |
instagram_username (anyOf 2) | null | Alternative | |
language_code | JSON | Optional | |
language_code (anyOf 1) | string | Alternative | The language associated with the location, in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A). For more information, see [Language Preferences](https://developer.squareup.com/docs/build-basics/general-considerations/language-preferences). Maximum length: 5 Minimum length: 2 |
language_code (anyOf 2) | null | Alternative | |
logo_url | string | Optional | The URL of the logo image for the location. When configured in the Seller Dashboard (Receipts section), the logo appears on transactions (such as receipts and invoices) that Square generates on behalf of the seller. This image should have a roughly square (1:1) aspect ratio and should be at least 200x200 pixels. Maximum length: 255 Read only: true |
mcc | JSON | Optional | |
mcc (anyOf 1) | string | Alternative | A four-digit number that describes the kind of goods or services sold at the location. The [merchant category code (MCC)](https://developer.squareup.com/docs/locations-api#initialize-a-merchant-category-code) of the location as standardized by ISO 18245. For example, `5045`, for a location that sells computer goods and software. Maximum length: 4 Minimum length: 4 |
mcc (anyOf 2) | null | Alternative | |
merchant_id | string | Optional | The ID of the merchant that owns the location. Maximum length: 32 Read only: true |
name | JSON | Optional | |
name (anyOf 1) | string | Alternative | The name of the location. This information appears in the Seller Dashboard as the nickname. A location name must be unique within a seller account. Maximum length: 255 |
name (anyOf 2) | null | Alternative | |
phone_number | JSON | Optional | |
phone_number (anyOf 1) | string | Alternative | The phone number of the location. For example, `+1 855-700-6000`. Maximum length: 17 |
phone_number (anyOf 2) | null | Alternative | |
pos_background_url | string | Optional | The URL of the Point of Sale background image for the location. Maximum length: 255 Read only: true |
return_policy | JSON | Optional | |
return_policy (anyOf 1) | string | Alternative | The return policy that appears on receipts issued for this location. This text can also be configured in the Seller Dashboard (Receipts section). Maximum length: 1000 |
return_policy (anyOf 2) | null | Alternative | |
status | JSON | Optional | |
status (anyOf 1) | string | Alternative | A location's status. The status of the location. See [LocationStatus](#type-locationstatus) for possible values Known values: ACTIVE, INACTIVE |
status (anyOf 2) | null | Alternative | |
tax_ids | Model | Optional | Expand Create Location — response body — location tax ids The tax IDs for this location. Read only: true |
timezone | JSON | Optional | |
timezone (anyOf 1) | string | Alternative | The [IANA time zone](https://www.iana.org/time-zones) identifier for the time zone of the location. For example, `America/Los_Angeles`. Maximum length: 30 |
timezone (anyOf 2) | null | Alternative | |
twitter_username | JSON | Optional | |
twitter_username (anyOf 1) | string | Alternative | The Twitter username of the location without the '@' symbol. For example, `Square`. Maximum length: 15 Minimum length: 1 |
twitter_username (anyOf 2) | null | Alternative | |
type | JSON | Optional | |
type (anyOf 1) | string | Alternative | A location's type. The type of the location. See [LocationType](#type-locationtype) for possible values Known values: PHYSICAL, MOBILE |
type (anyOf 2) | null | Alternative | |
website_url | JSON | Optional | |
website_url (anyOf 1) | string | Alternative | The website URL of the location. For example, `https://squareup.com`. Maximum length: 255 |
website_url (anyOf 2) | null | Alternative |
Referenced models: Get Payment — response body — payment billing address, Create Location — response body — location business hours The hours of operation for a location, Create Location — response body — location coordinates Latitude and longitude coordinates, Create Location — response body — location country, Create Location — response body — location currency, Create Location — response body — location tax ids
Create Location — response body — location business hours The hours of operation for a location
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The hours of operation for a location. |
periods | JSON | Optional | |
periods (anyOf 1) | array | Alternative | The list of time periods during which the business is open. There can be at most 10 periods per day. |
periods (anyOf 1)[] | Model | Each item | Expand Create Location — response body — location business hours The hours of operation for a location periods array item |
periods (anyOf 2) | null | Alternative |
Referenced models: Create Location — response body — location business hours The hours of operation for a location periods array item
Create Location — response body — location business hours The hours of operation for a location periods array item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Represents a period of time during which a business location is open. |
day_of_week | JSON | Optional | |
day_of_week (anyOf 1) | string | Alternative | Indicates the specific day of the week. The day of the week for this time period. See [DayOfWeek](#type-dayofweek) for possible values Known values: SUN, MON, TUE, WED, THU, FRI, SAT |
day_of_week (anyOf 2) | null | Alternative | |
end_local_time | JSON | Optional | |
end_local_time (anyOf 1) | string | Alternative | The end time of a business hours period, specified in local time using partial-time RFC 3339 format. For example, `21:00:00` for a period ending at 9:00 in the evening. Note that the seconds value is always :00, but it is appended for conformance to the RFC. |
end_local_time (anyOf 2) | null | Alternative | |
start_local_time | JSON | Optional | |
start_local_time (anyOf 1) | string | Alternative | The start time of a business hours period, specified in local time using partial-time RFC 3339 format. For example, `8:30:00` for a period starting at 8:30 in the morning. Note that the seconds value is always :00, but it is appended for conformance to the RFC. |
start_local_time (anyOf 2) | null | Alternative |
Create Location — response body — location coordinates Latitude and longitude coordinates
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Latitude and longitude coordinates. |
latitude | JSON | Optional | |
latitude (anyOf 1) | JSON | Alternative | |
latitude (anyOf 1) (anyOf 1) | number | Alternative | The latitude of the coordinate expressed in degrees. |
latitude (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
latitude (anyOf 2) | null | Alternative | |
longitude | JSON | Optional | |
longitude (anyOf 1) | JSON | Alternative | |
longitude (anyOf 1) (anyOf 1) | number | Alternative | The longitude of the coordinate expressed in degrees. |
longitude (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
longitude (anyOf 2) | null | Alternative |
Create Location — response body — location country
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Indicates the country associated with another entity, such as a business. Values are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm). Known values: ZZ, AD, AE, AF, AG, AI, AL, AM, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CX, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY, SZ, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, YT, ZA, ZM, ZW |
Create Location — response body — location currency
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://wikipedia.org/wiki/ISO_4217). Known values: UNKNOWN_CURRENCY, AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYR, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LTL, LVL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SLE, SOS, SRD, SSP, STD, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, USS, UYI, UYU, UZS, VEF, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XTS, XXX, YER, ZAR, ZMK, ZMW, BTC, XUS |
Create Location — response body — location tax ids
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Identifiers for the location used by various governments for tax purposes. |
es_nif | string | Optional | The NIF (Numero de Identificacion Fiscal) number is a nine-character tax identifier used in Spain. If it is present, it has been validated. For example, `73628495A`. Read only: true |
eu_vat | string | Optional | The EU VAT number for this location. For example, `IE3426675K`. If the EU VAT number is present, it is well-formed and has been validated with VIES, the VAT Information Exchange System. Read only: true |
fr_naf | string | Optional | The French government uses the NAF (Nomenclature des Activités Françaises) to display and track economic statistical data. This is also called the APE (Activite Principale de l’Entreprise) code. For example, `6910Z`. Read only: true |
fr_siret | string | Optional | The SIRET (Système d'Identification du Répertoire des Entreprises et de leurs Etablissements) number is a 14-digit code issued by the French INSEE. For example, `39922799000021`. Read only: true |
jp_qii | string | Optional | The QII (Qualified Invoice Issuer) number is a 14-character tax identifier used in Japan. For example, `T1234567890123`. Read only: true |
List Locations — 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 [ListLocations](api-endpoint:Locations-ListLocations) endpoint. Either `errors` or `locations` is present in a given response (never both). |
errors | array | Optional | Any errors that occurred during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
locations | array | Optional | The business locations. |
locations[] | Model | Each item | Expand Create Location — response body — location |
Referenced models: Get Shift — response body — errors item, Create Location — response body — location
Retrieve Location — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Defines the fields that the [RetrieveLocation](api-endpoint:Locations-RetrieveLocation) endpoint returns in a response. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
location | Model | Optional | Expand Create Location — response body — location The requested location. |
Referenced models: Get Shift — response body — errors item, Create Location — response body — location
Update Location — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The request object for the [UpdateLocation](api-endpoint:Locations-UpdateLocation) endpoint. |
location | JSON | Optional | |
location (anyOf 1) | Model | Alternative | Expand Create Location — request body — body location The `Location` object with only the fields to update. |
location (anyOf 2) | null | Alternative |
Referenced models: Create Location — request body — body location
Update Location — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The response object returned by the [UpdateLocation](api-endpoint:Locations-UpdateLocation) endpoint. |
errors | array | Optional | Information about errors encountered during the request. |
errors[] | Model | Each item | Expand Get Shift — response body — errors item |
location | Model | Optional | Expand Create Location — response body — location The updated `Location` object. |
Referenced models: Get Shift — response body — errors item, Create Location — response body — location