> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stablepayfi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve fiat collection details and reference code

> Retrieve fiat collection details and reference code

See [authentication, signing, data conventions, and errors](https://docs.stablepayfi.ai/en/api/stablecoin-exchange/overview). Regenerate the timestamp, nonce, and signature on every retry.

`GET /fiat/account_details` Returns local clearing details and the attribution code; fields vary by currency.

## Request headers

**Authorization** `string` *required*

Bearer API Key.

**X-StablePay-Timestamp** `string` *required*

Unix seconds, within five minutes of server time.

**X-StablePay-Nonce** `string` *required*

Unique per request, 16–64 characters.

**X-StablePay-Signature** `string` *required*

Lowercase hexadecimal HMAC-SHA256 signature for the exact request body.

## Request parameters

**merchant\_id** `string`

10 digits; omit for merchant apps, required for service-provider apps

**currency** `string` *required*

Fiat currency, ISO 4217

## Response

**account\_details** `object` *required*

Collection details

**account\_details.merchant\_id** `string` *required*

Merchant ID

**account\_details.currency** `string` *required*

Currency

**account\_details.type** `string` *required*

Always `fiat_account_details`

**account\_details.details** `object` *required*

Bank fields such as `bank_name`, `account_number`, `reference_code`

**account\_details.instructions** `string`

Where to put the reference code

## Status and errors

404 unsupported currency.

```bash cURL theme={"system"}
curl --request GET \
  --url "https://api.stablepay.co/api/v1/fiat/account_details?currency=<CURRENCY>" \
  --header "Authorization: Bearer <API_KEY>" \
  --header "X-StablePay-Timestamp: <TIMESTAMP>" \
  --header "X-StablePay-Nonce: <NONCE>" \
  --header "X-StablePay-Signature: <SIGNATURE>"
```

```javascript JavaScript theme={"system"}
const response = await fetch("https://api.stablepay.co/api/v1/fiat/account_details?currency=<CURRENCY>", {
  method: "GET",
  headers: {
    "Authorization": "Bearer <API_KEY>",
    "X-StablePay-Timestamp": "<TIMESTAMP>",
    "X-StablePay-Nonce": "<NONCE>",
    "X-StablePay-Signature": "<SIGNATURE>"
  }
});
console.log(await response.json());
```

```json 200 theme={"system"}
{
  "account_details": {
    "merchant_id": "2000000001",
    "currency": "USD",
    "type": "fiat_account_details",
    "details": {
      "bank_name": "StablePay Partner Bank",
      "account_holder_name": "STABLEPAY PTE. LTD.",
      "account_number": "0123456789",
      "routing_number": "026009593",
      "reference_code": "SP-MCH-000001-USD"
    },
    "instructions": "Include reference_code SP-MCH-000001-USD in the transfer reference."
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.