Skip to main content
GET
/
api
/
commerce
/
merchant
/
carts
Get customer's cart
curl --request GET \
  --url https://api-beta.pepay.io/api/commerce/merchant/carts \
  --header 'x-commerce-api-key: <api-key>'
{
  "success": true,
  "data": {
    "merchantId": 123,
    "customerId": "<string>",
    "walletAddress": "<string>",
    "walletNetwork": "<string>",
    "items": [
      {}
    ],
    "subtotal": 123,
    "itemCount": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

x-commerce-api-key
string
header
required

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

Query Parameters

wallet_address
string

Customer's wallet address (required with wallet_network)

wallet_network
enum<string>

Wallet network (required with wallet_address)

Available options:
ethereum,
bsc,
base,
solana
customer_id
string

Merchant-specific customer ID (alternative to wallet)

Maximum string length: 255

Response

Cart retrieved successfully

success
boolean
data
object