Close
logo

Acknowledging Inventory Feed Variants

Git RepositoryEdit on Github
Last update: 2 years ago by luigi mangaReading time: 2 min

When integrating inventory feeds, it is possible to acknowledge variants from a Channel with a respective Inventory Feed Variant.

This can be carried out by making a PUT call to https://api.jetti.io/api/channels/:id/acknowledge-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/acknowledge-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 Acknowledging Inventory Feed Variants

It is also possible to acknowledge 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/acknowledge-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}}"
}]
}
]
'

The above batch call is asynchronous. If you wanted to be informed of the result of the asynchronous action, it's possible to create a webhook to listen for that event. This webhook will fire not when the batch is complete, but as each individual variant is acknowledged in the system. The webhook will have a payload of data, which mirrors the synchronous version of the API method. You can create this webhook under Integrations > API.

๐Ÿ’ป Custom channel โ€” Previous
Variant Acknowledgement
Next โ€” ๐Ÿ’ป Custom channel
Disconnecting Inventory Feed Variants