.. AUTO-GENERATED FILE. DO NOT EDIT. /store-products-post-one ======================== Summary ------- - **Source repository:** ``jef-systems/jef-store-backend`` - **Source SHA:** ``6b1275b9498cdf33bf9dd5dd1520f3d9d1602b61`` - **Source run id:** ``26041283010`` - **Lambda function:** ``jef-store-products-post-one`` - **HTTP method:** ``POST`` - **API path:** ``/store-products-post-one`` - **Endpoint URL:** ``https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-products-post-one`` - **Payload mode:** ``json-body`` Description ----------- - ``Function``: jef-store-products-post-one - ``Module``: jef-store - ``Action``: post-one - ``Method``: POST - ``Invocation Mode``: ASYNC - ``Resource Path``: /store-products-post-one - ``Table``: jef-store-products - ``Primary Key``: product\_number API Gateway Response -------------------- - ``status\_code``: 202 - ``message``: Request accepted for asynchronous processing. Payload Example --------------- - ``entity\_number``: 218ea31f-036f-4b70-a0d6-1207af724d49 - ``product\_number``: 26f8bbc5-06ff-4167-8390-266d2a2c4303 - ``sku``: value\_00 - ``product\_name``: value\_00 - ``category``: value\_00 - ``brand``: value\_00 - ``description``: Sample text 001 - ``base\_price``: 1 - ``stock\_quantity``: 1 - ``unit\_label``: value\_00 - ``rating``: 1 - ``is\_featured``: True - ``tag\_1``: value\_00 - ``tag\_2``: value\_00 - ``tag\_3``: value\_00 - ``display\_order``: 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``: Sample text 001 - ``schema\_version``: 1 - ``version``: 1 - ``children.inventory\_ledger\[0\].inventory\_ledger\_id``: 108a0f99-22f3-48ad-94ee-6081ed4f0f3b - ``children.inventory\_ledger\[0\].entity\_number``: 218ea31f-036f-4b70-a0d6-1207af724d49 - ``children.inventory\_ledger\[0\].product\_number``: 26f8bbc5-06ff-4167-8390-266d2a2c4303 - ``children.inventory\_ledger\[0\].sku``: value\_00 - ``children.inventory\_ledger\[0\].movement\_type``: stock\_in - ``children.inventory\_ledger\[0\].source\_type``: purchase\_order - ``children.inventory\_ledger\[0\].source\_number``: value\_00 - ``children.inventory\_ledger\[0\].quantity\_before``: 1 - ``children.inventory\_ledger\[0\].quantity\_delta``: 1 - ``children.inventory\_ledger\[0\].quantity\_after``: 1 - ``children.inventory\_ledger\[0\].note``: Sample text 001 - ``children.inventory\_ledger\[0\].created\_at``: 2026-05-18T14:46:36Z - ``children.inventory\_ledger\[0\].updated\_at``: 2026-05-18T14:46:36Z - ``children.inventory\_ledger\[0\].idempotency\_key``: Sample text 001 - ``children.inventory\_ledger\[0\].schema\_version``: 1 - ``children.inventory\_ledger\[0\].version``: 1 Payload Schema -------------- .. code-block:: json { "root.type": "M", "root.required": "True", "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.product_number.type": "S", "root.attributes.product_number.required": "True", "root.attributes.product_number.format": "uuidv4", "root.attributes.product_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.sku.type": "S", "root.attributes.sku.required": "True", "root.attributes.sku.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.product_name.type": "S", "root.attributes.product_name.required": "True", "root.attributes.product_name.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.category.type": "S", "root.attributes.category.required": "True", "root.attributes.category.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.brand.type": "S", "root.attributes.brand.required": "True", "root.attributes.brand.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.description.type": "S", "root.attributes.description.required": "True", "root.attributes.description.regex": "^.{0,500}$", "root.attributes.base_price.type": "N", "root.attributes.base_price.required": "True", "root.attributes.base_price.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.stock_quantity.type": "N", "root.attributes.stock_quantity.required": "True", "root.attributes.stock_quantity.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.unit_label.type": "S", "root.attributes.unit_label.required": "True", "root.attributes.unit_label.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.rating.type": "N", "root.attributes.rating.required": "True", "root.attributes.rating.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.is_featured.type": "BOOL", "root.attributes.is_featured.required": "True", "root.attributes.is_featured.regex": "^(true|false)$", "root.attributes.tag_1.type": "S", "root.attributes.tag_1.required": "True", "root.attributes.tag_1.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.tag_2.type": "S", "root.attributes.tag_2.required": "True", "root.attributes.tag_2.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.tag_3.type": "S", "root.attributes.tag_3.required": "True", "root.attributes.tag_3.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.display_order.type": "N", "root.attributes.display_order.required": "True", "root.attributes.display_order.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.inventory_ledger.type": "L", "root.attributes.children.attributes.inventory_ledger.required": "False", "root.attributes.children.attributes.inventory_ledger.items.type": "M", "root.attributes.children.attributes.inventory_ledger.items.attributes.inventory_ledger_id.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.inventory_ledger_id.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.inventory_ledger_id.format": "uuidv4", "root.attributes.children.attributes.inventory_ledger.items.attributes.inventory_ledger_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.inventory_ledger.items.attributes.entity_number.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.entity_number.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.entity_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.inventory_ledger.items.attributes.product_number.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.product_number.required": "False", "root.attributes.children.attributes.inventory_ledger.items.attributes.product_number.format": "uuidv4", "root.attributes.children.attributes.inventory_ledger.items.attributes.product_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.children.attributes.inventory_ledger.items.attributes.sku.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.sku.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.sku.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.children.attributes.inventory_ledger.items.attributes.movement_type.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.movement_type.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.movement_type.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.inventory_ledger.items.attributes.source_type.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.source_type.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.source_type.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.inventory_ledger.items.attributes.source_number.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.source_number.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.source_number.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.children.attributes.inventory_ledger.items.attributes.quantity_before.type": "N", "root.attributes.children.attributes.inventory_ledger.items.attributes.quantity_before.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.quantity_before.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.inventory_ledger.items.attributes.quantity_delta.type": "N", "root.attributes.children.attributes.inventory_ledger.items.attributes.quantity_delta.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.quantity_delta.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.inventory_ledger.items.attributes.quantity_after.type": "N", "root.attributes.children.attributes.inventory_ledger.items.attributes.quantity_after.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.quantity_after.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.inventory_ledger.items.attributes.note.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.note.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.note.regex": "^.{0,500}$", "root.attributes.children.attributes.inventory_ledger.items.attributes.created_at.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.created_at.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.created_at.format": "iso8601", "root.attributes.children.attributes.inventory_ledger.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.inventory_ledger.items.attributes.updated_at.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.updated_at.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.updated_at.format": "iso8601", "root.attributes.children.attributes.inventory_ledger.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.inventory_ledger.items.attributes.idempotency_key.type": "S", "root.attributes.children.attributes.inventory_ledger.items.attributes.idempotency_key.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.idempotency_key.regex": "^.{1,300}$", "root.attributes.children.attributes.inventory_ledger.items.attributes.schema_version.type": "N", "root.attributes.children.attributes.inventory_ledger.items.attributes.schema_version.required": "True", "root.attributes.children.attributes.inventory_ledger.items.attributes.schema_version.regex": "^\\d+$", "root.attributes.children.attributes.inventory_ledger.items.attributes.version.type": "N", "root.attributes.children.attributes.inventory_ledger.items.attributes.version.required": "True", "root.attributes.children.attributes.inventory_ledger.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 { "entity_number": "218ea31f-036f-4b70-a0d6-1207af724d49", "product_number": "26f8bbc5-06ff-4167-8390-266d2a2c4303", "sku": "value_00", "product_name": "value_00", "category": "value_00", "brand": "value_00", "description": "Sample text 001", "base_price": "1", "stock_quantity": "1", "unit_label": "value_00", "rating": "1", "is_featured": "True", "tag_1": "value_00", "tag_2": "value_00", "tag_3": "value_00", "display_order": "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": "Sample text 001", "schema_version": "1", "version": "1", "children.inventory_ledger[0].inventory_ledger_id": "108a0f99-22f3-48ad-94ee-6081ed4f0f3b", "children.inventory_ledger[0].entity_number": "218ea31f-036f-4b70-a0d6-1207af724d49", "children.inventory_ledger[0].product_number": "26f8bbc5-06ff-4167-8390-266d2a2c4303", "children.inventory_ledger[0].sku": "value_00", "children.inventory_ledger[0].movement_type": "stock_in", "children.inventory_ledger[0].source_type": "purchase_order", "children.inventory_ledger[0].source_number": "value_00", "children.inventory_ledger[0].quantity_before": "1", "children.inventory_ledger[0].quantity_delta": "1", "children.inventory_ledger[0].quantity_after": "1", "children.inventory_ledger[0].note": "Sample text 001", "children.inventory_ledger[0].created_at": "2026-05-18T14:46:36Z", "children.inventory_ledger[0].updated_at": "2026-05-18T14:46:36Z", "children.inventory_ledger[0].idempotency_key": "Sample text 001", "children.inventory_ledger[0].schema_version": "1", "children.inventory_ledger[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 POST "https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-products-post-one" -H "Content-Type: application/json" --data-raw "{\"entity_number\": \"218ea31f-036f-4b70-a0d6-1207af724d49\", \"product_number\": \"26f8bbc5-06ff-4167-8390-266d2a2c4303\", \"sku\": \"value_00\", \"product_name\": \"value_00\", \"category\": \"value_00\", \"brand\": \"value_00\", \"description\": \"Sample text 001\", \"base_price\": 1, \"stock_quantity\": 1, \"unit_label\": \"value_00\", \"rating\": 1, \"is_featured\": true, \"tag_1\": \"value_00\", \"tag_2\": \"value_00\", \"tag_3\": \"value_00\", \"display_order\": 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\": \"Sample text 001\", \"schema_version\": 1, \"version\": 1, \"children\": {\"inventory_ledger\": [{\"inventory_ledger_id\": \"108a0f99-22f3-48ad-94ee-6081ed4f0f3b\", \"entity_number\": \"218ea31f-036f-4b70-a0d6-1207af724d49\", \"product_number\": \"26f8bbc5-06ff-4167-8390-266d2a2c4303\", \"sku\": \"value_00\", \"movement_type\": \"stock_in\", \"source_type\": \"purchase_order\", \"source_number\": \"value_00\", \"quantity_before\": 1, \"quantity_delta\": 1, \"quantity_after\": 1, \"note\": \"Sample text 001\", \"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 --------------- .. code-block:: powershell curl.exe -X POST "https://dqo3268ty9.execute-api.ap-southeast-1.amazonaws.com/prod/store-products-post-one" -H "Content-Type: application/json" --data-raw '{"entity_number": "218ea31f-036f-4b70-a0d6-1207af724d49", "product_number": "26f8bbc5-06ff-4167-8390-266d2a2c4303", "sku": "value_00", "product_name": "value_00", "category": "value_00", "brand": "value_00", "description": "Sample text 001", "base_price": 1, "stock_quantity": 1, "unit_label": "value_00", "rating": 1, "is_featured": true, "tag_1": "value_00", "tag_2": "value_00", "tag_3": "value_00", "display_order": 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": "Sample text 001", "schema_version": 1, "version": 1, "children": {"inventory_ledger": [{"inventory_ledger_id": "108a0f99-22f3-48ad-94ee-6081ed4f0f3b", "entity_number": "218ea31f-036f-4b70-a0d6-1207af724d49", "product_number": "26f8bbc5-06ff-4167-8390-266d2a2c4303", "sku": "value_00", "movement_type": "stock_in", "source_type": "purchase_order", "source_number": "value_00", "quantity_before": 1, "quantity_delta": 1, "quantity_after": 1, "note": "Sample text 001", "created_at": "2026-05-18T14:46:36Z", "updated_at": "2026-05-18T14:46:36Z", "idempotency_key": "Sample text 001", "schema_version": 1, "version": 1}]}}'