latestOpenAPI 3.0.02026-08-10233809957.8 KB
5cdfae3fa1fa
Purchase Orders
Create a Purchase Order
Supported for:
quickbooks xero oracleNetsuite dynamicsBusinessCentral myob zohoBooks
post/v2/accounting/purchaseOrders
Request body
Example request
{
"connectionUuid": "CON-396d5daa-26b2-4979-89b6-cafb2c298155",
"data": {
"passThrough": {
"CustomField": [
{
"DefinitionId": "1",
"StringValue": "my custom value",
"Name": "Field One"
}
]
},
"postedDate": "2021-03-29",
"dueDate": "2021-03-29",
"deliveryDate": "2021-03-29",
"memo": "Example memo.",
"vendorRef": {
"id": "130"
},
"currency": "CAD",
"apAccountRef": {
"id": "22"
},
"expectedArrivalDate": "2021-03-29",
"shippingAddress": {
"line1": "1234 Park Street",
"line2": "Suite 1000",
"city": "Toronto",
"region": "ON",
"country": "CAN",
"postalCode": "A0B1C2"
},
"contact": {
"name": "John Smith",
"email": "email@example.com",
"phone": "800-123-4567"
},
"lines": [
{
"description": "Services rendered.",
"accountRef": {
"id": "200"
},
"taxRateRef": {
"id": "12"
},
"inventoryRef": {
"id": "32"
},
"trackingCategoryRefs": [
{
"id": "4040",
"name": "Region",
"type": "class"
}
],
"discountPercentage": 22,
"taxAmount": 20.5
}
],
"purchaseOrderType": "item"
}
}Response
Example response
{
"connectionUuid": "CON-396d5daa-26b2-4979-89b6-cafb2c298155",
"businessName": "Railz",
"serviceName": "xero",
"pushCommunicationId": "60473b57f0cdd1683ca71f60",
"requestedOn": "2021-03-09T08:15:22.035Z",
"status": "pending",
"data": {
"passThrough": {
"CustomField": [
{
"DefinitionId": "1",
"StringValue": "my custom value",
"Name": "Field One"
}
]
},
"postedDate": "2021-03-29",
"dueDate": "2021-03-29",
"deliveryDate": "2021-03-29",
"memo": "Example memo.",
"vendorRef": {
"id": "130"
},
"currency": "CAD",
"apAccountRef": {
"id": "22"
},
"expectedArrivalDate": "2021-03-29",
"shippingAddress": {
"line1": "1234 Park Street",
"line2": "Suite 1000",
"city": "Toronto",
"region": "ON",
"country": "CAN",
"postalCode": "A0B1C2"
},
"contact": {
"name": "John Smith",
"email": "email@example.com",
"phone": "800-123-4567"
},
"lines": [
{
"description": "Services rendered.",
"accountRef": {
"id": "200"
},
"taxRateRef": {
"id": "12"
},
"inventoryRef": {
"id": "32"
},
"trackingCategoryRefs": [
{
"id": "4040",
"name": "Region",
"type": "class"
}
],
"discountPercentage": 22,
"taxAmount": 20.5
}
],
"purchaseOrderType": "item"
}
}