Product Creation Api Call Payload

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.3 kB
0
Indexable
Never
{
    "title": "testphone1",
    "handle": "testphone1",
    "description": "A blue marker pen",
    "ware_house_id":"bs_01HB8YYZBZ9PZ5ASCW7XJGF2AV",
    "status":"draft",
    "options": [
        {
            "title": "mqo"
        }
    ],
    "variants": [
        {
            "title": "testphone1",
            "inventory_quantity": 100,
            "prices": [
                {
                    "amount": 75,
                    "currency_code": "aed"
                }
            ],
            "metadata": {
                "order_unit": "carton",
                "selected_unit": "carton",
                "selected_quantity": 5,
                "offer": 5
            },
            "options": [
                {
                    "value": "1"
                }
            ]
        }
    ],
    "sales_channels": [],
    "subtitle": "samsung",
    "is_approved": false,
    "brand": {
        "id": "product_brand_01HA1H9JQEC6NEKD8F2RHRYCPX"
    },
    "supplier": {
        "id": "cus_01HB8YYZBND9WS1A4AF53DR7PS"
    },
    "metadata": {
        "certifications": [
            "c1",
            "c2"
        ],
        "product_details": [
            "Halal,Vegan",
            "Organic"
        ]
    },
    "tags": [
        {
            "value": "fruits"
        },
        {
            "value": "fresh"
        }
    ],
    "categories": [
        {
            "id": "pro_cat_01HB5ARX1Y1QQ9V3H7QB2Q4DQC"
        }
    ],
    "sub_category": {
        "id": "pro_sub_cat_01HB5ARX1Y7VR5ZDWS33GT0NTM"
    },
    "countries": {
        "id": 234,
        "iso_2": "ae",
        "iso_3": "are",
        "num_code": 784,
        "name": "UNITED ARAB EMIRATES",
        "display_name": "United Arab Emirates",
        "region_id": "reg_01H641GHBYDJTZTW9EQEMZANG9",
        "flag": null
    },
    "hs_code": "1234",
    "images": [
        {
          
            "url": "https://medusa-public-images.s3.eu-west-1.amazonaws.com/tee-black-front.png",
            "metadata": null
        },
        {
            "url": "https://medusa-public-images.s3.eu-west-1.amazonaws.com/tee-white-back.png",
            "metadata": null
        }
    ],
    "sub_sub_category": {
        "id": "pro_child_cat_01HB5ARX1ZX2AZZ756ATH7CX20"
    }
}