Using a webhook
How does it work?
Once you provide the webhook url to Coini team you can try it out in sandbox or production mode.
First
You need to create a new order using this endpoint and then you need to wait 3 minutes to receive the confirmation.
Second
After 3 minutos Coini will run and POST request pointing to the webhook URL with the following data:
Request
POST {{WEBHOOK_URL}}
Success case:
Failed case:
Important to know:
metadata
is the data provided when you created an order.item
is amount and currency sent when you created an order.transaction
this object has all the details of the transaction and the most important data is the status field.status
this field could be have two values success or failed and you can use that to confirm the order in your system.
Last updated