POST
/
v1
/
hub
/
profit-logic
cURL
curl --request POST \
  --url https://api.comm.com/api/v1/hub/profit-logic \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "profit": 0,
  "margin_type": "percentage",
  "action_on_change_rate": "approve",
  "id": "<string>"
}'
{
  "data": {
    "profit": 0,
    "margin_type": "percentage",
    "action_on_change_rate": "approve",
    "id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

SellerProfitLogicDataRequest

The body is of type object.

Response

200
application/json

SellerProfitLogicData

The response is of type object.