Skip to main content
GET
/
subscriptions
/
credit-summary
Get credit summary
curl --request GET \
  --url https://api.sprucecollective.co.uk/subscriptions/credit-summary \
  --header 'Authorization: <api-key>'
{
  "credits_allocated": 123,
  "credits_remaining": 123,
  "credits_used": 123,
  "period_end": "<string>",
  "period_start": "<string>",
  "total_raffle_entries": 123,
  "usage_history": [
    {
      "created_at": "<string>",
      "credits_used": 123,
      "entries_created": 123,
      "id": "<string>",
      "raffle_id": "<string>",
      "raffle_name": "<string>",
      "subscription_id": "<string>",
      "usage_type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Response

OK

credits_allocated
integer
credits_remaining
integer
credits_used
integer
period_end
string
period_start
string
total_raffle_entries
integer
usage_history
object[]