> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commercecash.my/llms.txt
> Use this file to discover all available pages before exploring further.

# Enums

> Enumeration types used across the Payments API.

## PaymentStatus

Used in: [Initiate Payment](/api-reference/payments/initiate), [Confirm Payment](/api-reference/payments/confirm)

<Note>
  The `status` field is a numeric enum (`PaymentStatus`). Serialised as an integer in all JSON responses.
</Note>

| Value | Name         | Description                                       |
| ----- | ------------ | ------------------------------------------------- |
| `0`   | `InProgress` | Payment is currently being processed              |
| `1`   | `Success`    | Payment completed successfully                    |
| `2`   | `Failed`     | Payment failed                                    |
| `3`   | `Cancelled`  | Payment was cancelled                             |
| `4`   | `Initiated`  | Payment has been initiated, awaiting confirmation |

***

<Info>
  The **Status** query endpoints ([Get Payment Status](/api-reference/payments/get-status) and [Get Payment Status by Reference](/api-reference/payments/get-status-by-reference)) return `status` as a **plain string** (e.g., `"Success"`) rather than an integer, as `PaymentStatusResponse` does not use the enum type directly.
</Info>
