POST /channel-commission-rates.json

POST /channel-commission-rates.json
application/json

Body Required

  • channelId integer(int32) Required

    Channel

  • commissionRate number | null Required

    Commission rate

    Default value is 0.

  • commissionRateType string | null Required

    Commission rate type

    Values are percentage or fixed. Default value is percentage.

  • dropshipProviderId integer(int32) Required

    Dropship provider

  • filterType string | null Required

    Filter type

    Values are tags or none. Default value is none.

  • tags array[string] | null

    Tags

Responses

  • 200

    Successful response

    Hide response attributes Show response attributes object
POST /channel-commission-rates.json
curl \
 -X POST http://api.example.com/v1/channel-commission-rates.json \
 -H "Content-Type: application/json" \
 -d '{"channelId":42,"commissionRate":0,"commissionRateType":"percentage","dropshipProviderId":42,"filterType":"none","tags":["string"]}'
Request example
{
  "channelId": 42,
  "commissionRate": 0,
  "commissionRateType": "percentage",
  "dropshipProviderId": 42,
  "filterType": "none",
  "tags": [
    "string"
  ]
}
Response examples (200)
{
  "channelId": 42,
  "commissionRate": 0,
  "commissionRateType": "percentage",
  "createdAt": "2023-05-04T09:42:00+00:00",
  "dropshipProviderId": 42,
  "filterType": "none",
  "id": 42,
  "tags": [
    "string"
  ],
  "updatedAt": "2023-05-04T09:42:00+00:00"
}