Properties
| Name | Type | Description |
|---|---|---|
| id | string | Workday ID (WID) for the purchase order |
| orderNumber | string | Purchase order number |
| supplier | object | |
| orderDate | string | Date the order was placed |
| totalAmount | number | Total order amount |
| currency | object | |
| status | string | Current order status |
| company | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/PurchaseOrder",
"title": "PurchaseOrder",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Workday ID (WID) for the purchase order"
},
"orderNumber": {
"type": "string",
"description": "Purchase order number"
},
"supplier": {
"$ref": "#/components/schemas/SupplierShortRef"
},
"orderDate": {
"type": "string",
"format": "date",
"description": "Date the order was placed"
},
"totalAmount": {
"type": "number",
"format": "double",
"description": "Total order amount"
},
"currency": {
"$ref": "#/components/schemas/CurrencyRef"
},
"status": {
"type": "string",
"enum": [
"Draft",
"Issued",
"Received",
"Closed",
"Canceled"
],
"description": "Current order status"
},
"company": {
"$ref": "#/components/schemas/CompanyRef"
}
}
}