Retrieve a Card's Details

Fetch a Card

GET https://spendit.finance/api/cards/:uuid

Path Parameters

Headers

1st scenario; the card is not generated yet

This is a result of the funds not being sent, or detected yet on the blockchain.

You'll a response like this one:

```json
{
    "uuid": "fde4e22e-b083-4628-a558-f0a7136b19ba",
    "created_at": "2023-11-05T22:29:20.931Z",
    "status": "awaiting_payment",
    "usd_amount": "150",
    "payment": {
        "currency": "monero",
        "amount": "0.9723196800000001",
        "address": "87N33H9KBfqT4YAFWDAnf39t3ot1Jd7jTDi3U8zF5ZKEYKLKzgb93NrWbtrxzgyfeY6N2M2CUFoF59HMpeAcNXrgTLw2gtj"
    },
    "credentials": {
        "card_number": null,
        "expiration_date": null,
        "security_code": null,
        "url": null,
        "url_password": null
    }
}
```

Notice the `status` property that tells you the card is awaiting payment.

2nd scenario; the card is ready!

This is a result of the funds being detected and confirmed on the blockchain; your card is ready to be used!

You'll a response like this one:

```json
{
    "uuid": "fde4e22e-b083-4628-a558-f0a7136b19ba",
    "created_at": "2023-11-05T22:29:20.931Z",
    "status": "generated",
    "usd_amount": "150",
    "payment": {
        "currency": "monero",
        "amount": "0.9723196800000001",
        "address": "87N33H9KBfqT4YAFWDAnf39t3ot1Jd7jTDi3U8zF5ZKEYKLKzgb93NrWbtrxzgyfeY6N2M2CUFoF59HMpeAcNXrgTLw2gtj"
    },
    "credentials": {
        "card_number": "4040123409098723",
        "expiration_date": "04/24",
        "security_code": "123",
        "url": "https://www.google.com",
        "url_password": "123"
    }
}
```

Notice the `status` property that tells you the card is generated.

Card's Credentials

As you can see, you get the card's details directly in the JSON payload, so be careful not to leak this information as any intruder may use your card.

You'll also notice that with the card's details, you get a `url` and a `url_password` properties. Those will help you log in to the official Visa website (https://www.yourrewardcard.com) and check your card's balance and transactions in real-time.

Be sure not to share the URL and the URL password with anyone as they'll be able to access your card's credentials.

Last updated