Accounting Export Reports that can be consumed by 3rd Party accounting systems
curl -i -X POST \ 'https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/purchaseOrders/{id}/requestTieredApproval' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
[ { "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b", "emailSent": true, "notified": true } ]
curl -i -X PUT \ https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/purchaseOrders/tieredApproval \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json-patch+json' \ -d '{ "approved": true, "notes": "string" }'
{ "updated": true, "usersNotified": [ { … } ], "isFinalTier": true, "errors": [ "string" ], "approved": true, "notes": "string" }
Example use cases
api/v2/purchaseOrders?pageNumber=1&pageSize=100&Filter=committed>2024-03-05T06:06:58.529Z&Filter=lastUpdated>2024-03-06&orderBy=committed
will get the first page of purchase orders where the committed date is later than 2024-03-05T06:06:58.529Z AND the lastUpdated date is later than 2024-03-06T00:00:00Z, ordering by the committed date
/api/v2/purchaseOrders?pageNumber=1&pageSize=100&Filter=committed>2024-03-05T06:06:58.529Z&orderBy=committed
will get the first page of purchase orders where the committed date is later than 2024-03-05T06:06:58.529Z
ordering by the committed date.
Page Number for the result set.
This is expected to be an integer value greater than 0. Defaults to 1 when not passed in.
For more information see the Getting Started Section for Pagination.
curl -i -X GET \ 'https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/purchaseOrders?Expand=string&Filter=string&OrderBy=string&PageNumber=0&PageSize=0' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
[ { "commit": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "thirdPartyID": "string", "docNumber": "string", "reference": "string", "description": "string", "instructions": "string", "totalAmount": 0.1, "lines": [ … ], "created": "2019-08-24T14:15:22Z", "lastUpdated": "2019-08-24T14:15:22Z", "vendor": "string", "createdByUser": "string", "notes": "string", "store": "string", "committed": "2019-08-24T14:15:22Z", "committedByUser": "string", "startShip": "2019-08-24T14:15:22Z", "cancelShip": "2019-08-24T14:15:22Z", "backOrdered": true, "canceled": true, "paid": true, "approvalStatuses": [ … ], "buyer": "string" } ]
curl -i -X POST \ https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/purchaseOrders \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json-patch+json' \ -d '[ { "thirdPartyID": "string", "docNumber": "string", "totalAmount": 0.1, "lines": [ { "commdocID": "cb99375d-6433-4b86-97cb-443f2b96b6b7", "commdocLineID": "9cb09c6a-a112-4d73-94fe-fbd96496e1dd", "thirdPartyLineID": "string", "lineNumber": 0, "vendorPrice": 0.1, "quantity": 0.1, "notes": "string", "backLinkLineID": "6e13b4f1-3f38-4d49-a5c5-95b5e01905d0", "item": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } } ], "startShip": "1911-11-11 00:00:00.000", "cancelShip": "1911-11-11 00:00:00.000", "reference": "string", "description": "string", "instructions": "string", "notes": "string", "backOrdered": true, "canceled": true, "invoicedEDI": true, "committed": "2019-08-24T14:15:22Z", "vendor": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "store": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" } } ]'
[ { "thirdPartyID": "string", "docNumber": "string", "totalAmount": 0.1, "lines": [ … ], "startShip": "1911-11-11 00:00:00.000", "cancelShip": "1911-11-11 00:00:00.000", "reference": "string", "description": "string", "instructions": "string", "notes": "string", "backOrdered": true, "canceled": true, "invoicedEDI": true, "committed": "2019-08-24T14:15:22Z", "vendor": { … }, "store": { … } } ]
curl -i -X GET \ 'https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/purchaseOrders/{id}?Expand=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "commit": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "thirdPartyID": "string", "docNumber": "string", "reference": "string", "description": "string", "instructions": "string", "totalAmount": 0.1, "lines": [ { … } ], "created": "2019-08-24T14:15:22Z", "lastUpdated": "2019-08-24T14:15:22Z", "vendor": "string", "createdByUser": "string", "notes": "string", "store": "string", "committed": "2019-08-24T14:15:22Z", "committedByUser": "string", "startShip": "2019-08-24T14:15:22Z", "cancelShip": "2019-08-24T14:15:22Z", "backOrdered": true, "canceled": true, "paid": true, "approvalStatuses": [ { … } ], "buyer": "string" }
curl -i -X GET \ 'https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/purchaseOrders/byToken?Expand=string' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "commit": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "thirdPartyID": "string", "docNumber": "string", "reference": "string", "description": "string", "instructions": "string", "totalAmount": 0.1, "lines": [ { … } ], "created": "2019-08-24T14:15:22Z", "lastUpdated": "2019-08-24T14:15:22Z", "vendor": "string", "createdByUser": "string", "notes": "string", "store": "string", "committed": "2019-08-24T14:15:22Z", "committedByUser": "string", "startShip": "2019-08-24T14:15:22Z", "cancelShip": "2019-08-24T14:15:22Z", "backOrdered": true, "canceled": true, "paid": true, "approvalStatuses": [ { … } ], "buyer": "string" }
curl -i -X GET \ 'https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/purchaseOrders/{id}/approvalStatus' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "currentTier": 0, "approvalStatuses": [ { … } ] }
curl -i -X GET \ https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/purchaseOrders/approvalStatusByToken \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "status": "string", "dateTime": "2019-08-24T14:15:22Z", "notes": "string", "type": "string", "tier": 0, "userID": "2c3821b8-1cdb-4b77-bcd8-a1da701e46aa" }
Infrequently there are use cases where a previously committed purchase order would be allowed to have new Lines added or other adjustments to the document.
The following properties of a committed purchase order are prohibited from being updated
The following requirements in place for a purchase order to be edited using this method.
When populated this will alter the lines of the purchase order.
To add additional items to a purchase order you would add an object to the array with a shape like
{ "ItemID": "12345678-1234-1234-1234-12345678123", "Quantity": 15, "VendorPrice": 1.50 }
The result set back will include the generated CommdocLineId that can be used in subsequent update requests for this Purchase Order line.
To alter existing items of a purchase order you would add an object to the array with a shape like
{ "CommDocLineId": "87654321-1234-1234-1234-12345678123", "Quantity": 15, "VendorPrice": 1.50 }
curl -i -X PATCH \ https://developer.yellowdogsoftware.com/_mock/fetch/api/api/v3/purchaseOrders/updateCommitted \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json-patch+json' \ -d '[ { "commdocID": "cb99375d-6433-4b86-97cb-443f2b96b6b7", "reference": "string", "description": "string", "instructions": "string", "notes": "string", "backOrdered": true, "canceled": true, "invoicedEDI": true, "startShip": "1911-11-11 00:00:00.000", "cancelShip": "1911-11-11 00:00:00.000", "lines": [ { "commdocLineID": "9cb09c6a-a112-4d73-94fe-fbd96496e1dd", "itemID": "f1f85a48-b9b1-447d-a06c-c1acf57ed3a8", "vendorPrice": 0, "quantity": 0, "notes": "string" } ] } ]'