# Finalise checkout process by creating transactions and capturing payment **POST /v1/basket/{familyId}/checkout** Finalise checkout process by creating transactions and capturing payment ## 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 - **familyId** (string) Family ID ### Body: application/json (object) - **paymentIntentId** (string | null) Stripe payment intent id - **items** (object) List of enrolments and trials ## Responses ### 200 successful operation #### Body: application/json (array[object]) - **aggregateId** (string) aggregateId - **transaction** (object) Transaction schema - **details** (array[object]) details - **stats** (object) Transaction stats ### 204 Successful operation with no content [Powered by Bump.sh](https://bump.sh)