Skip to main content
GET
/
inventory
/
providers
/
{provider_id}
/
commission-groups
Get Provider Commission Structures
curl --request GET \
  --url https://api.decodahealth.com/inventory/providers/{provider_id}/commission-groups \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
[
  {
    "name": "<string>",
    "id": "<string>",
    "description": "<string>",
    "commissions": [
      {
        "commissionStructureId": "<string>",
        "id": "<string>",
        "itemId": "<string>",
        "itemCategory": "<string>",
        "itemIsPhysical": true,
        "totalSalesAmount": 123,
        "percentage": 123,
        "amount": 123,
        "deductCost": false,
        "isArchived": false,
        "updatedDate": "2023-11-07T05:31:56Z",
        "createdDate": "2023-11-07T05:31:56Z",
        "item": {
          "name": "<string>",
          "price": 123,
          "id": "<string>",
          "brandName": "<string>",
          "description": "<string>",
          "category": "<string>",
          "unit": "AMPOULES",
          "isPhysical": true,
          "isArchived": false,
          "internalNotes": "<string>",
          "taxable": false,
          "sortOrder": 123,
          "allowCustomPricing": false,
          "type": "PRODUCT"
        }
      }
    ],
    "providers": [
      {
        "id": "<string>",
        "firstName": "<string>",
        "lastName": "<string>",
        "email": "<string>",
        "createdDate": "2023-11-07T05:31:56Z"
      }
    ]
  }
]

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

provider_id
string
required

Response

Successful Response

name
string
required

Name of the commission group

id
string

Unique identifier for the commission group

description
string | null

Optional description of the commission group

commissions
CommissionDetail · object[] | null

Commissions in this group

providers
ProviderTiny · object[] | null

Providers in this group