# Retrieve an account credit

Source: https://developers.swell.is/backend-api/account-credits/retrieve-an-account-credit

Retrieve an existing account credit using the ID that was returned when created.

## Arguments

- `id` (objectId, required): Unique identifier for the credit.

## Example request

`GET /accounts:credits/:id`

**cURL**

```sh
$ curl https://api.swell.store/accounts:credits/61e78cbed7e71014da0f1b87 \
  -u store-id:secret-key
```

**Node**

```javascript
const { swell } = require('swell-node');
swell.init('store-id', 'secret-key');

await swell.get('/accounts:credits/{id}', {
  id: '61e78cbed7e71014da0f1b87'
});
```

**PHP**

```php
<?php $swell = new \Swell\Client('store-id', 'secret-key');

$swell->get('/accounts:credits/{id}', [
  'id' => '61e78cbed7e71014da0f1b87'
]);
```

## Example response

```json
{
  "parent_id": "5ffd413300b58e2a4a017831",
  "payment_id": "61e78cbed7e71014da0f1b2c",
  "amount": -19.55,
  "currency": "USD",
  "date_created": "2022-01-19T03:59:58.816Z",
  "number": "101082",
  "id": "61e78cbed7e71014da0f1b87"
}
```
