# Review credit allocations `GET /api/v1/payments/{id}/credit-allocations` Returns the amounts and current allocations for one athlete credit payment. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Payments → Read**. ## Headers - `X-Sport-Id` (integer) — Send the sport ID when the payment belongs to a sport. ## Path parameters - `id` (integer, required) — ID of the payment. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request GET \ --url "https://api.asdincloud.com/api/v1/payments/${ID:?Set ID}/credit-allocations" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" ``` ## Response **200 OK** Returns the payment balance and the list of allocations in `data`. Example with fictional data and selected fields. ```json { "status": "success", "data": { "payment_id": 31, "athlete_id": 42, "receipt_number": "18", "amount": 6000, "currency": "EUR", "allocated_amount": 2500, "available_amount": 3500, "allocations": [ { "id": 12, "subscription_id": 53, "plan_name": "Junior season", "amount": 2500, "allocated_at_ts": 1794564000, "notes": null } ] } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — The supplied fields or payment state do not allow this action. - `404` — The requested record was not found. - `422` — The payment is not an eligible credit.