A requisition screen on Workday Procurement v5 creates the requisition with POST /requisitions, adds lines with POST /requisitions/{ID}/requisitionLines, attaches files with POST /requisitions/{ID}/attachments, and submits with POST /requisitions/{ID}/requisitionEvents. Each line is either an item line (send item and quantity) or a write-in line with a spend category. Purchase orders are read-only in v5: GET /purchaseOrders and GET /requisitions/{ID}/relatedPurchaseOrders. Approving a pending step belongs to the Business Process service, not Procurement.
Screens like this on live Workday data are what Kiweely Leaf (coming next) is for. The calls are the same for any client.
What does a requisition need to be created?
POST /requisitions requires requester and requisitionLines[]. Optional header fields include company, requisitionType, currency, memo, internalMemo, highPriority, otherCharges and freightAmount. The response and the reads also return criticalCustomValidations and warningCustomValidations, the failing custom validation messages configured on the requisition.
Workday secures reads with domains such as Self-Service: Requisition, Process: Requisition - View and View: Organization Requisition, and edits with Process: Requisition - Create/Edit and Self-Service: Requisition. The scope is Procurement. See least-privilege scoping for how API client scope and security groups interact.
The v5 filters on GET /requisitions are requester, requisitionType, submittedBy, fromDate, toDate and a few external-system fields. A “my requisitions” list is a read with the requester’s own ID.
For repeat orders, GET /requisitionTemplates returns only the templates the processing worker is authorized to use, as summaries with name, company, creation date and the number of goods and service lines. GET /requisitionTemplates/{ID} returns the line details. Workday’s admin guide describes requisition templates as a way to order the same goods or services repeatedly.
How do lines and spend categories work?
For a catalog item, supplier item or purchase item line, send item and quantity. Workday derives and fills in pricing. For a write-in line, Workday documents:
- Write-in goods:
writeInGoods: true, plusitemDescription,spendCategory,unitOfMeasureandquantity. - Write-in services:
writeInService: true, plusitemDescriptionandspendCategory.
Item lines and write-in lines are mutually exclusive, and when you send an item, its pricing takes precedence over values you pass in. Do not let the form show a unit cost box on an item line.
Do not hard-code spend categories. Procurement v5 has prompt-value endpoints under GET /values/requisitionsGroup/: spendCategory, unitOfMeasure, worktags, resolvedWorktags, companies, currencies, requesters, shipToAddress, deliverToLocation, supplierContract and resourceProvider, among others. Workday states they return the values the signed-in user has access to. That makes them the right source for dropdowns, and it means two employees may legitimately see different lists. resolvedWorktags resolves duplicates so the result has one worktag per type.
To add several lines at once, pass bulk=true and send data[]. The documented maximum array size is 20. The same applies to editing lines. A line edit can change only memo, endDate, quantity, requestedDeliveryDate, lotSerialInformation, worktags, startDate, supplierItemIdentifier and unitCost; from v3, also deliverToLocation, unitOfMeasure, spendCategory, supplier and shipToAddress. For anything else, delete the line and add it again.
The documented errors a line form should expect:
| Code | Message |
|---|---|
| CodeA294 | MessageSpend Category is required on all requisition lines. |
| CodeA316 | MessageItem Description is required. |
| CodeA325 | MessageUnit of measure is required on item lines. |
| CodeA301 | MessageCertain required worktags are missing for the requisition line. |
| CodeA84 | MessageOnly one worktag for each type is allowed for each document line. |
| CodeA309 | MessageYou are not authorized to request this item. |
| CodeA303 | MessageThe specified Item is Invalid. |
| CodeA367 | MessageSelect either Write-In Goods or Write-In Service. |
| CodeA311 | MessageEnter an End Date on or after the Start Date. |
The A301, A326 and A84 family are worktag rules from the tenant. Show Workday’s message next to the line instead of rewriting it.
How are attachments added?
POST /requisitions/{ID}/attachments takes multipart/form-data, with the file in the attachmentContent form field. The v5 description gives a maximum of 3072000 bytes for a single attachment. The documented validation messages:
- A246: One of the following file extensions must be used: [allowed file extensions].
- A252: Enter a file name.
- A280: The file size should not exceed [file size]MB.
- A319: You cannot attach an empty file. Please select another file to upload.
- A2377: You can’t edit this requisition because it either is invalid or isn’t in Draft or In Progress status.
The last one matters for a screen that offers “add a quote” on an existing requisition: the add button should disappear when the requisition is not in Draft or In Progress status. Read status first.
To list attachments, GET /requisitions/{ID}/attachments returns metadata. Add ?type=getFileContent on a single attachment to retrieve the file. The read is secured by the REST API Public domain. Allowed extensions and the tenant size limit are configured in Workday; see attachment rules.
How does submission work?
POST /requisitions/{ID}/requisitionEvents submits it to the Requisition Event business process. The request body takes autoComplete and a comment. Documented errors:
| Code | Message |
|---|---|
| CodeA352 | MessageA Deliverable, Service or Goods Line is required on the Requisition. |
| CodeA302 | MessageYou cannot submit this requisition due to Critical Custom Validations. Please fix the exceptions before submitting the requisition. |
| CodeA327 | MessageThe total extended amount of all lines must be greater than or equal to zero. |
| CodeA356 | MessageYou cannot submit this requisition. Either the requisition is not in submittable status, or you are not authorized to submit this requisition. |
| CodeA1090 | MessageYou can’t submit a requisition with a requisition type that is inactive. |
Before submit, read the requisition and show criticalCustomValidations so the requester can fix the cause. A302 is the error that tenant-specific validation rules produce.
Also available: PATCH /requisitions/{ID} for header changes, POST /requisitions/{ID}/cancel (from v3, with an optional reason from the Maintain Procurement Reasons task and comments) and POST /requisitions/{ID}/close, which also takes an optional reason or comment from the same task.
How does a screen show PO status and approvals?
GET /requisitions/{ID}/relatedPurchaseOrders returns poNumber, documentStatus and poDocumentDate for each purchase order that fulfills the requisition. GET /purchaseOrders filters by status, supplier, buyer, company, submittedBy, dates and excludeCanceled or excludeClosed. GET /purchaseOrders/{ID} returns lines, supplier, paymentTerms, buyer and status.
Reads need the purchase order domains such as Self-Service: Purchase Order or View: Organization Purchase Order, and the scopes Procurement and Supplier Accounts.
For approval, a screen reads the approver’s pending steps and acts on them in the Business Process service: POST /businessProcess/v1/eventSteps/{ID}/approve, /deny, /sendBack and /reassign. Those operations are generic to the business process event step, secured by Core Navigation and Public Business Processes. The reading side and the step-versus-event distinction are in the My Tasks guide, and the action calls in approving and denying steps. For why approvals stall, see requisition and PO approval bottlenecks.
Frequently asked questions
How do I create a purchase requisition with the Workday REST API?
Call POST /requisitions in Procurement v5 with a requester and at least one entry in requisitionLines. For a catalog, supplier or purchase item line, send item and quantity. For a write-in goods line, set writeInGoods to true and send itemDescription, spendCategory, unitOfMeasure and quantity. Then submit it with POST /requisitions/{ID}/requisitionEvents.
Where do I get valid spend categories for a requisition line?
Call GET /values/requisitionsGroup/spendCategory/ in Procurement v5. The same group has prompt-value endpoints for unitOfMeasure, worktags, resolvedWorktags, shipToAddress, deliverToLocation, currencies and supplier contracts.
How big can a Workday requisition attachment be?
The Procurement v5 description for POST /requisitions/{ID}/attachments gives a maximum of 3072000 bytes for a single attachment. The documented error A280 says the file size should not exceed a size in MB set for the tenant, so check both.
Can the Procurement REST API approve a purchase order?
Procurement v5 has no approve or deny operation. It reads purchase orders with GET /purchaseOrders. Approving a pending step goes through the Business Process service, using POST /businessProcess/v1/eventSteps/{ID}/approve, deny or sendBack.