Product Details

🔒

Requires read_product access scope. For more access scope

The Shop Details API allows developers to fetch comprehensive information about a shop by using its unique domain prefix (shopdomain) and configurable query parameters. This endpoint supports retrieving specific fields based on the user’s request. For example, users can request key shop attributes such as id, name, and email.This API is especially useful for:

  1. Retrieving store metadata like name, owner details, and operational settings.

  2. Customizing query results by specifying required fields.

Note: The operation is scoped to a specific shop, identified by its unique domain prefix (shopdomain), ensuring all updates are applied to the correct store.

Public Request Parameters

Parameter NameTypeRequiredParameter LocationParameter ValueDescription
Access-TokenStringYesHeaderBx-_5aV
eXNwl-4AB98s5xLV
yg0fNzGf

MuTpqtlBA
Used to authenticate API requests. Obtain an access token from the Access Token Guide.
Pass it in the Authorization header for every request.
Content-TypeStringYesHeaderapplication
/json
Indicates the media type of the request body. It tells the server how to parse the request and
the client how to interpret the response. For more details, visit Content-Type.

Public Response Parameters

Parameter NameTypeMandatoryParameter LocationExample ValueDescription
errorStringNoResponse Body{ "error": "store is not active" }Indicates an error encountered during the process. This field typically appears when the Access Token is missing or invalid. Example: { "error": "store is not active" }.
errorsArrayNoResponse Body{ "errors"["No Context"] }A list of errors that occurred during the request processing. Example: { "errors": [ "No Context" ] }.
Request-IdStringYesHeaderBx-_5aV
eXNwl-4AB98s5xLV
yg0fNzGf

MuTpqtlBA
A unique identifier for each request. It helps in identifying and debugging specific requests.

Error and Errors Clarification:

Added explanation that the error and errors fields are currently dependent on the API implementation, with plans for future unification.

Request Parameters

Path Parameters

ParameterTypeRequiredExampleDescription
product_idstringYes9fb9f3c6-2300-42c1-8593-d9008d7cfc09The unique identifier for the product.

Response Explanation

Successful Response

FieldTypeExampleDescription
productobjectThe product details object containing all related information.
product.briefstring"shirt"A brief description or summary of the product.
product.created_atstring (ISO8601)"2024-04-17T02:15:18Z"The timestamp when the product was created.
product.descriptionstring"<p>Desc</p>"The detailed description of the product.
product.display_fake_salesbooleantrueIndicates whether fake sales are displayed for the product.
product.fake_salesinteger10The number of fake sales displayed for the product.
product.handlestring"shirt"The URL-friendly handle of the product.
product.has_only_default_variantbooleanfalseIndicates whether the product has only a default variant.
product.idstring (UUID)"a1a88be0-
a1d4-47e4-a2f2
-ba6e131cf447"
The unique identifier for the product.
product.imageobjectThe main image object for the product.
product.image.srcstring"//cdn.shoplazza.com
/image.jpeg"
The URL of the main image.
product.image.widthinteger174The width of the main image in pixels.
product.image.heightinteger180The height of the main image in pixels.
product.image.pathstring"ea0d6bfe40c.jpeg"The file path of the main image.
product.image.altstring""The alt text for the main image.
product.categoryobjectCategory ObjectThe category information of the product.
product.category.idinteger368313940138040900The unique identifier for the product category.
product.category.namestring"3"The name of the category.
product.category.google_idinteger0The Google ID of the category.
product.category.levelinteger3The level of the category.
product.category.pathstring"368313940138008142,
368313940138024526,
368313940138040910"
The hierarchical path of the category.
product.imagesarrayarray of image objectAn array of additional images associated with the product.
product.images[ ].idstring (UUID)"8ef098c5-5a08-
44b4-b5fb-89214bb507dc"
The unique identifier for the image.
product.images[ ].srcstring"//cdn.shoplazza.com
/image.jpeg"
The URL of the additional image.
product.images[ ].widthinteger174The width of the additional image in pixels.
product.images[ ].heightinteger180The height of the additional image in pixels.
product.images[ ].altstring""The alt text for the additional image.
product.images[ ].created_atstring (ISO8601)"2024-04-17T02:15:18Z"The timestamp when the image was created.
product.images[ ].updated_atstring (ISO8601)"2024-04-17T02:15:35Z"The timestamp when the image was last updated.
product.variantsarrayArray of Variants ObjectAn array of variants for the product.
product.variants[ ].idstring (UUID)"88e68830-4ef5-
4125-bf7d-aef8047176b2"
The unique identifier for the variant.
product.variants[ ].product_idstring (UUID)"a1a88be0-
a1d4-47e4-a2f2-
ba6e131cf447"
The product ID associated with the variant.
product.variants[ ].image_idstring (UUID)"8ef098c5-
5a08-44b4-b5fb-
89214bb507dc"
The image ID associated with the variant.
product.variants[ ].created_atstring (ISO8601)"2024-04-17T02:15:18Z"The timestamp when the variant was created.
product.variants[ ].updated_atstring (ISO8601)"2024-04-17T02:15:35Z"The timestamp when the variant was last updated.
product.variants[ ].titlestring"S-blue-T"The title of the variant.
product.variants[ ].option1string"S"The first option value for the variant (e.g., size).
product.variants[ ].option2string"blue"The second option value for the variant (e.g., color).
product.variants[ ].option3string"T"The third option value for the variant (if applicable).
product.variants[ ].positioninteger1The position of the variant in the list.
product.variants[ ].compare_at_pricestring"12.10"The compare-at price for the variant.
product.variants[ ].pricestring"10.10"The price of the variant.
product.variants[ ].skustring"T-M-S-blue-T-A001004"The Stock Keeping Unit (SKU) for the variant.
product.variants[ ].barcodestring"6929000212340"The barcode for the variant.
product.variants[ ].notestring"node"Notes associated with the variant.
product.variants[ ].inventory_quantityinteger10The inventory quantity of the variant.
product.variants[ ].weightstring"1.10"The weight of the variant.
product.variants[ ].weight_unitstring"kg"The unit of weight for the variant.
product.variants[ ].cost_pricestring"1.10"The cost price of the variant.
product.variants[ ].wholesale_pricearrayArray of wholesale priceAn array of wholesale pricing for the variant.
product.variants[ ].wholesale_price[ ].pricestring"10.10"The wholesale price of the variant.
product.variants[ ].
wholesale_price[ ].min_quantity
integer1The minimum quantity for wholesale pricing.
product.variants[ ].
extend
objectArray of Extend ObjectAdditional information about the variant.
product.variants[ ].
extend.length
integer10The length of the variant's package.
product.variants[ ].
extend.width
integer10The width of the variant's package.
product.variants[ ].
extend.height
integer10The height of the variant's package.
product.variants[ ].
extend.dimension_unit
string"in"The unit of dimensions for the variant.
product.variants[ ].
extend.origin_country_code
string"AG"The country code of origin for the variant.
product.variants[ ].
extend.hs_code
string"62114390"The HS code for the variant.
product.vendorstring"shoplazza"The vendor of the product.
product.vendor_urlstring"https://shoplazza.com"The URL of the vendor's website.

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["Context"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorArray "store is not active"Indicates an error encountered during the process.

Request Examples

curl --request GET \
     --url https://shopdomain.myshoplaza.com/openapi/2022-01/products/a1a88be0-a1d4-47e4-a2f2-ba6e131cf447 \
     --header 'accept: application/json' \
     --header 'access-token: WPMSdB6M8Cpum4X1GoMYOKZpiESd8d2x7dZW8d79ZeQ'

Success Response Example

{
  "product": {
    "brief": "shirt",
    "created_at": "2024-04-17T02:15:18Z",
    "description": "<p>Desc</p>",
    "display_fake_sales": true,
    "fake_sales": 10,
    "handle": "shirt",
    "has_only_default_variant": false,
    "id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
    "image": {
      "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
      "width": 174,
      "height": 180,
      "path": "ccf0794c594bad32a320eea0d6bfe40c.jpeg",
      "alt": ""
    },
    "category": {
      "id": 368313940138040900,
      "name": "3",
      "google_id": 0,
      "level": 3,
      "path": "368313940138008142,368313940138024526,368313940138040910"
    },
    "images": [
      {
        "id": "8ef098c5-5a08-44b4-b5fb-89214bb507dc",
        "product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
        "position": 1,
        "src": "//cdn.shoplazza.com/ccf0794c594bad32a320eea0d6bfe40c.jpeg",
        "width": 174,
        "height": 180,
        "alt": "",
        "created_at": "2024-04-17T02:15:18Z",
        "updated_at": "2024-04-17T02:15:35Z"
      }

Error Response Example

{
  "errors": [
    "productId has an invalid UUID"
  ]
}
{
  "error": "store is not active"
}

Error Details

Status CodeMessagePossible ReasonExample Response
422productId has an invalid UUIDThe product_id provided is invalid.{"errors": ["productId has an invalid UUID"]}
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!