Fiat Invoices

Every request listed on this page requires authorization to be successfully completed.

Create fiat invoice (Server-Side)

POST https://public.api.0xpay.app/merchants/invoices/fiat

Creates a webpage with your invoice details on 0xpay.app domain, usable for a one-time payment. Currently, the only supported fiat tickers are UAH and KZT. Payment limits: KZT Min — 12000 KZT, Max — 300000 KZT.

Status Updates: After creation, every invoice update will produce an invoice notification.

Request Body

{
    "id": "123e4567-e89b-12d3-a456-426614174000" //internal ID has been assigned to the invoice
     "url": "https://my.0xpay.app/invoices/crypto/123e4567-e89b-12d3-a456-426614174000" // feel free to redirect user to this URL for payment

}

Create fiat invoice via Web Form (Client-Side)

POST https://public.api.0xpay.app/merchants/invoices/fiat/form

Creates a fiat invoice using parameters from your HTML form and redirects users to 0xpay URL for payment. on 0xpay.app domain for one-time payment. Currently, the only supported fiat tickers are UAH and KZT. Payment limits: UAH Min — 25 UAH, Max — 29999 UAH. KZT Min — 12000 KZT, Max — 300000 KZT.

Instead of authorizing a request, just pass your merchantID along with other parameters.

Status Updates: After creation, every invoice update will produce an invoice notification.

Request Body

Redirects to payment webpage URL

Find fiat invoice details by ID

GET https://public.api.0xpay.app/merchants/invoices/fiat/:id

This method is used to get invoice's data by it's id.

Path Parameters

List of invoice statuses: - CREATED - PENDING - PAID - DONE - FAILED

{
    "id": "eb929d63-5f05-4d9f-9d3e-854384009ef1",
    "name": "Order payment",
    "company": {
        "name": "CompanyName",
        "url": "example.com"
    },
    "status": "PENDING", 
    "amount": {
        "value": "1000",
        "ticker": "UAH",

    },
    "meta": "i-want-to-know-about-that"
}

Last updated