Fetch Single SKU


Fetch a single SKU item through SKU code. The SKU code is required as a path parameter

Basic Information

  • Method: GET
  • URI: /skus/:sku_code
  • Response Format: JSON

Headers

The following headers should be sent along with the request

  • Accept: application/json
  • Authorization: Your API Key

Request

Need to send SKU code as path parameter

Sample Request

https://dev-fc-api.aymakan.net/api/v1/skus/SKU-TV-33

Response

Sample response is added here:

{
    "success": true,
    "message": "",
    "data": {
        "sku_code": "SKU-TV-33",
        "name": "Smart LED TV",
        "description": "High-quality 4K Smart LED TV with Wi-Fi connectivity updated.",
        "cost": 300,
        "retail_price": 599,
        "selling_price": 499,
        "display_selling_price": "499.00 SAR",
        "display_retail_price": "599.00 SAR",
        "category": [
            {
                "name": "Electronics"
            },
            {
                "name": "TV & Video"
            }
        ],
        "product": {
            "name": "",
            "handling_type": "",
            "unit": "",
            "type": "",
            "description": ""
        },
        "dimensions": {
            "length": {
                "length": 100,
                "unit": "cm"
            },
            "breadth": {
                "breadth": 10,
                "unit": "cm"
            },
            "height": {
                "height": 60,
                "unit": "cm"
            }
        },
        "barcodes": [
            "1234567890123",
            "9876543210987"
        ],
        "images": [
            {
                "default": "https://images.unsplash.com/photo-1593305841991-05c297ba4575?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8dHZ8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=800&q=60",
                "thumbnail": "https://images.unsplash.com/photo-1593305841991-05c297ba4575?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8dHZ8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=800&q=60",
                "medium": "https://example.com/images/tv/medium.jpg",
                "large": "https://example.com/images/tv/large.jpg",
                "type": "image",
                "description": "Smart LED TV image"
            }
        ],
        "attributes": [
            {
                "name": "Screen Size",
                "sku_attribute_variation": {
                    "name": "Variation 1"
                }
            },
            {
                "name": "Screen Size new att",
                "sku_attribute_variation": {
                    "name": "Variation 1"
                }
            }
        ],
        "handling_type": "cold",
        "type": "simple",
        "status": "live",
        "unit": "",
        "is_perishable": false,
        "country_of_origin": "CountryX",
        "is_weighted": false,
        "configuration": {
            "weight": {
                "min": "10 kg",
                "max": "15 kg",
                "type": "fixed"
            }
        },
        "custom_attribute": [
            {
                "key": "Smart TV",
                "value": "Yes"
            },
            {
                "key": "Resolution",
                "value": "4K"
            }
        ],
        "created_by": "410",
        "updated_by": "",
        "created_at": "2023-12-10T08:17:36.44Z",
        "updated_at": "0001-01-01T00:00:00Z"
    },
    "meta": null
}