Purchase Orders
This is an object representing a Fishbowl purchase order. Purchase orders are used to buy inventory items from your vendors.
Related guide: Purchase Orders
ENDPOINTS
The purchase order object
Attributes
-
id integerThe purchase order's unique identification number.
-
number stringThe purchase order number.
-
status stringThe order status.
-
class reference objectThe class category.
-
carrier reference objectThe shipping carrier.
-
fobPointName stringIndicates when ownership/liability of the order transfers to the purchaser.
-
paymentTerms reference objectThe terms of payment on the order.
-
shipTerms stringThe shipping terms on the order.
-
type string: 'Standard' | 'Drop Ship'Indicates whether the order is a standard or drop ship purchase order.
-
vendor reference objectThe vendor on the purchase order.
-
vendorSoNumber stringThe vendor sales order number.
-
customerSoNumber stringThe customer sales order number.
-
buyer reference objectThe Fishbowl user that created the order.
-
deliverTo stringThe intended recipient of the order.
-
revisionNumber integerThe revision number.
-
lastModified objectTimestamp of when the order was last modified and the user that made the modifications.
-
issuedByUser objectTimestamp of when the order was issued and the user that made the modifications.
-
dateCreated dateTimestamp of when the order was created.
-
dateConfirmed dateTimestamp of when the order was confirmed by the vendor.
-
dateRevision dateTimestamp of when the order was last revised.
-
dateScheduled dateTimestamp of when the order was scheduled.
-
dateCompleted dateTimestamp of when the order was completed.
-
taxRate reference objectThe tax rate on the order. This object is ignored for companies in the United States.
-
totalTax moneyThe total amount of tax on the order.
-
totalIncludesTax booleanIndicates if the order total includes tax.
-
locationGroup reference objectThe location group the order belongs to.
-
note stringThe order's note field.
-
url stringThe url link on the order.
-
currency reference objectThe currency used on the order.
-
email stringThe vendor's email address for the order.
-
phone stringThe vendor's phone number for the order.
-
shipToAddress objectThe shipping address on the order.
-
remitToAddress objectThe remit to address on the order.
-
poItems listA list of the purchase order items.
-
customFields listA list of custom fields associated with the order.
THE PURCHASE ORDER OBJECT
{
"id": 72,
"number": "50071",
"carrier": {
"id": 5,
"name": "USPS"
},
"fobPointName": "Origin",
"paymentTerms": {
"id": 4,
"name": "Net 30"
},
"vendor": {
"id": 17,
"name": "Brent's Bicycle Brakes"
},
"vendorSoNumber": "S108",
"customerSoNumber": "10086",
"vendorContact": "Brent's Bicycle Brakes",
"buyer": {
"id": 1,
"name": "admin"
},
"deliverTo": "Allan's Raceway",
"revisionNumber": 3,
"lastModified": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.493-0700"
},
"issuedByUser": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.490-0700"
},
"dateCreated": "2020-11-18T00:00:00.000-0700",
"dateConfirmed": "2020-11-18T15:44:40.886-0700",
"dateRevision": "2020-11-18T15:44:40.839-0700",
"dateScheduled": "2020-11-18T00:00:00.000-0700",
"dateCompleted": "2020-11-20T00:00:00.000-0700",
"taxRate": {
"id": 0,
"name": "None"
},
"totalTax": "0",
"totalIncludesTax": false,
"locationGroup": {
"id": 5,
"name": "SLC"
},
"note": "Created for SO #10086",
"url": "",
"currency": {
"id": 1,
"name": "US Dollar",
"code": "USD",
"rate": "1",
"homeCurrency": true
},
"email": "brent@example.com",
"phone": "801-932-1101",
"shipToAddress": {
"name": "Allan's Raceway",
"street": "2222 Wrecker's Blvd",
"city": "Santa Barbara",
"state": "CA",
"postalCode": "93101",
"country": "UNITED STATES"
},
"remitToAddress": {
"name": "Brent's Bicycle Brakes",
"street": "777 South Delivery Lane",
"city": "Salt Lake City",
"state": "UT",
"postalCode": "84111",
"country": "UNITED STATES"
},
"status": "Issued",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"shipTerms": "Prepaid & Billed",
"type": "Drop Ship",
"poItems": [
{
"id": 182,
"part": {
"id": 28,
"name": "B201",
"description": "Premium Brake Cables"
},
"type": {
"id": 10,
"name": "Purchase"
},
"lineNumber": 1,
"vendorPartNumber": "B1-7878",
"quantity": "1",
"quantityFulfilled": "0",
"quantityPicked": "0",
"unitCost": "9",
"totalCost": "9",
"mcTotalCost": "9",
"taxRate": {
"id": 1,
"name": "None",
"rate": 0
},
"dateScheduledFulfillment": "2020-11-18T15:44:34.096-0700",
"revision": "",
"note": "",
"customer": {
"id": 52,
"name": "Allan's Raceway"
},
"uom": {
"id": 1,
"name": "Each",
"abbreviation": "ea"
},
"status": "Entered",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"customFields": []
}
],
"customFields": [
{
"id": 19,
"name": "Custom",
"value": "My Custom Field",
"type": "Text"
}
]
}
Search for purchase orders
Searches for purchase orders.
Parameters
-
pageNumber integerThe current page of the results.
-
pageSize integerThe number of returned results per page. (Default 100)
-
poNumber stringThe purchase order number.
-
poType string: 'Standard' | 'Drop Ship'Indicates whether the order is a standard or drop ship purchase order.
-
vendorSoNumber stringThe vendor sales order number.
-
issuedFrom date: 'yyyy-MM-dd'The start issued date cutoff for the search.
-
issuedTo date: 'yyyy-MM-dd'The end issued date cutoff for the search.
-
fulfilledFrom date: 'yyyy-MM-dd'The start fulfilled date cutoff for the search.
-
fulfilledTo date: 'yyyy-MM-dd'The end fulfilled date cutoff for the search.
-
vendorName stringThe name of the vendor.
-
partNumber stringThe part number.
-
partDescription stringThe description on the part.
-
partDetails stringThe details for the part.
-
status string: 'All' | 'All Open' | 'Bid Request' | 'Pending Approval' | 'Issued' | 'Picking' | 'Partial' | 'Picked' | 'Shipped' | 'Fulfilled' | 'Closed Short' | 'Void' | 'Historical'The order status.
-
customSoNumber stringThe customer sales order number.
-
locationGroupId integerThe unique identifier for the location group on the order.
-
vendorPartNumber stringThe number for the vendor part.
-
buyerId integerThe unique identifier for the salesperson on the order.
-
remitTo stringThe vendor address on the order.
-
shipTo stringThe ship to address on the order.
-
customerName stringThe name of the customer or job on the order.
Attributes
-
customFields listA list of the order's custom fields.
GET /api/purchase-orders
curl --location \ --request GET '<YOUR SERVER>/api/purchase-orders' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <TOKEN>'
RESPONSE
{
"totalCount": 73,
"totalPages": 37,
"pageNumber": 1,
"pageSize": 2,
"results": [
{
"id": 10,
"number": "10",
"vendorName": "A&B Distribution",
"dateIssued": "2020-10-01T17:58:04.821-0600",
"dateScheduled": "2020-08-02T08:54:21.000-0600",
"status": "Fulfilled"
},
{
"id": 73,
"number": "100",
"vendorName": "A&B Distribution",
"dateIssued": "2020-11-23T11:42:58.984-0700",
"dateScheduled": "2020-11-23T00:00:00.000-0700",
"status": "Void"
}
]
}
Get a purchase order
Retrieves the details of an existing purchase order. You only need to provide the unique purchase order ID.
Attributes
No attributes.
GET /api/purchase-orders/:id
curl --location \ --request GET '<YOUR SERVER>/api/purchase-orders/:id' \ --header 'Authorization: Bearer <TOKEN>'
RESPONSE
{
"id": 72,
"number": "50071",
"carrier": {
"id": 5,
"name": "USPS"
},
"fobPointName": "Origin",
"paymentTerms": {
"id": 4,
"name": "Net 30"
},
"vendor": {
"id": 17,
"name": "Brent's Bicycle Brakes"
},
"vendorSoNumber": "S108",
"customerSoNumber": "10086",
"vendorContact": "Brent's Bicycle Brakes",
"buyer": {
"id": 1,
"name": "admin"
},
"deliverTo": "Allan's Raceway",
"revisionNumber": 3,
"lastModified": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.493-0700"
},
"issuedByUser": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.490-0700"
},
"dateCreated": "2020-11-18T00:00:00.000-0700",
"dateRevision": "2020-11-18T15:44:40.839-0700",
"dateScheduled": "2020-11-18T00:00:00.000-0700",
"totalTax": "0",
"totalIncludesTax": false,
"locationGroup": {
"id": 5,
"name": "SLC"
},
"note": "Created for SO #10086",
"url": "",
"currency": {
"id": 1,
"name": "US Dollar",
"code": "USD",
"rate": "1",
"homeCurrency": true
},
"email": "brent@example.com",
"phone": "801-932-1101",
"shipToAddress": {
"name": "Allan's Raceway",
"street": "2222 Wrecker's Blvd",
"city": "Santa Barbara",
"state": "CA",
"postalCode": "93101",
"country": "UNITED STATES"
},
"remitToAddress": {
"name": "Brent's Bicycle Brakes",
"street": "777 South Delivery Lane",
"city": "Salt Lake City",
"state": "UT",
"postalCode": "84111",
"country": "UNITED STATES"
},
"status": "Issued",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"shipTerms": "Prepaid & Billed",
"type": "Drop Ship",
"poItems": [
{
"id": 182,
"part": {
"id": 28,
"name": "B201",
"description": "Premium Brake Cables"
},
"type": {
"id": 10,
"name": "Purchase"
},
"lineNumber": 1,
"vendorPartNumber": "B1-7878",
"quantity": "1",
"quantityFulfilled": "0",
"quantityPicked": "0",
"unitCost": "9",
"totalCost": "9",
"mcTotalCost": "9",
"taxRate": {
"id": 1,
"name": "None",
"rate": 0
},
"dateScheduledFulfillment": "2020-11-18T15:44:34.096-0700",
"revision": "",
"note": "",
"customer": {
"id": 52,
"name": "Allan's Raceway"
},
"uomId": {
"id": 1,
"name": "Each",
"abbreviation": "ea"
},
"status": "Entered",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"customFields": []
}
],
"customFields": [
{
"id": 19,
"name": "Custom",
"value": "My Custom Field",
"type": "Text"
}
]
}
Create a purchase order
Creates a purchase order.
Attributes
-
number string optionalThe purchase order number.
-
status string optionalThe order status.
-
class reference object optionalThe class category.
-
carrier reference object optionalThe shipping carrier.
-
fobPointName string optionalIndicates when ownership/liability of the order transfers to the purchaser.
-
paymentTerms reference object optionalThe terms of payment on the order.
-
shipTerms string optionalThe shipping terms on the order.
-
vendor reference objectThe vendor on the purchase order.
-
vendorSoNumber string optionalThe vendor sales order number.
-
customerSoNumber string optionalThe customer sales order number.
-
buyer reference object optionalThe Fishbowl user that created the order.
-
deliverTo string optionalThe intended recipient of the order.
-
revisionNumber integer optionalThe revision number.
-
dateCreated date optionalTimestamp of when the order was created.
-
dateConfirmed date optionalTimestamp of when the order was confirmed by the vendor.
-
dateScheduled date optionalTimestamp of when the order is scheduled to be fulfilled.
-
taxRate reference object optionalThe tax rate on the order. For international orders.
-
totalIncludesTax boolean optionalIndicates if the order total includes tax. For international orders.
-
locationGroup reference object optionalThe location group the order belongs to.
-
note string optionalThe order's note field.
-
url string optionalThe url link on the order.
-
currency reference object optionalThe currency used on the order.
-
email string optionalThe vendor's email address for the order.
-
phone string optionalThe vendor's phone number for the order.
-
shipToAddress object optionalThe shipping address on the order.
-
remitToAddress object optionalThe remit to address on the order.
-
poItems list optionalA list of the purchase order items.
-
customFields list optionalA list of the order's custom fields.
POST /api/purchase-orders
curl --location \ --request POST '<YOUR SERVER>/api/purchase-orders' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <TOKEN>' \ --data-raw '<PO JSON>'
RESPONSE
{
"id": 72,
"number": "50071",
"carrier": {
"id": 5,
"name": "USPS",
"service": {
"id": 16,
"name": "Priority Mail"
}
},
"fobPointName": "Origin",
"paymentTerms": {
"id": 4,
"name": "Net 30"
},
"vendor": {
"id": 17,
"name": "Brent's Bicycle Brakes"
},
"vendorSoNumber": "S108",
"customerSoNumber": "10086",
"vendorContact": "Brent's Bicycle Brakes",
"buyer": {
"id": 1,
"name": "admin"
},
"deliverTo": "Allan's Raceway",
"revisionNumber": 3,
"lastModified": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.493-0700"
},
"issuedByUser": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.490-0700"
},
"dateCreated": "2020-11-18T00:00:00.000-0700",
"dateRevision": "2020-11-18T15:44:40.839-0700",
"dateScheduled": "2020-11-18T00:00:00.000-0700",
"totalTax": "0",
"totalIncludesTax": false,
"locationGroup": {
"id": 5,
"name": "SLC"
},
"note": "Created for SO #10086",
"url": "",
"currency": {
"id": 1,
"name": "US Dollar",
"code": "USD",
"rate": "1",
"homeCurrency": true
},
"email": "brent@example.com",
"phone": "801-932-1101",
"shipToAddress": {
"name": "Allan's Raceway",
"street": "2222 Wrecker's Blvd",
"city": "Santa Barbara",
"state": "CA",
"postalCode": "93101",
"country": "UNITED STATES"
},
"remitToAddress": {
"name": "Brent's Bicycle Brakes",
"street": "777 South Delivery Lane",
"city": "Salt Lake City",
"state": "UT",
"postalCode": "84111",
"country": "UNITED STATES"
},
"status": "Issued",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"shipTerms": "Prepaid & Billed",
"type": "Drop Ship",
"poItems": [
{
"id": 182,
"part": {
"id": 28,
"name": "B201",
"description": "Premium Brake Cables"
},
"type": {
"id": 10,
"name": "Purchase"
},
"lineNumber": 1,
"vendorPartNumber": "B1-7878",
"quantity": "1",
"quantityFulfilled": "0",
"quantityPicked": "0",
"unitCost": "9",
"totalCost": "9",
"mcTotalCost": "9",
"taxRate": {
"id": 1,
"name": "None",
"rate": 0
},
"dateScheduledFulfillment": "2020-11-18T15:44:34.096-0700",
"revision": "",
"note": "",
"customer": {
"id": 52,
"name": "Allan's Raceway"
},
"uomId": {
"id": 1,
"name": "Each",
"abbreviation": "ea"
},
"status": "Entered",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"customFields": []
}
],
"customFields": [
{
"id": 19,
"name": "Custom",
"value": "My Custom Field",
"type": "Text"
}
]
}
Update a purchase order
Updates a purchase order. Optional parameters that are not passed in will be reset to their default values. Best practice is to send the complete object you would like to save.
Attributes
-
number string optionalThe purchase order number.
-
class reference object optionalThe class category.
-
carrier reference object optionalThe shipping carrier.
-
fobPointName string optionalIndicates when ownership/liability of the order transfers to the purchaser.
-
paymentTerms reference object optionalThe terms of payment on the order.
-
shipTerms string optionalThe shipping terms on the order.
-
vendor reference objectThe vendor on the purchase order.
-
vendorSoNumber string optionalThe vendor sales order number.
-
customerSoNumber string optionalThe customer sales order number.
-
buyer reference object optionalThe Fishbowl user that created the order.
-
deliverTo string optionalThe intended recipient of the order.
-
revisionNumber integer optionalThe revision number.
-
dateConfirmed date optionalTimestamp of when the order was confirmed by the vendor.
-
dateScheduled date optionalTimestamp of when the order is scheduled to be fulfilled.
-
taxRate reference object optionalThe tax rate on the order. For international orders.
-
totalIncludesTax boolean optionalIndicates if the order total includes tax. For international orders.
-
locationGroup reference object optionalThe location group the order belongs to.
-
note string optionalThe order's note field.
-
url string optionalThe url link on the order.
-
currency reference object optionalThe currency used on the order.
-
email string optionalThe vendor's email address for the order.
-
phone string optionalThe vendor's phone number for the order.
-
shipToAddress object optionalThe shipping address on the order.
-
remitToAddress object optionalThe remit to address on the order.
-
poItems list optionalA list of the purchase order items.
-
customFields list optionalA list of the order's custom fields.
POST /api/purchase-orders/:id
curl --location \ --request POST '<YOUR SERVER>/api/purchase-orders/:id' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <TOKEN>' \ --data-raw '<PO JSON>'
RESPONSE
{
"id": 72,
"number": "50071",
"carrier": {
"id": 5,
"name": "USPS"
},
"fobPointName": "Origin",
"paymentTerms": {
"id": 4,
"name": "Net 30"
},
"vendor": {
"id": 17,
"name": "Brent's Bicycle Brakes"
},
"vendorSoNumber": "S108",
"customerSoNumber": "10086",
"vendorContact": "Brent's Bicycle Brakes",
"buyer": {
"id": 1,
"name": "admin"
},
"deliverTo": "Allan's Raceway",
"revisionNumber": 3,
"lastModified": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.493-0700"
},
"issuedByUser": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.490-0700"
},
"dateCreated": "2020-11-18T00:00:00.000-0700",
"dateRevision": "2020-11-18T15:44:40.839-0700",
"dateScheduled": "2020-11-18T00:00:00.000-0700",
"totalTax": "0",
"totalIncludesTax": false,
"locationGroup": {
"id": 5,
"name": "SLC"
},
"note": "Created for SO #10086",
"url": "",
"currency": {
"id": 1,
"name": "US Dollar",
"code": "USD",
"rate": "1",
"homeCurrency": true
},
"email": "brent@example.com",
"phone": "801-932-1101",
"shipToAddress": {
"name": "Allan's Raceway",
"street": "2222 Wrecker's Blvd",
"city": "Santa Barbara",
"state": "CA",
"postalCode": "93101",
"country": "UNITED STATES"
},
"remitToAddress": {
"name": "Brent's Bicycle Brakes",
"street": "777 South Delivery Lane",
"city": "Salt Lake City",
"state": "UT",
"postalCode": "84111",
"country": "UNITED STATES"
},
"status": "Issued",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"shipTerms": "Prepaid & Billed",
"type": "Drop Ship",
"poItems": [
{
"id": 182,
"part": {
"id": 28,
"name": "B201",
"description": "Premium Brake Cables"
},
"type": {
"id": 10,
"name": "Purchase"
},
"lineNumber": 1,
"vendorPartNumber": "B1-7878",
"quantity": "1",
"quantityFulfilled": "0",
"quantityPicked": "0",
"unitCost": "9",
"totalCost": "9",
"mcTotalCost": "9",
"taxRate": {
"id": 1,
"name": "None",
"rate": 0
},
"dateScheduledFulfillment": "2020-11-18T15:44:34.096-0700",
"revision": "",
"note": "",
"customer": {
"id": 52,
"name": "Allan's Raceway"
},
"uomId": {
"id": 1,
"name": "Each",
"abbreviation": "ea"
},
"status": "Entered",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"customFields": []
}
],
"customFields": [
{
"id": 19,
"name": "Custom",
"value": "My Custom Field",
"type": "Text"
}
]
}
Issue a purchase order
Issues the purchase order with the specified ID.
Attributes
No attributes.
POST /api/purchase-orders/:id/issue
curl --location \ --request POST '<YOUR SERVER>/api/purchase-orders/:id/issue' \ --header 'Authorization: Bearer <TOKEN>'
RESPONSE
{
"id": 72,
"number": "50071",
"carrier": {
"id": 5,
"name": "USPS"
},
"fobPointName": "Origin",
"paymentTerms": {
"id": 4,
"name": "Net 30"
},
"vendor": {
"id": 17,
"name": "Brent's Bicycle Brakes"
},
"vendorSoNumber": "S108",
"customerSoNumber": "10086",
"vendorContact": "Brent's Bicycle Brakes",
"buyer": {
"id": 1,
"name": "admin"
},
"deliverTo": "Allan's Raceway",
"revisionNumber": 3,
"lastModified": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.493-0700"
},
"issuedByUser": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.490-0700"
},
"dateCreated": "2020-11-18T00:00:00.000-0700",
"dateRevision": "2020-11-18T15:44:40.839-0700",
"dateScheduled": "2020-11-18T00:00:00.000-0700",
"totalTax": "0",
"totalIncludesTax": false,
"locationGroup": {
"id": 5,
"name": "SLC"
},
"note": "Created for SO #10086",
"url": "",
"currency": {
"id": 1,
"name": "US Dollar",
"code": "USD",
"rate": "1",
"homeCurrency": true
},
"email": "brent@example.com",
"phone": "801-932-1101",
"shipToAddress": {
"name": "Allan's Raceway",
"street": "2222 Wrecker's Blvd",
"city": "Santa Barbara",
"state": "CA",
"postalCode": "93101",
"country": "UNITED STATES"
},
"remitToAddress": {
"name": "Brent's Bicycle Brakes",
"street": "777 South Delivery Lane",
"city": "Salt Lake City",
"state": "UT",
"postalCode": "84111",
"country": "UNITED STATES"
},
"status": "Issued",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"shipTerms": "Prepaid & Billed",
"type": "Drop Ship",
"poItems": [
{
"id": 182,
"part": {
"id": 28,
"name": "B201",
"description": "Premium Brake Cables"
},
"type": {
"id": 10,
"name": "Purchase"
},
"lineNumber": 1,
"vendorPartNumber": "B1-7878",
"quantity": "1",
"quantityFulfilled": "0",
"quantityPicked": "0",
"unitCost": "9",
"totalCost": "9",
"mcTotalCost": "9",
"taxRate": {
"id": 1,
"name": "None",
"rate": 0
},
"dateScheduledFulfillment": "2020-11-18T15:44:34.096-0700",
"revision": "",
"note": "",
"customer": {
"id": 52,
"name": "Allan's Raceway"
},
"uomId": {
"id": 1,
"name": "Each",
"abbreviation": "ea"
},
"status": "Entered",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"customFields": []
}
],
"customFields": [
{
"id": 19,
"name": "Custom",
"value": "My Custom Field",
"type": "Text"
}
]
}
Unissue a purchase order
Unissues the purchase order with the specified ID.
Attributes
No attributes.
POST /api/purchase-orders/:id/unissue
curl --location \ --request POST '<YOUR SERVER>/api/purchase-orders/:id/unissue' \ --header 'Authorization: Bearer <TOKEN>'
RESPONSE
{
"id": 72,
"number": "50071",
"carrier": {
"id": 5,
"name": "USPS"
},
"fobPointName": "Origin",
"paymentTerms": {
"id": 4,
"name": "Net 30"
},
"vendor": {
"id": 17,
"name": "Brent's Bicycle Brakes"
},
"vendorSoNumber": "S108",
"customerSoNumber": "10086",
"vendorContact": "Brent's Bicycle Brakes",
"buyer": {
"id": 1,
"name": "admin"
},
"deliverTo": "Allan's Raceway",
"revisionNumber": 3,
"lastModified": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.493-0700"
},
"issuedByUser": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.490-0700"
},
"dateCreated": "2020-11-18T00:00:00.000-0700",
"dateRevision": "2020-11-18T15:44:40.839-0700",
"dateScheduled": "2020-11-18T00:00:00.000-0700",
"totalTax": "0",
"totalIncludesTax": false,
"locationGroup": {
"id": 5,
"name": "SLC"
},
"note": "Created for SO #10086",
"url": "",
"currency": {
"id": 1,
"name": "US Dollar",
"code": "USD",
"rate": "1",
"homeCurrency": true
},
"email": "brent@example.com",
"phone": "801-932-1101",
"shipToAddress": {
"name": "Allan's Raceway",
"street": "2222 Wrecker's Blvd",
"city": "Santa Barbara",
"state": "CA",
"postalCode": "93101",
"country": "UNITED STATES"
},
"remitToAddress": {
"name": "Brent's Bicycle Brakes",
"street": "777 South Delivery Lane",
"city": "Salt Lake City",
"state": "UT",
"postalCode": "84111",
"country": "UNITED STATES"
},
"status": "Bid Request",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"shipTerms": "Prepaid & Billed",
"type": "Drop Ship",
"poItems": [
{
"id": 182,
"part": {
"id": 28,
"name": "B201",
"description": "Premium Brake Cables"
},
"type": {
"id": 10,
"name": "Purchase"
},
"lineNumber": 1,
"vendorPartNumber": "B1-7878",
"quantity": "1",
"quantityFulfilled": "0",
"quantityPicked": "0",
"unitCost": "9",
"totalCost": "9",
"mcTotalCost": "9",
"taxRate": {
"id": 1,
"name": "None",
"rate": 0
},
"dateScheduledFulfillment": "2020-11-18T15:44:34.096-0700",
"revision": "",
"note": "",
"customer": {
"id": 52,
"name": "Allan's Raceway"
},
"uomId": {
"id": 1,
"name": "Each",
"abbreviation": "ea"
},
"status": "Entered",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"customFields": []
}
],
"customFields": [
{
"id": 19,
"name": "Custom",
"value": "My Custom Field",
"type": "Text"
}
]
}
Close short a purchase order
Close shorts the purchase order with the specified ID.
Attributes
No attributes.
POST /api/purchase-orders/:id/close-short
curl --location \ --request POST '<YOUR SERVER>/api/purchase-orders/:id/close-short' \ --header 'Authorization: Bearer <TOKEN>'
RESPONSE
{
"id": 83,
"number": "200",
"carrier": {
"id": 1,
"name": "Will Call"
},
"fobPointName": "Origin",
"paymentTerms": {
"id": 1,
"name": "COD"
},
"vendor": {
"id": 22,
"name": "A&B Distribution"
},
"vendorSoNumber": "",
"customerSoNumber": "",
"vendorContact": "A&B Distribution",
"buyer": {
"id": 1,
"name": "admin"
},
"deliverTo": "",
"revisionNumber": 4,
"lastModified": {
"username": "admin",
"dateLastModified": "2021-03-26T11:24:27.393-0600"
},
"issuedByUser": {
"username": "admin",
"dateLastModified": "2021-03-17T09:52:45.346-0600"
},
"dateCreated": "2021-03-17T00:00:00.000-0600",
"dateScheduled": "2021-03-17T00:00:00.000-0600",
"dateCompleted": "2021-03-26T11:24:27.388-0600",
"totalTax": "0",
"totalCost": "5",
"mcTotalTax": "0",
"mcTotalCost": "5",
"totalIncludesTax": false,
"locationGroup": {
"id": 5,
"name": "SLC"
},
"note": "",
"url": "",
"currency": {
"id": 1,
"name": "US Dollar",
"code": "USD",
"rate": "1",
"homeCurrency": true
},
"email": "",
"phone": "801-932-1101",
"shipToAddress": {
"name": "Fishbowl Bikes",
"street": "580 Technology Way",
"city": "Orem",
"state": "UT",
"postalCode": "84097",
"country": "UNITED STATES"
},
"remitToAddress": {
"name": "A&B Distribution",
"street": "432 Vine St.",
"city": "Los Angeles",
"state": "CA",
"postalCode": "91775",
"country": "UNITED STATES"
},
"status": "Closed Short",
"class": {
"id": 1,
"name": "None"
},
"shipTerms": "Prepaid & Billed",
"type": "Standard",
"poItems": [
{
"id": 194,
"part": {
"id": 28,
"name": "B201",
"description": "Premium Brake Cables"
},
"type": {
"id": 10,
"name": "Purchase"
},
"uom": {
"id": 1,
"name": "Each",
"abbreviation": "ea"
},
"lineNumber": 1,
"vendorPartNumber": "B201",
"unitCost": "5",
"totalTax": "0",
"totalCost": "5",
"mcTotalTax": "0",
"mcTotalCost": "5",
"taxRate": {
"id": 1,
"name": "None",
"rate": 0
},
"dateLastFulfilled": "2021-03-26T11:24:27.381-0600",
"dateScheduled": "2021-03-17T09:52:24.126-0600",
"revision": "",
"note": "",
"status": "Closed Short",
"quantity": "1",
"quantityFulfilled": "1",
"quantityPicked": "0",
"class": {
"id": 1,
"name": "None"
},
"customFields": []
}
],
"customFields": [
{
"id": 19,
"name": "Custom",
"value": "My Custom Field",
"type": "Text"
}
]
}
Close short a purchase order item
Close shorts the purchase order item with the specified ID.
Attributes
No attributes.
POST /api/purchase-orders/:id/close-short/:poItemId
curl --location \ --request POST '<YOUR SERVER>/api/purchase-orders/:id/close-short/:poItemId' \ --header 'Authorization: Bearer <TOKEN>'
RESPONSE
{
"id": 83,
"number": "200",
"carrier": {
"id": 1,
"name": "Will Call"
},
"fobPointName": "Origin",
"paymentTerms": {
"id": 1,
"name": "COD"
},
"vendor": {
"id": 22,
"name": "A&B Distribution"
},
"vendorSoNumber": "",
"customerSoNumber": "",
"vendorContact": "A&B Distribution",
"buyer": {
"id": 1,
"name": "admin"
},
"deliverTo": "",
"revisionNumber": 4,
"lastModified": {
"username": "admin",
"dateLastModified": "2021-03-26T11:24:27.393-0600"
},
"issuedByUser": {
"username": "admin",
"dateLastModified": "2021-03-17T09:52:45.346-0600"
},
"dateCreated": "2021-03-17T00:00:00.000-0600",
"dateScheduled": "2021-03-17T00:00:00.000-0600",
"dateCompleted": "2021-03-26T11:24:27.388-0600",
"totalTax": "0",
"totalCost": "5",
"mcTotalTax": "0",
"mcTotalCost": "5",
"totalIncludesTax": false,
"locationGroup": {
"id": 5,
"name": "SLC"
},
"note": "",
"url": "",
"currency": {
"id": 1,
"name": "US Dollar",
"code": "USD",
"rate": "1",
"homeCurrency": true
},
"email": "",
"phone": "801-932-1101",
"shipToAddress": {
"name": "Fishbowl Bikes",
"street": "580 Technology Way",
"city": "Orem",
"state": "UT",
"postalCode": "84097",
"country": "UNITED STATES"
},
"remitToAddress": {
"name": "A&B Distribution",
"street": "432 Vine St.",
"city": "Los Angeles",
"state": "CA",
"postalCode": "91775",
"country": "UNITED STATES"
},
"status": "Closed Short",
"class": {
"id": 1,
"name": "None"
},
"shipTerms": "Prepaid & Billed",
"type": "Standard",
"poItems": [
{
"id": 194,
"part": {
"id": 28,
"name": "B201",
"description": "Premium Brake Cables"
},
"type": {
"id": 10,
"name": "Purchase"
},
"uom": {
"id": 1,
"name": "Each",
"abbreviation": "ea"
},
"lineNumber": 1,
"vendorPartNumber": "B201",
"unitCost": "5",
"totalTax": "0",
"totalCost": "5",
"mcTotalTax": "0",
"mcTotalCost": "5",
"taxRate": {
"id": 1,
"name": "None",
"rate": 0
},
"dateLastFulfilled": "2021-03-26T11:24:27.381-0600",
"dateScheduled": "2021-03-17T09:52:24.126-0600",
"revision": "",
"note": "",
"status": "Closed Short",
"quantity": "1",
"quantityFulfilled": "1",
"quantityPicked": "0",
"class": {
"id": 1,
"name": "None"
},
"customFields": []
}
],
"customFields": [
{
"id": 19,
"name": "Custom",
"value": "My Custom Field",
"type": "Text"
}
]
}
Void a purchase order
Voids the purchase order with the specified ID.
Attributes
No attributes.
POST /api/purchase-orders/:id/void
curl --location \ --request POST '<YOUR SERVER>/api/purchase-orders/:id/void' \ --header 'Authorization: Bearer <TOKEN>'
RESPONSE
{
"id": 72,
"number": "50071",
"carrier": {
"id": 5,
"name": "USPS"
},
"fobPointName": "Origin",
"paymentTerms": {
"id": 4,
"name": "Net 30"
},
"vendor": {
"id": 17,
"name": "Brent's Bicycle Brakes"
},
"vendorSoNumber": "S108",
"customerSoNumber": "10086",
"vendorContact": "Brent's Bicycle Brakes",
"buyer": {
"id": 1,
"name": "admin"
},
"deliverTo": "Allan's Raceway",
"revisionNumber": 3,
"lastModified": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.493-0700"
},
"issuedByUser": {
"username": "admin",
"dateLastModified": "2021-02-24T13:49:20.490-0700"
},
"dateCreated": "2020-11-18T00:00:00.000-0700",
"dateRevision": "2020-11-18T15:44:40.839-0700",
"dateScheduled": "2020-11-18T00:00:00.000-0700",
"totalTax": "0",
"totalIncludesTax": false,
"locationGroup": {
"id": 5,
"name": "SLC"
},
"note": "Created for SO #10086",
"url": "",
"currency": {
"id": 1,
"name": "US Dollar",
"code": "USD",
"rate": "1",
"homeCurrency": true
},
"email": "brent@example.com",
"phone": "801-932-1101",
"shipToAddress": {
"name": "Allan's Raceway",
"street": "2222 Wrecker's Blvd",
"city": "Santa Barbara",
"state": "CA",
"postalCode": "93101",
"country": "UNITED STATES"
},
"remitToAddress": {
"name": "Brent's Bicycle Brakes",
"street": "777 South Delivery Lane",
"city": "Salt Lake City",
"state": "UT",
"postalCode": "84111",
"country": "UNITED STATES"
},
"status": "Void",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"shipTerms": "Prepaid & Billed",
"type": "Drop Ship",
"poItems": [
{
"id": 182,
"part": {
"id": 28,
"name": "B201",
"description": "Premium Brake Cables"
},
"type": {
"id": 10,
"name": "Purchase"
},
"lineNumber": 1,
"vendorPartNumber": "B1-7878",
"quantity": "1",
"quantityFulfilled": "0",
"quantityPicked": "0",
"unitCost": "9",
"totalCost": "9",
"mcTotalCost": "9",
"taxRate": {
"id": 1,
"name": "None",
"rate": 0
},
"dateScheduledFulfillment": "2020-11-18T15:44:34.096-0700",
"revision": "",
"note": "",
"customer": {
"id": 52,
"name": "Allan's Raceway"
},
"uomId": {
"id": 1,
"name": "Each",
"abbreviation": "ea"
},
"status": "Void",
"class": {
"id": 12,
"name": "LA:LA Store"
},
"customFields": []
}
],
"customFields": [
{
"id": 19,
"name": "Custom",
"value": "My Custom Field",
"type": "Text"
}
]
}
Delete a purchase order
Deletes the purchase order with the specified ID.
Attributes
No attributes.
DELETE /api/purchase-orders/:id
curl --location \ --request DELETE '<YOUR SERVER>/api/purchase-orders/:id' \ --header 'Authorization: Bearer <TOKEN>'
RESPONSE
{}
