Chuyển đến nội dung chính
GET
/
billing
/
catalog
Get billing catalog
curl --request GET \
  --url https://api.youka.io/api/v1/billing/catalog \
  --header 'Authorization: Bearer <token>'
{
  "unitCredits": 123,
  "quantity": {
    "min": 123,
    "max": 123
  },
  "hasActiveSubscription": true,
  "subscription": {
    "monthly": {
      "unitPriceCents": 4503599627370495,
      "unitPriceFormatted": "<string>"
    },
    "yearly": {
      "unitPriceCents": 4503599627370495,
      "unitPriceFormatted": "<string>",
      "monthlyEquivalentCents": 4503599627370495,
      "monthlyEquivalentFormatted": "<string>",
      "yearlyTotalCents": 4503599627370495,
      "yearlyTotalFormatted": "<string>"
    }
  },
  "topup": {
    "enabled": true,
    "eligible": true,
    "unitPriceCents": 4503599627370495,
    "unitPriceFormatted": "<string>"
  },
  "storage": {
    "perSubscriptionUnitGb": 4503599627370495,
    "topupAddsStorage": true
  }
}

Ủy quyền

Authorization
string
header
bắt buộc

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

Phản hồi

200 - application/json

Billing catalog

unitCredits
integer
bắt buộc
Phạm vi bắt buộc: x <= 9007199254740991
quantity
object
bắt buộc
hasActiveSubscription
boolean
bắt buộc
subscription
object
bắt buộc
topup
object
bắt buộc
storage
object