Skip to main content

Manage Payment Accounts

Track different payment methods — credit cards, bank accounts, cash, etc.

curl

Create an account

curl -X POST https://your-server.com/account \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Chase Visa",
"type": "credit_card",
"currency": "USD"
}'

List all accounts

curl -X GET https://your-server.com/account \
-H "Authorization: Bearer $TOKEN"

Get account details

curl -X GET https://your-server.com/account/{accountId} \
-H "Authorization: Bearer $TOKEN"

Update an account

curl -X PUT https://your-server.com/account/{accountId} \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Chase Visa (Primary)"
}'

Delete an account

curl -X DELETE https://your-server.com/account/{accountId} \
-H "Authorization: Bearer $TOKEN"