/store-carts-post-one¶
Summary¶
Source repository:
jef-systems/jef-store-backendSource SHA:
6b1275b9498cdf33bf9dd5dd1520f3d9d1602b61Source run id:
26041283010Lambda function:
jef-store-carts-post-oneHTTP method:
POSTAPI path:
/store-carts-post-oneEndpoint URL:
https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-carts-post-onePayload mode:
json-body
Description¶
Function: jef-store-carts-post-oneModule: jef-storeAction: post-oneMethod: POSTInvocation Mode: ASYNCResource Path: /store-carts-post-oneTable: jef-store-cartsPrimary Key: cart_id
API Gateway Response¶
status\_code: 202message: Request accepted for asynchronous processing.
Payload Example¶
cart\_id: d2ea8b40-4712-4f51-b80e-fea7b9531436entity\_number: 218ea31f-036f-4b70-a0d6-1207af724d49employee\_number: 791e34f4-779a-41be-831a-6bdd12ce7b71customer\_number: 3dfd5fe5-1dce-4d3b-9f6e-2c9d75a472e3order\_mode: value-001cart\_status: completedsubtotal: 1shipping\_fee: 1discount: 1grand\_total: 1total\_quantity: 1is\_active: Trueis\_deleted: Truedeleted\_at: 2026-05-18T14:46:36Zcreated\_at: 2026-05-18T14:46:36Zupdated\_at: 2026-05-18T14:46:36Zidempotency\_key: cart-218ea31f-036f-4b70-a0d6-1207af724d49schema\_version: 1version: 1children.cart\_items\[0\].cart\_item\_id: b7e65795-f82f-42b2-a33f-1bd928d0a530children.cart\_items\[0\].cart\_id: d2ea8b40-4712-4f51-b80e-fea7b9531436children.cart\_items\[0\].entity\_number: 218ea31f-036f-4b70-a0d6-1207af724d49children.cart\_items\[0\].product\_number: 26f8bbc5-06ff-4167-8390-266d2a2c4303children.cart\_items\[0\].sku: value_00children.cart\_items\[0\].product\_name: Diesel B5children.cart\_items\[0\].unit\_price: 1children.cart\_items\[0\].quantity: 1children.cart\_items\[0\].stock\_quantity\_snapshot: 1children.cart\_items\[0\].line\_total: 1children.cart\_items\[0\].is\_selected: Truechildren.cart\_items\[0\].is\_active: Truechildren.cart\_items\[0\].is\_deleted: Truechildren.cart\_items\[0\].deleted\_at: 2026-05-18T14:46:36Zchildren.cart\_items\[0\].created\_at: 2026-05-18T14:46:36Zchildren.cart\_items\[0\].updated\_at: 2026-05-18T14:46:36Zchildren.cart\_items\[0\].idempotency\_key: Sample text 001children.cart\_items\[0\].schema\_version: 1children.cart\_items\[0\].version: 1
Payload Schema¶
{
"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": "True",
"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": "True",
"root.attributes.employee_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.customer_number.type": "S",
"root.attributes.customer_number.required": "True",
"root.attributes.customer_number.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.order_mode.type": "S",
"root.attributes.order_mode.required": "True",
"root.attributes.order_mode.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.cart_status.type": "S",
"root.attributes.cart_status.required": "True",
"root.attributes.cart_status.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.subtotal.type": "N",
"root.attributes.subtotal.required": "True",
"root.attributes.subtotal.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.shipping_fee.type": "N",
"root.attributes.shipping_fee.required": "True",
"root.attributes.shipping_fee.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.discount.type": "N",
"root.attributes.discount.required": "True",
"root.attributes.discount.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.grand_total.type": "N",
"root.attributes.grand_total.required": "True",
"root.attributes.grand_total.regex": "^-?\\d+(\\.\\d+)?$",
"root.attributes.total_quantity.type": "N",
"root.attributes.total_quantity.required": "True",
"root.attributes.total_quantity.regex": "^\\d+$",
"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.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.idempotency_key.type": "S",
"root.attributes.idempotency_key.required": "True",
"root.attributes.idempotency_key.regex": "^.{1,300}$",
"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.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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"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": "True",
"root.attributes.children.attributes.cart_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¶
{
"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": "completed",
"subtotal": "1",
"shipping_fee": "1",
"discount": "1",
"grand_total": "1",
"total_quantity": "1",
"is_active": "True",
"is_deleted": "True",
"deleted_at": "2026-05-18T14:46:36Z",
"created_at": "2026-05-18T14:46:36Z",
"updated_at": "2026-05-18T14:46:36Z",
"idempotency_key": "cart-218ea31f-036f-4b70-a0d6-1207af724d49",
"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 B5",
"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-18T14:46:36Z",
"children.cart_items[0].created_at": "2026-05-18T14:46:36Z",
"children.cart_items[0].updated_at": "2026-05-18T14:46:36Z",
"children.cart_items[0].idempotency_key": "Sample text 001",
"children.cart_items[0].schema_version": "1",
"children.cart_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://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-carts-post-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\": \"completed\", \"subtotal\": 1, \"shipping_fee\": 1, \"discount\": 1, \"grand_total\": 1, \"total_quantity\": 1, \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-18T14:46:36Z\", \"created_at\": \"2026-05-18T14:46:36Z\", \"updated_at\": \"2026-05-18T14:46:36Z\", \"idempotency_key\": \"cart-218ea31f-036f-4b70-a0d6-1207af724d49\", \"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 B5\", \"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-18T14:46:36Z\", \"created_at\": \"2026-05-18T14:46:36Z\", \"updated_at\": \"2026-05-18T14:46:36Z\", \"idempotency_key\": \"Sample text 001\", \"schema_version\": 1, \"version\": 1}]}}"
PowerShell curl¶
curl.exe -X POST "https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-carts-post-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": "completed", "subtotal": 1, "shipping_fee": 1, "discount": 1, "grand_total": 1, "total_quantity": 1, "is_active": true, "is_deleted": true, "deleted_at": "2026-05-18T14:46:36Z", "created_at": "2026-05-18T14:46:36Z", "updated_at": "2026-05-18T14:46:36Z", "idempotency_key": "cart-218ea31f-036f-4b70-a0d6-1207af724d49", "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 B5", "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-18T14:46:36Z", "created_at": "2026-05-18T14:46:36Z", "updated_at": "2026-05-18T14:46:36Z", "idempotency_key": "Sample text 001", "schema_version": 1, "version": 1}]}}'