Cards
Patch a card
- GETGet Account
- GETGet cards
- GETGet a card
- POSTPost a Card
- PATCHPatch a card
- PATCHPatch a card
- PATCHPatch a card
- DELDelete a card
- POSTPost mobile money
- POSTPost bank transfer
- POSTPost airtime
- POSTPost mobile internet
- POSTPost bill pay
- GETGet person
Accounts
Cards
Mobile Money
Bank Transfers
Airtime
Internet
Bills
People
Cards
Patch a card
Patch a card with start to enable it to transact
PATCH
/
cards
Authorization
string
*
Bearer
Authorization
Required
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
id
string
id
string
This is the ID of the card
object
masked-card-number
string
masked-card-number
string
This is the masked card number in form of 4566 **** **** 1234.
curl --location --request GET 'https://api.xente.co/cards/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"masked-card-number": "4554 **** **** 1234"
}'
{
"success": 0,
"data": {
"card_id": 3,
"masked_card_number": "4876 *** **** 1234",
"name": "Name of the card e.g. Fuel card",
"currency": "USD",
"balance": "100",
"status": "active",
"card_holder": "Mary Jane",
"transactions": "list of transactions",
"statement": "account statement with credits and debits"
}
}
Query
id
string
This is the ID of the card
Body
masked-card-number
string
This is the masked card number in form of 4566 **** **** 1234.
Response
success
number
Indicates whether the call was successful. 1 if successful, 0 if not.
data
object
The contents of the transaction
card_id
number
The unique id of the card
masked_card_number
number
The id that your system uses to identify the transaction
name
string
The name of the card
currency
string
Currency of the card
balance
number
The balance on the card
status
string
Status of the transaction
card_holder
string
name of person or business holding the card
transactions
JSON or null
A list of transactions on the account
statement
JSON or null
An card statement showing debits and credits
curl --location --request GET 'https://api.xente.co/cards/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"masked-card-number": "4554 **** **** 1234"
}'
{
"success": 0,
"data": {
"card_id": 3,
"masked_card_number": "4876 *** **** 1234",
"name": "Name of the card e.g. Fuel card",
"currency": "USD",
"balance": "100",
"status": "active",
"card_holder": "Mary Jane",
"transactions": "list of transactions",
"statement": "account statement with credits and debits"
}
}