Skip to main content
GET
/
v1
/
rate-cards
List rate cards
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://sandbox.api.enfinitos.com/v1/rate-cards', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "rateCards": [
      {
        "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>"
      }
    ],
    "total": 123,
    "effectiveCardId": "<string>",
    "defaultCard": {
      "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>.

Response

Rate cards and the platform default.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"