Test Operations

Operations

post
Authorizations
Header parameters
AuthorizationstringRequired

Private API key to be provided in the format Api-Key <key>.

Default: Api-Key vSUmxsXx.V81oYvOWFMcIywaOu57Utx6VSCmG11lo
Body

Fetch the payment txn based on the order no or session id also, if the payment txn is not in the accepted state for the input operation, raise an error

operationstring · enumRequired
  • delete - delete
  • cancel - cancel
  • expire - expire
  • refund - refund
  • capture - capture
  • void - void
Possible values:
Responses
200Success
application/json
Responseone of
or
post
POST /b/pbl/v2/operation/ HTTP/1.1
Host: betabulk.ottu.net
Authorization: Api-Key vSUmxsXx.V81oYvOWFMcIywaOu57Utx6VSCmG11lo
Content-Type: application/json
Accept: */*
Content-Length: 61

{
  "session_id": "<add `session_id` here>",
  "operation": "expire"
}
{
  "detail": "text",
  "operation": "refund",
  "result": "success"
}

Last updated