Skip to main content
POST
/
dev
/
v1
/
customers
/
{id}
/
wallet
/
debit
Debit customer wallet
curl --request POST \
  --url https://api.shoppex.io/dev/v1/customers/{id}/wallet/debit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "4.50",
  "description": "Manual adjustment"
}
'
{
  "data": {
    "transaction_id": "txn_debit_1",
    "amount": 4.5,
    "currency": "EUR",
    "new_balance": 10.5,
    "available_balance": 8,
    "wallet_id": "wallet_1"
  }
}

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

id
string
required

Body

amount
string
required
description
string
required

Response

200 - application/json

Successful response

data
object