v1

latestOpenAPI 3.1.02026-08-04490133.8 KB

Create a card

post/cards

Request body

titlestring required

Enter the card title

colorstring

color should be either blue, black, purple, orange or yellow

amountstring required

enter card amount

userIdstring required

This is the userId gotten from the get all card users endpoint or from the response when you create a new user

currencystring required

The currency which the card creation amount will be deducted from.

brandstring required

this is the card type, could be: visa or mastercard

isNonSubscriptionboolean

pay a one-time fee for unlimited card use with no monthly charges cost $3

Response

201

codeinteger
successboolean

Example response

{
  "code": 201,
  "data": {
    "message": "Card created successfully",
    "card": {
      "securityCode": "809",
      "expiration": "2027-10-04T00:00:00",
      "currency": "USD",
      "status": "active",
      "title": "GCP services",
      "color": "black",
      "name": "John Doe",
      "amount": 1.1,
      "createdAt": "2023-10-04T12:58:11.396Z",
      "updatedAt": "2023-10-04T12:58:11.396Z",
      "id": "c844f81f-d487-4868-d1eb-08d5cddbf",
      "brand": "Visa",
      "mask": "451946******1642",
      "number": "451946000001642",
      "ownerId": "CUI2",
      "isNonSubscription": true,
      "lastUsedOn": "2023-10-04T12:58:11.396Z",
      "billingAddress": {
        "address": "447 Broadway, 2nd Floor",
        "city": "New York",
        "state": "NY",
        "zipCode": "10013",
        "country": "US"
      }
    }
  },
  "success": true
}