.. AUTO-GENERATED FILE. DO NOT EDIT. store-checkout-drafts-patch-one =============================== Source ------ - Repository: ``jef-systems/jef-store-backend`` - Source Run ID: ``25334823297`` - Source SHA: ``69cb846339fa14db005aec45414a4a94ec2a821e`` - Module: ``store`` - Documentation Scope: ``async`` - Lambda: ``jef-store-patch-23`` Endpoint -------- - API Name: ``jef-store`` - Action Name: ``patch`` - Method: ``PATCH`` - Scope Label: ``Async`` - Resource Path: ``/store-checkout-drafts-patch-one`` - Complete Endpoint: ``https://rw53l0a90m.execute-api.ap-southeast-1.amazonaws.com/prod/store-checkout-drafts-patch-one`` - Lambda ARN: ``arn:aws:lambda:ap-southeast-1:246715082475:function:jef-store-patch-23`` - curl payload mode: ``json_body`` API Gateway Description ----------------------- .. code-block:: text Function: jef-store-patch-23 Module: jef-store Action: patch Method: PATCH Invocation Mode: ASYNC Resource Path: /store-checkout-drafts-patch-one API Gateway Response: - status_code: 202 - message: Request accepted for asynchronous processing. Table: - table: jef-store-checkout-drafts Payload Example: - pk: checkout-draft-1001-0001 - gsi_1_pk: 1001 - gsi_1_sk: 2026-05-04T09:07:00+08:00 - checkout_draft_id: checkout-draft-1001-0001 - cart_id: cart-1001-0001 - entity_number: 1001 - employee_number: EMP-1001-0001 - customer_number: CUS-1001-0001 - customer_name: Juan Dela Cruz - phone: +63 917 100 0001 - email: bacolod-main-barista-grocery@example.com - delivery_mode: Pandan Coconut Sea Salt Latte delivery mode 1001-0001 - payment_method: Pandan Coconut Sea Salt Latte payment method 1001-0001 - receipt_mode: Pandan Coconut Sea Salt Latte receipt mode 1001-0001 - branch_pickup_name: Bacolod Main Barista Grocery - full_address: Bacolod City, Negros Occidental - delivery_instructions: Pandan Coconut Sea Salt Latte delivery instructions 1001-0001 - internal_note: Barista grocery sample note for Pandan Coconut Sea Salt Latte at Bacolod Main Barista Grocery. - call_before_delivery: true - subtotal: 1896 - shipping_fee: 1001 - discount: 1001 - grand_total: 1896 - draft_status: active - is_active: true - is_deleted: false - deleted_at: - created_at: 2026-05-04T09:07:00+08:00 - updated_at: 2026-05-04T09:07:00+08:00 - idempotency_key: 6500b1d4-f86b-54a9-9630-d494034f4519 - schema_version: 1001 - version: 1001 Payload Schema: - pk: string-{checkout_draft_id} - gsi_1_pk: string-{entity_number} - gsi_1_sk: string-{created_at} - checkout_draft_id: string - cart_id: string - entity_number: string - employee_number: string - customer_number: string - customer_name: string - phone: string - email: string - delivery_mode: string - payment_method: string - receipt_mode: string - branch_pickup_name: string - full_address: string - delivery_instructions: string - internal_note: string - call_before_delivery: boolean - subtotal: number - shipping_fee: number - discount: number - grand_total: number - draft_status: string - is_active: boolean - is_deleted: boolean - deleted_at: string - created_at: string - updated_at: string - idempotency_key: string - schema_version: number - version: number Response Schema: - is_accepted: boolean - message: string Request Payload --------------- .. code-block:: json { "pk": "checkout-draft-1001-0001", "gsi_1_pk": "1001", "gsi_1_sk": "2026-05-04T09:07:00+08:00", "checkout_draft_id": "checkout-draft-1001-0001", "cart_id": "cart-1001-0001", "entity_number": "1001", "employee_number": "EMP-1001-0001", "customer_number": "CUS-1001-0001", "customer_name": "Juan Dela Cruz", "phone": "+63 917 100 0001", "email": "bacolod-main-barista-grocery@example.com", "delivery_mode": "Pandan Coconut Sea Salt Latte delivery mode 1001-0001", "payment_method": "Pandan Coconut Sea Salt Latte payment method 1001-0001", "receipt_mode": "Pandan Coconut Sea Salt Latte receipt mode 1001-0001", "branch_pickup_name": "Bacolod Main Barista Grocery", "full_address": "Bacolod City, Negros Occidental", "delivery_instructions": "Pandan Coconut Sea Salt Latte delivery instructions 1001-0001", "internal_note": "Barista grocery sample note for Pandan Coconut Sea Salt Latte at Bacolod Main Barista Grocery.", "call_before_delivery": "true", "subtotal": "1896", "shipping_fee": "1001", "discount": "1001", "grand_total": "1896", "draft_status": "active", "is_active": "true", "is_deleted": "false", "deleted_at": "", "created_at": "2026-05-04T09:07:00+08:00", "updated_at": "2026-05-04T09:07:00+08:00", "idempotency_key": "6500b1d4-f86b-54a9-9630-d494034f4519", "schema_version": "1001", "version": "1001" } Response -------- .. code-block:: json { "is_accepted": "boolean", "message": "string" } CMD curl -------- .. code-block:: text curl -X PATCH "https://rw53l0a90m.execute-api.ap-southeast-1.amazonaws.com/prod/store-checkout-drafts-patch-one" -H "Content-Type: application/json" --data-raw "{\"pk\": \"checkout-draft-1001-0001\", \"gsi_1_pk\": \"1001\", \"gsi_1_sk\": \"2026-05-04T09:07:00+08:00\", \"checkout_draft_id\": \"checkout-draft-1001-0001\", \"cart_id\": \"cart-1001-0001\", \"entity_number\": \"1001\", \"employee_number\": \"EMP-1001-0001\", \"customer_number\": \"CUS-1001-0001\", \"customer_name\": \"Juan Dela Cruz\", \"phone\": \"+63 917 100 0001\", \"email\": \"bacolod-main-barista-grocery@example.com\", \"delivery_mode\": \"Pandan Coconut Sea Salt Latte delivery mode 1001-0001\", \"payment_method\": \"Pandan Coconut Sea Salt Latte payment method 1001-0001\", \"receipt_mode\": \"Pandan Coconut Sea Salt Latte receipt mode 1001-0001\", \"branch_pickup_name\": \"Bacolod Main Barista Grocery\", \"full_address\": \"Bacolod City, Negros Occidental\", \"delivery_instructions\": \"Pandan Coconut Sea Salt Latte delivery instructions 1001-0001\", \"internal_note\": \"Barista grocery sample note for Pandan Coconut Sea Salt Latte at Bacolod Main Barista Grocery.\", \"call_before_delivery\": \"true\", \"subtotal\": 1896, \"shipping_fee\": 1001, \"discount\": 1001, \"grand_total\": 1896, \"draft_status\": \"active\", \"is_active\": \"true\", \"is_deleted\": \"false\", \"deleted_at\": \"\", \"created_at\": \"2026-05-04T09:07:00+08:00\", \"updated_at\": \"2026-05-04T09:07:00+08:00\", \"idempotency_key\": \"6500b1d4-f86b-54a9-9630-d494034f4519\", \"schema_version\": 1001, \"version\": 1001}" PowerShell curl --------------- .. code-block:: text curl.exe -X PATCH "https://rw53l0a90m.execute-api.ap-southeast-1.amazonaws.com/prod/store-checkout-drafts-patch-one" -H "Content-Type: application/json" --data-raw '{"pk": "checkout-draft-1001-0001", "gsi_1_pk": "1001", "gsi_1_sk": "2026-05-04T09:07:00+08:00", "checkout_draft_id": "checkout-draft-1001-0001", "cart_id": "cart-1001-0001", "entity_number": "1001", "employee_number": "EMP-1001-0001", "customer_number": "CUS-1001-0001", "customer_name": "Juan Dela Cruz", "phone": "+63 917 100 0001", "email": "bacolod-main-barista-grocery@example.com", "delivery_mode": "Pandan Coconut Sea Salt Latte delivery mode 1001-0001", "payment_method": "Pandan Coconut Sea Salt Latte payment method 1001-0001", "receipt_mode": "Pandan Coconut Sea Salt Latte receipt mode 1001-0001", "branch_pickup_name": "Bacolod Main Barista Grocery", "full_address": "Bacolod City, Negros Occidental", "delivery_instructions": "Pandan Coconut Sea Salt Latte delivery instructions 1001-0001", "internal_note": "Barista grocery sample note for Pandan Coconut Sea Salt Latte at Bacolod Main Barista Grocery.", "call_before_delivery": "true", "subtotal": 1896, "shipping_fee": 1001, "discount": 1001, "grand_total": 1896, "draft_status": "active", "is_active": "true", "is_deleted": "false", "deleted_at": "", "created_at": "2026-05-04T09:07:00+08:00", "updated_at": "2026-05-04T09:07:00+08:00", "idempotency_key": "6500b1d4-f86b-54a9-9630-d494034f4519", "schema_version": 1001, "version": 1001}'