/
Listing Sync

Listing Sync

Channel Data:

{ "sellerSkuOnChannel": "sku", "integrationType": "6", "Flipkart_workspaceToken_eshop": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6", "externalChannelId": "eshop_flipkart_test", "latestSyncTimeStamp": "2020-10-30 10:46:09.0", "accountSlug": "eshop", "connectionId": 51, "integrationModelId": "3", "location": { "LOC62a30c1d159845e09dfeef303f52cfb9": "BDGUR103" }, "channelProductCode": "inventory_item_id", "accessToken": "6e3a2b62-9f40-42d0-b262-93048cf92344" }

Shopify Service:

Fetch Shopify listing: Get Listing Api

Response:

{     "product_listings": [         {             "product_id": 6118342754472,             "created_at": "2020-12-11T08:51:32-05:00",             "updated_at": "2020-12-14T06:42:14-05:00",             "body_html": "",             "handle": "eshop-test-product",             "product_type": "",             "title": "Eshop Test Product",             "vendor": "teststore-eshopbox",             "available": true,             "tags": "",             "published_at": "2020-12-11T10:27:02-05:00",             "variants": [                 {                     "id": 37350612107432,                     "title": "32",                     "option_values": [                         {                             "option_id": 7864073715880,                             "name": "Size",                             "value": "32"                         }                     ],                     "price": "300.00",                     "formatted_price": "Rs. 300.00",                     "compare_at_price": null,                     "grams": 0,                     "requires_shipping": true,                     "sku": "1",                     "barcode": "",                     "taxable": true,                     "position": 1,                     "available": true,                     "inventory_policy": "deny",                     "inventory_quantity": 42,                     "inventory_management": "shopify",                     "fulfillment_service": "manual",                     "weight": 0.0,                     "weight_unit": "kg",                     "image_id": null,                     "created_at": "2020-12-11T08:51:32-05:00",                     "updated_at": "2020-12-14T06:36:12-05:00"                 }             ],             "images": [],             "options": [                 {                     "id": 7864073715880,                     "name": "Size",                     "product_id": 6118342754472,                     "position": 1,                     "values": [                         "32"                     ]                 }             ]         },         {             "product_id": 6118156665000,             "created_at": "2020-12-11T07:00:45-05:00",             "updated_at": "2020-12-14T06:14:40-05:00",             "body_html": "",             "handle": "test-tshirt-prateek",             "product_type": "",             "title": "test Tshirt Prateek",             "vendor": "teststore-eshopbox",             "available": true,             "tags": "",             "published_at": "2020-12-11T10:27:02-05:00",             "variants": [                 {                     "id": 37347605545128,                     "title": "32",                     "option_values": [                         {                             "option_id": 7863803052200,                             "name": "Size",                             "value": "32"                         }                     ],                     "price": "300.00",                     "formatted_price": "Rs. 300.00",                     "compare_at_price": null,                     "grams": 0,                     "requires_shipping": true,                     "sku": "1",                     "barcode": "",                     "taxable": true,                     "position": 1,                     "available": false,                     "inventory_policy": "deny",                     "inventory_quantity": 0,                     "inventory_management": "shopify",                     "fulfillment_service": "manual",                     "weight": 0.0,                     "weight_unit": "kg",                     "image_id": null,                     "created_at": "2020-12-11T07:00:45-05:00",                     "updated_at": "2020-12-14T06:14:40-05:00"                 },                 {                     "id": 37347605577896,                     "title": "34",                     "option_values": [                         {                             "option_id": 7863803052200,                             "name": "Size",                             "value": "34"                         }                     ],                     "price": "300.00",                     "formatted_price": "Rs. 300.00",                     "compare_at_price": null,                     "grams": 0,                     "requires_shipping": true,                     "sku": "ABCD123",                     "barcode": "XYZ987",                     "taxable": true,                     "position": 2,                     "available": true,                     "inventory_policy": "deny",                     "inventory_quantity": 49,                     "inventory_management": "shopify",                     "fulfillment_service": "manual",                     "weight": 0.0,                     "weight_unit": "kg",                     "image_id": null,                     "created_at": "2020-12-11T07:00:45-05:00",                     "updated_at": "2020-12-14T01:20:47-05:00"                 }             ],             "images": [],             "options": [                 {                     "id": 7863803052200,                     "name": "Size",                     "product_id": 6118156665000,                     "position": 1,                     "values": [                         "32",                         "34"                     ]                 }             ]         }     ] }

Eshopbox

Shopify

Eshopbox

Shopify

 

variants[].sku

 

variants[].id

 

variants[].options[].product_id

 

Fetch variant details by variants[].id : Get Variant

Response:

{ "variant": { "id": 808950810, "product_id": 632910392, "title": "Pink", "price": "199.00", "sku": "IPOD2008PINK", "position": 1, "inventory_policy": "continue", "compare_at_price": null, "fulfillment_service": "manual", "inventory_management": "shopify", "option1": "Pink", "option2": null, "option3": null, "created_at": "2020-11-04T16:46:58-05:00", "updated_at": "2020-11-04T16:46:58-05:00", "taxable": true, "barcode": "1234_pink", "grams": 567, "image_id": 562641783, "weight": 1.25, "weight_unit": "lb", "inventory_item_id": 808950810, "inventory_quantity": 10, "old_inventory_quantity": 10, "tax_code": "DA040000", "requires_shipping": true, "admin_graphql_api_id": "gid://shopify/ProductVariant/808950810", "presentment_prices": [ { "price": { "currency_code": "USD", "amount": "199.00" }, "compare_at_price": null } ] } }

Eshopbox

Shopify

Eshopbox

Shopify

 

variant.inventory_item_id

Find Product: Get by identifier API

query params:

  1. fields: sku, additionalNames, esin,

  2. ids: variants[].sku ?

Response:

{ "87162143127": { "esin": "0SGAT12SG25F", "sku": "87162143127" }, "623731HSHS": { "esin": "7HASI6ASDJ8S", "sku": "87162143127" } }

Update Properties:

Request:

"properties": [ { "label": "{channelProductCode}", "internalName": "{channelProductCode}", "value": [ "{variant.inventory_item_id}" ] }, { "label": "{sellerSkuOnChannel}", "internalName": "{sellerSkuOnChannel}", "value": [ "{variants[].sku}" ] } ]

Mark availability:

Request:

{ "esin" : "0SGAT12SG25F", "channelCode" : "{externalChannelId}", "availability" : true }

Create Product:

Eshopbox

Shopify

Eshopbox

Shopify

sku

 

type

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Related content