Skip to main content
GET
/
admin
/
contracts
/
rate
/
{company_id}
Get rates for active contract
curl --request GET \
  --url https://api-dev.narrative.io/admin/contracts/rate/{company_id} \
  --header 'Authorization: Bearer <token>'
{
  "records": {
    "contract_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "contract_revision": 123,
    "product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "rate": {
      "type": "per_unit",
      "unit_price": {
        "value": 123,
        "expressed_in": "cents",
        "currency": "USD"
      }
    },
    "start_at": "2023-11-07T05:31:56Z",
    "end_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

company_id
number
required

Unique identifier for a company.

Response

OK

records
object