curl --request POST \
--url https://api-beta.pepay.io/api/commerce/merchant/carts/validate \
--header 'Content-Type: application/json' \
--header 'x-commerce-api-key: <api-key>' \
--data '
{
"wallet_address": "<string>",
"wallet_network": "<string>",
"customer_id": "<string>"
}
'{
"success": true,
"valid": true,
"items": [
{
"itemId": "<string>",
"available": true,
"currentPrice": 123,
"savedPrice": 123,
"priceChanged": true
}
],
"summary": {}
}Check cart items for availability and current prices
curl --request POST \
--url https://api-beta.pepay.io/api/commerce/merchant/carts/validate \
--header 'Content-Type: application/json' \
--header 'x-commerce-api-key: <api-key>' \
--data '
{
"wallet_address": "<string>",
"wallet_network": "<string>",
"customer_id": "<string>"
}
'{
"success": true,
"valid": true,
"items": [
{
"itemId": "<string>",
"available": true,
"currentPrice": 123,
"savedPrice": 123,
"priceChanged": true
}
],
"summary": {}
}Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.
Was this page helpful?