# Get Orders

## Get All Orders

<mark style="color:yellow;">**`POST`**</mark> `/v1/orders`

This API will return all account orders.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <idToken>` |

**Body**

| Name   | Type   | Description                    | Required |
| ------ | ------ | ------------------------------ | -------- |
| `page` | number | Page number if has more than 1 | No       |

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "statusCode": 200,
    "statusMessage": "OK",
    "page": 1,
    "payload": [
            {
            "id": "cdcf...",
            "code": "4JA...",
            "amount": "100",
            "receivedAmount": "90",
            "realAmount": "45",
            "product": "PS", // Product Code
            "status": "Issue", //
            "createdAt": "2024-10-20T12:30:31.995Z",
            "updatedAt": "2024-10-20T15:55:28.459Z"
        }
    ],
    "hasMore": true
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}
