---
title: "Workday Procurement API: Requisition Lines and Attachments"
description: "Build a requisition screen on Workday Procurement v5: create lines, pick spend categories, attach files, submit, read PO status, and handle documented errors."
url: https://kiweely.com/guides/workday-procurement-rest-api-requisition-lines-attachments-po-status
---

# Workday Procurement REST API for a Requisition Screen: Lines, Spend Categories, Attachments and PO Status

Workday Procurement v5 lets a screen create a requisition and its lines, attach a file, submit with POST /requisitions/{ID}/requisitionEvents and read purchase orders. Approving stays in the business process service. This guide lists the fields, value lookups and documented errors.

-   **Checked** against Workday on November 24
-   Applies to **Workday Extend**
-   5 min read
-   Published November 24
-   By Kiweely

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](https://kiweely.com/leaf)) 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](https://kiweely.com/guides/workday-api-client-functional-areas-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`, plus `itemDescription`, `spendCategory`, `unitOfMeasure` and `quantity`.
-   **Write-in services:** `writeInService: true`, plus `itemDescription` and `spendCategory`.

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 |
| --- | --- |
| A294 | Spend Category is required on all requisition lines. |
| A316 | Item Description is required. |
| A325 | Unit of measure is required on item lines. |
| A301 | Certain required worktags are missing for the requisition line. |
| A84 | Only one worktag for each type is allowed for each document line. |
| A309 | You are not authorized to request this item. |
| A303 | The specified Item is Invalid. |
| A367 | Select either Write-In Goods or Write-In Service. |
| A311 | Enter 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](https://kiweely.com/guides/workday-attachment-upload-virus-scan-size-mime-rules-api).

## 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 |
| --- | --- |
| A352 | A Deliverable, Service or Goods Line is required on the Requisition. |
| A302 | You cannot submit this requisition due to Critical Custom Validations. Please fix the exceptions before submitting the requisition. |
| A327 | The total extended amount of all lines must be greater than or equal to zero. |
| A356 | You cannot submit this requisition. Either the requisition is not in submittable status, or you are not authorized to submit this requisition. |
| A1090 | You 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](https://kiweely.com/guides/workday-inbox-my-tasks-awaiting-action-rest-wql), and the action calls in [approving and denying steps](https://kiweely.com/guides/workday-business-process-approve-deny-rest-soap-api). For why approvals stall, see [requisition and PO approval bottlenecks](https://kiweely.com/guides/workday-procurement-requisition-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.

## Sources checked

-   [Workday REST API Explorer: Procurement v5](https://developer.workday.com/rest-api-explorer/docs/procurement/v5)
-   [Workday Admin Guide: Steps: Create Requisition Templates](https://doc.workday.com/admin-guide/en-us/spend-management/procurement/requisitions/dan1370797712405.html)

## Related guides

[All guides](https://kiweely.com/guides)

-   [### Workday Procurement and Purchase Order Business Process Errors Step-by-step guide to diagnosing Workday Procurement and Purchase Order business process failures across requisition sourcing, spend category usage, Check Budget (Financial) holds, PO change orders, and 2-way or 3-way receipt matching exceptions.](https://kiweely.com/guides/workday-procurement-purchase-order-bp-errors)
-   [### Workday Procurement Requisition and Purchase Order Approval Bottlenecks: Setup and Troubleshooting Workday requisitions and purchase orders stall in Awaiting Action when Cost Center Manager roles are empty, condition rules conflict on split lines, budget checks fail under Control severity, or spend categories go inactive. Learn routing setup and diagnostics.](https://kiweely.com/guides/workday-procurement-requisition-po-approval-bottlenecks)
-   [### Approving, Denying, and Sending Back Workday Business Process Steps via REST and SOAP APIs Advance pending Workday workflow steps via businessProcess v1 REST endpoints (/eventSteps/{ID}/approve, /deny, /sendBack, /toDo, /reassign) using the Event Record WID, or via Integrations SOAP operations (Approve\_Business\_Process, Deny\_Business\_Process, Send\_Back\_Business\_Process).](https://kiweely.com/guides/workday-business-process-approve-deny-rest-soap-api)
-   [### Which Workday functional areas does an API client need? A least-privilege lookup by use case Scope (Functional Areas) on a Workday API client limits which endpoints it can call, and it never grants data access. This guide maps seven employee use cases to the functional area each REST endpoint lists, plus the domain that must also permit the user.](https://kiweely.com/guides/workday-api-client-functional-areas-least-privilege-scoping)
-   [### Workday My Tasks API: Build an Approval Screen with Approve, Send Back and Deny A custom Workday approval screen lists tasks with GET /workers/{ID}/inboxTasks or the businessProcessStepsAwaitingMe WQL source, loads context from eventSteps, and acts with POST /eventSteps/{ID}/approve, sendBack or deny. Delegation and excluded steps change what appears.](https://kiweely.com/guides/workday-inbox-my-tasks-awaiting-action-rest-wql)
-   [### Workday API Attachment Rules: File Size Limits, Allowed MIME Types, and Doctor’s Note Uploads Workday caps API and UI file attachments at 30 MB (10 MB for tenant images), blocks executable extensions such as exe, bat, js, and vbs in Edit Tenant Setup - System, skips automatic virus scanning on web service uploads, and secures medical notes via Document Category Security Segments.](https://kiweely.com/guides/workday-attachment-upload-virus-scan-size-mime-rules-api)

### More guides on Integrations and APIs

[All 125 guides](https://kiweely.com/guides#integrations)

-   [Workday Recruiting APIs for an Employee Referral Screen: Job Postings, Resume Upload and Referral Status](https://kiweely.com/guides/workday-recruiting-api-employee-referral-screen-resume)
-   [Building a Workday Org Chart and People Directory From Supervisory Organizations](https://kiweely.com/guides/workday-org-chart-people-directory-supervisory-organizations-api)
-   [Multi-Country Workday Absence, Holiday Calendars and Payslips Through the API](https://kiweely.com/guides/workday-multi-country-absence-holiday-calendars-payslips-apis)
-   [Which Workday API answers which employee or manager question? A self-service map](https://kiweely.com/guides/workday-self-service-api-map-employee-manager-questions)
-   [Workday Integration Document Retention and Purge Policies](https://kiweely.com/guides/workday-integration-document-retention-purge-audit-files)
-   [Workday SFTP and PGP Encryption Failures: Debugging Overnight Timeouts](https://kiweely.com/guides/workday-sftp-pgp-encryption-overnight-integration-failures)
-   [Workday Object Transporter (OX) Dependency Errors and Fixes](https://kiweely.com/guides/workday-object-transporter-ox-dependency-errors)
-   [Workday Time Tracking to Payroll: Fixing Missing Hours and Pay Group Mismatches](https://kiweely.com/guides/workday-time-tracking-to-payroll-integration-missing-hours)

### From the blog on Integrations and APIs

[All posts](https://kiweely.com/blog)

-   [Retire Workday Studio and EIB Debt with External Integrations](https://kiweely.com/blog/retire-workday-studio-eib-debt-with-external-integrations)
-   [Nothing Kept After a Run: Zero-Retention Workday Integrations](https://kiweely.com/blog/nothing-kept-after-a-run-zero-retention-integrations)
-   [When the Answer Is Chat, a Screen, or a Running Integration](https://kiweely.com/blog/when-the-workday-job-is-chat-a-screen-or-an-integration)

## Let Workday check the work.

Kiweely writes WQL and builds orchestrations in your own tenant, and Workday, not Kiweely, says whether they passed.

[Start for free](https://kiweely.com/download) [Book a demo](https://kiweely.com/demo)

## Get the next guide in your inbox.

One email a month with new guides and one Extend tip. Nothing else.
