API References (1.0)
The current API version is 1.0
Last updated
Was this helpful?
The current API version is 1.0
Last updated
Was this helpful?
To authenticate your account, you have to include your secret API key in the request which can be accessed in the Dashboard. You may generate your API Key via the Settings page on the Partner dashboard as described further .
The URL to the API service can be accessed through the following links:
Sandbox : https://sandbox.idrt-gateway.rupiahtoken.com/v1
Live : https://idrt-gateway.rupiahtoken.com/v1
Create IDRT Purchase is a process where your user can request to purchase / deposit
IDRT via the virtual account (VA) bank transfer through this IDRT Fiat Gateway API. Once the user creates an IDRT purchase / deposit request, our system will feed the required information to process such transaction.
POST
/v1/purchase/submit
This endpoint allows you to create IDRT purchase request for your user.
Authorization
string
Bearer {API_KEY}
name
string
Full Name
user_id
string
User ID of your user registered on your platform
amount
number
IDRT amount
bank
string
PERMATA, MANDIRI, BRI
Cancel Purchase is a process where your user requests to cancel his/her purchase request that was created previously but has not been completed yet. A purchase request will be automatically cancelled within 24 hours. However, your user can cancel it manually by himself/herself in the case where he/she would like to create another purchase request. Your user cannot create two purchase requests at the same time. Accordingly, your user needs to complete his/her existing purchase request or cancel it to create another new purchase request.
POST
/v1/purchase/cancel
This endpoint allows you to cancel IDRT purchase request for your user.
Authorization
string
Bearer {API_KEY}
amount
number
IDRT Purchase amount
purchase_id
string
Purchase ID
POST
/v1/purchase/simulate-payment
You can simulate payment of your purchase in sandbox mode.
Authorization
string
Bearer {API_KEY}
purchase_id
string
Purchase ID
amount
number
IDRT Purchase Amount
GET
/v1/purchase/:id
Get detail of a purchase.
All values for status
field :
- pending
purchase pending, waiting for bank virtual account creation by our system.
- processed
bank virtual account has been created, waiting for payment by end-user.
- failed
purchase failed, this is usually caused by the payment that was sent by the end-user past the due date or time limit")
- success
purchase success or payment has been paid
- canceled
purchase canceled
id
string
Purchase ID