Create new cart

Creates a new shopping cart for a Toast location with the specified dining option and WebSocket configuration.

SecurityOAuth2
Request
header Parameters
Toast-Restaurant-External-ID
required
string <uuid>

The identifier of the location.

Request Body schema: application/json
diningOptionGuid
required
string <uuid>

The identifier of the dining option.

object

Optional metadata for partner integrations. Defaults to empty object {}.

Deprecated keys: websocketUrl and sharedSecret are deprecated. Use websocketConfig instead.

Validation Rules:

  • If websocketUrl is provided, it must start with wss://
  • If websocketUrl is provided, sharedSecret is required
object

WebSocket configuration for partner transcript streaming. Connects the Advanced Order Confirmation Screen to a partner's WebSocket for real-time transcripts.

Responses
201

Successful operation. Cart created.

400

Bad request.

503

Service temporarily unavailable.

post/carts/v1/carts
Request samples
application/json
{
  • "diningOptionGuid": "c2cfa80e-8c9d-4ee4-bcdb-64e895dfe513",
  • "metadata": {
    },
  • "websocketConfig": {
    }
}
Response samples
application/json
{
  • "cart": {
    },
  • "problems": [
    ]
}