Lock the price
Converts the invoice total into an exact coin amount at the live rate (rounded up, so the merchant never gets less) and holds it for 5 minutes. It also tells you where to send it and the memo to attach.
POSThttps://nimbill.mblob.me/api/invoices/{id}/quote
Path parameters
Path
- id stringrequired
- The invoice id.
Body
Body (JSON)
- asset stringrequired
- NIM, or USDT on Polygon (only if the merchant accepts it). (NIM | USDT)
- tip number
- Optional extra on top, in the invoice currency.
Request
Example request
curl -X POST https://nimbill.mblob.me/api/invoices/89mwch33sp/quote \
-H 'content-type: application/json' \
-d '{"asset":"NIM"}'Response
Example response · 200
{
"quote": {
"id": "q1x…",
"asset": "NIM",
"amount": "75266000",
"rate": "0.31886",
"tip": "0.00",
"expiresAt": "2026-11-12T19:25:00.000Z",
"recipient": "NQ16 ADMA EM3A 32VA BTBJ SA58 B0FV 909J FQE4",
"memo": "NimBill 89mwch33sp"
}
}When it goes wrong
- 400 BAD_REQUEST: already paid, cancelled, or USDT not accepted
- 503 UPSTREAM: live prices unavailable, try again shortly