Skip to main content

Update Trade Testing Details

PATCH /api/v1/trades/{tradeId}/testing-details

Description

Update testing details for a specific trade.

Path Parameters

NameTypeDescription
tradeIdstringThe ID of the trade (path)

Request Headers

NameTypeDescription
tenantIdstringThe tenant ID (header)
userIdstringThe user ID (header)

Request Body

  • Content Type: application/json
{
"provider": "string",
"expectation": "string",
"comment": "string",
"docLinks": [
{
"name": "string",
"link": "string"
}
],
"productSampleDetail": {
"buyerPortInfo": "string",
"buyerDestinationAddress": "string",
"sellerPortInfo": "string",
"sellerDestinationAddress": "string",
"trackingProvider": "string",
"trackingNumber": "string",
"trackingUrl": "string",
"docLinks": [
{
"name": "string",
"link": "string"
}
]
},
"testProviderConfig": [
{
"label": "string",
"value": "string",
"required": true,
"valueType": "string",
"formType": "input",
"formOptions": [
{
"label": "string",
"value": "string"
}
]
}
],
"productTypeDetails": [
"string"
],
"usePersonalTestProvider": false,
"personalTestProviderDetails": {
"name": "string",
"email": "string"
}
}

Response Code: 200 - OK

Description

Testing details updated successfully.

Method: PATCH

>http://your-api-url/api/v1/trades/{tradeId}/testing-details

Headers

Content-TypeValue
apiKey{{apiKey}}
tenantIdstring
userIdstring

Body

{
"provider": "Test Provider",
"expectation": "High quality",
"comment": "Testing details updated",
"docLinks": [
{
"name": "Document 1",
"link": "http://example.com/doc1"
}
],
"productSampleDetail": {
"buyerPortInfo": "Port A",
"buyerDestinationAddress": "Address A",
"sellerPortInfo": "Port B",
"sellerDestinationAddress": "Address B",
"trackingProvider": "Provider X",
"trackingNumber": "123456",
"trackingUrl": "http://tracking.com/123456",
"docLinks": [
{
"name": "Tracking Document",
"link": "http://example.com/tracking"
}
]
},
"testProviderConfig": [
{
"label": "Config 1",
"value": "Value 1",
"required": true,
"valueType": "string",
"formType": "input",
"formOptions": [
{
"label": "Option 1",
"value": "Option Value 1"
}
]
}
],
"productTypeDetails": [
"Type A"
],
"usePersonalTestProvider": false,
"personalTestProviderDetails": {
"name": "Personal Provider",
"email": "provider@example.com"
}
}

🔑 Authentication bearer

ParamValueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PATCH \ 
--url /api/v1/trades/{tradeId}/testing-details \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


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