Requires write_fulfillment_service access scope.
For more info , refer to:
POST https://{handle}.myshopline.com/admin/openapi/v20250601/fulfillment_service_location/create.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .
Create location for fulfillment service
Request Headers
  • Content-Type required
    The value of this field is fixed to application/json; charset=utf-8
  • Authorization string required
    The access token for the API. Please refer to App authorization to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.
    Example:
    Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
  • locationobject required
    Location information
  • address1 string
    Detailed address 1
    Example: 126 York Street
  • address2 string
    Detailed address 2, optional
    Example: Unit 42
  • city string
    City
    Example: Ottawa
  • city_code string
    City ​code
    Example: 120100
  • country string
    Country
    Example: Canada
  • country_code string required
    Country encoding
    Example: CA
  • name string required
    Location name
    Example: Ottawa Store
  • phone string required
    Contact phone number
    Example: 18883290139
  • phone_code string
    Phone number international district
    Example: 0010
  • province string
    State / province
    Example: Ontario
  • province_code string
    State / provincial encoding
    Example: 2400011
  • zip string required
    Postal code
    Example: A1B 2C3
Response
For more information about status codes, see Http status code.

Response Headers
  • traceId
    traceId
Response Body
  • locationobject
    Location information
  • active boolean
    Enable or not
    Example: true
  • address1 string
    Detailed address 1
    Example: 126 York Street
  • address2 string
    Detailed address 2, optional
    Example: Unit 42
  • city string
    City name
    Example: Ottawa
  • city_code string
    Urban code
    Example: 120100
  • country string
    Country Name
    Example: Canada
  • country_code string
    National code
    Example: CA
  • create_at string
    Location created time ( format see IOS8601 )
    Example: 2021-08-16T08:27:57+00:00
  • id string
    Location id
    Example: 5668167071852661850
  • is_default boolean
    Default location or not
    Example: true
  • legacy boolean
    Is a location for fulfillment service or not
    Example: true
  • name string
    Location name
    Example: Ottawa Store
  • phone string
    Telephone number
    Example: 18883290139
  • phone_code string
    Phone number international district
    Example: 0010
  • province string
    Province name
    Example: Ontario
  • province_code string
    Province code
    Example: 2400011
  • update_at string
    Location created time ( format see IOS8601 )
    Example: 2021-08-16T08:27:57+00:00
  • zip string
    Postal code
    Example: A1B 2C3
API Explorer
https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601

ParamOptions

header required

Body

required
{
  "location": {
    "address1": "126 York Street",
    "address2": "Unit 42",
    "city": "Ottawa",
    "city_code": "120100",
    "country": "Canada",
    "country_code": "CA",
    "name": "Ottawa Store",
    "phone": "18883290139",
    "phone_code": "0010",
    "province": "Ontario",
    "province_code": "2400011",
    "zip": "A1B 2C3"
  }
}

Language

curl --request POST \
--url https://openapiceshidianpu.myshopline.com/admin/openapi/v20250601/fulfillment_service_location/create.json \
--header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw' \
--header 'Content-Type: application/json; charset=utf-8' \
--header 'accept: application/json' \
--data '
{
"location": {
"address1": "126 York Street",
"address2": "Unit 42",
"city": "Ottawa",
"city_code": "120100",
"country": "Canada",
"country_code": "CA",
"name": "Ottawa Store",
"phone": "18883290139",
"phone_code": "0010",
"province": "Ontario",
"province_code": "2400011",
"zip": "A1B 2C3"
}
}
'
Was this article helpful to you?

Error loading component.

Error loading component.