Close
logo

Disconnecting Inventory Feed Variants

Git RepositoryEdit on Github
Last update: 2 years ago by Francesco de LorenziReading time: 2 min

When managing inventory feeds programmatically, it is possible to disconnect Inventory Feed Variants from a Channel.

This can be carried out by making a PUT call to https://api.jetti.io/api/channels/:id/disconnect-inventory-feed-variants.json, making sure to replace :id with the Channel Id.

The following cURL request shows how this is carried out:

curl --request PUT \
--url https://api.jetti.io/api/channels/:id/disconnect-inventory-feed-variants.json \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"sku": "{{sku}}",
"vendorSkus": [{
"vendorSku": "{{vendorSku}}",
"dropshipProviderExternalId": "{{externalId}}"
}]
}'

dropshipProviderExternalId can also be replaced with dropshipProviderId if known.

The {{sku}}, {{vendorSku}} and {{externalId}} fields will need to replaced.

Batch Disconnect Inventory Feed Variants

It is also possible to batch disconnect inventory feed variants as batches of a maximum of 50 items. This can be carried out by making the following cURL request:

curl --request PUT \
--url https://api.jetti.io/api/channels/:id/disconnect-inventory-feed-variant-batches.json \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '[
{
"sku": "{{sku}}",
"vendorSkus": [{
"vendorSku": "{{vendorSku}}",
"dropshipProviderExternalId": "{{externalId}}"
}],
{
"sku": "{{sku}}",
"vendorSkus": [{
"vendorSku": "{{vendorSku}}",
"dropshipProviderExternalId": "{{externalId}}"
}]
}
]
'
๐Ÿ’ป Custom channel โ€” Previous
Acknowledging Inventory Feed Variants
Next โ€” ๐Ÿ’ป Custom channel
Asynchronous API Imports