curl --request POST \
--url https://api.sprucecollective.co.uk/points/award \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"reason": "<string>",
"user_id": "<string>",
"payment_transaction_id": "<string>"
}
'{
"amount": 123,
"created_at": "<string>",
"created_by": "<string>",
"id": "<string>",
"payment_transaction_id": "<string>",
"reason": "<string>",
"site_id": "<string>",
"transaction_type": "<string>",
"user_id": "<string>"
}Award points to a user (admin only)
curl --request POST \
--url https://api.sprucecollective.co.uk/points/award \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 123,
"reason": "<string>",
"user_id": "<string>",
"payment_transaction_id": "<string>"
}
'{
"amount": 123,
"created_at": "<string>",
"created_by": "<string>",
"id": "<string>",
"payment_transaction_id": "<string>",
"reason": "<string>",
"site_id": "<string>",
"transaction_type": "<string>",
"user_id": "<string>"
}Type "Bearer" followed by a space and JWT token.
Points award data