curl --request POST \
--url https://api.sprucecollective.co.uk/raffles/purchase-with-points \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"item_id": "<string>",
"quantity": 2,
"customer_email": "<string>",
"customer_name": "<string>",
"description": "<string>",
"metadata": {},
"site_id": "<string>",
"utm": "<string>",
"utm_campaign": "<string>",
"utm_content": "<string>",
"utm_medium": "<string>",
"utm_source": "<string>",
"utm_term": "<string>"
}
'{
"entries_count": 123,
"message": "<string>",
"order_id": "<string>",
"payment_id": "<string>",
"points_spent": 123,
"remaining_points": 123,
"status": "<string>",
"success": true
}Purchase raffle entries using the user’s subscription points balance
curl --request POST \
--url https://api.sprucecollective.co.uk/raffles/purchase-with-points \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"item_id": "<string>",
"quantity": 2,
"customer_email": "<string>",
"customer_name": "<string>",
"description": "<string>",
"metadata": {},
"site_id": "<string>",
"utm": "<string>",
"utm_campaign": "<string>",
"utm_content": "<string>",
"utm_medium": "<string>",
"utm_source": "<string>",
"utm_term": "<string>"
}
'{
"entries_count": 123,
"message": "<string>",
"order_id": "<string>",
"payment_id": "<string>",
"points_spent": 123,
"remaining_points": 123,
"status": "<string>",
"success": true
}Type "Bearer" followed by a space and JWT token.
Raffle points purchase data