caferimo-orders-post-one¶
Source¶
Repository:
jef-systems/jef-caferimo-backendSource Run ID:
24962842310Source SHA:
c73d8c4fa33c496a8e9d39267e4868ddfa8978a5Module:
caferimoDocumentation Scope:
asyncLambda:
jef-caferimo-post-1
Endpoint¶
API Name:
jef-caferimoAction Name:
postMethod:
POSTScope Label:
AsyncResource Path:
/caferimo-orders-post-oneComplete Endpoint:
https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-orders-post-oneLambda ARN:
arn:aws:lambda:ap-southeast-1:246715082475:function:jef-caferimo-post-1curl payload mode:
json_body
API Gateway Description¶
Function: jef-caferimo-post-1
Module: jef-caferimo
Action: post
Method: POST
Invocation Mode: ASYNC
Resource Path: /caferimo-orders-post-one
API Gateway Response:
- status_code: 202
- message: Request accepted for asynchronous processing.
Table:
- table: jef-caferimo-orders
Payload Example:
- entity_number: 1001
- id: 550e8400-e29b-41d4-a716-446655440001
- order_id: order-20260425-0001
- transaction_id: 550e8400-e29b-41d4-a716-446655440001
- order_number: 0001
- modified_from_transaction_id:
- modified_from_order_number:
- items[0].cartId: cart-0001
- items[0].productId: 0001
- items[0].name: Cafe Latte
- items[0].size.label: Medium
- items[0].size.upcharge: 0
- items[0].milk.name: Whole Milk
- items[0].milk.price: 0
- items[0].addOns[0].id: addon-vanilla
- items[0].addOns[0].name: Vanilla Syrup
- items[0].addOns[0].price: 20
- items[0].note:
- items[0].basePrice: 120
- items[0].sizeUpcharge: 0
- items[0].milkUpcharge: 0
- items[0].addOnsTotal: 20
- items[0].unitPrice: 140
- items[0].quantity: 1
- subtotal: 140
- vat_amount: 15
- discount_amount: 0
- final_total: 140
- payment_method: cash
- payment_status: paid
- paid_amount: 200
- change_amount: 60
- gcash_reference:
- purchase_order_number:
- purchase_order_company:
- purchase_order_remarks:
- store_name_display: JEF Caferimo
- store_tagline: Fresh coffee daily
- branch_name: Main Branch
- store_address: Bago City
- store_city_tel: Bago City / 0917-000-0000
- cashier_name: Cashier 1
- terminal_name: POS-01
- store_email: [email protected]
- store_social: @jefcaferimo
- store_tin: 000-000-000
- store_accr: ACCR-0001
- store_accr_valid: 2026-12-31
- receipt_lines[0].text: JEF Caferimo
- receipt_lines[0].align: center
- receipt_lines[0].bold: True
- receipt_lines[0].size: double-height
- receipt_lines[1].text: Order #0001
- receipt_lines[1].align: center
- receipt_lines[1].bold: True
- receipt_lines[1].size: normal
- receipt_version: 1
- recipe_lines[0].text: Cafe Latte x1
- recipe_lines[0].align: left
- recipe_lines[0].bold: False
- recipe_lines[0].size: normal
- recipe_version: 1
- created_at: 2026-04-25T12:00:00Z
- createdAt: 2026-04-25T12:00:00Z
- updatedAt: 2026-04-25T12:00:00Z
- syncStatus: synced
- isDeleted: False
- version: 1
- order_lifecycle_status: active
- void_reason:
- voided_at:
- superseded_at:
- superseded_by_transaction_id:
- superseded_by_order_number:
- modified_at:
Payload Schema:
- pk: string-{transaction_id}
- gsi_1_pk: string-{entity_number}
- gsi_1_sk: string-{created_at}
- gsi_2_pk: string-{entity_number}
- entity_number: string-4-digits-nonzerostart
- id: string
- order_id: string
- transaction_id: string-uuidv4
- order_number: string-4-digits
- modified_from_transaction_id: string
- modified_from_order_number: string-4-digits
- items[0].cartId: string
- items[0].productId: string
- items[0].name: string
- items[0].size.label: string
- items[0].size.upcharge: number-two-decimals
- items[0].milk.name: string
- items[0].milk.price: number-two-decimals
- items[0].addOns[0].id: string
- items[0].addOns[0].name: string
- items[0].addOns[0].price: number-two-decimals
- items[0].note: string
- items[0].basePrice: number-two-decimals
- items[0].sizeUpcharge: number-two-decimals
- items[0].milkUpcharge: number-two-decimals
- items[0].addOnsTotal: number-two-decimals
- items[0].unitPrice: number-two-decimals
- items[0].quantity: number-whole-number
- subtotal: number-two-decimals
- vat_amount: number-two-decimals
- discount_amount: number-two-decimals
- final_total: number-two-decimals
- payment_method: string-enum-cash|gcash|purchase_order
- payment_status: string-enum-paid|pending_collection
- paid_amount: number-two-decimals
- change_amount: number-two-decimals
- gcash_reference: string
- purchase_order_number: string
- purchase_order_company: string
- purchase_order_remarks: string
- store_name_display: string
- store_tagline: string
- branch_name: string
- store_address: string
- store_city_tel: string
- cashier_name: string
- terminal_name: string
- store_email: string
- store_social: string
- store_tin: string
- store_accr: string
- store_accr_valid: string
- receipt_lines[0].text: string
- receipt_lines[0].align: string-enum-left|center|right
- receipt_lines[0].bold: boolean
- receipt_lines[0].size: string-enum-normal|double-height|double
- receipt_version: string
- recipe_lines[0].text: string
- recipe_lines[0].align: string-enum-left|center|right
- recipe_lines[0].bold: boolean
- recipe_lines[0].size: string-enum-normal|double-height|double
- recipe_version: string
- created_at: string-iso8601
- createdAt: string-iso8601
- updatedAt: string-iso8601
- syncStatus: string-enum-local_only|pending_upsert|synced|sync_error
- isDeleted: boolean
- version: number-whole-number
- order_lifecycle_status: string-enum-active|voided|superseded
- void_reason: string
- voided_at: string-iso8601
- superseded_at: string-iso8601
- superseded_by_transaction_id: string
- superseded_by_order_number: string-4-digits
- modified_at: string-iso8601
Response Schema:
- is_accepted: boolean
- message: string
Request Payload¶
{
"entity_number": "1001",
"id": "550e8400-e29b-41d4-a716-446655440001",
"order_id": "order-20260425-0001",
"transaction_id": "550e8400-e29b-41d4-a716-446655440001",
"order_number": "0001",
"modified_from_transaction_id": "",
"modified_from_order_number": "",
"items[0].cartId": "cart-0001",
"items[0].productId": "0001",
"items[0].name": "Cafe Latte",
"items[0].size.label": "Medium",
"items[0].size.upcharge": "0",
"items[0].milk.name": "Whole Milk",
"items[0].milk.price": "0",
"items[0].addOns[0].id": "addon-vanilla",
"items[0].addOns[0].name": "Vanilla Syrup",
"items[0].addOns[0].price": "20",
"items[0].note": "",
"items[0].basePrice": "120",
"items[0].sizeUpcharge": "0",
"items[0].milkUpcharge": "0",
"items[0].addOnsTotal": "20",
"items[0].unitPrice": "140",
"items[0].quantity": "1",
"subtotal": "140",
"vat_amount": "15",
"discount_amount": "0",
"final_total": "140",
"payment_method": "cash",
"payment_status": "paid",
"paid_amount": "200",
"change_amount": "60",
"gcash_reference": "",
"purchase_order_number": "",
"purchase_order_company": "",
"purchase_order_remarks": "",
"store_name_display": "JEF Caferimo",
"store_tagline": "Fresh coffee daily",
"branch_name": "Main Branch",
"store_address": "Bago City",
"store_city_tel": "Bago City / 0917-000-0000",
"cashier_name": "Cashier 1",
"terminal_name": "POS-01",
"store_email": "[email protected]",
"store_social": "@jefcaferimo",
"store_tin": "000-000-000",
"store_accr": "ACCR-0001",
"store_accr_valid": "2026-12-31",
"receipt_lines[0].text": "JEF Caferimo",
"receipt_lines[0].align": "center",
"receipt_lines[0].bold": "True",
"receipt_lines[0].size": "double-height",
"receipt_lines[1].text": "Order #0001",
"receipt_lines[1].align": "center",
"receipt_lines[1].bold": "True",
"receipt_lines[1].size": "normal",
"receipt_version": "1",
"recipe_lines[0].text": "Cafe Latte x1",
"recipe_lines[0].align": "left",
"recipe_lines[0].bold": "False",
"recipe_lines[0].size": "normal",
"recipe_version": "1",
"created_at": "2026-04-25T12:00:00Z",
"createdAt": "2026-04-25T12:00:00Z",
"updatedAt": "2026-04-25T12:00:00Z",
"syncStatus": "synced",
"isDeleted": "False",
"version": "1",
"order_lifecycle_status": "active",
"void_reason": "",
"voided_at": "",
"superseded_at": "",
"superseded_by_transaction_id": "",
"superseded_by_order_number": "",
"modified_at": ""
}
Response¶
{
"is_accepted": "boolean",
"message": "string"
}
CMD curl¶
curl -X POST "https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-orders-post-one" -H "Content-Type: application/json" --data-raw "{\"entity_number\": \"1001\", \"id\": \"550e8400-e29b-41d4-a716-446655440001\", \"order_id\": \"order-20260425-0001\", \"transaction_id\": \"550e8400-e29b-41d4-a716-446655440001\", \"order_number\": \"0001\", \"modified_from_transaction_id\": \"\", \"modified_from_order_number\": \"\", \"items\": [{\"cartId\": \"cart-0001\", \"productId\": \"0001\", \"name\": \"Cafe Latte\", \"size\": {\"label\": \"Medium\", \"upcharge\": 0}, \"milk\": {\"name\": \"Whole Milk\", \"price\": 0}, \"addOns\": [{\"id\": \"addon-vanilla\", \"name\": \"Vanilla Syrup\", \"price\": 20}], \"note\": \"\", \"basePrice\": 120, \"sizeUpcharge\": 0, \"milkUpcharge\": 0, \"addOnsTotal\": 20, \"unitPrice\": 140, \"quantity\": 1}], \"subtotal\": 140, \"vat_amount\": 15, \"discount_amount\": 0, \"final_total\": 140, \"payment_method\": \"cash\", \"payment_status\": \"paid\", \"paid_amount\": 200, \"change_amount\": 60, \"gcash_reference\": \"\", \"purchase_order_number\": \"\", \"purchase_order_company\": \"\", \"purchase_order_remarks\": \"\", \"store_name_display\": \"JEF Caferimo\", \"store_tagline\": \"Fresh coffee daily\", \"branch_name\": \"Main Branch\", \"store_address\": \"Bago City\", \"store_city_tel\": \"Bago City / 0917-000-0000\", \"cashier_name\": \"Cashier 1\", \"terminal_name\": \"POS-01\", \"store_email\": \"[email protected]\", \"store_social\": \"@jefcaferimo\", \"store_tin\": \"000-000-000\", \"store_accr\": \"ACCR-0001\", \"store_accr_valid\": \"2026-12-31\", \"receipt_lines\": [{\"text\": \"JEF Caferimo\", \"align\": \"center\", \"bold\": true, \"size\": \"double-height\"}, {\"text\": \"Order #0001\", \"align\": \"center\", \"bold\": true, \"size\": \"normal\"}], \"receipt_version\": \"1\", \"recipe_lines\": [{\"text\": \"Cafe Latte x1\", \"align\": \"left\", \"bold\": false, \"size\": \"normal\"}], \"recipe_version\": \"1\", \"created_at\": \"2026-04-25T12:00:00Z\", \"createdAt\": \"2026-04-25T12:00:00Z\", \"updatedAt\": \"2026-04-25T12:00:00Z\", \"syncStatus\": \"synced\", \"isDeleted\": false, \"version\": 1, \"order_lifecycle_status\": \"active\", \"void_reason\": \"\", \"voided_at\": \"\", \"superseded_at\": \"\", \"superseded_by_transaction_id\": \"\", \"superseded_by_order_number\": \"\", \"modified_at\": \"\"}"
PowerShell curl¶
curl.exe -X POST "https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-orders-post-one" -H "Content-Type: application/json" --data-raw '{"entity_number": "1001", "id": "550e8400-e29b-41d4-a716-446655440001", "order_id": "order-20260425-0001", "transaction_id": "550e8400-e29b-41d4-a716-446655440001", "order_number": "0001", "modified_from_transaction_id": "", "modified_from_order_number": "", "items": [{"cartId": "cart-0001", "productId": "0001", "name": "Cafe Latte", "size": {"label": "Medium", "upcharge": 0}, "milk": {"name": "Whole Milk", "price": 0}, "addOns": [{"id": "addon-vanilla", "name": "Vanilla Syrup", "price": 20}], "note": "", "basePrice": 120, "sizeUpcharge": 0, "milkUpcharge": 0, "addOnsTotal": 20, "unitPrice": 140, "quantity": 1}], "subtotal": 140, "vat_amount": 15, "discount_amount": 0, "final_total": 140, "payment_method": "cash", "payment_status": "paid", "paid_amount": 200, "change_amount": 60, "gcash_reference": "", "purchase_order_number": "", "purchase_order_company": "", "purchase_order_remarks": "", "store_name_display": "JEF Caferimo", "store_tagline": "Fresh coffee daily", "branch_name": "Main Branch", "store_address": "Bago City", "store_city_tel": "Bago City / 0917-000-0000", "cashier_name": "Cashier 1", "terminal_name": "POS-01", "store_email": "[email protected]", "store_social": "@jefcaferimo", "store_tin": "000-000-000", "store_accr": "ACCR-0001", "store_accr_valid": "2026-12-31", "receipt_lines": [{"text": "JEF Caferimo", "align": "center", "bold": true, "size": "double-height"}, {"text": "Order #0001", "align": "center", "bold": true, "size": "normal"}], "receipt_version": "1", "recipe_lines": [{"text": "Cafe Latte x1", "align": "left", "bold": false, "size": "normal"}], "recipe_version": "1", "created_at": "2026-04-25T12:00:00Z", "createdAt": "2026-04-25T12:00:00Z", "updatedAt": "2026-04-25T12:00:00Z", "syncStatus": "synced", "isDeleted": false, "version": 1, "order_lifecycle_status": "active", "void_reason": "", "voided_at": "", "superseded_at": "", "superseded_by_transaction_id": "", "superseded_by_order_number": "", "modified_at": ""}'