Endpoints for credit card configuration and management.
GET /api/v1/cards
Headers: Authorization: Bearer <token>
Response:
[
{
"id": 1,
"account_id": "account-abc123",
"name": "Chase Freedom",
"mask": "1234",
"credit_limit": 10000.00,
"statement_date": 15,
"due_date": 10
}
]GET /api/v1/cards/:accountId
Response:
{
"id": 1,
"account_id": "account-abc123",
"name": "Chase Freedom",
"statement_date": 15
}POST /api/v1/cards
Request:
{
"account_id": "account-abc123",
"name": "Chase Freedom",
"statement_date": 15,
"due_date": 10
}DELETE /api/v1/cards/:accountId
Response:
{
"success": true,
"message": "Credit card deleted"
}See Also: API Overview