iPintiPint Docs
API Reference

POST /invoice

Generate a QR code payment invoice with a deposit address.

POST /invoice

POST/invoice

Create a payment invoice that returns a QR code string, deposit address, and warning messages. Use this when you want to build your own checkout UI.

Request body

ParameterTypeRequiredDescription
conversion_idstringYesConversion ID obtained from GET /prices
amount_in_usdstringYesPayment amount in USD
amount_in_local_currencystringYesPayment amount in local currency
amount_in_cryptostringYesPayment amount in the selected cryptocurrency
crypto_codestringYesAsset code (e.g. BTC, USDTERC20)

Example request

{
  "conversion_id": "1xmKHnsJH23",
  "amount_in_usd": "5950",
  "amount_in_local_currency": "472750",
  "amount_in_crypto": "0.5",
  "crypto_code": "BTC"
}

curl example

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
  "conversion_id": "1xmKHnsJH23",
  "amount_in_usd": "5950",
  "amount_in_local_currency": "472750",
  "amount_in_crypto": "0.5",
  "crypto_code": "BTC"
}' 'https://api.ipint.io:8003/invoice'

Response (200)

{
  "invoice_id": "3hovNh96SmZXXaQ7PwEHc5Rr2B4E",
  "invoice_expired_in": "time in minutes",
  "deposit_crypto": "BTC",
  "deposit_address": "bc1qva0hpugr0t3zxah6fvcd7vunx2pw6efg3zyag8",
  "qr_string": "bitcoin:bc1qva0hpugr0t3zxah6fvcd7vunx2pw6efg3zyag8?amount=0.5",
  "invoice_amount_in_crypto": "0.5",
  "invoice_amount_in_usd": "5950",
  "local_currency_amount": "472750",
  "local_currency_code": "INR",
  "warning_messages": [
    "Send only Bitcoin to this deposit address. Sending any other coin will result in the loss of your deposit.",
    "Your transaction will be considered after it receives one confirmation on the Bitcoin network.",
    "Please make sure that the wallet you are using to pay this invoice has set enough mining fees.",
    "If your transaction arrives too late, the price may expire."
  ]
}

Response fields

FieldTypeDescription
invoice_idstringUnique invoice identifier
invoice_expired_instringTime until invoice expires (in minutes)
deposit_cryptostringWhich cryptocurrency to deposit
deposit_addressstringWallet address the customer should send payment to
qr_stringstringQR code data string (render as QR image)
invoice_amount_in_cryptostringCrypto amount the customer should send
invoice_amount_in_usdstringInvoice amount in USD
local_currency_amountstringInvoice amount in local currency
local_currency_codestringLocal currency code
warning_messagesstring[]Important warnings to display to the customer

Always display the warning_messages to the customer — they contain critical information about sending the correct cryptocurrency and mining fees.

crypto_code values

AssetNetworkcrypto_code
USDTTronUSDTTRC20
USDTEthereumUSDTERC20
BTCBitcoinBTC
ETHEthereumETH
TRXTronTRX
LTCLitecoinLTC
DOGEDogecoinDOGE
BCHBitcoin CashBCH
BNBBNB ChainBNB

Try it live

Open in Swagger UI →

Next steps

On this page