/caferimo-purchase-orders-post-one

Summary

  • Source repository: jef-systems/jef-caferimo-backend

  • Source SHA: 34c5a4f7f6891cb316e3bb2803081a3c35d4aa22

  • Source run id: 25862691770

  • Lambda function: jef-caferimo-purchase-orders-post-one

  • HTTP method: POST

  • API path: /caferimo-purchase-orders-post-one

  • Endpoint URL: https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-purchase-orders-post-one

  • Payload mode: json-body

Description

  • Function: jef-caferimo-purchase-orders-post-one

  • Module: jef-caferimo

  • Action: post-one

  • Method: POST

  • Invocation Mode: ASYNC

  • Resource Path: /caferimo-purchase-orders-post-one

  • Table: jef-caferimo-purchase-orders

  • Primary Key: purchase_order_id

API Gateway Response

  • status\_code: 202

  • message: Request accepted for asynchronous processing.

Payload Example

  • purchase\_order\_id: 55268420-9914-4271-8cfd-d5b5da33e8f9

  • store\_id: 167ec01f-2aae-4482-902d-61c36b19b0d4

  • entity\_number: JEF-07-PLZ

  • purchase\_order\_number: PO-2026-0501

  • order\_number: ORD-PO-0501

  • purchase\_order\_date: 2026-05-14

  • purchase\_order\_datetime: 2026-05-14T13:18:57Z

  • business\_date: 2026-05-14

  • purchase\_order\_status: APPROVED

  • owed\_status: FULLY-SETTLED

  • company\_number: VEND-000981

  • company\_name: Caferimo Trading Inc.

  • company\_address\_line\_1: Unit 12B, Rizal Commercial Center, San Jose

  • company\_address\_line\_2: Brgy. Del Pilar, Sta. Rosa, Laguna

  • company\_contact\_number: 049-546-2188

  • company\_tin: 327-845-029-000

  • item\_count: 14

  • total\_quantity: 96

  • subtotal\_amount: 47850.0

  • discount\_amount: 750.0

  • tax\_amount: 8095.0

  • total\_amount: 55195.0

  • settlement\_status: SETTLED

  • settlement\_method: BANK-TRANSFER

  • settled\_amount: 55195.0

  • balance\_amount: 0.0

  • settled\_at: 2026-05-14T13:18:57Z

  • prepared\_by: Mara D. Cruz

  • approved\_by: Ramon T. Reyes

  • branch\_name: Jef Caferimo - Santa Rosa

  • terminal\_name: POS-TERMINAL-03

  • purchase\_order\_remarks: Delivery scheduled for May 16-17. Includes free cold-pack for perishable items.

  • linked\_sales\_invoice\_number: SI-2026-01048

  • idempotency\_key: idem-jef-caferimo-purchase-orders-1

  • created\_at: 2026-05-14T13:18:57Z

  • updated\_at: 2026-05-14T13:18:57Z

  • posted\_at: 2026-05-14T13:18:57Z

  • is\_active: True

  • is\_deleted: False

  • deleted\_at: 1970-01-01T00:00:00Z

  • schema\_version: 1

  • version: 1

  • void\_reason: - voided_at: 2026-05-14T13:18:57Z

  • 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: deb63012-02fa-49b1-b631-177f2aaa6ba4

  • children.purchase\_order\_items\[0\].entity\_number: JEF-CEB-0142

  • children.purchase\_order\_items\[0\].purchase\_order\_number: PO-CEB-2026-0514-00027

  • children.purchase\_order\_items\[0\].order\_number: ORD-1004827

  • children.purchase\_order\_items\[0\].business\_date: 2026-05-14

  • children.purchase\_order\_items\[0\].line\_number: 1

  • children.purchase\_order\_items\[0\].product\_number: MED-OT-5031

  • children.purchase\_order\_items\[0\].product\_name: SanMiguel Hotdog Regular 1kg

  • children.purchase\_order\_items\[0\].quantity: 12

  • children.purchase\_order\_items\[0\].unit\_price: 119.5

  • children.purchase\_order\_items\[0\].line\_total: 1434

  • children.purchase\_order\_items\[0\].created\_at: 2026-05-14T13:20:45Z

  • children.purchase\_order\_items\[0\].updated\_at: 2026-05-14T13:20:45Z

  • children.purchase\_order\_items\[0\].is\_active: True

  • children.purchase\_order\_items\[0\].is\_deleted: False

  • children.purchase\_order\_items\[0\].deleted\_at: 1970-01-01T00:00:00Z

  • children.purchase\_order\_items\[0\].schema\_version: 1

  • children.purchase\_order\_items\[0\].version: 1

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": "True",
  "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": "True",
  "root.attributes.entity_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.purchase_order_number.type": "S",
  "root.attributes.purchase_order_number.required": "True",
  "root.attributes.purchase_order_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.order_number.type": "S",
  "root.attributes.order_number.required": "True",
  "root.attributes.order_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.purchase_order_date.type": "S",
  "root.attributes.purchase_order_date.required": "True",
  "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": "True",
  "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": "True",
  "root.attributes.business_date.regex": "^\\d{4}-\\d{2}-\\d{2}$",
  "root.attributes.purchase_order_status.type": "S",
  "root.attributes.purchase_order_status.required": "True",
  "root.attributes.purchase_order_status.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.owed_status.type": "S",
  "root.attributes.owed_status.required": "True",
  "root.attributes.owed_status.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.company_number.type": "S",
  "root.attributes.company_number.required": "True",
  "root.attributes.company_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.company_name.type": "S",
  "root.attributes.company_name.required": "True",
  "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": "True",
  "root.attributes.company_address_line_1.regex": "^.{1,300}$",
  "root.attributes.company_address_line_2.type": "S",
  "root.attributes.company_address_line_2.required": "True",
  "root.attributes.company_address_line_2.regex": "^.{1,300}$",
  "root.attributes.company_contact_number.type": "S",
  "root.attributes.company_contact_number.required": "True",
  "root.attributes.company_contact_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.company_tin.type": "S",
  "root.attributes.company_tin.required": "True",
  "root.attributes.company_tin.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.item_count.type": "N",
  "root.attributes.item_count.required": "True",
  "root.attributes.item_count.regex": "^\\d+$",
  "root.attributes.total_quantity.type": "N",
  "root.attributes.total_quantity.required": "True",
  "root.attributes.total_quantity.regex": "^\\d+$",
  "root.attributes.subtotal_amount.type": "N",
  "root.attributes.subtotal_amount.required": "True",
  "root.attributes.subtotal_amount.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.discount_amount.type": "N",
  "root.attributes.discount_amount.required": "True",
  "root.attributes.discount_amount.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.tax_amount.type": "N",
  "root.attributes.tax_amount.required": "True",
  "root.attributes.tax_amount.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.total_amount.type": "N",
  "root.attributes.total_amount.required": "True",
  "root.attributes.total_amount.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.settlement_status.type": "S",
  "root.attributes.settlement_status.required": "True",
  "root.attributes.settlement_status.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.settlement_method.type": "S",
  "root.attributes.settlement_method.required": "True",
  "root.attributes.settlement_method.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.settled_amount.type": "N",
  "root.attributes.settled_amount.required": "True",
  "root.attributes.settled_amount.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.balance_amount.type": "N",
  "root.attributes.balance_amount.required": "True",
  "root.attributes.balance_amount.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.settled_at.type": "S",
  "root.attributes.settled_at.required": "True",
  "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": "True",
  "root.attributes.prepared_by.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
  "root.attributes.approved_by.type": "S",
  "root.attributes.approved_by.required": "True",
  "root.attributes.approved_by.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
  "root.attributes.branch_name.type": "S",
  "root.attributes.branch_name.required": "True",
  "root.attributes.branch_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
  "root.attributes.terminal_name.type": "S",
  "root.attributes.terminal_name.required": "True",
  "root.attributes.terminal_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
  "root.attributes.purchase_order_remarks.type": "S",
  "root.attributes.purchase_order_remarks.required": "True",
  "root.attributes.purchase_order_remarks.regex": "^.{0,500}$",
  "root.attributes.linked_sales_invoice_number.type": "S",
  "root.attributes.linked_sales_invoice_number.required": "True",
  "root.attributes.linked_sales_invoice_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.idempotency_key.type": "S",
  "root.attributes.idempotency_key.required": "True",
  "root.attributes.idempotency_key.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.created_at.type": "S",
  "root.attributes.created_at.required": "True",
  "root.attributes.created_at.format": "iso8601",
  "root.attributes.created_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
  "root.attributes.updated_at.type": "S",
  "root.attributes.updated_at.required": "True",
  "root.attributes.updated_at.format": "iso8601",
  "root.attributes.updated_at.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": "True",
  "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.is_active.type": "BOOL",
  "root.attributes.is_active.required": "True",
  "root.attributes.is_active.regex": "^(true|false)$",
  "root.attributes.is_deleted.type": "BOOL",
  "root.attributes.is_deleted.required": "True",
  "root.attributes.is_deleted.regex": "^(true|false)$",
  "root.attributes.deleted_at.type": "S",
  "root.attributes.deleted_at.required": "True",
  "root.attributes.deleted_at.format": "iso8601",
  "root.attributes.deleted_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
  "root.attributes.schema_version.type": "N",
  "root.attributes.schema_version.required": "True",
  "root.attributes.schema_version.regex": "^\\d+$",
  "root.attributes.version.type": "N",
  "root.attributes.version.required": "True",
  "root.attributes.version.regex": "^\\d+$",
  "root.attributes.void_reason.type": "S",
  "root.attributes.void_reason.required": "True",
  "root.attributes.void_reason.regex": "^.{0,500}$",
  "root.attributes.voided_at.type": "S",
  "root.attributes.voided_at.required": "True",
  "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": "True",
  "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": "True",
  "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": "True",
  "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": "True",
  "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": "True",
  "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": "True",
  "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": "True",
  "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": "True",
  "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": "True",
  "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": "True",
  "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": "True",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.line_total.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.created_at.type": "S",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.created_at.required": "True",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.created_at.format": "iso8601",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.created_at.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_at.type": "S",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.updated_at.required": "True",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.updated_at.format": "iso8601",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.updated_at.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.is_active.type": "BOOL",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.is_active.required": "True",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.is_active.regex": "^(true|false)$",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.is_deleted.type": "BOOL",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.is_deleted.required": "True",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.is_deleted.regex": "^(true|false)$",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.deleted_at.type": "S",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.deleted_at.required": "True",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.deleted_at.format": "iso8601",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.deleted_at.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.schema_version.type": "N",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.schema_version.required": "True",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.schema_version.regex": "^\\d+$",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.version.type": "N",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.version.required": "True",
  "root.attributes.children.attributes.purchase_order_items.items.attributes.version.regex": "^\\d+$"
}

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": "JEF-07-PLZ",
  "purchase_order_number": "PO-2026-0501",
  "order_number": "ORD-PO-0501",
  "purchase_order_date": "2026-05-14",
  "purchase_order_datetime": "2026-05-14T13:18:57Z",
  "business_date": "2026-05-14",
  "purchase_order_status": "APPROVED",
  "owed_status": "FULLY-SETTLED",
  "company_number": "VEND-000981",
  "company_name": "Caferimo Trading Inc.",
  "company_address_line_1": "Unit 12B, Rizal Commercial Center, San Jose",
  "company_address_line_2": "Brgy. Del Pilar, Sta. Rosa, Laguna",
  "company_contact_number": "049-546-2188",
  "company_tin": "327-845-029-000",
  "item_count": "14",
  "total_quantity": "96",
  "subtotal_amount": "47850.0",
  "discount_amount": "750.0",
  "tax_amount": "8095.0",
  "total_amount": "55195.0",
  "settlement_status": "SETTLED",
  "settlement_method": "BANK-TRANSFER",
  "settled_amount": "55195.0",
  "balance_amount": "0.0",
  "settled_at": "2026-05-14T13:18:57Z",
  "prepared_by": "Mara D. Cruz",
  "approved_by": "Ramon T. Reyes",
  "branch_name": "Jef Caferimo - Santa Rosa",
  "terminal_name": "POS-TERMINAL-03",
  "purchase_order_remarks": "Delivery scheduled for May 16-17. Includes free cold-pack for perishable items.",
  "linked_sales_invoice_number": "SI-2026-01048",
  "idempotency_key": "idem-jef-caferimo-purchase-orders-1",
  "created_at": "2026-05-14T13:18:57Z",
  "updated_at": "2026-05-14T13:18:57Z",
  "posted_at": "2026-05-14T13:18:57Z",
  "is_active": "True",
  "is_deleted": "False",
  "deleted_at": "1970-01-01T00:00:00Z",
  "schema_version": "1",
  "version": "1",
  "void_reason": "",
  "voided_at": "2026-05-14T13:18:57Z",
  "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": "deb63012-02fa-49b1-b631-177f2aaa6ba4",
  "children.purchase_order_items[0].entity_number": "JEF-CEB-0142",
  "children.purchase_order_items[0].purchase_order_number": "PO-CEB-2026-0514-00027",
  "children.purchase_order_items[0].order_number": "ORD-1004827",
  "children.purchase_order_items[0].business_date": "2026-05-14",
  "children.purchase_order_items[0].line_number": "1",
  "children.purchase_order_items[0].product_number": "MED-OT-5031",
  "children.purchase_order_items[0].product_name": "SanMiguel Hotdog Regular 1kg",
  "children.purchase_order_items[0].quantity": "12",
  "children.purchase_order_items[0].unit_price": "119.5",
  "children.purchase_order_items[0].line_total": "1434",
  "children.purchase_order_items[0].created_at": "2026-05-14T13:20:45Z",
  "children.purchase_order_items[0].updated_at": "2026-05-14T13:20:45Z",
  "children.purchase_order_items[0].is_active": "True",
  "children.purchase_order_items[0].is_deleted": "False",
  "children.purchase_order_items[0].deleted_at": "1970-01-01T00:00:00Z",
  "children.purchase_order_items[0].schema_version": "1",
  "children.purchase_order_items[0].version": "1"
}

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 POST "https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-purchase-orders-post-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\": \"JEF-07-PLZ\", \"purchase_order_number\": \"PO-2026-0501\", \"order_number\": \"ORD-PO-0501\", \"purchase_order_date\": \"2026-05-14\", \"purchase_order_datetime\": \"2026-05-14T13:18:57Z\", \"business_date\": \"2026-05-14\", \"purchase_order_status\": \"APPROVED\", \"owed_status\": \"FULLY-SETTLED\", \"company_number\": \"VEND-000981\", \"company_name\": \"Caferimo Trading Inc.\", \"company_address_line_1\": \"Unit 12B, Rizal Commercial Center, San Jose\", \"company_address_line_2\": \"Brgy. Del Pilar, Sta. Rosa, Laguna\", \"company_contact_number\": \"049-546-2188\", \"company_tin\": \"327-845-029-000\", \"item_count\": 14, \"total_quantity\": 96, \"subtotal_amount\": 47850.0, \"discount_amount\": 750.0, \"tax_amount\": 8095.0, \"total_amount\": 55195.0, \"settlement_status\": \"SETTLED\", \"settlement_method\": \"BANK-TRANSFER\", \"settled_amount\": 55195.0, \"balance_amount\": 0.0, \"settled_at\": \"2026-05-14T13:18:57Z\", \"prepared_by\": \"Mara D. Cruz\", \"approved_by\": \"Ramon T. Reyes\", \"branch_name\": \"Jef Caferimo - Santa Rosa\", \"terminal_name\": \"POS-TERMINAL-03\", \"purchase_order_remarks\": \"Delivery scheduled for May 16-17. Includes free cold-pack for perishable items.\", \"linked_sales_invoice_number\": \"SI-2026-01048\", \"idempotency_key\": \"idem-jef-caferimo-purchase-orders-1\", \"created_at\": \"2026-05-14T13:18:57Z\", \"updated_at\": \"2026-05-14T13:18:57Z\", \"posted_at\": \"2026-05-14T13:18:57Z\", \"is_active\": true, \"is_deleted\": false, \"deleted_at\": \"1970-01-01T00:00:00Z\", \"schema_version\": 1, \"version\": 1, \"void_reason\": \"\", \"voided_at\": \"2026-05-14T13:18:57Z\", \"children\": {\"purchase_order_items\": [{\"purchase_order_item_id\": \"2ff4a183-2b2b-494c-be41-77c8cdba1d35\", \"purchase_order_id\": \"55268420-9914-4271-8cfd-d5b5da33e8f9\", \"store_id\": \"deb63012-02fa-49b1-b631-177f2aaa6ba4\", \"entity_number\": \"JEF-CEB-0142\", \"purchase_order_number\": \"PO-CEB-2026-0514-00027\", \"order_number\": \"ORD-1004827\", \"business_date\": \"2026-05-14\", \"line_number\": 1, \"product_number\": \"MED-OT-5031\", \"product_name\": \"SanMiguel Hotdog Regular 1kg\", \"quantity\": 12, \"unit_price\": 119.5, \"line_total\": 1434, \"created_at\": \"2026-05-14T13:20:45Z\", \"updated_at\": \"2026-05-14T13:20:45Z\", \"is_active\": true, \"is_deleted\": false, \"deleted_at\": \"1970-01-01T00:00:00Z\", \"schema_version\": 1, \"version\": 1}]}}"

PowerShell curl

curl.exe -X POST "https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-purchase-orders-post-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": "JEF-07-PLZ", "purchase_order_number": "PO-2026-0501", "order_number": "ORD-PO-0501", "purchase_order_date": "2026-05-14", "purchase_order_datetime": "2026-05-14T13:18:57Z", "business_date": "2026-05-14", "purchase_order_status": "APPROVED", "owed_status": "FULLY-SETTLED", "company_number": "VEND-000981", "company_name": "Caferimo Trading Inc.", "company_address_line_1": "Unit 12B, Rizal Commercial Center, San Jose", "company_address_line_2": "Brgy. Del Pilar, Sta. Rosa, Laguna", "company_contact_number": "049-546-2188", "company_tin": "327-845-029-000", "item_count": 14, "total_quantity": 96, "subtotal_amount": 47850.0, "discount_amount": 750.0, "tax_amount": 8095.0, "total_amount": 55195.0, "settlement_status": "SETTLED", "settlement_method": "BANK-TRANSFER", "settled_amount": 55195.0, "balance_amount": 0.0, "settled_at": "2026-05-14T13:18:57Z", "prepared_by": "Mara D. Cruz", "approved_by": "Ramon T. Reyes", "branch_name": "Jef Caferimo - Santa Rosa", "terminal_name": "POS-TERMINAL-03", "purchase_order_remarks": "Delivery scheduled for May 16-17. Includes free cold-pack for perishable items.", "linked_sales_invoice_number": "SI-2026-01048", "idempotency_key": "idem-jef-caferimo-purchase-orders-1", "created_at": "2026-05-14T13:18:57Z", "updated_at": "2026-05-14T13:18:57Z", "posted_at": "2026-05-14T13:18:57Z", "is_active": true, "is_deleted": false, "deleted_at": "1970-01-01T00:00:00Z", "schema_version": 1, "version": 1, "void_reason": "", "voided_at": "2026-05-14T13:18:57Z", "children": {"purchase_order_items": [{"purchase_order_item_id": "2ff4a183-2b2b-494c-be41-77c8cdba1d35", "purchase_order_id": "55268420-9914-4271-8cfd-d5b5da33e8f9", "store_id": "deb63012-02fa-49b1-b631-177f2aaa6ba4", "entity_number": "JEF-CEB-0142", "purchase_order_number": "PO-CEB-2026-0514-00027", "order_number": "ORD-1004827", "business_date": "2026-05-14", "line_number": 1, "product_number": "MED-OT-5031", "product_name": "SanMiguel Hotdog Regular 1kg", "quantity": 12, "unit_price": 119.5, "line_total": 1434, "created_at": "2026-05-14T13:20:45Z", "updated_at": "2026-05-14T13:20:45Z", "is_active": true, "is_deleted": false, "deleted_at": "1970-01-01T00:00:00Z", "schema_version": 1, "version": 1}]}}'