| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/api/resources/user/subresources/subscriptions/methods/get | [Back] [Original] |
Lists all of a users subscriptions.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYThe previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194Billing WriteBilling ReadThe end of the current period and also when the next billing is due.
When the current billing period started. May match initial_period_start if this is the first period.
How often the subscription is renewed automatically.
curl https://api.cloudflare.com/client/v4/user/subscriptions \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": [
{
"id": "506e3185e9c882d175a2d0cb0093d9f2",
"currency": "USD",
"current_period_end": "2014-03-31T12:20:00Z",
"current_period_start": "2014-05-11T12:20:00Z",
"frequency": "monthly",
"price": 20,
"rate_plan": {
"id": "free",
"currency": "USD",
"externally_managed": false,
"is_contract": false,
"public_name": "Business Plan",
"scope": "zone",
"sets": [
"string"
]
},
"state": "Paid"
}
],
"success": true,
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": [
{
"id": "506e3185e9c882d175a2d0cb0093d9f2",
"currency": "USD",
"current_period_end": "2014-03-31T12:20:00Z",
"current_period_start": "2014-05-11T12:20:00Z",
"frequency": "monthly",
"price": 20,
"rate_plan": {
"id": "free",
"currency": "USD",
"externally_managed": false,
"is_contract": false,
"public_name": "Business Plan",
"scope": "zone",
"sets": [
"string"
]
},
"state": "Paid"
}
],
"success": true,
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}| Web Proxy Viewer | New URL | Original Page |