ExitOrder

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
product_type H / B Allowed for only H and B products (Cover order and bracket order) 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/exit

										
cURL

Copied!

curl --location 'https://dev.cluster.apps.enrichmoney.in/order-api/v1/order/exit' \ --header 'Authorization: {{jwt_token}}' \ --header 'Content-Type: application/json' \ --header 'user-id: {{userid}}' \ --data '{ "user_id": "{{userid}}", "product_type": "B", "oms_partner_order_no": "23113000000023" }'
										
python / requests

Copied!

import requests url = "https://dev.cluster.apps.enrichmoney.in/order-api/v1/order/exit" payload = "{\r\n \"user_id\": \"{{userid}}\",\r\n \"product_type\": \"B\",\r\n \"oms_partner_order_no\": \"23113000000023\"\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://dev.cluster.apps.enrichmoney.in/order-api/v1/order/exit") .header("Authorization", "{{jwt_token}}") .header("Content-Type": "application/json") .header("user-id", "{{userid}}") .body("{\r\n \"user_id\": \"{{userid}}\",\r\n \"product_type\": \"B\",\r\n \"oms_partner_order_no\": \"23113000000023\"\r\n}") .asString();
										
nodejs / axios

Copied!

var axios = require('axios'); var data = '{\r\n "user_id": "{{userid}}",\r\n "product_type": "B",\r\n "oms_partner_order_no": "23113000000023"\r\n}'; var config = { method: 'post', maxBodyLength: Infinity, url: 'https://dev.cluster.apps.enrichmoney.in/order-api/v1/order/exit', 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