headless_products

Get a product by slug

Changed on
get/v1/products/{slug}

Request

  • Base URL
    https://storefront-api.fourthwall.com
  • URL
    https://storefront-api.fourthwall.com/v1/products/{slug}
  • Auth
    none declared

Path parameters

slugstring required

Query parameters

storefront_tokenstring required
Example:ptkn_xxxxxxxxxxxxxxxxxx
currency'USD' | 'EUR' | 'CAD' | 'GBP' | 'AUD' | 'NZD' | 'SEK' | 'NOK' | 'DKK' | 'PLN' | 'INR' | 'JPY' | 'MYR' | 'SGD' | 'MXN' | 'BRL' | 'CHF'

Response

OK

OR

Example response

{
  "images": [
    {
      "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
      "url": "https://fourthwall.com/image.png",
      "width": 800,
      "height": 600,
      "transformedUrl": "https://fourthwall.com/image.png"
    }
  ],
  "price": {
    "value": 10,
    "currency": "USD"
  },
  "compareAtPrice": {
    "value": 10,
    "currency": "USD"
  },
  "pricingStrategy": {
    "discountPercentage": 30
  },
  "offers": [
    {
      "images": [
        {
          "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
          "url": "https://fourthwall.com/image.png",
          "width": 800,
          "height": 600,
          "transformedUrl": "https://fourthwall.com/image.png"
        }
      ],
      "variants": [
        {
          "unitPrice": {
            "value": 10,
            "currency": "USD"
          },
          "compareAtPrice": {
            "value": 10,
            "currency": "USD"
          },
          "attributes": {
            "description": "Black, L",
            "color": {
              "name": "Black",
              "swatch": "#000000"
            },
            "size": {
              "name": "L"
            }
          },
          "stock": {
            "inStock": 5
          },
          "weight": {
            "value": 1,
            "unit": "kg"
          },
          "dimensions": {
            "length": 1,
            "width": 2,
            "height": 3,
            "unit": "cm"
          },
          "images": [
            {
              "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
              "url": "https://fourthwall.com/image.png",
              "width": 800,
              "height": 600,
              "transformedUrl": "https://fourthwall.com/image.png"
            }
          ]
        }
      ],
      "createdAt": "2020-08-13T09:05:36.939Z",
      "updatedAt": "2020-08-13T09:05:36.939Z"
    }
  ],
  "createdAt": "2020-08-13T09:05:36.939Z",
  "updatedAt": "2020-08-13T09:05:36.939Z"
}

Changes

    • breaking

      added to the response body oneOf list for the response status

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status