# Create Order

## Create a new order

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

Create an order with the amount and product code.

**Headers**

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

**Body**

| Name          | Type   | Description         | Required |
| ------------- | ------ | ------------------- | -------- |
| `amount`      | number | Amount of the order | Yes      |
| `productCode` | string | Product Code        | Yes      |

**Response**

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

```json
{
    "statusCode": 201,
    "statusMessage": "OK",
    "id": "aa3d771b...",
    "code": "7B5V...",
    "codeFormatted": "7B5V-...",
    "amount": 100,
    "voucheramount": "90.00",
    "createdAt": "2024-10-21T05:58:39.549Z",
    "updatedAt": "2024-10-21T05:58:39.549Z",
    "status": "Issue"
}
```

{% endtab %}

{% tab title="400" %}

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

{% endtab %}
{% endtabs %}
