AlphaAlpha Docs

Checkout

Checks out the cart

POST
/carts/{tenantId}/{cartId}/checkout
AuthorizationBearer <token>

In: header

Path Parameters

cartId*string
tenantId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/carts/string/string/checkout" \  -H "Content-Type: application/json" \  -d '{    "city": "string",    "country": "string",    "email": "user@example.com",    "firstName": "string",    "lastName": "string",    "postalCode": "string",    "street": "string"  }'
{
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "id": "string",
  "items": [
    {
      "productId": "string",
      "quantity": 0.1
    }
  ],
  "tenantId": "string",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string",
  "userId": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}