ZebPay Trade API
This endpoint allows users to read order data, create a new order, or cancel a previously placed order.Signature Generation for POST Methods:The following JavaScript code should be added to the Pre-request Script tab in Postman. It automatically generates the required signature and includes the API key and signature in the request headers.// Import crypto for HMAC-SHA256 signature calculationconst CryptoJS = require('crypto-js');// API key and secretconst APIKEY = '';const SECRET = '';// Generate the current timestampconst timestamp = Date.now(); // Unix time in milliseconds//read boday data and pass update timestampconst body = pm.request.body.rawconst payload = JSON.parse(body);payload.timestamp = timestamp;// Stringify the payloadconst payloadString = JSON.stringify(payload);// Function to calculate HMAC-SHA256 signaturefunction calculateSignature(payload, secret) { const hash = CryptoJS.HmacSHA256(payload, secret); return hash.toString(CryptoJS.enc.Hex);}// Calculate the signatureconst signature = calculateSignature(payloadString, SECRET);// Set headers dynamicallypm.request.headers.upsert({ key: "X-AUTH-APIKEY", value: APIKEY,});pm.request.headers.upsert({ key: "X-AUTH-SIGNATURE", value: signature,});// Replace request body with the dynamically generated payloadpm.request.body.update(payloadString);Signature Generation for GET Methods:// Import crypto for HMAC-SHA256 signature calculationconst CryptoJS = require('crypto-js');// API key and secretconst APIKEY = '';const SECRET = '';// Function to calculate HMAC-SHA256 signaturefunction calculateSignature(payload, secret) { const hash = CryptoJS.HmacSHA256(payload, secret); // Use CryptoJS for HMAC return hash.toString(CryptoJS.enc.Hex); // Convert to hexadecimal}// Generate a timestampconst timestamp = Date.now(); // Current Unix timestamp in milliseconds// Access the query parameters from the request URLlet queryParams = pm.request.url.query;// Convert query parameters into a key-value objectlet queryObject = {};queryParams.each(param => { queryObject[param.key] = param.value;});// Update or set the parameter dynamicallyqueryObject['timestamp'] = Date.now() // Update 'timestamp' parameter// Convert query parameters to query stringconst queryString = Object.entries(queryObject) .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`) .join('&');// Generate the signatureconst signature = calculateSignature(queryString, SECRET);// Set headers dynamicallypm.request.headers.upsert({ key: "X-AUTH-APIKEY", value: APIKEY,});pm.request.headers.upsert({ key: "X-AUTH-SIGNATURE", value: signature,});// Update the URL with the query parameterspm.request.url.query.clear(); // Clear existing query paramsqueryString.split('&').forEach((param) => { const [key, value] = param.split('='); pm.request.url.query.add({ key, value });});
ZebPay Trade API is one of 9 APIs that ZebPay publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Trade API. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.
This API exposes 10 operations across 9 paths. It is described by OpenAPI 3.2.0, at version 1.0.0.
Requests are made against 4 base URLs: http://{{baseurl}}, https://www.zebapi.com, https://futuresbe.zebpay.com, https://www.zebapi.com/api/v1.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
ZebPay Trade API declares
1 security scheme
for authenticating requests.
It uses HTTP noauth authentication (noauthAuth).
Paths & Operations 10
Across 9 paths, the API surfaces 10 operations — 2 DELETE, 7 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.
This endpoint allows users to read order data, create a new order, or cancel a previously placed order.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from ZebPay 8
Other APIs ZebPay publishes across the network.
This is an independent, third-party profile of ZebPay Trade API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.
The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.
Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.
info@apievangelist.com
·
Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and
you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.