curl --request POST \
--url https://api.sprucecollective.co.uk/subscriptions/use-credits \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"credits_to_use": 2,
"raffle_id": "<string>",
"usage_type": "raffle_entry"
}
'{
"credits_remaining": 123,
"credits_used": 123,
"entries_created": 123,
"message": "<string>",
"payment_id": "<string>",
"success": true,
"usage_id": "<string>"
}Use entry credits for competition entries
curl --request POST \
--url https://api.sprucecollective.co.uk/subscriptions/use-credits \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"credits_to_use": 2,
"raffle_id": "<string>",
"usage_type": "raffle_entry"
}
'{
"credits_remaining": 123,
"credits_used": 123,
"entries_created": 123,
"message": "<string>",
"payment_id": "<string>",
"success": true,
"usage_id": "<string>"
}Type "Bearer" followed by a space and JWT token.
Credit usage request