POST
/
cards
curl -X POST https://api.swervpay.co/api/v1/cards \
  -H "Authorization: Bearer <TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "customer_id": "user",
    "currency": "USD",
    "provider": "MASTERCARD",
    "amount": 10,
    "type": "DEFAULT"
  }'
{
  "card_id": "<string>",
  "message": "<string>"
}
curl -X POST https://api.swervpay.co/api/v1/cards \
  -H "Authorization: Bearer <TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "customer_id": "user",
    "currency": "USD",
    "provider": "MASTERCARD",
    "amount": 10,
    "type": "DEFAULT"
  }'

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json
OK

The response is of type object.