Skip to main content
POST
/
api
/
commerce
/
merchant
/
carts
/
validate
Validate cart items
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": {}
}

Authorizations

x-commerce-api-key
string
header
required

Legacy alias for commerce-scoped API keys. Prefer x-api-key with scope=commerce.

Body

application/json
wallet_address
string
wallet_network
string
customer_id
string

Response

Cart validation results

success
boolean
valid
boolean
items
object[]
summary
object