State and receipt of a crypto sale
lunium_get_crypto_saleRequires an API key. Returns the current state of a crypto sale and, once settled, the receipt: pix_e2e (Central Bank identifier), receipt_url (a page to show a person), receipt_pdf_url and verify_url (hand it to a counterparty so they can check without trusting you). All four arrive together — never construct these URLs by hand and never make a second call for them.
Use it after lunium_confirm_crypto_sale and after the crypto has been sent to the deposit address. Poll no more than once every 10-15 seconds: polling every second consumes the entire request budget and starts returning quota errors that look like failures.
receipt_pdf_url carries the recipient's full name and tax number. Give the link to your user; do not fetch its contents into the conversation and do not forward it to third parties — verify_url exists for that.
Do not use it to check a payment made outside Lunium — that is lunium_verify_pix_payment. Do not report failure because the state is still pending: outside Polygon the wait is the chain's confirmation requirement, sometimes hours, and there is no cancel.
Errors: acao=repetir → poll again. acao=esperar → you are polling too fast; back off, the order is unaffected. A not-found (acao=corrigir) → the id is wrong or belongs to another key; do not retry the same id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cashout_id | Yes | Order id returned by lunium_quote_crypto_sale. Not the external_id, not the E2E. |