---
title: "POST /purchaseOrders"
method: POST
path: "/purchaseOrders"
tags: ["PurchaseOrder", "Purchase Orders"]
---

# POST /purchaseOrders

`POST /purchaseOrders`

## Request

- Base URL: `https://api.railz.ai`
- URL: `https://api.railz.ai/purchaseOrders`
- Auth: HTTP bearer

Posts an individual purchase order for a business.

## Request body

- PushPurchaseOrderV1Dto
  - `connection` PushPurchaseOrderConnection, required
    - `businessName` string, required: Unique business name identifier.
    - `serviceName` 'quickbooks' | 'xero' | 'dynamicsBusinessCentral' | 'oracleNetsuite', required: Name of accounting platform service.
  - `data` PushPurchaseOrderV1, required
    - `passThrough` object
    - `currencyRate` number
    - `postedDate` string, date
    - `dueDate` string, date
    - `deliveryDate` string, date
    - `memo` string
    - `vendorRef` string, required
    - `currency` string
    - `billRef` string
    - `expectedDeliveryDate` string, date
    - `shipToAddress` ShippingAddressDto
      - `line1` string
      - `line2` string
      - `city` string
      - `region` string: Region within a country. For example, state name for USA, province name for Canada.
      - `country` string: Country name as 3 ISO alpha-3 characters.
      - `postalCode` string: Postal code. For example, zip code for USA and Canada.
    - `shipToContact` ShippingContact
      - `name` string
      - `email` string
      - `phone` string
    - `lines` PurchaseOrderLineV1[], required
      - `description` string
      - `quantity` number, float, required
      - `unitAmount` number, float, required
      - `discountPercentage` number, float
      - `taxAmount` number, float
      - `subTotal` number, float
      - `totalAmount` number, float
      - `accountRef` string
      - `taxRef` string
      - `inventoryRef` string
      - `memo` string

## Response `200`

- PushPurchaseOrderV1ResponseDto
  - `pushCommunicationId` string, required
  - `requestedOn` string, date-time, required
  - `status` 'success' | 'failed' | 'pending', required
  - `businessName` string, required
  - `serviceName` 'freshbooks' | 'quickbooks' | 'quickbooksDesktop' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'dynamics365Finance' | 'wave' | 'myob' | 'zohoBooks' | 'byod', required
  - `data` PushPurchaseOrderV1, required
    - `passThrough` object
    - `currencyRate` number
    - `postedDate` string, date
    - `dueDate` string, date
    - `deliveryDate` string, date
    - `memo` string
    - `vendorRef` string, required
    - `currency` string
    - `billRef` string
    - `expectedDeliveryDate` string, date
    - `shipToAddress` ShippingAddressDto
      - `line1` string
      - `line2` string
      - `city` string
      - `region` string: Region within a country. For example, state name for USA, province name for Canada.
      - `country` string: Country name as 3 ISO alpha-3 characters.
      - `postalCode` string: Postal code. For example, zip code for USA and Canada.
    - `shipToContact` ShippingContact
      - `name` string
      - `email` string
      - `phone` string
    - `lines` PurchaseOrderLineV1[], required
      - `description` string
      - `quantity` number, float, required
      - `unitAmount` number, float, required
      - `discountPercentage` number, float
      - `taxAmount` number, float
      - `subTotal` number, float
      - `totalAmount` number, float
      - `accountRef` string
      - `taxRef` string
      - `inventoryRef` string
      - `memo` string

## Other responses

- `400`: Bad Request Error - Thrown if fields sent via query does not follow specifications
- `401`: Unauthorized - Not logged in or log in expired
- `403`: Forbidden - Not enough permission
- `500`: Server Error

## Changes

- **2026-09-03** `1383b9a47ac9`: 1 info
  - api tag `PurchaseOrder` added
- **2026-08-10** `5cdfae3fa1fa`: 5 breaking, 13 warning, 6 info
  - the `data/deliveryDate` request property format changed from `date-time` to `date`
  - the `data/dueDate` request property format changed from `date-time` to `date`
  - the `data/expectedDeliveryDate` request property format changed from `date-time` to `date`
  - the `data/postedDate` request property format changed from `date-time` to `date`
  - …20 more

[Operation history](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/changes/purchaseOrders/post.md)

---

[API](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api.md) - [All operations](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/railz/apis/fis-accounting-data-as-a-service-api/revisions/1383b9a47ac9?raw)
