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>"
}
Create card
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"
}'
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
The response is of type object
.
Was this page helpful?