cURL
curl --request POST \ --url https://storefront-api.fourthwall.com/v1/carts \ --header 'Content-Type: application/json' \ --data ' { "items": [ { "variantId": "000009c2-0c75-0024-0000-09c20c750024", "quantity": 1 } ], "metadata": { "asset_id": "abc123", "campaign": "summer_2026" } } '
200
Example
"ptkn_xxxxxxxxxxxxxxxxxx"
USD
EUR
CAD
GBP
AUD
NZD
SEK
NOK
DKK
PLN
INR
JPY
MYR
SGD
MXN
BRL
Show child attributes
Custom metadata key-value pairs. Max 10 keys, keys must be alphanumeric with underscores, max 256 chars per key, max 512 bytes per value, max 2KB total.
{ "asset_id": "abc123", "campaign": "summer_2026" }
OK