---
title: "POST /admin/orders"
method: POST
path: "/admin/orders"
tags: ["orders"]
---

# POST /admin/orders

`POST /admin/orders`

Manually add an order and commission to an affiliate. For full order schema which can be passed see https://github.com/anujtenani/goaffpro/wiki/Custom-Integration-advanced-guide. Both BASIC and EXTENDED ORDER Schemas are supported. All the fields other than the BASIC ORDER SCHEMA (i.e. number and total) are optional

## Request body

- object
  - `order` object
    - `number` string — The order number to display
    - `total` integer — The total order value
  - `affiliate_id` string — ID of the affiliate to give the order to. Can be omitted if ref_code field is set
  - `ref_code` string — Referral code of the link used in this order. Can be omitted if affiliate_id field is set

## Response `200`

- object
  - `result` unknown

## Other responses

- `403` — Not authenticated

---

[API](https://skmtc.dev/goaffpro/apis/goaffpro-api.md) · [All operations](https://skmtc.dev/goaffpro/apis/goaffpro-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goaffpro/goaffpro-api/revisions/832de9c7d0ae/schema)
