Adjust Reward Points
Creates a manual reward point adjustment for a member.
Example curl:
```bash
curl --request POST '{{base_url}}/sp/reward-points/adjust' \
--header 'Authorization: Bearer {{access_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"idempotency_key": "{{$timestamp}}-reward-points-adjust",
"contact_id": {{contact_id}},
"points": 25,
"adjustment_type": "credit",
"reason": "Manual service recovery",
"reference_id": "SP-ADJ-001"
}'
```
Example success response shape:
```json
{
"success": true,
"message": "Reward points adjusted successfully.",
"data": {
"contact_id": 456,
"points": 25,
"adjustment_type": "credit",
"balance_after": 120
},
"meta": {}
}
```
Example error response shape:
```json
{
"success": false,
"message": "The same idempotency_key cannot be reused with a different payload.",
"error": {
"code": "idempotency_key_reused_with_different_payload",
"details": {}
}
}
```
Common platform errors:
- `idempotency_key_required`
- `member_not_found`
- `sp_scope_not_granted`
- `sp_token_scope_missing`
- `legacy_field_not_allowed`
- `query_parameters_not_allowed`
- `invalid_content_type`
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
Authorization
Response
200 OK Example
success
message
data
meta
