POST
/
cards
/
{id}
/
withdraw
curl -X POST https://api.swervpay.co/api/v1/cards/{id}/withdraw \
  -H "Authorization: Bearer <TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 1000
  }'
{
  "message": "<string>",
  "transaction": {
    "account_name": "<string>",
    "account_number": "<string>",
    "amount": 123,
    "bank_code": "<string>",
    "bank_name": "<string>",
    "category": "<string>",
    "charges": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "detail": "<string>",
    "fiat_rate": 123,
    "id": "<string>",
    "reference": "<string>",
    "report": true,
    "report_message": "<string>",
    "session_id": "<string>",
    "status": "<string>",
    "type": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}
curl -X POST https://api.swervpay.co/api/v1/cards/{id}/withdraw \
  -H "Authorization: Bearer <TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 1000
  }'

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
amount
integer

Response

200 - application/json
message
string
transaction
object