This endpoint will let you create a gifting transaction. User ID of the Sender needs to be passed in the URL.


This Verify API will be called by the Distributor if the receiver is not registered with SafeGold. Distributor can also handle the scenario if the Receiver is not registered with the Distributor itself.

Once the Verify API is successful, the Sender’s wallet balance will be deducted. Once the Gifting Verify API (with receiver ref id) has been called, the status of the particular transaction would be (Status - 3) ​ as the gold amount for the particular transaction would be deducted from the customer’s balance.

For the receiver, SafeGold will create a Dummy ID and send it as a response on the success of the Gifting Verify API. Once the customer has accepted the gift or has been onboarded by the Distributor, Distributor will call a registration API of SafeGold to register the User with SafeGold by providing the Transaction ID that was sent in the response of the Gifting Verify API.

Once the customer has been registered, for adding the gold to the Receiver once the receiver accepts the gift, Distributor will call the Gifting Confirm API.


Request Parameters

FieldDescription
rate_idThe rate_id which was passed by SafeGold in the response of Live Sell Price API.
gold_amountGold Amount corresponding to the Sell Price
sell_priceThe final Amount which the Sender wishes to send to the Receiver.

Success 200 Response parameters

FieldDescription
tx_idUnique Transaction ID provided by Safegold which will be passed to the next endpoint to confirm the transaction.
sender_idUser ID of the Sender
receiver_idDummy receiver id created by SafeGold.
rate_idThe rate_id which was passed by Safegold in the response of Live Sell Price API
gold_amountGold Amount corresponding to the Sell Price.
sell_priceThe final Amount which the Sender wishes to send to the Receiver.

Failure Parameters

Status CodeCodeDescription
HTTP Status 500
1Missing required information
2Sender Not registered
3Insufficient Balance
4SG Rate does not match the current rate
5Gold Amount does not match

Post the success of the ​ Gifting Verify API, Gift Confirm API ​ will be called by the Distributor by passing the Sender’s User ID in the URL and by sending transaction ID as a request.

Language
Click Try It! to start a request and see the response here!