Loyalty Admin API
Write CallAdjustCustomerState3
Adjusts loyalty program state of the given customer.
| Kind | Write API call |
|---|---|
| Method | POST |
| URL | https://app.bubblehouse.com/api/v2023061/<shop>/AdjustCustomerState3 |
| Authentication | Admin Customer TokenShop Token |
Input
-
A customer to operate upon, when using a shop token.
If you're using a customer token and decide to pass this field (which we do not recommend), it must match the customer from the token.
-
The adjustments to perform.
Output
A successful response has no meaningful properties and only contains an ok property always set to true:
{"ok": true}
Specific Errors
| Status | Error | Reason & Examples |
|---|---|---|
| 422 | source_already_used |
The point source has already been completed by this customer and does not allow additional completions, or a rate limit has been reached. |
| 403 | access_denied | |
| 404 | adjustment_subject_missing | |
| 400 | adjustment_missing_required_field | |
| 400 | adjustment_not_configured_in_shop |