Update Shop

The Update Shop API updates shop-related information, such as the customer email. It ensures secure and validated updates to a shop's data. This API is especially useful for: 1. Updating customer-related shop details. 2. Managing shop information programmatically.

🔒

Requires write_shop access scope. For more access scope

The Update Shop API updates shop-related information, such as the customer email. It ensures secure and validated updates to a shop's data.

This API is especially useful for:

  1. Updating customer-related shop details.
  2. Managing shop information programmatically.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Request Parameters

FieldTypeRequiredDescriptionExample
shop_idstringNoshop's ID123232

Body Request Parameters

FieldTypeRequiredDescriptionExample
customer_emailstringNoEmail of the customer associated with the shop.[email protected]

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

NameTypeExampleDescription
shop.idint633130The unique ID of the shop.
shop.namestringtest-shoplazzaThe name of the shop.
shop.emailstring[email protected]The email of the shop.
shop.domainstringtest-shoplazza.stg.myshoplaza.comThe shop's domain.
shop.address1stringaddress1The primary address of the shop.
shop.zipstring515300The zip code of the shop.
shop.citystringcityThe city of the shop.
shop.phonestring15014471143The shop's phone number.
shop.primary_localestringen-USThe shop's primary locale.
shop.address2string""The secondary address of the shop.
shop.created_atstring2023-11-08T11:51:39ZThe creation time of the shop.
shop.updated_atstring2024-04-29T09:58:04ZThe last update time of the shop.
shop.country_codestringCNThe country code of the shop.
shop.currencystringUSDThe shop's currency.
shop.customer_emailstring[email protected]The customer's email for the shop.
shop.timezonestring+0800The timezone of the shop.
shop.shop_ownerstringtest-shoplazzaThe owner of the shop.
shop.accountstring[email protected]The shop's account email.
shop.province_codestringCN-GDThe province code of the shop.
shop.icon.srcstringhttp://img.staticdj.com/55f1a60e47d1462c7d88dec3844369f0.pngThe source URL of the shop's icon.
shop.icon.pathstring55f1a60e47d1462c7d88dec3844369f0.pngThe file path of the shop's icon.
shop.icon.altstring""Alternate text for the shop's icon.
shop.system_domainstringtest-shoplazza.stg.myshoplaza.comThe system domain of the shop.
shop.root_urlstring""The root URL of the shop.

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray[ "Collection not found"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!