v1

latestOpenAPI 3.0.12026-07-24501176.6 MB

Approve Requests

Allows approving requests that are in pending status. You can use this API only when the auto-approval configurations are not enabled for your organization. Also, you cannot approve force approval requests made using client_auto_approve=true.

post/request/approve

Request body

RAW_BODYstring json

Response

200

Example response

{
  "response": {
    "requests": {
      "goodwill": {
        "type": "POINTS",
        "reason": "BILL_ISSUE",
        "comments": "pls issue a coupon for the failed transaction",
        "updated_comments": "Seems to a valid request. hence approving",
        "status": "APPROVED",
        "customer": {
          "firstname": "Tom",
          "lastname": "Sawyer",
          "email": "tom.sawyer@example.com",
          "mobile": "919999999999",
          "external_id": "ts1234"
        },
        "added_on": "2014-01-22T03:06:11+05:30",
        "last_action_on": "2016-01-23T03:06:11+05:30"
      }
    }
  }
}