# API Reference Here is only reference for API of this gem, to see complete information please use our [documentation](https://api-docs.midtrans.com/)
Method | Descripion | Http Method | URL |
---|---|---|---|
Veritrans.charge(data) | Charge Transaction | POST | api.midtrans.com/v2/charge |
Veritrans.test_token(data) | Get Token for Card | GET | api.midtrans.com/v2/token |
Veritrans.status(id) | Get Last Status | GET | api.midtrans.com/v2/{id}/status |
Veritrans.cancel(id) | Cancel Transaction | POST | api.midtrans.com/v2/{id}/cancel |
Veritrans.approve(id) | Approve Challenge Transaction | POST | api.midtrans.com/v2/{id}/approve |
Veritrans.refund(id) | Refund Successful Transaction | POST | api.midtrans.com/v2/{id}/refund |
Veritrans.capture(id) | Capture Authorise Transaction | POST | api.midtrans.com/v2/{id}/capture |
Veritrans.expire(id) | Expire Pending Transaction | POST | api.midtrans.com/v2/{id}/expire |
Veritrans.deny(id) | Deny Challenged Transaction | POST | api.midtrans.com/v2/{id}/deny |