Confirm a top-up after Razorpay Checkout
POST
/v1/wallet/topups/{id}/verify
const url = 'https://api.orvoca.com/v1/wallet/topups/example/verify';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"razorpay_payment_id":"example","razorpay_signature":"example"}'};
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/example/verify \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "razorpay_payment_id": "example", "razorpay_signature": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
razorpay_payment_id
required
string
razorpay_signature
required
string
Example generated
{ "razorpay_payment_id": "example", "razorpay_signature": "example"}Responses
Section titled “Responses”Paid
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" }}