PayHubix
  • Introduction
  • Getting Started
  • API REFERENCE V1
    • Currencies
      • Supported Crypto
      • Supported Fiat
    • Invoices
      • Detail Invoice
      • Create Invoice
      • List Invoice
      • Detail Invoice (PDF)
      • List invoice (Export)
    • Shop
      • List Shop
      • Shop Detail
    • Asset
      • List Assets
      • List Transfers
  • CMS Plugins
    • WooCommerce
    • EDD
Powered by GitBook
On this page
  1. API REFERENCE V1
  2. Currencies

Supported Fiat

list of supported fiat

The Supported Fiat Currencies endpoint provides a list of fiat currencies that are available for transactions through your system. You can retrieve details such as the currency's name, symbol, and status.

GET https://api.payhubix.com/v1/currencies/Fiat/

Request Header:

Name
Type
Description

X-Api-Key*

string

Your API key for authentication and authorization.

Request Params:

Name
Type
Description

withdrawable

bool

Withdrawable through bank

paymentable

bool

Paymentable in the invoice

depositable

bool

Depositable through bank

Response:

Name

Type

Description

currency_id*

integer

Unique identifier of the currency.

currency_name*

string

Name of the currency (e.g., Dollar, Euro).

currency_symbol*

string

Symbol of the currency (e.g., USD, EUR).

currency_type*

string

Type of the currency (typically "Fiat").

precision*

integer

Decimal precision of the currency.

withdrawable*

bool

Withdrawable through bank.

paymentable*

bool

Paymentable in the invoice.

depositable*

bool

Depositable through bank.

minimum_payment*

float

The minimum fiat amount you can set for creating the invoice.

An example of response:

{
    "error": false,
    "number": 0,
    "message": [
       {
            "currency_id": 4,
            "currency_name": "Australian Dollar",
            "currency_symbol": "AUD",
            "currency_type": "Fiat",
            "precision": 2,
            "withdrawable": false,
            "paymentable": true,
            "depositable": false,
            "slug": "$",
            "minimum_payment": 0.01
        },
        {
            "currency_id": 5,
            "currency_name": "Brazilian Real",
            "currency_symbol": "BRL",
            "currency_type": "Fiat",
            "precision": 2,
            "withdrawable": false,
            "paymentable": true,
            "depositable": false,
            "slug": "R$",
            "minimum_payment": 0.01
        },
        {
            "currency_id": 6,
            "currency_name": "Canadian Dollar",
            "currency_symbol": "CAD",
            "currency_type": "Fiat",
            "precision": 2,
            "withdrawable": false,
            "paymentable": true,
            "depositable": false,
            "slug": "$",
            "minimum_payment": 0.01
        },
        {
            "currency_id": 7,
            "currency_name": "Swiss Franc",
            "currency_symbol": "CHF",
            "currency_type": "Fiat",
            "precision": 2,
            "withdrawable": false,
            "paymentable": true,
            "depositable": false,
            "slug": "Fr",
            "minimum_payment": 0.01
        },
        {
            "currency_id": 8,
            "currency_name": "Chilean Peso",
            "currency_symbol": "CLP",
            "currency_type": "Fiat",
            "precision": 2,
            "withdrawable": false,
            "paymentable": true,
            "depositable": false,
            "slug": "$",
            "minimum_payment": 0.01
        }
    ]
}
{
    "error": true,
    "number": 401,
    "message": "Unauthorized access to api"
}
{
    "error": true,
    "number": 403,
    "message": "You don't have permission to access this resource."
}
{
    "error": true,
    "number": 500,
    "message": "Oops! Something went wrong on our end."
}

Example codes:

curl --location 'https://api.payhubix.com/v1/currencies/Fiat/' \
--header 'X-Api-Key: YOUR_API_KEY'
import requests

headers = {
    'X-Api-Key': 'YOUR_API_KEY',
}

response = requests.get('https://api.payhubix.com/v1/currencies/Fiat/', headers=headers)
import axios from 'axios';

const response = await axios.get('https://api.payhubix.com/v1/currencies/Fiat/', {
  headers: {
    'X-Api-Key': 'YOUR_API_KEY'
  }
});
<?php
require 'vendor/autoload.php';

use GuzzleHttp\Client;

$client = new Client();

$response = $client->get('https://api.payhubix.com/v1/currencies/Fiat/', [
    'headers' => [
        'X-Api-Key' => 'YOUR_API_KEY'
    ]
]);
package main

import (
	"fmt"
	"io"
	"log"
	"net/http"
)

func main() {
	client := &http.Client{}
	req, err := http.NewRequest("GET", "https://api.payhubix.com/v1/currencies/Fiat/", nil)
	if err != nil {
		log.Fatal(err)
	}
	req.Header.Set("X-Api-Key", "YOUR_API_KEY")
	resp, err := client.Do(req)
	if err != nil {
		log.Fatal(err)
	}
	defer resp.Body.Close()
	bodyText, err := io.ReadAll(resp.Body)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%s\n", bodyText)
}

Note: Please make sure to replace YOUR_API_KEY in the code snippets with your actual merchant API key

PreviousSupported CryptoNextInvoices

Last updated 4 months ago