Product

Full product details.

HTTP GET

$ curl -X GET -H "Authorization: Bearer xxxx" -i https://api.bootic.net/v1/products/{id}.json
Status: 200 OK
Content-Type: application/json; charset=utf-8
Connection: keep-alive
ETag: "0728e2965bd03e20a7f1c33add2f8775"
Last-Modified: Fri, 20 Jun 2014 22:34:14 GMT
Cache-Control: must-revalidate, private, max-age=0
Date: Wed, 31 Jul 2013 21:11:52 GMT
X-OAuth-Scopes: public
{
  "_links": {
    "btc:web": {
      "href": "http://www.bootic.net/products/producto-de-ejemplo-de-bootic",
      "type": "text/html",
      "title": "Web page for this product on its original shop front-end"
    },
    "self": {
      "href": "https://api.bootic.net/v1/products/1234"
    },
    "btc:update_product": {
      "href": "https://api.bootic.net/v1/shops/47/products/1234",
      "title": "Update this product",
      "method": "put"
    },
    "btc:delete_product": {
      "href": "https://api.bootic.net/v1/products/1234",
      "title": "Delete this product",
      "method": "delete"
    },
    "btc:create_variant": {
      "href": "https://api.bootic.net/v1/products/1234",
      "method": "post",
      "title": "Create a product variant"
    },
    "btc:create_product_asset": {
      "href": "https://api.bootic.net/v1/products/1234/assets",
      "method": "post",
      "title": "Create a product asset"
    }
  },
  "id": "producto-de-ejemplo-de-bootic",
  "title": "Producto de ejemplo de Bootic",
  "status": "visible",
  "vendor": "Bootic",
  "description": "Este es un producto de ejemplo en Bootic. Puedes editarlo, agregarle informaci├│n, o bien borrarlo y empezar desde cero. Bienvenido!",
  "price": 900,
  "price_comparison": 1000,
  "discount_percentage": 10.0,
  "currency_code": "CLP",
  "tags": [
    "tag1",
    "tag2"
  ],
  "created_on": "2009-12-12T23:05:49.000Z",
  "updated_on": "2012-09-01T19:44:40.000Z",
  "_embedded": {
    "shop": {
      "_links": {
        "self": {
          "href": "https://api.bootic.net/v1/shops/47"
        }
      },
      "id": "47",
      "name": "Bootic",
      "subdomain": "www",
      "url": "www.bootic.net"
    },
    "variants": [
      {
        "_links": {
          "btc:update_variant": {
            "href": "http://api.bootic.net/v1/shops/455/product-de-ejemplo-de-bootic/variants/6440",
            "method": "put"
          },
          "btc:delete_variant": {
            "href": "http://api.bootic.net/v1/shops/455/product-de-ejemplo-de-bootic/variants/6440",
            "method": "delete"
          }
        },
        "title": "Default",
        "id": 6440,
        "stock": 1,
        "available_if_no_stock": true,
        "sku": null,
        "weight_in_grams": 0,
        "price": 900,
        "price_comparison": 1000
      }
    ],
    "collections": [
      {
        "title": "Catálogo",
        "id": 897,
        "shop_id": 47,
        "slug": "catalogo"
      }
    ],
    "custom_attributes": [
      {
        "id": 123433,
        "name": "Colour",
        "value": "red",
        "field_type": "string",
        "required": true,
        "key": "colour"
      }
    ],
    "images": [
      {
        "_links": {
          "thumbnail": {
            "href": "https://o.btcdn.co/47/thumbnail/8848-Photo_2.jpg"
          },
          "small": {
            "href": "https://o.btcdn.co/47/small/8848-Photo_2.jpg"
          },
          "medium": {
            "href": "https://o.btcdn.co/47/medium/8848-Photo_2.jpg"
          },
          "large": {
            "href": "https://o.btcdn.co/47/large/8848-Photo_2.jpg"
          },
          "original": {
            "href": "https://o.btcdn.co/47/original/8848-Photo_2.jpg"
          }
        },
        "file_name": "Photo_2.jpg",
        "title": "test"
      }
    ]
  }
}

Product

btc:update_product
Update current product. See update_product.
btc:delete_product
Delete current product. See delete_product.
btc:create_variant
Create a new variant for this product. See create_variant

Variants

btc:update_variant
Update variant. See update_variant.
btc:delete_variant
Delete variant. See delete_variant.

Assets and images

btc:create_product_asset
Create (upload) a product asset or image. See create_product_asset