Notify Product Storage Success
After the daemon successfully processes the product received from Talk2Sync, it must notify Talk2Sync that the product was inserted or updated successfully.
This notification is part of the product pull transaction and allows Talk2Sync to continue processing the synchronization queue.
1. Notify Successful Storage
After completing the required insert or update operation, send a POST request using the product _id:
POST https://api.talk2sync.com/api/adapters/custom/reverse/connection/{{your key}}/pull/products/{{_id}}/succeded
Replace {{_id}} with the _id of the product that was processed.
Note: The endpoint path uses
succededas specified by the source protocol.
2. Request Body
The request body must contain the product that was successfully inserted or updated:
{
"product": {
"_id": "100004777",
"sku": "100004777",
"last_updated": 1517360038797,
"title": "EON618S JBL SUBWOOFER 18\" AMPLIFICADO",
"url": "",
"brand": "",
"mpn": "",
"model": "",
"description": "JBL Premium Transducers",
"variations": [
{
"availabilities": [
{
"tag": "default",
"quantity": "50"
}
],
"prices": [
{
"tag": "default",
"currency": "USD",
"number": "1060.51"
}
],
"images": [
{
"url": "https://www.example.com/13080-thickbox_default/eon618s-jbl-subwoofer-18-amplificado-.jpg"
}
],
"videos": [
{
"url": ""
}
],
"barcode": "",
"size": "",
"color": ""
}
]
}
}
The product in the request should correspond to the product that the daemon actually inserted or updated.
3. Wait for the Transaction to Complete
The success notification should return HTTP 200 OK.
After receiving a successful response, the daemon must wait for Talk2Sync to finish processing the product transaction before requesting another product.
Check the product readyfornext status:
GET https://api.talk2sync.com/api/adapters/custom/reverse/connection/{{your key}}/pull/products/readyfornext
The response should have a structure similar to:
{
"ready": false
}
or:
{
"ready": true
}
ready: false
Talk2Sync is still processing the previous transaction. The daemon must wait and check the endpoint again.
ready: true
The previous transaction has completed and the daemon can proceed with the next product pull operation.
Process
Next Steps
- Review Get Next Product to Pull to retrieve the next product.
- Review Notify Product Storage Failure to report a failed storage operation.
- Review Set Finish Product Pulls to finalize the product pull process.