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
headerrequired

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

Body

application/json
amount
number
currency
string
customer_id
string
expiry_date
string
name_on_card
string
phone_number
string
provider
string
type
string

Response

200 - application/json
card_id
string
message
string