Supplier Products Creation Payload

mail@pastecode.io avatar
unknown
plain_text
7 months ago
2.3 kB
2
Indexable
Never
{
    "title": "testphone2",
    "product_code": "testphone2",
"current_user":"cus_01HB8YYZBND9WS1A4AF53DR7PS",
    "description": "A blue marker pen",
    "ware_house_id":"bs_01HB8YYZBZ9PZ5ASCW7XJGF2AV",
    "status":"draft",
    "options": [
        {
            "title": "mqo"
        }
    ],
    "variants": [
        {
            "title": "testphone2",
            "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"
                }
            ]
        }
    ],
    "brand": {
        "id": "product_brand_01HB8XYBQKGNTWF3A6ETDZ62NX"
    },
    "supplier": {
        "id": "cus_01HB8YYZBND9WS1A4AF53DR7PS"
    },
    "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": "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_01HBXCSS1QNWK3J5ENBAYC8ZW8"
    }
}