Skip to main content
PUT
/
api
/
commerce
/
merchant
/
carts
/
items
/
{itemId}
Update cart item quantity
curl --request PUT \
  --url https://api-beta.pepay.io/api/commerce/merchant/carts/items/{itemId} \
  --header 'Content-Type: application/json' \
  --header 'x-commerce-api-key: <api-key>' \
  --data '
{
  "quantity": 49,
  "wallet_address": "<string>",
  "wallet_network": "<string>",
  "customer_id": "<string>"
}
'
{
"success": true,
"message": "Cart item updated",
"data": {
"itemId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 2,
"updatedAt": "2025-12-21T12:34:56.000Z"
}
}

Authorizations

x-commerce-api-key
string
header
required

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

Path Parameters

itemId
string<uuid>
required

Cart item ID

Body

application/json
quantity
integer
required
Required range: 0 <= x <= 99
wallet_address
string
wallet_network
string
customer_id
string

Response

Cart item updated successfully

success
boolean
Example:

true

message
string
data
object