List credit cards
curl --request GET \
--url https://app.churningtracker.com/api/v1/credit-cards \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-api-secret': '<api-key>'}
};
fetch('https://app.churningtracker.com/api/v1/credit-cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.churningtracker.com/api/v1/credit-cards"
headers = {
"x-api-key": "<api-key>",
"x-api-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Sapphire Preferred",
"issuer": "<string>",
"nickname": "<string>",
"lastDigits": "<string>",
"accountOwner": "<string>",
"annualFee": 1,
"earnRate": 123,
"openedAt": "2023-12-25",
"closedAt": "2023-12-25",
"subCards": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardType": "<string>",
"nickname": "<string>",
"lastDigits": "<string>"
}
]
}
],
"pagination": {
"limit": 123,
"offset": 123,
"totalCount": 123
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}Credit cards
List credit cards
Newest first, with each card’s sub-cards.
GET
/
credit-cards
List credit cards
curl --request GET \
--url https://app.churningtracker.com/api/v1/credit-cards \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-api-secret': '<api-key>'}
};
fetch('https://app.churningtracker.com/api/v1/credit-cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.churningtracker.com/api/v1/credit-cards"
headers = {
"x-api-key": "<api-key>",
"x-api-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Sapphire Preferred",
"issuer": "<string>",
"nickname": "<string>",
"lastDigits": "<string>",
"accountOwner": "<string>",
"annualFee": 1,
"earnRate": 123,
"openedAt": "2023-12-25",
"closedAt": "2023-12-25",
"subCards": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cardType": "<string>",
"nickname": "<string>",
"lastDigits": "<string>"
}
]
}
],
"pagination": {
"limit": 123,
"offset": 123,
"totalCount": 123
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}