State of a PIX charge
lunium_get_pix_chargeRequires an API key. Returns the state of a charge created with lunium_create_pix_charge. States: pending (unpaid), under_review (PIX received, settlement in transit), paid (credited, crypto released), delayed, expired, refunded, failed.
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. |