---
title: "Create a purchase order"
method: POST
path: "/customer-billing/orders/purchase"
tags: ["Orders"]
---

# Create a purchase order

`POST /customer-billing/orders/purchase`

## Request body

- AddOrderInput
  - `subscription` string
  - `invoice` string
  - `payment` string
  - `product` string, required — Product name
  - `productPrice` string, required — Product price
  - `amount` string, required — Ammount paid

## Response `201`

Returns an OrderOutput object with detailed of the new order.

- OrderOutput
  - `id` string, required — Order ID
  - `createdAt` string, required
  - `updatedAt` string, required
  - `deleted` boolean, required
  - `account` string, required
  - `subscription` string, required
  - `invoice` string, required
  - `payment` string, required
  - `product` string, required
  - `status` 'PENDING' | 'ACTIVE' | 'FAILED' | 'UNPAID' | 'CANCELED', required
  - `amount` number, required
  - `customFields` object, required

---

[API](https://skmtc.net/fanhero/apis/tenant-endpoints.md) · [All operations](https://skmtc.net/fanhero/apis/tenant-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fanhero/tenant-endpoints/versions/8e7584c449dc/schema)
