Admin Add products payload

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.3 kB
3
Indexable
Never
{
    "title": "rose",
    "handle": "testphone1",
    "description": "A blue marker pen",
    "ware_house_id":"bs_01HB5HV1J771RNMAPE0ZXGXZJH",
    "status":"draft",
    "options": [
        {
            "title": "mqo"
        }
    ],
    "variants": [
        {
            "title": "rose",
            "inventory_quantity": 100,
            "prices": [
                {
                    "amount": 75,
                    "currency_code": "aed",
                    "min_qunatity":40
                }
            ],
            "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_01HB8XYBQKGNTWF3A6ETDZ62NX"
    },
    "supplier": {
        "id": "cus_01HB5HV1J0JMMM7B1B688KB9PJ"
    },
    "metadata": {
        "certifications": [
            "c1",
            "c2"
        ],
        "product_details": [
            "Halal,Vegan",
            "Organic"
        ]
    },
    "tags": [
        {
            "value": "fruits"
        },
        {
            "value": "fresh"
        }
    ],
    "categories": [
        {
            "id": "pro_cat_01HB8RGK3ZG9KDHXTD602R3CVS"
        }
    ],
    "sub_category": {
        "id": "pro_sub_cat_01HB8RGK4AATD4M9ZC3EQTAB9W"
    },
    "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": "data",
    "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_01HBXCSS1QNWK3J5ENBAYC8ZW8"
    }
}