Skip to main content

Get Product Commission

Gets the commission on a single product.

Supported arguments​

The following arguments are supported by this API:

POST /product/commission

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Params

ParamParam TpeTypeRequiredDescription
productIdbodyNumberYesThe ID of the product
sellingPricebodyNumberYes"Retail Price" / "Selling Price" is the price after commission. Buyers will see this price

Response

{
"statusCode": 200,
"message": "string",
"data": {
"commission": {
"amount": "number"
"currency": "string"
},
"sellingPrice": {
"amount": "number"
"currency": "string"
},
"youGetPrice": {
"amount": "number"
"currency": "string"
},

}
}

POST https://services.driffle.com/api/seller/legacy/product/commission

Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringYesAuthorization token in Bearer <token> format. Example: Bearer dvakycjgw8liyd278y

Request body (application/json)

FieldTypeRequiredDescription
productIdnumberYes
sellingPricenumberYes

Responses (application/json)

Default Response

FieldTypeRequiredDescription
messagestringNo
statusnumberNo
dataobjectNo
data.commissionobjectNo
data.commission.amountnumberNo
data.commission.currencystringNo
data.sellingPriceobjectNo
data.sellingPrice.amountnumberNo
data.sellingPrice.currencystringNo
data.youGetPriceobjectNo
data.youGetPrice.amountnumberNo
data.youGetPrice.currencystringNo

Sample request

POST /api/seller/legacy/product/commission HTTP/1.1
Host: services.driffle.com
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 32

{
"productId": 1,
"sellingPrice": 1
}

Test it →

Sample response (200)

{
"message": "text",
"status": 1,
"data": {
"commission": {
"amount": 1,
"currency": "text"
},
"sellingPrice": {
"amount": 1,
"currency": "text"
},
"youGetPrice": {
"amount": 1,
"currency": "text"
}
}
}

Last updated 5 June 2024