POST /locations/

Create a new location/sub-account based on the data provided

Servers

Request headers

Name Type Required Description
Version String Yes

API Version

Valid values:

  • "2021-07-28"
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Authorization String Yes

Access Token

Request body fields

Name Type Required Description
timezone String No

The timezone of the business for which sub-account is created

postalCode String No

The postal code of the business for which sub-account is created

name String Yes

The name for the sub-account/location

companyId String Yes

Company/Agency Id

phone String No

The phone number of the business for which sub-account is created with the appropriate country-code

snapshotId String No

The snapshot ID to be loaded into the location.

website String No

The website of the business for which sub-account is created

state String No

The state in which the business operates for which sub-account is created

country String No

The 2 letter country-code in which the business is present for which sub-account is created

Valid values:

  • "BO"
  • "AM"
  • "MU"
  • "LS"
  • "JO"
  • "IM"
  • "HK"
  • "GI"
  • "TR"
  • "NF"
  • "MD"
  • "LB"
  • "GY"
  • "CR"
  • "TC"
  • "SA"
  • "AN"
  • "MV"
  • "LT"
  • "KR"
  • "JP"
  • "IN"
  • "EE"
  • "CA"
  • "RO"
  • "PK"
  • "NG"
  • "ME"
  • "LC"
  • "XK"
  • "VG"
  • "TD"
  • "SB"
  • "AO"
  • "MW"
  • "LU"
  • "IO"
  • "HM"
  • "FI"
  • "EG"
  • "DE"
  • "TT"
  • "SR"
  • "PL"
  • "MF"
  • "BR"
  • "SC"
  • "NZ"
  • "MX"
  • "LV"
  • "ZA"
  • "HN"
  • "GL"
  • "FJ"
  • "EH"
  • "TV"
  • "CD"
  • "ST"
  • "CC"
  • "BA"
  • "PM"
  • "NI"
  • "MG"
  • "VI"
  • "UG"
  • "AQ"
  • "MY"
  • "IQ"
  • "GM"
  • "FK"
  • "UY"
  • "TW"
  • "RS"
  • "BB"
  • "PN"
  • "MH"
  • "CU"
  • "TF"
  • "BS"
  • "SD"
  • "QA"
  • "MZ"
  • "IR"
  • "GN"
  • "UZ"
  • "CF"
  • "SV"
  • "BD"
  • "OM"
  • "KE"
  • "CV"
  • "TG"
  • "BT"
  • "SE"
  • "AR"
  • "LY"
  • "KW"
  • "IS"
  • "FM"
  • "CG"
  • "BE"
  • "RU"
  • "NL"
  • "TH"
  • "AS"
  • "IT"
  • "HR"
  • "GP"
  • "DJ"
  • "TZ"
  • "SX"
  • "CH"
  • "BF"
  • "AD"
  • "PR"
  • "MK"
  • "LI"
  • "KG"
  • "JE"
  • "DZ"
  • "CX"
  • "BV"
  • "SG"
  • "AT"
  • "RE"
  • "PA"
  • "KY"
  • "GQ"
  • "FO"
  • "DK"
  • "CI"
  • "SY"
  • "BG"
  • "RW"
  • "AE"
  • "PS"
  • "NO"
  • "ML"
  • "KH"
  • "ID"
  • "YT"
  • "VN"
  • "CY"
  • "TJ"
  • "BW"
  • "SH"
  • "AU"
  • "KZ"
  • "HT"
  • "YE"
  • "GR"
  • "SZ"
  • "BH"
  • "AF"
  • "PT"
  • "NP"
  • "MN"
  • "MM"
  • "LK"
  • "KI"
  • "ZW"
  • "IE"
  • "GA"
  • "UM"
  • "CZ"
  • "TK"
  • "SI"
  • "HU"
  • "GS"
  • "DM"
  • "CK"
  • "BI"
  • "AG"
  • "MO"
  • "GB"
  • "TL"
  • "BY"
  • "SJ"
  • "AW"
  • "GT"
  • "FR"
  • "VA"
  • "CL"
  • "BJ"
  • "NR"
  • "MP"
  • "WS"
  • "TM"
  • "BZ"
  • "SK"
  • "AX"
  • "PE"
  • "NA"
  • "GU"
  • "DO"
  • "CM"
  • "AI"
  • "PW"
  • "MQ"
  • "KM"
  • "GD"
  • "TN"
  • "SL"
  • "PF"
  • "ER"
  • "VC"
  • "UA"
  • "CN"
  • "MR"
  • "KN"
  • "GE"
  • "TO"
  • "SM"
  • "AZ"
  • "PG"
  • "NC"
  • "MA"
  • "GW"
  • "WF"
  • "ES"
  • "CO"
  • "BM"
  • "PY"
  • "NU"
  • "MS"
  • "JM"
  • "GF"
  • "SN"
  • "PH"
  • "ET"
  • "VE"
  • "BN"
  • "AL"
  • "MT"
  • "LR"
  • "KP"
  • "IL"
  • "GH"
  • "GG"
  • "VU"
  • "EC"
  • "US"
  • "SO"
  • "NE"
  • "MC"
  • "LA"
  • "ZM"
address String No

The address of the business for which sub-account is created

city String No

The city where the business is located for which sub-account is created

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.