GET
/
v1
/
hub
/
profit-logic
/
rules
cURL
curl --request GET \
  --url https://api.comm.com/api/v1/hub/profit-logic/rules \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "current_profit": 123,
      "country_id": 123,
      "id": "<string>",
      "network_id": 123,
      "client_company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "network_brand_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "margin_type": "percentage",
      "old_profit": 123,
      "upcoming_profit": 123,
      "applied_at": "<string>"
    }
  ],
  "links": [
    {
      "url": "<string>",
      "label": "<string>",
      "active": true
    }
  ],
  "meta": {
    "current_page": 123,
    "first_page_url": "<string>",
    "from": 123,
    "last_page": 123,
    "last_page_url": "<string>",
    "next_page_url": "<string>",
    "path": "<string>",
    "per_page": 123,
    "prev_page_url": "<string>",
    "to": 123,
    "total": 123
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

page
integer | null
per_page
integer | null
show_upcoming
string
search_ids
string<uuid>[]

Response

200
application/json

The paginated collection of SellerProfitLogicRuleData

The response is of type object.