get ratecard for payment method.md

Get ratecard for payment method

Management API · Payment

GET https://app.mk.io/api/v1/organization/paymentMethods/{paymentmethod_id}/rateCard

Returns ratecard information for the specified payment method.

RBAC Capability Required: core.subscription.get

Authentication

Path parameters

Name Type Required Description
paymentmethod_id string Yes format: uuid

Example request

curl -X GET "https://app.mk.io/api/v1/organization/paymentMethods/{paymentmethod_id}/rateCard" \
  -H "Authorization: Bearer <token>"

Responses

200 — OK

Example:

{
  "kind": "string",
  "metadata": {
    "isPrivateOffer": true,
    "paymentMethodId": "00000000-0000-0000-0000-000000000000",
    "productPublicationId": "00000000-0000-0000-0000-000000000000",
    "productPublicationName": "string"
  },
  "spec": {
    "currency": "USD",
    "rateCard": [
      {
        "family": "Video Processing",
        "prices": [
          {
            "displayName": "Advanced SD",
            "name": "advanced_sd(video_encoding_ondemand)",
            "price": 0.02,
            "sku": "AAS1010154",
            "unit": "minutes"
          },
          {
            "displayName": "Advanced HD",
            "name": "advanced_hd(video_encoding_ondemand)",
            "price": 0.04,
            "sku": "AAS1010155",
            "unit": "minutes"
          }
        ],
        "solution": "VOD Encoding"
      }
    ]
  }
}

400 — Bad Request

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

401 — Unauthorized

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

403 — Forbidden

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

404 — Not Found

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

429 — Too Many Requests

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

500 — Internal Server Error

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

Source spec: management-api · operationId: [get]_/api/v1/organization/paymentMethods/{paymentmethod_id}/rateCard