latestOpenAPI 3.0.02026-08-10233809957.8 KB

5cdfae3fa1fa

Purchase Orders

Posts an individual purchase order for a business.

post/purchaseOrders

Request body

Example request

{
  "connection": {
    "businessName": "Railz",
    "serviceName": "quickbooks"
  },
  "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": "130",
    "currency": "CAD",
    "billRef": "164",
    "expectedDeliveryDate": "2021-03-29",
    "shipToAddress": {
      "line1": "1234 Park Street",
      "line2": "Suite 1000",
      "city": "Toronto",
      "region": "ON",
      "country": "CAN",
      "postalCode": "A0B1C2"
    },
    "shipToContact": {
      "name": "John Smith",
      "email": "email@example.com",
      "phone": "800-123-4567"
    },
    "lines": [
      {
        "description": "Services rendered.",
        "accountRef": "12",
        "taxRef": "45",
        "inventoryRef": "32",
        "memo": "Example memo."
      }
    ]
  }
}

Response

pushCommunicationIdstring required
requestedOnstring date-time required
status'success' | 'failed' | 'pending' required
businessNamestring required
serviceName'freshbooks' | 'quickbooks' | 'quickbooksDesktop' | 'xero' | 'oracleNetsuite' | 'sageBusinessCloud' | 'sageIntacct' | 'dynamicsBusinessCentral' | 'dynamics365Finance' | 'wave' | 'myob' | 'zohoBooks' | 'byod' required

Example response

{
  "pushCommunicationId": "60473b57f0cdd1683ca71f60",
  "requestedOn": "2021-03-09T08:15:22.035Z",
  "status": "pending",
  "businessName": "Railz",
  "serviceName": "quickbooks",
  "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": "130",
    "currency": "CAD",
    "billRef": "164",
    "expectedDeliveryDate": "2021-03-29",
    "shipToAddress": {
      "line1": "1234 Park Street",
      "line2": "Suite 1000",
      "city": "Toronto",
      "region": "ON",
      "country": "CAN",
      "postalCode": "A0B1C2"
    },
    "shipToContact": {
      "name": "John Smith",
      "email": "email@example.com",
      "phone": "800-123-4567"
    },
    "lines": [
      {
        "description": "Services rendered.",
        "accountRef": "12",
        "taxRef": "45",
        "inventoryRef": "32",
        "memo": "Example memo."
      }
    ]
  }
}