Skip to content

Card

Manage Billing Cards.

Create

Add a credit card.

Cards must be added via the UI which uses the entered CVC and obtains a Stripe token. The last 4 digits of the number are saved.

Endpoint

HTTP
POST /card/create

Authorized User Role

owner

Request Body

FieldTypeRequiredNotes
currentbooleanCurrent card.
namestringyesCard name.
numberstringyesCard number.
monthstringyesCard month.
yearstringyesCard year.
stripeTokenstringyesStripe token.

Response

FieldType
accountIdstring
currentboolean
errorstring
failuresnumber
idstring
namestring
numberstring
monthstring
submitteddate
yearstring

Find

Get a list of all the cards added.

Endpoint

HTTP
POST /card/find

Authorized User Role

admin

Request Body

None.

Query String Options

FieldType
filterstring
hiddenboolean
indexstring
limitnumber
logboolean
nextobject
prevobject
wherestring

Response

Paged response.

FieldTypeNotes
dataarrayA list of cards.
nextstringPaged cursor to use for the next page of items.
prevstringPages cursor to use for the previous page of items.

Card

FieldType
accountIdstring
currentboolean
errorstring
failuresnumber
idstring
namestring
numberstring
monthstring
submitteddate
yearstring

Get

Get a card by ID.

Endpoint

HTTP
POST /card/get

Authorized User Role

admin

Request Body

FieldTypeRequiredNotes
idstringyesCard ID.

Response

The requested card.

FieldType
accountIdstring
currentboolean
errorstring
failuresnumber
idstring
namestring
numberstring
monthstring
submitteddate
yearstring

Remove

Endpoint

HTTP
POST /card/remove

Authorized User Role

owner

Request Body

FieldTypeRequiredNotes
idstringyesCard ID.

Response

FieldType
accountIdstring
currentboolean
errorstring
failuresnumber
idstring
namestring
numberstring
monthstring
submitteddate
yearstring

UpdateCurrent

Endpoint

HTTP
POST /card/updateCurrent

Authorized User Role

owner

Request Body

FieldTypeRequiredNotes
idstringyesCard ID.
currentbooleanCurrent card.

Response

FieldType
accountIdstring
currentboolean
errorstring
failuresnumber
idstring
namestring
numberstring
monthstring
submitteddate
yearstring

GetStripe

Endpoint

HTTP
POST /card/getStripe

Authorized User Role

admin

Response

None.