---
title: "Create an order including link to payment"
method: POST
path: "/order"
tags: ["Order"]
---

# Create an order including link to payment

`POST /order`

## Request

- Base URL: `https://api.mijnziekenhuis.be` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mijnziekenhuis.be/order`
- Auth: HTTP bearer

## Query parameters

- `subjectId` number, required
- `includePaymentLink` boolean
- `memberId` number

## Request body

- OrderDto
  - `display` string: The display name of the order (fallback to the first product display if not provided)
  - `orderLines` OrderLineDto[], required: The products of the order
    - `display` string, required: The display name of the product
    - `price` number, required: The price of the product (in cents)
    - `description` string: The description of the product
    - `externalId` string: The external id of the product
    - `quantity` number: The quantity of the product (default 1)
    - `productId` number: The product id of the product
  - `channel` 'APP' | 'WEB', required: The channel of the order (APP or WEB)
  - `subjectId` number, required: The id of the subject
  - `meta` object: The meta data of the order

## Response `200`

Payment link

## Other responses

- `201`

---

[API](https://skmtc.dev/mijnziekenhuis/apis/healthblocks.md) - [All operations](https://skmtc.dev/mijnziekenhuis/apis/healthblocks/llms.txt) - [OpenAPI document](https://skmtc.dev/mijnziekenhuis/apis/healthblocks/revisions/2da585b2afd2?raw)
