Skip to main content
POST
/
v1
/
rate-cards
/
{cardId}
/
activate
Activate a rate card
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

fetch('https://sandbox.api.enfinitos.com/v1/rate-cards/{cardId}/activate', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "rateCard": {
      "id": "<string>",
      "orgId": "<string>",
      "version": 123,
      "label": "<string>",
      "description": "<string>",
      "activeFrom": "2023-11-07T05:31:56Z",
      "activeUntil": "2023-11-07T05:31:56Z",
      "supersedesCardId": "<string>",
      "supersededByCardId": "<string>",
      "prices": [
        {
          "pricePerUnitCents": 1
        }
      ],
      "targeting": {
        "currency": "<string>",
        "substrates": [
          "<string>"
        ],
        "counterpartyIds": [
          "<string>"
        ],
        "appliesToScope": "<string>"
      },
      "createdBy": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "approvedBy": "<string>",
      "approvedAt": "2023-11-07T05:31:56Z",
      "approvalNotes": "<string>"
    }
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Path Parameters

cardId
string
required

Rate card id (prefixed ratecard_).

Response

The activated (or scheduled) rate card.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"