# Get Product Commission

### Supported arguments

The following arguments are supported by this API:

<mark style="color:green;">`POST`</mark> `/product/commission`

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Params**

<table><thead><tr><th>Param</th><th>Param Tpe</th><th width="171">Type</th><th width="165">Required</th><th>Description</th></tr></thead><tbody><tr><td>productId</td><td>body</td><td>Number</td><td>Yes</td><td>The ID of the product</td></tr><tr><td>sellingPrice</td><td>body</td><td>Number</td><td>Yes</td><td>"Retail Price" / "Selling Price" is the price after commission. Buyers will see this price</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="200" %}

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

{% endtab %}

{% tab title="400" %}

```json
{
    "message": "Bad Request. Wrong/Invalid params format.",
    "statusCode": 400 
}
```

{% endtab %}

{% tab title="401" %}

```
{
    "message": "UnAuthorized request. Invalid/Expired token",
    "statusCode": 401
}
```

{% endtab %}

{% tab title="403" %}

```
{
    "message": "Forbidden Request. Action not allowed or Rate Limit exhausted.", 
    "statusCode": 403
}
```

{% endtab %}

{% tab title="500" %}

```
{
    "message": "Internal Server Error",
    "statusCode": 500
}
```

{% endtab %}
{% endtabs %}

{% openapi src="<https://407468006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfPzmNpsOZnU4ujov7zQD%2Fuploads%2FfQhkMubfLNIP1WygKIsR%2FSwagger-3.1.5.json?alt=media&token=afec4bb7-8126-40ca-b358-6bfbe5aee397>" path="/product/commission" method="post" %}
[Swagger-3.1.5.json](https://407468006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfPzmNpsOZnU4ujov7zQD%2Fuploads%2FfQhkMubfLNIP1WygKIsR%2FSwagger-3.1.5.json?alt=media\&token=afec4bb7-8126-40ca-b358-6bfbe5aee397)
{% endopenapi %}
