Skip to main content
POST
/
points
/
award
Award points
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>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Points award data

amount
integer
required
reason
string
required
user_id
string
required
payment_transaction_id
string

Response

OK

amount
integer
created_at
string
created_by
string
id
string
payment_transaction_id
string
reason
string
site_id
string
transaction_type
string
user_id
string