Skip to main content
POST
/
raffles
/
purchase-with-points
Purchase raffle entries with points
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
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Raffle points purchase data

item_id
string
required
quantity
integer
required
Required range: x >= 1
customer_email
string
customer_name
string
description
string
metadata
object

Additional metadata

site_id
string
utm
string

UTM fields

utm_campaign
string
utm_content
string
utm_medium
string
utm_source
string
utm_term
string

Response

OK

entries_count
integer
message
string
order_id
string
payment_id
string
points_spent
integer
remaining_points
integer
status
string
success
boolean