SafeGold will communicate to Distributor through a Callback URL when there are any updates happening on SafeGold’s side.
Following is the structure of the Callback URL that Distributor would be providing to SafeGold for all the Callbacks.
{
"callback": [
{
"type": "jeweller",
"tx_id": 21457370,
"gold_amount": "1.3619",
"store_id": "4999",
"user_id": 4544453,
"jeweller_name": XYZ,
"tx_date": "2019-07-16 16:25:45",
"status": 1
}
{
"type": "delivery",
"tx_id": 21457370,
"dispatchStatus": "3",
"message": "dispatched",
"trackingID": “4544453”,
"trackingLink": “https: tracking.delhivery.com”,
"courierCompany": "Delhivery",
}
{
"type": "transferIn",
"tx_id": 21457370,
"gold_amount": "1.3619",
"user_id": 4544453,
"tx_date": "2019-07-16 16:25:45",
"status": 1
}
{
"type": "transferOut",
"tx_id": 21457370,
"gold_amount": "1.3619",
"user_id": 4544453,
"tx_date": "2019-07-16 16:25:45",
"status": 1
}
{
"type": "SIP",
"tx_id": 21457370,
"instalment_amount": "1000",
"user_id": 4544453,
"sip_id": "46543423",
"tx_date": "2019-07-16 16:25:45",
"status": 1
}
]
}
Once Safegold hits the Callback URL, Distributor will internally hit the "Fetch Balance API" and "Transactions History API" of Safegold to update the Gold balance and order history of the customer.