# Create credit note **POST /v1/transactions/{transaction}/create-credit-note** ## 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 - **transaction** (string) Transaction ID ### Body: application/json (object) Request for creating a credit note - **description** (string | null) Description - **items** (array[object]) List of transaction IDs and amounts to create credit note for ## Responses ### 200 successful operation #### 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 ### 404 Not found #### 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)