Start a wallet top-up
POST
/v1/wallet/topups
const url = 'https://api.orvoca.com/v1/wallet/topups';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"amount_paise":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.orvoca.com/v1/wallet/topups \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount_paise": 1 }'Creates a Razorpay order for the amount plus 18% GST. Open Razorpay Checkout with razorpay.key_id and razorpay.order_id, then send its result to /verify. The wallet is credited once, whether /verify or Razorpay’s webhook arrives first.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
amount_paise
required
integer
Example generated
{ "amount_paise": 1}Responses
Section titled “Responses”Order created
Media typeapplication/json
object
id
required
string
status
required
string
amount
required
object
amount
required
integer
currency
required
string
gst
required
object
amount
required
integer
currency
required
string
total
required
object
amount
required
integer
currency
required
string
razorpay
required
Pass to Razorpay Checkout
object
key_id
required
string
order_id
required
string
failure_reason
required
string | null
created_at
required
string
paid_at
required
string | null
Example
{ "status": "created", "amount": { "currency": "INR" }, "gst": { "currency": "INR" }, "total": { "currency": "INR" }}Invalid request
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not signed in or bad API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not allowed
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
param
string
request_id
required
string
Example generated
{ "error": { "code": "example", "message": "example", "param": "example", "request_id": "example" }}