v1
latestOpenAPI 3.0.12026-07-24501176.6 MBApprove or reject a request
This API enables you to approve or reject a request
put/api_gateway/v2/request-workflow/{requestType}
Path parameters
requestType'CUSTOMER-STATUS-CHANGE' | 'POINTS-REDEMPTION' | 'GOODWILL-POINTS' | 'EARN-BADGE' | 'ISSUE-BADGE' required
Request body
Response
200
Example response
{
"data": {
"requestId": "113cff87-62a5-11ee-aa6d-0aaee4e533d2",
"userId": 232134,
"userName": "tonob50495@tipent.com",
"requestType": "customer-status-change",
"state": "approved",
"startTime": "2023-10-04T16:29:19",
"endTime": "2023-10-04T16:42:25",
"details": {
"IntouchAPITask-Payload": {
"hostname": "<https://crm-nightly-new.cc.capillarytech.com>",
"path": "/v2/customers/lookup/status",
"method": "PUT",
"queryParams": {
"source": "INSTORE",
"use_async": "false",
"identifierName": "mobile",
"identifierValue": "9988221100"
},
"body": {
"reason": "testing",
"label": "Suspended"
},
"headers": {
"Authorization": "Basic cHVuLjAxOjIwMmNiOTYyYWM1OTA3NWI5NjRiMDcxNTJkMjM0Yjcw",
"content-type": "application/json"
}
},
"AdminTask-Payload": {
"actionDecision": "approved",
"actionMessage": "approving the request"
},
"ValidateMakerAccess_Output": true,
"AdminTask_Output": "approved",
"ValidatePayload_Output": true,
"IntouchAPITask_Output": {
"status": 200,
"headers": {
"Date": [
"Wed, 04 Oct 2023 11:12:25 GMT"
],
"Content-Type": [
"application/json; charset=UTF-8"
],
"Content-Length": [
"15"
],
"Connection": [
"keep-alive"
],
"X-Application-Context": [
"application:1900"
],
"Host": [
"intouch-api-64f99fb8b7-lkzjb"
],
"uri_path": [
"/v2/customers/{id}/status"
],
"org_id": [
"51251"
],
"status_code": [
"200"
],
"success": [
"1"
],
"fail": [
"0"
],
"X-CAP-REQUEST-ID": [
"b7131d8f40441dbefd65d24a0c56fe93"
],
"till": [
"pun.01"
],
"X-Cap-RequestID": [
"b7131d8f40441dbefd65d24a0c56fe93"
],
"X-Frame-Options": [
"SAMEORIGIN"
]
}
},
"ValidateCheckerAccess_Output": true
}
}
}