Pricing

Corporate and tier modules manage contracted prices for patients and items.

The pricing model

Properties

  • Name
    id
    Type
    string
    Description

    Account or tier UUID.

  • Name
    name
    Type
    string
    Description

    Account name.


GET/api/corporate

List corporate accounts

Corporate pricing accounts.

Request

GET
/api/corporate
curl -X GET http://localhost:3000/api/corporate \
  -H "Authorization: Bearer YOUR_JWT"

Response

{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "Acme Panel",
      "isActive": true
    }
  ]
}

GET/api/corporate/:id/prices

Corporate prices

Item price list for account.

Request

GET
/api/corporate/:id/prices
curl -X GET http://localhost:3000/api/corporate/:id/prices \
  -H "Authorization: Bearer YOUR_JWT"

Response

{
  "data": [
    {
      "inventoryItemId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "price": 45,
      "name": "Consultation"
    }
  ]
}

GET/api/tier

List tiers

Pricing tiers.

Request

GET
/api/tier
curl -X GET http://localhost:3000/api/tier \
  -H "Authorization: Bearer YOUR_JWT"

Response

{
  "data": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "Standard",
      "isDefault": true
    }
  ]
}

GET/api/tier/:id/prices

Tier item prices

Prices per tier.

Request

GET
/api/tier/:id/prices
curl -X GET http://localhost:3000/api/tier/:id/prices \
  -H "Authorization: Bearer YOUR_JWT"

Response

{
  "data": [
    {
      "inventoryItemId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
      "price": 50
    }
  ]
}

Was this page helpful?