CancelOrder

Header Body:

Name Description
Authorization Access token obtained in after successful login
user-Id Client id of the user

Request Body:

Json Fields Possible Values Description Mandatory(M) / Optional(O) /
Condition Based (C)
Data Type
user_id User ID M str
oms_partner_or der_no Order number M str

Sample Response 1


									

Sample Response 2


									

Sample Response 3


									

POST/order-api/v1/order/cancel

										
cURL

Copied!

curl --location 'https://orca-uatapi.enrichmoney.in/order-api/v1/order/cancel' \ --header 'Authorization: {{jwt_token}}' \ --header 'Content-Type: application/json' \ --header 'user-id: {{userid}}' \ --data '{ "user_id": "{{userid}}", "oms_partner_order_no": "2311300000023" }'
										
python / requests

Copied!

import requests url = "https://orca-uatapi.enrichmoney.in/order-api/v1/order/cancel" payload = "{\r\n \"user_id\": \"{{userid}}\",\r\n \"oms_partner_order_no\": \"2311300000023\"\r\n}" headers = { 'Authorization': '{{jwt_token}}', 'Content-Type': 'application/json', 'user-id': '{{userid}}' } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)
										
java / unirest

Copied!

Unirest.setTimeouts(0, 0); HttpResponse response = Unirest.post("https://orca-uatapi.enrichmoney.in/order-api/v1/order/cancel") .header("Authorization", "{{jwt_token}}") .header("Content-Type": "application/json") .header("user-id", "{{userid}}") .body("{\r\n \"user_id\": \"{{userid}}\",\r\n \"oms_partner_order_no\": \"2311300000023\"\r\n}") .asString();
										
nodejs / axios

Copied!

var axios = require('axios'); var data = '{\r\n "user_id": "{{userid}}",\r\n "oms_partner_order_no": "2311300000023"\r\n}'; var config = { method: 'post', maxBodyLength: Infinity, url: 'https://orca-uatapi.enrichmoney.in/order-api/v1/order/cancel', headers: { 'Authorization': '{{jwt_token}}', 'Content-Type': 'application/json', 'user-id': '{{userid}}' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });

Mail Us

api-support@enrichmoney.in

Call Us

044 40063663/044 35000470

Powered by Enrich Money