.. AUTO-GENERATED FILE. DO NOT EDIT. /store-carts-patch-one ====================== Summary ------- - **Source repository:** ``jef-systems/jef-store-backend`` - **Source SHA:** ``b1c3aa18b5217e4573ab46a85c2332183d6202ed`` - **Source run id:** ``26363149331`` - **Lambda function:** ``jef-store-carts-patch-one`` - **HTTP method:** ``PATCH`` - **API path:** ``/store-carts-patch-one`` - **Endpoint URL:** ``https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-carts-patch-one`` - **Payload mode:** ``json-body`` Description ----------- - ``Function``: jef-store-carts-patch-one - ``Module``: jef-store - ``Action``: patch-one - ``Method``: PATCH - ``Invocation Mode``: ASYNC - ``Resource Path``: /store-carts-patch-one - ``Table``: jef-store-carts - ``Primary Key``: cart\_id API Gateway Response -------------------- - ``status\_code``: 202 - ``message``: Request accepted for asynchronous processing. Payload Example --------------- - ``cart\_id``: d2ea8b40-4712-4f51-b80e-fea7b9531436 - ``entity\_number``: 218ea31f-036f-4b70-a0d6-1207af724d49 - ``employee\_number``: 791e34f4-779a-41be-831a-6bdd12ce7b71 - ``customer\_number``: 3dfd5fe5-1dce-4d3b-9f6e-2c9d75a472e3 - ``order\_mode``: value-001 - ``cart\_status``: pending - ``subtotal``: 1 - ``shipping\_fee``: 1 - ``discount``: 1 - ``grand\_total``: 1 - ``total\_quantity``: 1 - ``is\_active``: True - ``is\_deleted``: True - ``deleted\_at``: 2026-05-24T13:48:21Z - ``created\_at``: 2026-05-24T13:48:21Z - ``updated\_at``: 2026-05-24T13:48:21Z - ``idempotency\_key``: Sample text 001 - ``schema\_version``: 1 - ``version``: 1 - ``children.cart\_items\[0\].cart\_item\_id``: b7e65795-f82f-42b2-a33f-1bd928d0a530 - ``children.cart\_items\[0\].cart\_id``: d2ea8b40-4712-4f51-b80e-fea7b9531436 - ``children.cart\_items\[0\].entity\_number``: 218ea31f-036f-4b70-a0d6-1207af724d49 - ``children.cart\_items\[0\].product\_number``: 26f8bbc5-06ff-4167-8390-266d2a2c4303 - ``children.cart\_items\[0\].sku``: value\_00 - ``children.cart\_items\[0\].product\_name``: Diesel - ``children.cart\_items\[0\].unit\_price``: 1 - ``children.cart\_items\[0\].quantity``: 1 - ``children.cart\_items\[0\].stock\_quantity\_snapshot``: 1 - ``children.cart\_items\[0\].line\_total``: 1 - ``children.cart\_items\[0\].is\_selected``: True - ``children.cart\_items\[0\].is\_active``: True - ``children.cart\_items\[0\].is\_deleted``: True - ``children.cart\_items\[0\].deleted\_at``: 2026-05-24T13:48:21Z - ``children.cart\_items\[0\].created\_at``: 2026-05-24T13:48:21Z - ``children.cart\_items\[0\].updated\_at``: 2026-05-24T13:48:21Z - ``children.cart\_items\[0\].idempotency\_key``: Sample text 001 - ``children.cart\_items\[0\].schema\_version``: 1 - ``children.cart\_items\[0\].version``: 1 Payload Schema -------------- .. code-block:: json { "root.type": "M", "root.required": "True", "root.attributes.cart_id.type": "S", "root.attributes.cart_id.required": "True", "root.attributes.cart_id.format": "uuidv4", "root.attributes.cart_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.format": "uuidv4", "root.attributes.entity_number.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.employee_number.type": "S", "root.attributes.employee_number.required": "False", "root.attributes.employee_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.customer_number.type": "S", "root.attributes.customer_number.required": "False", "root.attributes.customer_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.order_mode.type": "S", "root.attributes.order_mode.required": "False", "root.attributes.order_mode.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.cart_status.type": "S", "root.attributes.cart_status.required": "False", "root.attributes.cart_status.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.subtotal.type": "N", "root.attributes.subtotal.required": "False", "root.attributes.subtotal.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.shipping_fee.type": "N", "root.attributes.shipping_fee.required": "False", "root.attributes.shipping_fee.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.discount.type": "N", "root.attributes.discount.required": "False", "root.attributes.discount.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.grand_total.type": "N", "root.attributes.grand_total.required": "False", "root.attributes.grand_total.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.total_quantity.type": "N", "root.attributes.total_quantity.required": "False", "root.attributes.total_quantity.regex": "^\\d+$", "root.attributes.is_active.type": "BOOL", "root.attributes.is_active.required": "False", "root.attributes.is_active.regex": "^(true|false)$", "root.attributes.is_deleted.type": "BOOL", "root.attributes.is_deleted.required": "False", "root.attributes.is_deleted.regex": "^(true|false)$", "root.attributes.deleted_at.type": "S", "root.attributes.deleted_at.required": "False", "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.created_at.type": "S", "root.attributes.created_at.required": "False", "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": "False", "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.idempotency_key.type": "S", "root.attributes.idempotency_key.required": "False", "root.attributes.idempotency_key.regex": "^.{1,300}$", "root.attributes.schema_version.type": "N", "root.attributes.schema_version.required": "False", "root.attributes.schema_version.regex": "^\\d+$", "root.attributes.version.type": "N", "root.attributes.version.required": "False", "root.attributes.version.regex": "^\\d+$", "root.attributes.children.type": "M", "root.attributes.children.required": "False", "root.attributes.children.attributes.cart_items.type": "L", "root.attributes.children.attributes.cart_items.required": "False", "root.attributes.children.attributes.cart_items.items.type": "M", "root.attributes.children.attributes.cart_items.items.attributes.cart_item_id.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.cart_item_id.required": "True", "root.attributes.children.attributes.cart_items.items.attributes.cart_item_id.format": "uuidv4", "root.attributes.children.attributes.cart_items.items.attributes.cart_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.cart_items.items.attributes.cart_id.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.cart_id.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.cart_id.format": "uuidv4", "root.attributes.children.attributes.cart_items.items.attributes.cart_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.cart_items.items.attributes.entity_number.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.entity_number.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.entity_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.cart_items.items.attributes.product_number.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.product_number.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.product_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.cart_items.items.attributes.sku.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.sku.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.sku.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.children.attributes.cart_items.items.attributes.product_name.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.product_name.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.product_name.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.children.attributes.cart_items.items.attributes.unit_price.type": "N", "root.attributes.children.attributes.cart_items.items.attributes.unit_price.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.unit_price.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.cart_items.items.attributes.quantity.type": "N", "root.attributes.children.attributes.cart_items.items.attributes.quantity.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.quantity.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.cart_items.items.attributes.stock_quantity_snapshot.type": "N", "root.attributes.children.attributes.cart_items.items.attributes.stock_quantity_snapshot.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.stock_quantity_snapshot.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.cart_items.items.attributes.line_total.type": "N", "root.attributes.children.attributes.cart_items.items.attributes.line_total.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.line_total.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.cart_items.items.attributes.is_selected.type": "BOOL", "root.attributes.children.attributes.cart_items.items.attributes.is_selected.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.is_selected.regex": "^(true|false)$", "root.attributes.children.attributes.cart_items.items.attributes.is_active.type": "BOOL", "root.attributes.children.attributes.cart_items.items.attributes.is_active.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.is_active.regex": "^(true|false)$", "root.attributes.children.attributes.cart_items.items.attributes.is_deleted.type": "BOOL", "root.attributes.children.attributes.cart_items.items.attributes.is_deleted.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.is_deleted.regex": "^(true|false)$", "root.attributes.children.attributes.cart_items.items.attributes.deleted_at.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.deleted_at.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.deleted_at.format": "iso8601", "root.attributes.children.attributes.cart_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.cart_items.items.attributes.created_at.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.created_at.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.created_at.format": "iso8601", "root.attributes.children.attributes.cart_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.cart_items.items.attributes.updated_at.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.updated_at.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.updated_at.format": "iso8601", "root.attributes.children.attributes.cart_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.cart_items.items.attributes.idempotency_key.type": "S", "root.attributes.children.attributes.cart_items.items.attributes.idempotency_key.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.idempotency_key.regex": "^.{1,300}$", "root.attributes.children.attributes.cart_items.items.attributes.schema_version.type": "N", "root.attributes.children.attributes.cart_items.items.attributes.schema_version.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.schema_version.regex": "^\\d+$", "root.attributes.children.attributes.cart_items.items.attributes.version.type": "N", "root.attributes.children.attributes.cart_items.items.attributes.version.required": "False", "root.attributes.children.attributes.cart_items.items.attributes.version.regex": "^\\d+$" } Response Schema --------------- .. code-block:: json { "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 --------------- .. code-block:: json { "cart_id": "d2ea8b40-4712-4f51-b80e-fea7b9531436", "entity_number": "218ea31f-036f-4b70-a0d6-1207af724d49", "employee_number": "791e34f4-779a-41be-831a-6bdd12ce7b71", "customer_number": "3dfd5fe5-1dce-4d3b-9f6e-2c9d75a472e3", "order_mode": "value-001", "cart_status": "pending", "subtotal": "1", "shipping_fee": "1", "discount": "1", "grand_total": "1", "total_quantity": "1", "is_active": "True", "is_deleted": "True", "deleted_at": "2026-05-24T13:48:21Z", "created_at": "2026-05-24T13:48:21Z", "updated_at": "2026-05-24T13:48:21Z", "idempotency_key": "Sample text 001", "schema_version": "1", "version": "1", "children.cart_items[0].cart_item_id": "b7e65795-f82f-42b2-a33f-1bd928d0a530", "children.cart_items[0].cart_id": "d2ea8b40-4712-4f51-b80e-fea7b9531436", "children.cart_items[0].entity_number": "218ea31f-036f-4b70-a0d6-1207af724d49", "children.cart_items[0].product_number": "26f8bbc5-06ff-4167-8390-266d2a2c4303", "children.cart_items[0].sku": "value_00", "children.cart_items[0].product_name": "Diesel", "children.cart_items[0].unit_price": "1", "children.cart_items[0].quantity": "1", "children.cart_items[0].stock_quantity_snapshot": "1", "children.cart_items[0].line_total": "1", "children.cart_items[0].is_selected": "True", "children.cart_items[0].is_active": "True", "children.cart_items[0].is_deleted": "True", "children.cart_items[0].deleted_at": "2026-05-24T13:48:21Z", "children.cart_items[0].created_at": "2026-05-24T13:48:21Z", "children.cart_items[0].updated_at": "2026-05-24T13:48:21Z", "children.cart_items[0].idempotency_key": "Sample text 001", "children.cart_items[0].schema_version": "1", "children.cart_items[0].version": "1" } Response -------- .. code-block:: json { "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 -------- .. code-block:: bat curl -X PATCH "https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-carts-patch-one" -H "Content-Type: application/json" --data-raw "{\"cart_id\": \"d2ea8b40-4712-4f51-b80e-fea7b9531436\", \"entity_number\": \"218ea31f-036f-4b70-a0d6-1207af724d49\", \"employee_number\": \"791e34f4-779a-41be-831a-6bdd12ce7b71\", \"customer_number\": \"3dfd5fe5-1dce-4d3b-9f6e-2c9d75a472e3\", \"order_mode\": \"value-001\", \"cart_status\": \"pending\", \"subtotal\": 1, \"shipping_fee\": 1, \"discount\": 1, \"grand_total\": 1, \"total_quantity\": 1, \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-24T13:48:21Z\", \"created_at\": \"2026-05-24T13:48:21Z\", \"updated_at\": \"2026-05-24T13:48:21Z\", \"idempotency_key\": \"Sample text 001\", \"schema_version\": 1, \"version\": 1, \"children\": {\"cart_items\": [{\"cart_item_id\": \"b7e65795-f82f-42b2-a33f-1bd928d0a530\", \"cart_id\": \"d2ea8b40-4712-4f51-b80e-fea7b9531436\", \"entity_number\": \"218ea31f-036f-4b70-a0d6-1207af724d49\", \"product_number\": \"26f8bbc5-06ff-4167-8390-266d2a2c4303\", \"sku\": \"value_00\", \"product_name\": \"Diesel\", \"unit_price\": 1, \"quantity\": 1, \"stock_quantity_snapshot\": 1, \"line_total\": 1, \"is_selected\": true, \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-24T13:48:21Z\", \"created_at\": \"2026-05-24T13:48:21Z\", \"updated_at\": \"2026-05-24T13:48:21Z\", \"idempotency_key\": \"Sample text 001\", \"schema_version\": 1, \"version\": 1}]}}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X PATCH "https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-carts-patch-one" -H "Content-Type: application/json" --data-raw '{"cart_id": "d2ea8b40-4712-4f51-b80e-fea7b9531436", "entity_number": "218ea31f-036f-4b70-a0d6-1207af724d49", "employee_number": "791e34f4-779a-41be-831a-6bdd12ce7b71", "customer_number": "3dfd5fe5-1dce-4d3b-9f6e-2c9d75a472e3", "order_mode": "value-001", "cart_status": "pending", "subtotal": 1, "shipping_fee": 1, "discount": 1, "grand_total": 1, "total_quantity": 1, "is_active": true, "is_deleted": true, "deleted_at": "2026-05-24T13:48:21Z", "created_at": "2026-05-24T13:48:21Z", "updated_at": "2026-05-24T13:48:21Z", "idempotency_key": "Sample text 001", "schema_version": 1, "version": 1, "children": {"cart_items": [{"cart_item_id": "b7e65795-f82f-42b2-a33f-1bd928d0a530", "cart_id": "d2ea8b40-4712-4f51-b80e-fea7b9531436", "entity_number": "218ea31f-036f-4b70-a0d6-1207af724d49", "product_number": "26f8bbc5-06ff-4167-8390-266d2a2c4303", "sku": "value_00", "product_name": "Diesel", "unit_price": 1, "quantity": 1, "stock_quantity_snapshot": 1, "line_total": 1, "is_selected": true, "is_active": true, "is_deleted": true, "deleted_at": "2026-05-24T13:48:21Z", "created_at": "2026-05-24T13:48:21Z", "updated_at": "2026-05-24T13:48:21Z", "idempotency_key": "Sample text 001", "schema_version": 1, "version": 1}]}}'