# The address of the Shopify store's own checkout with these variants in the cart

`POST /public/shop/shopify/checkout` · Rivier · shop

The address of the Shopify store's own checkout with these variants in the cart. The buyer pays the store; the order comes into Rivier through the order sync.

- Scope: shop:read
- Sdk: shop.publicShopify.checkout
- Cli: shop public shopify checkout
- Publishable: yes

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "variantId": {
            "type": "string",
            "pattern": "^(gid:\\/\\/shopify\\/ProductVariant\\/)?\\d{1,20}$"
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 99
          }
        },
        "required": [
          "variantId",
          "quantity"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 50
    }
  },
  "required": [
    "lines"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/public/shop/shopify/checkout' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "lines": [
    {
      "variantId": "string",
      "quantity": 0
    }
  ]
}'
```
