State of a PIX charge
lunium_get_pix_chargeRequires an API key. Returns the state of a charge created with lunium_create_pix_charge. Read BOTH status (PIX state) and settlement_status (crypto delivery). status=paid alone does not mean crypto arrived. status=paid plus settlement_status=sent reports delivery; settlement_proof=confirmed means the API has chain confirmation evidence. broadcast means a transaction was reported without a recorded confirmation; missing evidence does not prove failure or that the transaction is still unconfirmed. reported means the service reported delivery without confirmation evidence; none means no delivery proof, and simulated is test-only. Show settlement_tx_hash and settlement_tx_url when present, but a hash alone is not confirmation. Never describe sandbox=true as a real payment.
delayed is the state that costs money when misread: the PIX WAS PAID and the provider is holding the release, commonly on a payer's first operation. The response carries delay_until and e_falha=false, and it becomes paid on its own. Do not tell the user the payment failed, do not create a second charge, do not ask them to pay again.
Use it only for charges you created. For any other PIX use lunium_verify_pix_payment. Poll at most every 10-15 seconds.
Errors: acao=esperar → back off, the charge is unaffected. acao=repetir → retry once. expired is terminal: create a new charge only after telling the user the old one is dead, and never while a previous one is pending or delayed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| charge_id | Yes | Charge id returned by lunium_create_pix_charge. |