API
GET currencies

Get Supported Currencies

HTTP Method: GET
URL Path: https://public.zeroxpay.com/v1/store/currencies
Description: Retrieves a list of cryptocurrencies supported by the store for transactions.

Response Structure

The response is a JSON object containing an array of supported currencies, each with the following fields:

  • created_at (string): The creation date and time of the currency record in TIMESTAMPTZ format.
  • id (string): The unique identifier for the store-currency association.
  • store_id (string): The identifier of the store this currency is associated with.
  • currency (Currency | undefined): An optional object containing detailed information about the currency.
    • address (string): The blockchain address of the currency.
    • chain_id (number): The blockchain chain ID the currency is on.
    • decimals (number): The number of decimals the currency uses.
    • name (string): The name of the currency.
    • symbol (string): The symbol of the currency.
  • address (string): The wallet address that will recieve deposits in this currency.

Example Response

{
  "created_at": "2023-01-01 16:48:32.007852+00",
  "id": "association123",
  "store_id": "store789",
  "currency": {
    "address": "0x...",
    "chain_id": 1,
    "decimals": 18,
    "name": "ExampleCoin",
    "symbol": "EXM"
  },
  "address": "0x..."
}