Skip to main content

Get Trades Negotiations

GET /api/v1/trades/negotiations

Description

Retrieve trade negotiations.

Path Parameters

NameTypeDescription
NoneNo parameters

Request Headers

NameTypeDescription
tenantIdstringThe tenant ID (header)
userIdstringThe user ID (header)
countryCodestringThe country code (header)

Query Parameters

NameTypeDescription
tradeDateRangestringe.g: 2020-11-12,2022-11-15
productUnitTypesstringAvailable values: BARRELS, CUBIC_FEET, GALLONS, GRAMS, KILOGRAMS, LITRES, POUNDS, METRIC_TONNES
tradeWithSabistringAvailable values: 0, 1
tradeInitiatedByBuyerstringAvailable values: 0, 1
tradeByRequestIdsstring
tradeStatusesstringAvailable values: DRAFT, NEGOTIABLE
tradeRequestStatusesstringAvailable values: PENDING, ACCEPTED, REJECTED
tradeByProductIdsstring
tradeIdsstring
byStatesstring
byCitiesstring
bySellerIdsstring
byBuyerIdsstring
byBusinessIdsstring
orderstringAvailable values: ASC, DESC
pagestring
limitstring

Example

GET /api/v1/trades/negotiations
tenantId: string
userId: string
countryCode: string
tradeDateRange: 2020-11-12,2022-11-15
productUnitTypes: BARRELS
tradeWithSabi: 1
tradeInitiatedByBuyer: 1
tradeStatuses: NEGOTIABLE
tradeRequestStatuses: ACCEPTED
order: ASC
page: 1
limit: 10

Response Code: 200 - OK

Description

Successful response with trade negotiations data.

Response Fields

FieldTypeDescription
statusbooleanIndicates if the operation was successful
statusCodeintegerStatus code
messagestringResponse message
dataobjectData related to the trade negotiations
errorsarrayList of error messages, if any

Example

{
"status": true,
"statusCode": 0,
"message": "Trade negotiations retrieved successfully",
"data": {},
"errors": []
}

Headers

Content-TypeValue
apiKey{{apiKey}}
tenantIdstring
userIdstring
countryCodestring

🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /api/v1/trades/negotiations \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!