/caferimo-purchase-orders-post-one

Summary

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

  • Source SHA: 5300225d557dc9c5aa16a784fb5f4ca1fb5111dd

  • Source run id: 25995658780

  • 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: value-001

  • purchase\_order\_number: value-001

  • order\_number: value-001

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

  • purchase\_order\_datetime: 2026-05-17T15:51:49Z

  • business\_date: 2026-05-17

  • purchase\_order\_status: value-001

  • owed\_status: value-001

  • company\_number: value-001

  • company\_name: Caferimo Trading Co.

  • 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-17T15:51:49Z

  • 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\_at: 2026-05-17T15:51:49Z

  • updated\_at: 2026-05-17T15:51:49Z

  • posted\_at: 2026-05-17T15:51:49Z

  • is\_active: True

  • is\_deleted: True

  • deleted\_at: 2026-05-17T15:51:49Z

  • schema\_version: 1

  • version: 1

  • void\_reason: Sample text 001

  • voided\_at: 2026-05-17T15:51:49Z

  • 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-17

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

  • children.purchase\_order\_items\[0\].product\_number: value-001

  • children.purchase\_order\_items\[0\].product\_name: Premium 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\_at: 2026-05-17T15:51:49Z

  • children.purchase\_order\_items\[0\].updated\_at: 2026-05-17T15:51:49Z

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

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

  • children.purchase\_order\_items\[0\].deleted\_at: 2026-05-17T15:51:49Z

  • 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": "value-001",
  "purchase_order_number": "value-001",
  "order_number": "value-001",
  "purchase_order_date": "2026-05-17",
  "purchase_order_datetime": "2026-05-17T15:51:49Z",
  "business_date": "2026-05-17",
  "purchase_order_status": "value-001",
  "owed_status": "value-001",
  "company_number": "value-001",
  "company_name": "Caferimo Trading Co.",
  "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-17T15:51:49Z",
  "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_at": "2026-05-17T15:51:49Z",
  "updated_at": "2026-05-17T15:51:49Z",
  "posted_at": "2026-05-17T15:51:49Z",
  "is_active": "True",
  "is_deleted": "True",
  "deleted_at": "2026-05-17T15:51:49Z",
  "schema_version": "1",
  "version": "1",
  "void_reason": "Sample text 001",
  "voided_at": "2026-05-17T15:51:49Z",
  "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-17",
  "children.purchase_order_items[0].line_number": "1",
  "children.purchase_order_items[0].product_number": "value-001",
  "children.purchase_order_items[0].product_name": "Premium 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_at": "2026-05-17T15:51:49Z",
  "children.purchase_order_items[0].updated_at": "2026-05-17T15:51:49Z",
  "children.purchase_order_items[0].is_active": "True",
  "children.purchase_order_items[0].is_deleted": "True",
  "children.purchase_order_items[0].deleted_at": "2026-05-17T15:51:49Z",
  "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\": \"value-001\", \"purchase_order_number\": \"value-001\", \"order_number\": \"value-001\", \"purchase_order_date\": \"2026-05-17\", \"purchase_order_datetime\": \"2026-05-17T15:51:49Z\", \"business_date\": \"2026-05-17\", \"purchase_order_status\": \"value-001\", \"owed_status\": \"value-001\", \"company_number\": \"value-001\", \"company_name\": \"Caferimo Trading Co.\", \"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-17T15:51:49Z\", \"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_at\": \"2026-05-17T15:51:49Z\", \"updated_at\": \"2026-05-17T15:51:49Z\", \"posted_at\": \"2026-05-17T15:51:49Z\", \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-17T15:51:49Z\", \"schema_version\": 1, \"version\": 1, \"void_reason\": \"Sample text 001\", \"voided_at\": \"2026-05-17T15:51:49Z\", \"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-17\", \"line_number\": 1, \"product_number\": \"value-001\", \"product_name\": \"Premium Diesel\", \"quantity\": 1, \"unit_price\": 1, \"line_total\": 1, \"created_at\": \"2026-05-17T15:51:49Z\", \"updated_at\": \"2026-05-17T15:51:49Z\", \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-17T15:51:49Z\", \"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": "value-001", "purchase_order_number": "value-001", "order_number": "value-001", "purchase_order_date": "2026-05-17", "purchase_order_datetime": "2026-05-17T15:51:49Z", "business_date": "2026-05-17", "purchase_order_status": "value-001", "owed_status": "value-001", "company_number": "value-001", "company_name": "Caferimo Trading Co.", "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-17T15:51:49Z", "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_at": "2026-05-17T15:51:49Z", "updated_at": "2026-05-17T15:51:49Z", "posted_at": "2026-05-17T15:51:49Z", "is_active": true, "is_deleted": true, "deleted_at": "2026-05-17T15:51:49Z", "schema_version": 1, "version": 1, "void_reason": "Sample text 001", "voided_at": "2026-05-17T15:51:49Z", "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-17", "line_number": 1, "product_number": "value-001", "product_name": "Premium Diesel", "quantity": 1, "unit_price": 1, "line_total": 1, "created_at": "2026-05-17T15:51:49Z", "updated_at": "2026-05-17T15:51:49Z", "is_active": true, "is_deleted": true, "deleted_at": "2026-05-17T15:51:49Z", "schema_version": 1, "version": 1}]}}'