/caferimo-purchase-orders-patch-one¶
Summary¶
Source repository:
jef-systems/jef-caferimo-backendSource SHA:
34df92c8234ac60ec26994914058345ef85bfdf5Source run id:
26559419681Lambda function:
jef-caferimo-purchase-orders-patch-oneHTTP method:
PATCHAPI path:
/caferimo-purchase-orders-patch-oneEndpoint URL:
https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-purchase-orders-patch-onePayload mode:
json-body
Description¶
Function: jef-caferimo-purchase-orders-patch-oneModule: jef-caferimoAction: patch-oneMethod: PATCHInvocation Mode: ASYNCResource Path: /caferimo-purchase-orders-patch-oneTable: jef-caferimo-purchase-ordersPrimary Key: purchase_order_id
API Gateway Response¶
status\_code: 202message: Request accepted for asynchronous processing.
Payload Example¶
purchase\_order\_id: 55268420-9914-4271-8cfd-d5b5da33e8f9store\_id: 167ec01f-2aae-4482-902d-61c36b19b0d4entity\_number: value-001purchase\_order\_number: value-001order\_number: value-001purchase\_order\_date: 2026-05-28purchase\_order\_datetime: 2026-05-28T06:42:09Zbusiness\_date: 2026-05-28purchase\_order\_status: value-001owed\_status: value-001company\_number: value-001company\_name: North Branch Fuel Depotcompany\_address\_line\_1: Sample text 001company\_address\_line\_2: Sample text 001company\_contact\_number: value-001company\_tin: value-001item\_count: 1total\_quantity: 1subtotal\_amount: 1discount\_amount: 1tax\_amount: 1total\_amount: 1settlement\_status: value-001settlement\_method: value-001settled\_amount: 1balance\_amount: 1settled\_at: 2026-05-28T06:42:09Zprepared\_by: value_00approved\_by: value_00branch\_name: North Branchterminal\_name: value_00purchase\_order\_remarks: Sample text 001linked\_sales\_invoice\_number: value-001idempotency\_key: value-001created: 2026-05-28T06:42:09Zupdated: 2026-05-28T06:42:09Zposted\_at: 2026-05-28T06:42:09Zvoid\_reason: Sample text 001voided\_at: 2026-05-28T06:42:09Zchildren.purchase\_order\_items\[0\].purchase\_order\_item\_id: 2ff4a183-2b2b-494c-be41-77c8cdba1d35children.purchase\_order\_items\[0\].purchase\_order\_id: 55268420-9914-4271-8cfd-d5b5da33e8f9children.purchase\_order\_items\[0\].store\_id: 167ec01f-2aae-4482-902d-61c36b19b0d4children.purchase\_order\_items\[0\].entity\_number: value-001children.purchase\_order\_items\[0\].purchase\_order\_number: value-001children.purchase\_order\_items\[0\].order\_number: value-001children.purchase\_order\_items\[0\].business\_date: 2026-05-28children.purchase\_order\_items\[0\].line\_number: 1children.purchase\_order\_items\[0\].product\_number: value-001children.purchase\_order\_items\[0\].product\_name: Dieselchildren.purchase\_order\_items\[0\].quantity: 1children.purchase\_order\_items\[0\].unit\_price: 1children.purchase\_order\_items\[0\].line\_total: 1children.purchase\_order\_items\[0\].created: 2026-05-28T06:42:09Zchildren.purchase\_order\_items\[0\].updated: 2026-05-28T06:42:09Z
Payload Schema¶
{
"root.type": "M",
"root.required": "True",
"root.attributes.purchase_order_id.type": "S",
"root.attributes.purchase_order_id.required": "True",
"root.attributes.purchase_order_id.format": "uuidv4",
"root.attributes.purchase_order_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.store_id.type": "S",
"root.attributes.store_id.required": "False",
"root.attributes.store_id.format": "uuidv4",
"root.attributes.store_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.entity_number.type": "S",
"root.attributes.entity_number.required": "False",
"root.attributes.entity_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.purchase_order_number.type": "S",
"root.attributes.purchase_order_number.required": "False",
"root.attributes.purchase_order_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.order_number.type": "S",
"root.attributes.order_number.required": "False",
"root.attributes.order_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.purchase_order_date.type": "S",
"root.attributes.purchase_order_date.required": "False",
"root.attributes.purchase_order_date.regex": "^\\d{4}-\\d{2}-\\d{2}$",
"root.attributes.purchase_order_datetime.type": "S",
"root.attributes.purchase_order_datetime.required": "False",
"root.attributes.purchase_order_datetime.format": "iso8601",
"root.attributes.purchase_order_datetime.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
"root.attributes.business_date.type": "S",
"root.attributes.business_date.required": "False",
"root.attributes.business_date.regex": "^\\d{4}-\\d{2}-\\d{2}$",
"root.attributes.purchase_order_status.type": "S",
"root.attributes.purchase_order_status.required": "False",
"root.attributes.purchase_order_status.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.owed_status.type": "S",
"root.attributes.owed_status.required": "False",
"root.attributes.owed_status.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.company_number.type": "S",
"root.attributes.company_number.required": "False",
"root.attributes.company_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.company_name.type": "S",
"root.attributes.company_name.required": "False",
"root.attributes.company_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
"root.attributes.company_address_line_1.type": "S",
"root.attributes.company_address_line_1.required": "False",
"root.attributes.company_address_line_1.regex": "^.{1,300}$",
"root.attributes.company_address_line_2.type": "S",
"root.attributes.company_address_line_2.required": "False",
"root.attributes.company_address_line_2.regex": "^.{1,300}$",
"root.attributes.company_contact_number.type": "S",
"root.attributes.company_contact_number.required": "False",
"root.attributes.company_contact_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.company_tin.type": "S",
"root.attributes.company_tin.required": "False",
"root.attributes.company_tin.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.item_count.type": "N",
"root.attributes.item_count.required": "False",
"root.attributes.item_count.regex": "^\\d+$",
"root.attributes.total_quantity.type": "N",
"root.attributes.total_quantity.required": "False",
"root.attributes.total_quantity.regex": "^\\d+$",
"root.attributes.subtotal_amount.type": "N",
"root.attributes.subtotal_amount.required": "False",
"root.attributes.subtotal_amount.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.discount_amount.type": "N",
"root.attributes.discount_amount.required": "False",
"root.attributes.discount_amount.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.tax_amount.type": "N",
"root.attributes.tax_amount.required": "False",
"root.attributes.tax_amount.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.total_amount.type": "N",
"root.attributes.total_amount.required": "False",
"root.attributes.total_amount.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.settlement_status.type": "S",
"root.attributes.settlement_status.required": "False",
"root.attributes.settlement_status.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.settlement_method.type": "S",
"root.attributes.settlement_method.required": "False",
"root.attributes.settlement_method.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.settled_amount.type": "N",
"root.attributes.settled_amount.required": "False",
"root.attributes.settled_amount.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.balance_amount.type": "N",
"root.attributes.balance_amount.required": "False",
"root.attributes.balance_amount.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.settled_at.type": "S",
"root.attributes.settled_at.required": "False",
"root.attributes.settled_at.format": "iso8601",
"root.attributes.settled_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
"root.attributes.prepared_by.type": "S",
"root.attributes.prepared_by.required": "False",
"root.attributes.prepared_by.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
"root.attributes.approved_by.type": "S",
"root.attributes.approved_by.required": "False",
"root.attributes.approved_by.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
"root.attributes.branch_name.type": "S",
"root.attributes.branch_name.required": "False",
"root.attributes.branch_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
"root.attributes.terminal_name.type": "S",
"root.attributes.terminal_name.required": "False",
"root.attributes.terminal_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
"root.attributes.purchase_order_remarks.type": "S",
"root.attributes.purchase_order_remarks.required": "False",
"root.attributes.purchase_order_remarks.regex": "^.{0,500}$",
"root.attributes.linked_sales_invoice_number.type": "S",
"root.attributes.linked_sales_invoice_number.required": "False",
"root.attributes.linked_sales_invoice_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.idempotency_key.type": "S",
"root.attributes.idempotency_key.required": "False",
"root.attributes.idempotency_key.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.created.type": "S",
"root.attributes.created.required": "False",
"root.attributes.created.format": "iso8601",
"root.attributes.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
"root.attributes.updated.type": "S",
"root.attributes.updated.required": "False",
"root.attributes.updated.format": "iso8601",
"root.attributes.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
"root.attributes.posted_at.type": "S",
"root.attributes.posted_at.required": "False",
"root.attributes.posted_at.format": "iso8601",
"root.attributes.posted_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
"root.attributes.void_reason.type": "S",
"root.attributes.void_reason.required": "False",
"root.attributes.void_reason.regex": "^.{0,500}$",
"root.attributes.voided_at.type": "S",
"root.attributes.voided_at.required": "False",
"root.attributes.voided_at.format": "iso8601",
"root.attributes.voided_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
"root.attributes.children.type": "M",
"root.attributes.children.required": "False",
"root.attributes.children.attributes.purchase_order_items.type": "L",
"root.attributes.children.attributes.purchase_order_items.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.type": "M",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_item_id.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_item_id.required": "True",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_item_id.format": "uuidv4",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_item_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_id.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_id.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_id.format": "uuidv4",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.store_id.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.store_id.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.store_id.format": "uuidv4",
"root.attributes.children.attributes.purchase_order_items.items.attributes.store_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.entity_number.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.entity_number.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.entity_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_number.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_number.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.purchase_order_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.order_number.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.order_number.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.order_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.business_date.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.business_date.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.business_date.regex": "^\\d{4}-\\d{2}-\\d{2}$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.line_number.type": "N",
"root.attributes.children.attributes.purchase_order_items.items.attributes.line_number.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.line_number.regex": "^\\d+$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.product_number.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.product_number.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.product_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.product_name.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.product_name.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.product_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.quantity.type": "N",
"root.attributes.children.attributes.purchase_order_items.items.attributes.quantity.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.quantity.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.unit_price.type": "N",
"root.attributes.children.attributes.purchase_order_items.items.attributes.unit_price.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.unit_price.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.line_total.type": "N",
"root.attributes.children.attributes.purchase_order_items.items.attributes.line_total.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.line_total.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.created.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.created.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.created.format": "iso8601",
"root.attributes.children.attributes.purchase_order_items.items.attributes.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
"root.attributes.children.attributes.purchase_order_items.items.attributes.updated.type": "S",
"root.attributes.children.attributes.purchase_order_items.items.attributes.updated.required": "False",
"root.attributes.children.attributes.purchase_order_items.items.attributes.updated.format": "iso8601",
"root.attributes.children.attributes.purchase_order_items.items.attributes.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$"
}
Response Schema¶
{
"root.type": "M",
"root.required": "True",
"root.attributes.is_accepted.type": "BOOL",
"root.attributes.is_accepted.required": "True",
"root.attributes.message.type": "S",
"root.attributes.message.required": "True",
"root.attributes.request_id.type": "S",
"root.attributes.request_id.required": "False"
}
Request Payload¶
{
"purchase_order_id": "55268420-9914-4271-8cfd-d5b5da33e8f9",
"store_id": "167ec01f-2aae-4482-902d-61c36b19b0d4",
"entity_number": "value-001",
"purchase_order_number": "value-001",
"order_number": "value-001",
"purchase_order_date": "2026-05-28",
"purchase_order_datetime": "2026-05-28T06:42:09Z",
"business_date": "2026-05-28",
"purchase_order_status": "value-001",
"owed_status": "value-001",
"company_number": "value-001",
"company_name": "North Branch Fuel Depot",
"company_address_line_1": "Sample text 001",
"company_address_line_2": "Sample text 001",
"company_contact_number": "value-001",
"company_tin": "value-001",
"item_count": "1",
"total_quantity": "1",
"subtotal_amount": "1",
"discount_amount": "1",
"tax_amount": "1",
"total_amount": "1",
"settlement_status": "value-001",
"settlement_method": "value-001",
"settled_amount": "1",
"balance_amount": "1",
"settled_at": "2026-05-28T06:42:09Z",
"prepared_by": "value_00",
"approved_by": "value_00",
"branch_name": "North Branch",
"terminal_name": "value_00",
"purchase_order_remarks": "Sample text 001",
"linked_sales_invoice_number": "value-001",
"idempotency_key": "value-001",
"created": "2026-05-28T06:42:09Z",
"updated": "2026-05-28T06:42:09Z",
"posted_at": "2026-05-28T06:42:09Z",
"void_reason": "Sample text 001",
"voided_at": "2026-05-28T06:42:09Z",
"children.purchase_order_items[0].purchase_order_item_id": "2ff4a183-2b2b-494c-be41-77c8cdba1d35",
"children.purchase_order_items[0].purchase_order_id": "55268420-9914-4271-8cfd-d5b5da33e8f9",
"children.purchase_order_items[0].store_id": "167ec01f-2aae-4482-902d-61c36b19b0d4",
"children.purchase_order_items[0].entity_number": "value-001",
"children.purchase_order_items[0].purchase_order_number": "value-001",
"children.purchase_order_items[0].order_number": "value-001",
"children.purchase_order_items[0].business_date": "2026-05-28",
"children.purchase_order_items[0].line_number": "1",
"children.purchase_order_items[0].product_number": "value-001",
"children.purchase_order_items[0].product_name": "Diesel",
"children.purchase_order_items[0].quantity": "1",
"children.purchase_order_items[0].unit_price": "1",
"children.purchase_order_items[0].line_total": "1",
"children.purchase_order_items[0].created": "2026-05-28T06:42:09Z",
"children.purchase_order_items[0].updated": "2026-05-28T06:42:09Z"
}
Response¶
{
"root.type": "M",
"root.required": "True",
"root.attributes.is_accepted.type": "BOOL",
"root.attributes.is_accepted.required": "True",
"root.attributes.message.type": "S",
"root.attributes.message.required": "True",
"root.attributes.request_id.type": "S",
"root.attributes.request_id.required": "False"
}
CMD curl¶
curl -X PATCH "https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-purchase-orders-patch-one" -H "Content-Type: application/json" --data-raw "{\"purchase_order_id\": \"55268420-9914-4271-8cfd-d5b5da33e8f9\", \"store_id\": \"167ec01f-2aae-4482-902d-61c36b19b0d4\", \"entity_number\": \"value-001\", \"purchase_order_number\": \"value-001\", \"order_number\": \"value-001\", \"purchase_order_date\": \"2026-05-28\", \"purchase_order_datetime\": \"2026-05-28T06:42:09Z\", \"business_date\": \"2026-05-28\", \"purchase_order_status\": \"value-001\", \"owed_status\": \"value-001\", \"company_number\": \"value-001\", \"company_name\": \"North Branch Fuel Depot\", \"company_address_line_1\": \"Sample text 001\", \"company_address_line_2\": \"Sample text 001\", \"company_contact_number\": \"value-001\", \"company_tin\": \"value-001\", \"item_count\": 1, \"total_quantity\": 1, \"subtotal_amount\": 1, \"discount_amount\": 1, \"tax_amount\": 1, \"total_amount\": 1, \"settlement_status\": \"value-001\", \"settlement_method\": \"value-001\", \"settled_amount\": 1, \"balance_amount\": 1, \"settled_at\": \"2026-05-28T06:42:09Z\", \"prepared_by\": \"value_00\", \"approved_by\": \"value_00\", \"branch_name\": \"North Branch\", \"terminal_name\": \"value_00\", \"purchase_order_remarks\": \"Sample text 001\", \"linked_sales_invoice_number\": \"value-001\", \"idempotency_key\": \"value-001\", \"created\": \"2026-05-28T06:42:09Z\", \"updated\": \"2026-05-28T06:42:09Z\", \"posted_at\": \"2026-05-28T06:42:09Z\", \"void_reason\": \"Sample text 001\", \"voided_at\": \"2026-05-28T06:42:09Z\", \"children\": {\"purchase_order_items\": [{\"purchase_order_item_id\": \"2ff4a183-2b2b-494c-be41-77c8cdba1d35\", \"purchase_order_id\": \"55268420-9914-4271-8cfd-d5b5da33e8f9\", \"store_id\": \"167ec01f-2aae-4482-902d-61c36b19b0d4\", \"entity_number\": \"value-001\", \"purchase_order_number\": \"value-001\", \"order_number\": \"value-001\", \"business_date\": \"2026-05-28\", \"line_number\": 1, \"product_number\": \"value-001\", \"product_name\": \"Diesel\", \"quantity\": 1, \"unit_price\": 1, \"line_total\": 1, \"created\": \"2026-05-28T06:42:09Z\", \"updated\": \"2026-05-28T06:42:09Z\"}]}}"
PowerShell curl¶
curl.exe -X PATCH "https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-purchase-orders-patch-one" -H "Content-Type: application/json" --data-raw '{"purchase_order_id": "55268420-9914-4271-8cfd-d5b5da33e8f9", "store_id": "167ec01f-2aae-4482-902d-61c36b19b0d4", "entity_number": "value-001", "purchase_order_number": "value-001", "order_number": "value-001", "purchase_order_date": "2026-05-28", "purchase_order_datetime": "2026-05-28T06:42:09Z", "business_date": "2026-05-28", "purchase_order_status": "value-001", "owed_status": "value-001", "company_number": "value-001", "company_name": "North Branch Fuel Depot", "company_address_line_1": "Sample text 001", "company_address_line_2": "Sample text 001", "company_contact_number": "value-001", "company_tin": "value-001", "item_count": 1, "total_quantity": 1, "subtotal_amount": 1, "discount_amount": 1, "tax_amount": 1, "total_amount": 1, "settlement_status": "value-001", "settlement_method": "value-001", "settled_amount": 1, "balance_amount": 1, "settled_at": "2026-05-28T06:42:09Z", "prepared_by": "value_00", "approved_by": "value_00", "branch_name": "North Branch", "terminal_name": "value_00", "purchase_order_remarks": "Sample text 001", "linked_sales_invoice_number": "value-001", "idempotency_key": "value-001", "created": "2026-05-28T06:42:09Z", "updated": "2026-05-28T06:42:09Z", "posted_at": "2026-05-28T06:42:09Z", "void_reason": "Sample text 001", "voided_at": "2026-05-28T06:42:09Z", "children": {"purchase_order_items": [{"purchase_order_item_id": "2ff4a183-2b2b-494c-be41-77c8cdba1d35", "purchase_order_id": "55268420-9914-4271-8cfd-d5b5da33e8f9", "store_id": "167ec01f-2aae-4482-902d-61c36b19b0d4", "entity_number": "value-001", "purchase_order_number": "value-001", "order_number": "value-001", "business_date": "2026-05-28", "line_number": 1, "product_number": "value-001", "product_name": "Diesel", "quantity": 1, "unit_price": 1, "line_total": 1, "created": "2026-05-28T06:42:09Z", "updated": "2026-05-28T06:42:09Z"}]}}'