Kittens - Backend Documentation 1.0 Help

Cart Checkout

This endpoint allows the user to check out the cart content. Requires authentication and account ownership.

POST method/api/v1/users/{uid}/cart/checkout

Request parameters

{ "card": { "number": "0123 4567 8901 2345", "cvv": 123, "cardholder": "Bob Bazbar", "expiration": "01/29" } }

Responses

{ "billed": { "amount": "42.00", "currency": "EUR", "vat": "9.24" }, "saleUid": "ffffffff-ffff-ffff-ffff-ffffffffffff", "cats": [ "ffffffff-ffff-ffff-ffff-ffffffffffff" ] }
{ "error": "Bad Request", "status": 400, "field_errors": [ "email" ] }
{ "error": "Unauthorized", "status": 401, "reason": "Unauthorized" }
{ "error": "Not found", "status": 404, "reason": "Requested path could not be found" }
{ "error": "Server Error", "status": 500, "exception": "Baz given, expected Foo or Bar", "trace": "example", "thrownIn": "\App\Foo\Bar\Baz()", "file": "example", "line": 58, "severity": "example" }
Last modified: 16 January 2025