Purchase Order Events

Purchase Order Events

You can create webhooks for the following events that occur for a purchase order.

Created

A purchase order is created. This payload, with an action key of purchaseorder:created, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who created the purchase order. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale that was used to create the purchase order. See the Sale Create event for details.
purchaseorder
The purchase order that was created: This is an object with the following properties:
  • Vendor: The vendor whose products are on the purchase order.
  • CustomerName: The customer for whom the purchase order was created.
  • PONumber: The number of the purchase order.
  • CreatedOn: The date/time, in UTC, when the purchase order was created from the sale.
  • Total: The total of the purchase order.
  • VendorReferenceNumber: The vendor's reference number for the purchase order.
  • AccountNumber: The account number for the purchase order.
  • Sidemark: The sidemark for the purchase order.
  • Installer: The installer for the purchase order.
  • Processed: Whether the purchase order has been processed.
  • Sent: The sent status of the purchase order.
  • UniqueID: A unique identifier for the purchase order.
  • Attachments: An array of attachment objects with the following properties:
  • uniqueid: The unique id of the attachment.
  • name: The name given to the attachment. This is usually the same as the file name.
  • size: The size of the attachment, in bytes.
  • filename: The name of the file that was attached.
  • url: The fully qualified URL that can be used to access the attachment.
  • addedon: The date/time in UTC when the file was attached.
  • Links: An array of link objects. See the Link created event for details.
  • Notes: An array of note objects with the following properties:
  • NoteText: The text of the note.
  • AddedOn: The date/time when the note was added.
  • UpdatedOn: The date/time when the note was last updated.
  • Tags: An array of tag objects with the following properties:
  • TagText: The text of the tag.
  • AddedOn: The date/time when the tag was added.
  • LineItems: An array of line item objects with the following properties:
  • LineItemNumber: The number of the line item.
  • Quantity: The quantity of the line item.
  • ProductName: The name of the product in the line item.
  • ProductType: The name of the product type.
  • Manufacturer: The name of the products manufacturer.
  • ProductVersion: The revision of the product used by the line item.
  • ProductDate: The date on which the the product revision used was completed.
  • Style: The style of the product in the line item.
  • Taxable: True or false, depending on whether the item is taxable.
  • Description: A description of the line item.
  • UniqueID: A unique identifier for the line item.
  • AddedOn: The date/time when the line item was added.
  • UpdatedOn: The date/time when the line item was last updated.
  • Options: The visible options used for the line item, as a list in the following format:
  • Name: The option's name.
  • Value: The option's value.
  • AdditionalCharges: An array of additional charge objects with the following properties:
  • Group: The group that the charge belongs to.
  • Category: The category of the charge.
  • ChargeCode: The unique code given to the charge.
  • Name: The name of the charge.
  • Quantity: The quantity of the charge. This is usually1.
  • QuantityOverridden: True or false, depending on if the quantity of the charge was changed from the default.
  • Taxable: True or false, depending on whether the charge is taxable.
  • Promotion: True or false, depending on whether the charge is a promotion (discount) or not (a surcharge).
  • Automatic: True or false, depending on whether the charge is applied automatically.
  • Cost: The cost of the charge.
  • Amount: The amount of the charge.
  • UpdatedOn: The date/time when the charge was last updated.
purchaseorder:created payload
{
"site": {
"uniqueID": "5cf3c498-fffd-4a67-9143-d4f8219262cc",
"name": "My Blinds",
"subdomain": "myblinds",
"sid": 749339
},
"account": {
"UniqueID": "8d2a803f-c75e-4782-90e8-336be0ec1807",
"name": "South Side Location",
"email": "southsales@myblinds.com",
"phone": "(234) 567-8901",
"fax": "",
"website": "www.myblinds.com",
"accountID": "My Blinds South"
},
"user": {
"FirstName": "Joe",
"LastName": "Smith",
"UniqueID": "6f22f0ec-cd58-4ae9-bc35-a797955b1156",
"Email": "joe@myblinds.com",
"Phone": "456-847-8487"
},
"customer": {
"UniqueID": "a5b5a410-b321-4b45-a5b0-b10f96e6ca23",
"ExternalID": "",
"DisplayName": "Jack Black",
"FirstName": "Jack",
"LastName": "Black",
"MiddleInitial": "",
"CompanyName": "South Side Paints",
"AccountNumber": "73833",
"JobNumber": "12345",
"Active": true,
"SalesRep": "joe@myblinds.com",
"Installer": "",
"Terms": "Cash",
"LeadSource": "Friend",
"AppointmentType": "Initial Consult",
"Location": "",
"DiscountGroup": "Customer Discounts",
"CustomerType": "",
"AlternateInstaller": "",
"BillToAddress1": "",
"BillToAddress2": "",
"BillToCity": "",
"BillToState": "",
"BillToZip": "",
"BillToCountry": "",
"TaxExempt": false,
"TaxExemptReason": 0,
"TaxExemptDetails": "",
"Phones": [
{
"Primary": true,
"Sequence": 1,
"Label": "Work",
"Number": "738-887-3803",
"AddedOn": "2024-01-09T18:54:49.113",
"UpdatedOn": "2024-10-28T15:57:16.61"
},
{
"Primary": false,
"Sequence": 2,
"Label": "Mobile",
"Number": "738-887-3893",
"AddedOn": "2024-10-22T18:30:02.203",
"UpdatedOn": "2024-10-28T15:57:16.613"
}
],
"ShippingAddresses": null,
"Attachments": [
{
"uniqueid": "A04C28D3-929E-4CE7-B16E-2FDACA8BE13C",
"name": "livingroom.jpg",
"size": 36130,
"filename": "livingroom.jpg",
"url": "https://weboe2files.blob.core.windows.net/files/a04c28d3-929e-4ce7-b16e-2fdaca8be13c/livingroom.jpg",
"addedon": "2025-04-14T14:21:35.690"
}
],
"EmailAddresses": null,
"Links": [
{
"Type": 1,
"Name": "Google",
"URL": "www.google.com",
"RelateType": 0,
"RelateTarget": 0,
"RelateUniqueID": "00000000-0000-0000-0000-000000000000",
"AddedOn": "2025-04-11T16:30:16.113",
"UpdatedOn": "2025-04-11T16:30:16.113"
}
],
"Notes": null,
"Tags": null,
"TaxCodes": null
},
"sale":
{
"OrderNumber": 40,
"Sidemark": "Black 20250619",
"JobNumber": "12345",
"CustomerPONumber": "PO # 256544",
"Workflow": "Quote",
"Status": "Presented",
"QuoteCreatedOn": "2023-02-22 14:31:20.180",
"SaleCreatedOn": "2025-05-27 12:02.41.450",
"Subtotal1": 3011.00,
"Subtotal2": 2898.30,
"Total": 3119.97,
"Balance": 0,
"ItemsCost": 1271.25,
"OrderCost": 1271.25,
"SuggestedDepositPercent": 0.75,
"SuggestedDepositAmount": 2339.98,
"CCFeePercent": 0.04,
"CCFeeAmount": 115.93,
"RGA": false,
"Sent": false,
"Reprocess": false,
"UniqueID": "8E8FCC20-4B0E-4F7B-A2EE-440C5B7F6762",
"OnHold": true,
"OnHoldMessage": "Customer needs to wait a few months",
"Canceled": false,
"Closed": false,
"CustomerName": "Jack Black",
"SalesRep": "joe@myblinds.com",
"Installer": "",
"Terms": "50% Deposit",
"LeadSource": "Friend",
"DeliveryRange": "4-5 Weeks",
"AppointmentType": "",
"Location": "Archdale",
"AlternateInstaller": "",
"InstallationLabel": "Home",
"InstallationAddress1": "123 Main St",
"InstallationAddrss2": "",
"InstallationCity": "Greensboro",
"InstallationState": "NC",
"InstallationZip": "27401",
"InstallationCountry": "",
"InstallationName": "Jack Black",
"InstallationPhoneLabel": "Mobile",
"InstallationPhoneNumber": "738-887-3893",
"InstallationEmailLabel": "Home",
"InstallationEmailAddress": "jblack@gmail.com",
"Attachments": [
{
"uniqueid": "c808127e-eb03-4438-b589-76f4f8ca3c49",
"name": "livingroom.jpg",
"size": 36130,
"filename": "livingroom.jpg",
"url": "https://weboe2files.blob.core.windows.net/files/a04c28d3-929e-4ce7-b16e-2fdaca8be13c/livingroom.jpg",
"addedon": "2025-04-14T14:21:35.690"
}
],
"Comments": [
{
"CommentText": "This customer has a dog.",
"AddedOn": "2025-05-23T17:15:42.106",
"UpdatedOn": "2025-05-23T17:15:42.106"
}
],
"Links": null,
"Notes": null,
"Payments": [
{
"PaymentType": "American Express",
"ReferenceNumber": "12345",
"Amount": 101.23,
"Memo": "Remaining balance",
"AddedOn": "2025-05-29T14:40:25.436",
"UpdatedOn": "2025-05-29T14:40:25.436"
}
],
"Tags": [
{
"TagText": "june sales",
"Added On": "2025-05-23T17:17:02.284"
},
{
"TagText": "alta",
"Added On": "2025-05-23T17:17:05.328"
},
],
"TaxCodes": null,
"LineItems": [
{
"LineItemNumber": 1,
"Quantity": 3,
"ProductName": "GRA - Exterior Solar Shades",
"ProductType": "Roller Shades",
"Manufacturer": "Graber",
"ProductVersion": null,
"ProductDate": null,
"Style": "Continuous Loop",
"Taxable": false,
"Description": "w:64 | h:64 | SS Broadcast | Alfresco (47504) | Inside | Right | Standard Roll | val:No Valance (N) | PLEASE SELECT",
"ItemCost": 423.75,
"ItemPrice": 565.00,
"UniqueID": "5A2DE1D4-86B2-4991-B985-31EFC9A40B22",
"AddedOn": "2022-10-06T19:48:34.897",
"UpdatedOn": "2025-04-18T20:03:10.283"
}
],
"AdditionalCharges": [
{
"Group": "",
"Category": "Shipping",
"ChargeCode": "HG0WLVCV",
"Name": "Shipping & Handling",
"Quantity": 1,
"QuantityOverridden": false,
"Taxable": false,
"Promotion": false,
"Automatic": true,
"Cost": 0.00,
"Amount": 75.00,
"UpdatedOn": "2025-07-21 14:33:28.000"
}
]
},
"purchaseorder": {
"Vendor": "Graber",
"CustomerName": "Jack Black",
"PONumber": "40-1",
"CreatedOn": "2025-06-02T15:24:16.983",
"Total": 3119.97,
"VendorReferenceNumber": "SOLA40-1",
"AccountNumber": "ALT1",
"Sidemark": "Black 20250619",
"Installer": "joeblue@blues.com",
"Processed": false,
"Sent": 0,
"UniqueID": "F39962AB-6F66-4731-AD1A-0396D6F3D154",
"Attachments": null,
"Links": null,
"Notes": null,
"Tags": null,
"LineItems": [
{
"LineItemNumber": 1,
"Quantity": 3,
"ProductName": "GRA - Exterior Solar Shades",
"ProductType": "Roller Shades",
"Manufacturer": "Graber",
"ProductVersion": null,
"ProductDate": null,
"Style": "Continuous Loop",
"Taxable": false,
"Description": "w:64 | h:64 | SS Broadcast | Alfresco (47504) | Inside | Right | Standard Roll | val:No Valance (N) | PLEASE SELECT",
"ItemCost": 423.75,
"ItemPrice": 565.00,
"UniqueID": "5A2DE1D4-86B2-4991-B985-31EFC9A40B22",
"AddedOn": "2022-10-06T19:48:34.897",
"UpdatedOn": "2025-04-18T20:03:10.283",
"Options": [
{
"Name": "Room Location",
"Value": "Kitchen"
},
{
"Name": "Color",
"Value": "Ivory"
},
{
"Name": "Remarks",
"Value": null
}
]
}
],
"AdditionalCharges": [
{
"Group": "",
"Category": "Shipping",
"ChargeCode": "HG0WLVCV",
"Name": "Shipping & Handling",
"Quantity": 1,
"QuantityOverridden": false,
"Taxable": false,
"Promotion": false,
"Automatic": true,
"Cost": 0.00,
"Amount": 75.00,
"UpdatedOn": "2025-07-21 14:33:28.000"
}
]
}
}

Updated

A purchase order is updated. This payload, with an action key of purchaseorder:updated, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who updated the purchase order. See the Customer Create event for details.
customer
The customer to whom the purchase orderbelongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order that was updated. See the Purchase Order Create event for details.
purchaseorder:updated payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder
}

Deleted

A purchase order is deleted. This payload, with an action key of purchaseorder:deleted, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who updated the purchase order. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order that was deleted. See the Purchase Order Create event for details.
details
Details on the purchase order that was deleted. This is an object with the following properties:
  • ponumber: The PO number of the purchase order that was deleted.
  • uniqueid: The unique identifier of the purchase order that was deleted.
purchaseorder:deleted payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"ponumber": "503",
"uniqueid": "32a53eef-65c6-449c-8721-be167468ef5e"
}
}

Internal note created

An internal note is added to a purchase order. This payload, with an action key of purchaseorder:note_created, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who created the note. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order the note was created for. See the Purchase Order Create event for details.
details
Details on the note that was added. This is an object with the following properties:
  • note: The text of the note.
purchaseorder:note_created payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"note": "This was approved on 5/17."
}
}

Internal note updated

A note on a purchase order is updated. This payload, with an action key of purchaseorder:note_updated, provides the following fields:
Parameter
Description
site
The site that the purchase orderbelongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who updated the note. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order the note is for. See the Purchase Order Create event for details.
details
Details on the note that was added. This is an object with the following properties:
  • oldnote: The text of the note before it was changed.
  • newnote: The text of the note after it was changed.
purchaseorder:note_updated payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"oldnote": "This was approved on 5/17.",
"newnote": "The customer changed their mind on 5/19."
}
}

Internal note deleted

A note on a purchase order is deleted. This payload, with an action key of purchaseorder:note_deleted, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who deleted the note. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order the note was deleted for. See the Purchase Order Create event for details.
details
Details on the note that was deleted. This is an object with the following properties:
  • note: The text of the note that was deleted.
purchaseorder:note_deleted payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"note": "This was approved on 5/17."
}
}

Attachment added

A file is attached to a purchase order. This payload, with an action key of purchaseorder:attachment_added, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who created the attachment. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order the attachment was added for. See the Purchase Order Create event for details.
details
Details on the attachment that was added. See the Purchase Order Create event for details.
purchaseorder:attachment_added payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder
"details": {
"uniqueid": "A04C28D3-929E-4CE7-B16E-2FDACA8BE13C",
"name": "livingroom.jpg",
"size": 36130,
"filename": "livingroom.jpg",
"url": "https://weboe2files.blob.core.windows.net/files/a04c28d3-929e-4ce7-b16e-2fdaca8be13c/livingroom.jpg",
"addedon": "2025-04-14T14:21:35.690"
}
}

Attachment deleted

An attachment is removed from a purchase order. This payload, with an action key of purchaseorder:attachment_deleted, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who deleted the attachment. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order the attachment was deleted for. See the Purchase Order Create event for details.
details
Details on the attachment that was deleted. See the Purchase Order Create event for details.
purchaseorder:attachment_deleted payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder
"details": {
"uniqueid": "A04C28D3-929E-4CE7-B16E-2FDACA8BE13C",
"name": "livingroom.jpg",
"size": 36130,
"filename": "livingroom.jpg",
"url": "https://weboe2files.blob.core.windows.net/files/a04c28d3-929e-4ce7-b16e-2fdaca8be13c/livingroom.jpg",
"addedon": "2025-04-14T14:21:35.690"
}
}

Link created

A link is added to a purchase order. This payload, with an action key of purchaseorder:link_created, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who created the link. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order the link was added for. See the Purchase Order Create event for details.
details
Details on the link that was added. This is an object with the following properties:
  • name: The name given to the link.
  • type: A number that indicates the type of link.
  • 0 = An entity such as a customer or sale
  • 1 = An external URL.
  • url: For url links, the given url.
  • relatetype: A number that indicates the type of entity the link relates to:
  • 0 = relates to
  • 1 = duplicates
  • 2 = duplicated by
  • 3 = replaces
  • 4 = replaced by
  • relatetarget: A number that indicates the type of entity the link relates to:
  • 0 = Customer
  • 1 = Quote/Sale
  • 2 = Purchase Order
  • 3 = Vendor
  • 4 = Site Vendor
  • 5 = Account Vendor
  • relateuniqueid: The unique id of the entity the links relates to.
purchaseorder:link_created payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"type": 0,
"name": "Amazon",
"url": "https://amazon.com",
"relatetype": null,
"relatetarget": null,
"relateuniqueid": null
}
}

Link updated

A link on a purchase order is changed. This payload, with an action key of purchaseorder:link_updated, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who updated the link. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order the link was updated for. See the Purchase Order Create event for details.
details
Details on the link that was changed. This is an object with the following properties:
  • oldname: The old name given to the link.
  • newname: The new name given to the link.
  • oldtype: A number that indicates the old type of link. See the Link Created event for details.
  • newtype: A number that indicates the new type of link. See the Link Created event for details.
  • oldurl: For url links, the given old url.
  • newurl: For url links, the given new url.
  • oldrelatetype: A number that indicates the old type of entity the link relates to. See the Link Created event for details.
  • newrelatetype: A number that indicates the newtype of entity the link relates to. See the Link Created event for details.
  • oldrelatetarget: A number that indicates the old type of entity the link relates to. See the Link Created event for details.
  • newrelatetarget: A number that indicates the new type of entity the link relates to. See the Link Created event for details.
  • oldrelateuniqueid: The old unique id of the entity the links relates to.
  • newrelateuniqueid: The new unique id of the entity the links relates to.
purchaseorder:link_updated payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"oldname": "Google",
"newname": "Google Web Site",
"oldtype": 1,
"newtype": 1,
"oldurl": "www.google.com",
"newurl": "https://www.google.com",
"oldrelatetype": null,
"newrelatetype": null,
"oldrelatetarget": null,
"newrelatetarget": null,
"oldrelateuniqueid": null,
"newrelateuniqueid": null
}
}

Link deleted

A link on a purchase order is removed. This payload, with an action key of purchaseorder:link_deleted, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who deleted the link. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order the link was deleted for. See the Purchase Order Create event for details.
details
Details on the link that was deleted. See the Link created event for details.
purchaseorder:link_deleted payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"type": 0,
"name": "Amazon",
"url": "https://amazon.com",
"relatetype": null,
"relatetarget": null,
"relateuniqueid": null
}
}

Status changed

The status of the purchase order is changed. This payload, with an action key of purchaseorder:status_changed, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who changed the status. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order whose status is changing. See the Purchase Order Create event for details.
details
Details on the status that was changed. This is an object with the following properties:
  • name: The name of the new status.
  • uniqueid: The unique id of the new status.
purchaseorder:status_changed payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"name": "Pending Approval",
"uniqueid": "b6302987-0d07-414c-bda3-5734339a6dd5"
}
}

Workflow changed

The workflow of the purchase order is changed. This payload, with an action key of purchaseorder:workflow_changed, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who changed the workflow. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchase order
The purchase order whose workflow is changing. See the Purchase OrderCreate event for details.
details
Details on the workflow that was changed. This is an object with the following properties:
  • name: The name of the new workflow.
  • uniqueid: the unique id of the new workflow.
purchaseorder:workflow_changed payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"name": "Vendor Review",
"uniqueid": "b6302987-0d07-414c-bda3-5734339a6dd5"
}
}

Sent to QuickBooks Online

The purchase order is sent to QuickBooks. This payload, with an action key of purchaseorder:qbo_sent, provides the following fields:
Parameter
Description
site
The site that the purchase order belongs to. See the Customer Create event for details.
account
The account that the purchase order belongs to. See the Customer Create event for details.
user
The user who sent the purchase order to QuickBooks. See the Customer Create event for details.
customer
The customer to whom the purchase order belongs. See the Customer Create event for details.
sale
The sale from which the purchase order was created. See the Sale Create event for details.
purchaseorder
The purchase order that has been sent to QuickBooks. See the Purchase Order Create event for details.
details
Details on the time the purchase order was sent. This is an object with the following properties:
  • sent: The date/time, in UTC, when the purchase order was sent to QuickBooks.
purchaseorder:qbo_sent payload
{
"site": site,
"account": account,
"user": user,
"customer": customer,
"sale": sale,
"purchaseorder": purchaseorder,
"details": {
"sent": "2022-10-06T19:48:34.897"
}
}