Upload Feed
Last updated
Was this helpful?
Was this helpful?
curl -X POST https://api.violet.io/v1/feeds \
-H 'Authorization: Bearer msk_12345abc11094a44800d84017c593e22' \
-F 'file=@products.xml' \
-F 'feedName=Summer 2024 Product Catalog' \
-F 'feedType=CATALOG'curl -X POST https://api.violet.io/v1/feeds \
-H 'Authorization: Bearer msk_12345abc11094a44800d84017c593e22' \
-F 'file=@inventory-update.xml' \
-F 'feedName=Daily Inventory Update' \
-F 'feedType=INVENTORY' \
-F 'parentFeedId=cat_a1b2c3d4-e5f6-7890-abcd-ef1234567890'<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>Daily Inventory Update</title>
<link>https://www.example.com</link>
<description>Inventory feed</description>
<item>
<g:id>TSHIRT-WHT-S</g:id>
<g:availability>in stock</g:availability>
<g:inventory>48</g:inventory>
</item>
<item>
<g:id>TSHIRT-WHT-M</g:id>
<g:availability>in stock</g:availability>
<g:inventory>12</g:inventory>
</item>
<item>
<g:id>TSHIRT-BLK-S</g:id>
<g:availability>out of stock</g:availability>
<g:inventory>0</g:inventory>
</item>
</channel>
</rss>{
"feed_id": "cat_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "PENDING",
"message": "Feed uploaded successfully and processing initiated",
"timestamp": "2024-03-15T10:30:00Z",
"merchant_id": 12345,
"workflow_id": "feed-upload-cat_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"uploaded_at": "2024-03-15T10:30:00Z"
}{
"code": "INVALID_FEED_TYPE",
"message": "feedType must be CATALOG or INVENTORY",
"timestamp": "2024-03-15T10:30:00Z"
}{
"code": "FILE_TOO_LARGE",
"message": "File size exceeds 2GB limit",
"timestamp": "2024-03-15T10:30:00Z"
}