# Statuses

> Every status of the TapPay objects, what it means, which status can follow and which event TapPay sends.

Source: https://docs.tappay.mn/concepts/statuses/

Each object has a `status` field. The tables below list every value, what it means, the status that can follow and the [event](https://docs.tappay.mn/glossary.md#event) TapPay sends. A dash in the Event column means no event. A dash in the Next column means the order is not listed here. Read the current status with the `GET` endpoint of the object. Events are listed in [Events](https://docs.tappay.mn/concepts/events.md).

## Invoice {#invoice}

`status` of an [invoice](https://docs.tappay.mn/glossary.md#invoice).

| Status | Meaning | Next | Event |
| - | - | - | - |
| `OPEN` | Waiting for [payment](https://docs.tappay.mn/glossary.md#payment). | — | — |
| `PARTIALLY_PAID` | A share is paid and some amount is left. | — | `invoice.partially_paid` |
| `PAID` | The full amount is paid. | None, final | `invoice.paid` |
| `EXPIRED` | The invoice time ran out. | None, final | `invoice.expired` |
| `CANCELLED` | The invoice was cancelled. | None, final | — |

## PaymentIntent {#payment-intent}

`status` of a [PaymentIntent](https://docs.tappay.mn/glossary.md#payment-intent). It has no events of its own, so follow the invoice and payment events.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `OPEN` | Not paid yet, and the QR code is live. | — | — |
| `PROCESSING` | A payment on this intent is being processed. | — | — |
| `SUCCEEDED` | The share is paid. | None, final | — |
| `EXPIRED` | Time ran out before payment. The share returns to the invoice. | None, final | — |
| `CANCELLED` | The intent was cancelled. | None, final | — |

## Payment {#payment}

`status` of a payment.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `PROCESSING` | The money is on its way on the payment rail. | — | `payment.processing` |
| `SUCCEEDED` | The money is confirmed. [Settlement](https://docs.tappay.mn/glossary.md#settlement) follows later. | [Refunds](https://docs.tappay.mn/glossary.md#refund) are possible | `payment.succeeded` |
| `FAILED` | The payment did not go through. | None, final | `payment.failed` |
| `OVERPAID` | A second payer paid a QR code that was already paid. TapPay refunds it automatically. | None, final | `payment.overpaid` |
| `AUTHORIZED` | The amount is on hold on the card. It is not yet in your balance. | `SUCCEEDED` after [finalize](https://docs.tappay.mn/glossary.md#finalize) | `payment.authorized`, `payment.finalized` |
| `CANCELLED` | The payment was cancelled. | None, final | — |

## Refund {#refund}

`status` of a refund.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `PENDING` | The refund is created and not sent yet. | — | — |
| `PROCESSING` | The refund is on its way on the payment rail. | — | — |
| `AWAITING_FOREIGN` | The money reached the acquiring bank of a foreign wallet such as WeChat Pay. The bank refunds the payer through that wallet. | `SUCCEEDED`, `FAILED` or `FOREIGN_FAILED_AWAITING_FUNDS` | — |
| `FOREIGN_FAILED_AWAITING_FUNDS` | The foreign wallet refused the refund. TapPay waits for the bank to return the money. | `FAILED` | — |
| `SUCCEEDED` | The money went back to the payer. | None, final | `refund.succeeded` |
| `FAILED` | The refund did not go through. | None, final | `refund.failed` |

## Checkout session {#checkout-session}

`status` of a [checkout session](https://docs.tappay.mn/glossary.md#checkout-session). Confirm the result with a webhook or a `GET`, and not with the redirect.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `OPEN` | The [customer](https://docs.tappay.mn/glossary.md#customer) can still pay. | — | — |
| `COMPLETE` | The customer finished the session. | None, final | — |
| `EXPIRED` | The `checkout_session_ttl` ran out. | None, final | — |

## Subscription {#subscription}

`status` of a [subscription](https://docs.tappay.mn/glossary.md#subscription).

| Status | Meaning | Next | Event |
| - | - | - | - |
| `TRIALING` | The trial period. | — | — |
| `ACTIVE` | Normal. Each cycle is charged. | — | `subscription.renewed` |
| `PAST_DUE` | A cycle failed. TapPay retries on the retry schedule and sends the payer a link to change the card. | — | `subscription.past_due` |
| `PAUSED` | You paused it. | — | `subscription.paused`, `subscription.resumed` |
| `CANCELLED` | The subscription ended. | None, final | `subscription.cancelled` |

## Payout {#payout}

`status` of a [payout](https://docs.tappay.mn/glossary.md#payout).

| Status | Meaning | Next | Event |
| - | - | - | - |
| `PENDING` | A manual request that is still in checks. | `SCHEDULED`, `FAILED` | `payout.requested` |
| `SCHEDULED` | The bank transfer is waiting. It can wait for the next bank window. | `IN_TRANSIT`, `FAILED` | `payout.scheduled` |
| `IN_TRANSIT` | The money was sent and the bank statement does not confirm it yet. | `PAID`, `FAILED` | `payout.in_transit` |
| `PAID` | The bank statement confirmed the transfer. | None, final | `payout.paid` |
| `FAILED` | The transfer failed. The amount returns to your available balance. | None, final | `payout.failed` |

## Report {#report}

`status` of a [report](https://docs.tappay.mn/glossary.md#report).

| Status | Meaning | Next | Event |
| - | - | - | - |
| `PENDING` | The report is queued. | — | — |
| `RUNNING` | The report is being built. | — | — |
| `SUCCEEDED` | The report is ready. | — | — |
| `FAILED` | The report could not be built. | None, final | — |
| `EXPIRED` | The report is no longer available. | None, final | — |

## Receipt {#receipt}

`status` of the [receipt](https://docs.tappay.mn/glossary.md#receipt) of a payment. A payment with no receipt has `null`.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `PENDING` | TapPay is registering the receipt, or waiting for you if you are the issuer. | `REGISTERED`, `FAILED` | `ebarimt.receipt_requested` |
| `REGISTERED` | The receipt was issued. | `RETURNED` | `ebarimt.issued` |
| `FAILED` | Retries ran out, or the merchant did not issue it in time. | TapPay staff can send it again | `ebarimt.failed` |
| `RETURNED` | The receipt was returned. A new receipt can replace it. | None, final | `ebarimt.returned`, `ebarimt.return_requested` |

## Fulfillment {#fulfillment}

`status` of the [fulfillment](https://docs.tappay.mn/glossary.md#fulfillment) of a payment. It never changes `payment.status`.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `PENDING` | The money is in and you have not started. | — | — |
| `IN_PROGRESS` | The service is under way. | — | — |
| `COMPLETED` | The service is done. | None, final | — |
| `FAILED` | The service did not work out. The payment stays `SUCCEEDED`, and a refund is separate. | None, final | — |
| `CANCELLED` | You cancelled the service. | None, final | — |

## QR of an intent {#intent-qr}

`qrStatus` of a PaymentIntent. A declined payment keeps the QR `ACTIVE`.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `ACTIVE` | The QR code can be paid. | — | — |
| `USED` | The QR code was paid successfully. | None, final | `payment.succeeded` |
| `CLOSED` | The share was paid another way, or it expired or was cancelled. | None, final | — |

## Presentation {#presentation}

`status` of a [presentation](https://docs.tappay.mn/glossary.md#presentation). Each [channel](https://docs.tappay.mn/glossary.md#channel) has one `ACTIVE` presentation.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `ACTIVE` | This is the current presentation of the channel. | `CLOSED` | — |
| `CLOSED` | A newer presentation replaced it, or the intent closed. | None, final | — |

## Pre-auth {#preauth}

`preauthStatus` of a payment made with [pre-auth](https://docs.tappay.mn/glossary.md#pre-auth). You finalize once.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `OPEN` | Waiting for you to finalize. | `FINALIZED`, `AUTO_FINALIZED` | — |
| `FINALIZED` | You finalized with the final amount. | None, final | `payment.finalized` |
| `AUTO_FINALIZED` | You did not finalize in time, so TapPay finalized the full amount. | None, final | `payment.finalized` |

## Payment method {#payment-method}

`status` of a customer [payment method](https://docs.tappay.mn/glossary.md#payment-method).

| Status | Meaning | Next | Event |
| - | - | - | - |
| `ACTIVE` | You can charge it. | `REQUIRES_ACTION`, `PAUSED`, `REVOKED`, `EXPIRED` | `mandate.created`, `mandate.resumed` |
| `REQUIRES_ACTION` | The card route is no longer active. The payer must save the card again. | `ACTIVE` | — |
| `PAUSED` | A wallet [mandate](https://docs.tappay.mn/glossary.md#mandate) that is paused. | `ACTIVE`, `REVOKED` | `mandate.paused` |
| `REVOKED` | The payer or the wallet revoked it. | None, final | `mandate.revoked` |
| `EXPIRED` | The `valid_until` date passed. | None, final | `mandate.expired` |

## Payer link {#payer-link}

`status` of a [payer link](https://docs.tappay.mn/glossary.md#payer-link).

| Status | Meaning | Next | Event |
| - | - | - | - |
| `ACTIVE` | The wallet is linked to your customer. | `REVOKED` | `link.created` |
| `REVOKED` | The payer, you or TapPay ended the link. | None, final | `link.revoked` |

## Split beneficiary {#beneficiary}

`status` of a [beneficiary](https://docs.tappay.mn/glossary.md#beneficiary) of a [split](https://docs.tappay.mn/glossary.md#split). Only an `ACTIVE` beneficiary receives a share.

| Status | Meaning | Next | Event |
| - | - | - | - |
| `PENDING` | Waiting for the recipient to accept. | — | — |
| `ACTIVE` | The recipient accepted. | — | — |
| `REJECTED` | The recipient declined. | None, final | — |
| `REVOKED` | You ended the beneficiary. | None, final | — |
