Get Product Commission
Gets the commission on a single product.
Supported arguments
The following arguments are supported by this API:
POST /product/commission
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Params
Param
Param Tpe
Type
Required
Description
productId
body
Number
Yes
The ID of the product
sellingPrice
body
Number
Yes
"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"
},
}
}{
"message": "Bad Request. Wrong/Invalid params format.",
"statusCode": 400
}post
Header parameters
AuthorizationstringRequired
Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y
Body
productIdnumberRequired
sellingPricenumberRequired
Responses
200
Default Response
application/json
400
Bad Request. Wrong/Invalid params format.
application/json
401
UnAuthorized request. Invalid/Expired token
application/json
403
Forbidden Request. Action not allowed or Rate Limit exhausted.
application/json
500
Server Error.
application/json
post
/product/commissionLast updated