# Add credit to an order item **POST /v1/order/{id}/add-credit** Add credit to an order item ## Servers - Development Server: https://api-dev.classmanager.io (Development Server) - Localhost: https://localhost (Localhost) - Local (Valet): https://classmanager.test (Local (Valet)) - Staging Server: https://api-stage.classmanager.io (Staging Server) - Production Server: https://api.classmanager.io (Production Server) ## Parameters ### Path parameters - **id** (string) ### Body: application/json (object) Request to add credit to order item - **itemId** (string) Order item ID - **amount** (integer) Credit amount - **description** (string | null) Description of the credit ## Responses ### 200 Order #### Body: application/json (object) - **aggregateId** (string) aggregateId - **transaction** (object) Transaction schema - **details** (array[object]) details - **stats** (object) Transaction stats ### 403 Not authorized #### Body: application/json (object) - **statusCode** (number) Status Code - **messages** (array[string]) List of error messages - **exception** (object) Exception ### 422 Validation error #### Body: application/json (object) - **statusCode** (number) Status Code - **messages** (array[string]) List of error messages - **exception** (object) Exception [Powered by Bump.sh](https://bump.sh)