Cottoncast
  • Documentation
  • API Reference
    • Getting started
    • API Endpoints
      • Orders
      • Products
      • Integration
    • Webhooks
      • Products
      • Orderstatus
  • Plugins
    • WooCommerce
    • Magento
Powered by GitBook
On this page

Was this helpful?

  1. API Reference
  2. API Endpoints

Products

Retrieve blank products

GET /products/base

            {
                "sku": "RS155M",
                "sku_config": "russellcolor-size",
                "name": "Russell Herenshirt",
                "price": 14.5,
                "category": {
                    "code": "T",
                    "label": "T-Shirt"
                },
                "gender": [
                    {
                        "code": "M",
                        "label": "Men"
                    }
                ],
                "tearoffLabel": true,
                "variations": [
                    {
                        "sku": "RS155M-36-S",
                        "name": "Russell Herenshirt Black/S",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "36",
                                "label": "Black"
                            },
                            {
                                "attribute": "size",
                                "value": "S",
                                "label": "S"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    },
                    {
                        "sku": "RS155M-36-M",
                        "name": "Russell Herenshirt Black/M",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "36",
                                "label": "Black"
                            },
                            {
                                "attribute": "size",
                                "value": "M",
                                "label": "M"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    },
                    {
                        "sku": "RS155M-36-L",
                        "name": "Russell Herenshirt Black/L",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "36",
                                "label": "Black"
                            },
                            {
                                "attribute": "size",
                                "value": "L",
                                "label": "L"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    },
                    {
                        "sku": "RS155M-36-XL",
                        "name": "Russell Herenshirt Black/XL",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "36",
                                "label": "Black"
                            },
                            {
                                "attribute": "size",
                                "value": "XL",
                                "label": "XL"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    },
                    {
                        "sku": "RS155M-36-2XL",
                        "name": "Russell Herenshirt Black/2XL",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "36",
                                "label": "Black"
                            },
                            {
                                "attribute": "size",
                                "value": "2XL",
                                "label": "2XL"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    },
    
                    {
                        "sku": "RS155M-57-S",
                        "name": "Russell Herenshirt Fuchsia/S",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "57",
                                "label": "Fuchsia"
                            },
                            {
                                "attribute": "size",
                                "value": "S",
                                "label": "S"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    },
                    {
                        "sku": "RS155M-57-M",
                        "name": "Russell Herenshirt Fuchsia/M",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "57",
                                "label": "Fuchsia"
                            },
                            {
                                "attribute": "size",
                                "value": "M",
                                "label": "M"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    },
                    {
                        "sku": "RS155M-57-L",
                        "name": "Russell Herenshirt Fuchsia/L",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "57",
                                "label": "Fuchsia"
                            },
                            {
                                "attribute": "size",
                                "value": "L",
                                "label": "L"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    },
                    {
                        "sku": "RS155M-57-XL",
                        "name": "Russell Herenshirt Fuchsia/XL",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "57",
                                "label": "Fuchsia"
                            },
                            {
                                "attribute": "size",
                                "value": "XL",
                                "label": "XL"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    },
                    {
                        "sku": "RS155M-57-2XL",
                        "name": "Russell Herenshirt Fuchsia/2XL",
                        "sku_config": [
                            {
                                "attribute": "russellcolor",
                                "value": "57",
                                "label": "Fuchsia"
                            },
                            {
                                "attribute": "size",
                                "value": "2XL",
                                "label": "2XL"
                            }
                        ],
                        "stock": {
                            "code": "S",
                            "label": "In Stock"
                        }
                    }
                ]
            }
            }
{
    "status": "error",
    "message": "Unauthorized"
}
PreviousOrdersNextIntegration

Last updated 3 years ago

Was this helpful?