.. AUTO-GENERATED FILE. DO NOT EDIT. /fuel-pump-inventories-purchase-order-line-items-post-one ========================================================= Summary ------- - **Source repository:** ``jef-systems/jef-fuel-pump-inventories-backend`` - **Source SHA:** ``ae85099a017ca1ffef52010fb6baeda4aaffe240`` - **Source run id:** ``29100581404`` - **Lambda function:** ``jef-fuel-pump-inventories-post-006`` - **HTTP method:** ``POST`` - **API path:** ``/fuel-pump-inventories-purchase-order-line-items-post-one`` - **Cloudflare path:** ``/fuel-pump-inventories/async-post/fuel-pump-inventories-purchase-order-line-items-post-one`` - **Endpoint URL:** ``https://api.jefoffice.com/fuel-pump-inventories/async-post/fuel-pump-inventories-purchase-order-line-items-post-one`` - **Cloudflare base URL:** ``https://api.jefoffice.com/fuel-pump-inventories/async-post`` - **Cloudflare parent path:** ``/fuel-pump-inventories`` - **Cloudflare scope:** ``async-post`` - **Cloudflare scope path:** ``/fuel-pump-inventories/async-post`` - **Cloudflare mode:** ``one-worker-for-lambda-async-post`` - **Cloudflare Worker:** ``jef-fuel-pump-inventories-lambda-async-post`` - **Cloudflare Worker route:** ``api.jefoffice.com/fuel-pump-inventories/async-post/\*`` - **Payload mode:** ``json-body`` Description ----------- .. list-table:: :widths: 30 70 * - ``Function`` - jef-fuel-pump-inventories-post-006 Logical ID: jef-fuel-pump-inventories:jef-fuel-pump-inventories-purchase-order-line-items:post-one Order Number: 004 * - ``Module`` - jef-fuel-pump-inventories * - ``Action`` - post-one * - ``Method`` - POST * - ``Invocation Mode`` - ASYNC * - ``Resource Path`` - /fuel-pump-inventories-purchase-order-line-items-post-one Endpoint Name: jef-fuel-pump-inventories-purchase-order-line-items-post-one * - ``Table`` - jef-fuel-pump-inventories-purchase-order-line-items * - ``Primary Key`` - purchase\_order\_line\_item\_id API Gateway Response -------------------- .. list-table:: :widths: 30 70 * - ``status\_code`` - 202 * - ``message`` - Request accepted for asynchronous processing. Payload Example --------------- .. list-table:: :widths: 30 70 * - ``purchase\_order\_line\_item\_id`` - 154fc5e1-7b03-44ea-bd56-1b2ed44aae55 * - ``purchase\_order\_id`` - 614e1987-b077-4711-93f1-1a43fe3432f9 * - ``gas\_station\_id`` - 8bc5280d-6fa1-4c37-9d91-059b77bb7712 * - ``line\_number`` - 1 * - ``pump\_id`` - 5b40d8f6-b8de-408c-8494-60f555d020f8 * - ``pump`` - value-001 * - ``product`` - value-001 * - ``liters`` - 1 * - ``price\_per\_liter`` - 1 * - ``total\_amount`` - 1 * - ``delivery\_reference\_number`` - value-001 * - ``notes`` - value-001 * - ``status`` - value-001 * - ``created`` - 2026-07-10T14:37:58Z * - ``updated`` - 2026-07-10T14:37:58Z Payload Schema -------------- .. code-block:: json { "type": "object", "additionalProperties": "False", "payload_mode": "flat", "allow_children_wrapper": "False", "children_wrapper_field": "", "allow_batch": "False", "table": "jef-fuel-pump-inventories-purchase-order-line-items", "primary_key": "purchase_order_line_item_id", "required[0]": "purchase_order_id", "required[1]": "gas_station_id", "required[2]": "line_number", "required[3]": "product", "required[4]": "liters", "required[5]": "price_per_liter", "required[6]": "status", "properties.purchase_order_line_item_id.field": "purchase_order_line_item_id", "properties.purchase_order_line_item_id.type": "S", "properties.purchase_order_line_item_id.required": "False", "properties.purchase_order_line_item_id.source_required": "True", "properties.purchase_order_line_item_id.server_generated": "True", "properties.purchase_order_line_item_id.autogenerated": "False", "properties.purchase_order_line_item_id.frontend_autocomputed": "False", "properties.purchase_order_line_item_id.format": "uuidv4", "properties.purchase_order_line_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}$", "properties.purchase_order_id.field": "purchase_order_id", "properties.purchase_order_id.type": "S", "properties.purchase_order_id.required": "True", "properties.purchase_order_id.source_required": "True", "properties.purchase_order_id.server_generated": "True", "properties.purchase_order_id.autogenerated": "False", "properties.purchase_order_id.frontend_autocomputed": "False", "properties.purchase_order_id.format": "uuidv4", "properties.purchase_order_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}$", "properties.gas_station_id.field": "gas_station_id", "properties.gas_station_id.type": "S", "properties.gas_station_id.required": "True", "properties.gas_station_id.source_required": "True", "properties.gas_station_id.server_generated": "True", "properties.gas_station_id.autogenerated": "False", "properties.gas_station_id.frontend_autocomputed": "False", "properties.gas_station_id.format": "uuidv4", "properties.gas_station_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}$", "properties.line_number.field": "line_number", "properties.line_number.type": "N", "properties.line_number.required": "True", "properties.line_number.source_required": "True", "properties.line_number.server_generated": "False", "properties.line_number.autogenerated": "False", "properties.line_number.frontend_autocomputed": "False", "properties.line_number.regex": "^\\d+$", "properties.pump_id.field": "pump_id", "properties.pump_id.type": "S", "properties.pump_id.required": "False", "properties.pump_id.source_required": "False", "properties.pump_id.server_generated": "True", "properties.pump_id.autogenerated": "False", "properties.pump_id.frontend_autocomputed": "False", "properties.pump_id.format": "uuidv4", "properties.pump_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}$", "properties.pump.field": "pump", "properties.pump.type": "S", "properties.pump.required": "False", "properties.pump.source_required": "False", "properties.pump.server_generated": "False", "properties.pump.autogenerated": "False", "properties.pump.frontend_autocomputed": "False", "properties.pump.regex": "^[A-Za-z0-9_-]{1,64}$", "properties.product.field": "product", "properties.product.type": "S", "properties.product.required": "True", "properties.product.source_required": "True", "properties.product.server_generated": "False", "properties.product.autogenerated": "False", "properties.product.frontend_autocomputed": "False", "properties.product.regex": "^(diesel|regular|premium|unleaded)$", "properties.liters.field": "liters", "properties.liters.type": "N", "properties.liters.required": "True", "properties.liters.source_required": "True", "properties.liters.server_generated": "False", "properties.liters.autogenerated": "False", "properties.liters.frontend_autocomputed": "False", "properties.liters.regex": "^-?\\d+(\\.\\d+)?$", "properties.price_per_liter.field": "price_per_liter", "properties.price_per_liter.type": "N", "properties.price_per_liter.required": "True", "properties.price_per_liter.source_required": "True", "properties.price_per_liter.server_generated": "False", "properties.price_per_liter.autogenerated": "False", "properties.price_per_liter.frontend_autocomputed": "False", "properties.price_per_liter.regex": "^-?\\d+(\\.\\d+)?$", "properties.total_amount.field": "total_amount", "properties.total_amount.type": "N", "properties.total_amount.required": "False", "properties.total_amount.source_required": "True", "properties.total_amount.server_generated": "False", "properties.total_amount.autogenerated": "False", "properties.total_amount.frontend_autocomputed": "True", "properties.total_amount.regex": "^-?\\d+(\\.\\d+)?$", "properties.delivery_reference_number.field": "delivery_reference_number", "properties.delivery_reference_number.type": "S", "properties.delivery_reference_number.required": "False", "properties.delivery_reference_number.source_required": "False", "properties.delivery_reference_number.server_generated": "False", "properties.delivery_reference_number.autogenerated": "False", "properties.delivery_reference_number.frontend_autocomputed": "False", "properties.delivery_reference_number.regex": "^[A-Za-z0-9_-]{1,64}$", "properties.notes.field": "notes", "properties.notes.type": "S", "properties.notes.required": "False", "properties.notes.source_required": "False", "properties.notes.server_generated": "False", "properties.notes.autogenerated": "False", "properties.notes.frontend_autocomputed": "False", "properties.notes.regex": "^.{0,500}$", "properties.status.field": "status", "properties.status.type": "S", "properties.status.required": "True", "properties.status.source_required": "True", "properties.status.server_generated": "False", "properties.status.autogenerated": "False", "properties.status.frontend_autocomputed": "False", "properties.status.regex": "^(draft|submitted|approved|cancelled)$", "properties.created.field": "created", "properties.created.type": "S", "properties.created.required": "False", "properties.created.source_required": "True", "properties.created.server_generated": "True", "properties.created.autogenerated": "False", "properties.created.frontend_autocomputed": "False", "properties.created.format": "iso8601", "properties.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "properties.updated.field": "updated", "properties.updated.type": "S", "properties.updated.required": "False", "properties.updated.source_required": "True", "properties.updated.server_generated": "True", "properties.updated.autogenerated": "False", "properties.updated.frontend_autocomputed": "False", "properties.updated.format": "iso8601", "properties.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "children": "[]", "root.type": "object", "root.attributes.purchase_order_line_item_id.field": "purchase_order_line_item_id", "root.attributes.purchase_order_line_item_id.type": "S", "root.attributes.purchase_order_line_item_id.required": "False", "root.attributes.purchase_order_line_item_id.source_required": "True", "root.attributes.purchase_order_line_item_id.server_generated": "True", "root.attributes.purchase_order_line_item_id.autogenerated": "False", "root.attributes.purchase_order_line_item_id.frontend_autocomputed": "False", "root.attributes.purchase_order_line_item_id.format": "uuidv4", "root.attributes.purchase_order_line_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.purchase_order_id.field": "purchase_order_id", "root.attributes.purchase_order_id.type": "S", "root.attributes.purchase_order_id.required": "True", "root.attributes.purchase_order_id.source_required": "True", "root.attributes.purchase_order_id.server_generated": "True", "root.attributes.purchase_order_id.autogenerated": "False", "root.attributes.purchase_order_id.frontend_autocomputed": "False", "root.attributes.purchase_order_id.format": "uuidv4", "root.attributes.purchase_order_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.gas_station_id.field": "gas_station_id", "root.attributes.gas_station_id.type": "S", "root.attributes.gas_station_id.required": "True", "root.attributes.gas_station_id.source_required": "True", "root.attributes.gas_station_id.server_generated": "True", "root.attributes.gas_station_id.autogenerated": "False", "root.attributes.gas_station_id.frontend_autocomputed": "False", "root.attributes.gas_station_id.format": "uuidv4", "root.attributes.gas_station_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.line_number.field": "line_number", "root.attributes.line_number.type": "N", "root.attributes.line_number.required": "True", "root.attributes.line_number.source_required": "True", "root.attributes.line_number.server_generated": "False", "root.attributes.line_number.autogenerated": "False", "root.attributes.line_number.frontend_autocomputed": "False", "root.attributes.line_number.regex": "^\\d+$", "root.attributes.pump_id.field": "pump_id", "root.attributes.pump_id.type": "S", "root.attributes.pump_id.required": "False", "root.attributes.pump_id.source_required": "False", "root.attributes.pump_id.server_generated": "True", "root.attributes.pump_id.autogenerated": "False", "root.attributes.pump_id.frontend_autocomputed": "False", "root.attributes.pump_id.format": "uuidv4", "root.attributes.pump_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.pump.field": "pump", "root.attributes.pump.type": "S", "root.attributes.pump.required": "False", "root.attributes.pump.source_required": "False", "root.attributes.pump.server_generated": "False", "root.attributes.pump.autogenerated": "False", "root.attributes.pump.frontend_autocomputed": "False", "root.attributes.pump.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.product.field": "product", "root.attributes.product.type": "S", "root.attributes.product.required": "True", "root.attributes.product.source_required": "True", "root.attributes.product.server_generated": "False", "root.attributes.product.autogenerated": "False", "root.attributes.product.frontend_autocomputed": "False", "root.attributes.product.regex": "^(diesel|regular|premium|unleaded)$", "root.attributes.liters.field": "liters", "root.attributes.liters.type": "N", "root.attributes.liters.required": "True", "root.attributes.liters.source_required": "True", "root.attributes.liters.server_generated": "False", "root.attributes.liters.autogenerated": "False", "root.attributes.liters.frontend_autocomputed": "False", "root.attributes.liters.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.price_per_liter.field": "price_per_liter", "root.attributes.price_per_liter.type": "N", "root.attributes.price_per_liter.required": "True", "root.attributes.price_per_liter.source_required": "True", "root.attributes.price_per_liter.server_generated": "False", "root.attributes.price_per_liter.autogenerated": "False", "root.attributes.price_per_liter.frontend_autocomputed": "False", "root.attributes.price_per_liter.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.total_amount.field": "total_amount", "root.attributes.total_amount.type": "N", "root.attributes.total_amount.required": "False", "root.attributes.total_amount.source_required": "True", "root.attributes.total_amount.server_generated": "False", "root.attributes.total_amount.autogenerated": "False", "root.attributes.total_amount.frontend_autocomputed": "True", "root.attributes.total_amount.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.delivery_reference_number.field": "delivery_reference_number", "root.attributes.delivery_reference_number.type": "S", "root.attributes.delivery_reference_number.required": "False", "root.attributes.delivery_reference_number.source_required": "False", "root.attributes.delivery_reference_number.server_generated": "False", "root.attributes.delivery_reference_number.autogenerated": "False", "root.attributes.delivery_reference_number.frontend_autocomputed": "False", "root.attributes.delivery_reference_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.notes.field": "notes", "root.attributes.notes.type": "S", "root.attributes.notes.required": "False", "root.attributes.notes.source_required": "False", "root.attributes.notes.server_generated": "False", "root.attributes.notes.autogenerated": "False", "root.attributes.notes.frontend_autocomputed": "False", "root.attributes.notes.regex": "^.{0,500}$", "root.attributes.status.field": "status", "root.attributes.status.type": "S", "root.attributes.status.required": "True", "root.attributes.status.source_required": "True", "root.attributes.status.server_generated": "False", "root.attributes.status.autogenerated": "False", "root.attributes.status.frontend_autocomputed": "False", "root.attributes.status.regex": "^(draft|submitted|approved|cancelled)$", "root.attributes.created.field": "created", "root.attributes.created.type": "S", "root.attributes.created.required": "False", "root.attributes.created.source_required": "True", "root.attributes.created.server_generated": "True", "root.attributes.created.autogenerated": "False", "root.attributes.created.frontend_autocomputed": "False", "root.attributes.created.format": "iso8601", "root.attributes.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.updated.field": "updated", "root.attributes.updated.type": "S", "root.attributes.updated.required": "False", "root.attributes.updated.source_required": "True", "root.attributes.updated.server_generated": "True", "root.attributes.updated.autogenerated": "False", "root.attributes.updated.frontend_autocomputed": "False", "root.attributes.updated.format": "iso8601", "root.attributes.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$" } Response Schema --------------- .. code-block:: json { "type": "object", "properties.ok.type": "boolean", "properties.accepted.type": "boolean", "properties.is_committed.type": "boolean", "properties.request_id.type": "string", "properties.message.type": "string", "properties.table.type": "string", "properties.operation.type": "string", "properties.primary_key.type": "string", "properties.primary_key_value.type": "string", "properties.item_write_count.type": "number", "properties.child_write_count.type": "number" } Request Payload --------------- .. code-block:: json { "purchase_order_line_item_id": "154fc5e1-7b03-44ea-bd56-1b2ed44aae55", "purchase_order_id": "614e1987-b077-4711-93f1-1a43fe3432f9", "gas_station_id": "8bc5280d-6fa1-4c37-9d91-059b77bb7712", "line_number": "1", "pump_id": "5b40d8f6-b8de-408c-8494-60f555d020f8", "pump": "value-001", "product": "value-001", "liters": "1", "price_per_liter": "1", "total_amount": "1", "delivery_reference_number": "value-001", "notes": "value-001", "status": "value-001", "created": "2026-07-10T14:37:58Z", "updated": "2026-07-10T14:37:58Z" } Response -------- .. code-block:: json { "type": "object", "properties.ok.type": "boolean", "properties.accepted.type": "boolean", "properties.is_committed.type": "boolean", "properties.request_id.type": "string", "properties.message.type": "string", "properties.table.type": "string", "properties.operation.type": "string", "properties.primary_key.type": "string", "properties.primary_key_value.type": "string", "properties.item_write_count.type": "number", "properties.child_write_count.type": "number" } CMD curl -------- .. code-block:: bat curl -X POST "https://api.jefoffice.com/fuel-pump-inventories/async-post/fuel-pump-inventories-purchase-order-line-items-post-one" -H "Content-Type: application/json" --data-raw "{\"purchase_order_line_item_id\": \"154fc5e1-7b03-44ea-bd56-1b2ed44aae55\", \"purchase_order_id\": \"614e1987-b077-4711-93f1-1a43fe3432f9\", \"gas_station_id\": \"8bc5280d-6fa1-4c37-9d91-059b77bb7712\", \"line_number\": 1, \"pump_id\": \"5b40d8f6-b8de-408c-8494-60f555d020f8\", \"pump\": \"value-001\", \"product\": \"value-001\", \"liters\": 1, \"price_per_liter\": 1, \"total_amount\": 1, \"delivery_reference_number\": \"value-001\", \"notes\": \"value-001\", \"status\": \"value-001\", \"created\": \"2026-07-10T14:37:58Z\", \"updated\": \"2026-07-10T14:37:58Z\"}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X POST "https://api.jefoffice.com/fuel-pump-inventories/async-post/fuel-pump-inventories-purchase-order-line-items-post-one" -H "Content-Type: application/json" --data-raw '{"purchase_order_line_item_id": "154fc5e1-7b03-44ea-bd56-1b2ed44aae55", "purchase_order_id": "614e1987-b077-4711-93f1-1a43fe3432f9", "gas_station_id": "8bc5280d-6fa1-4c37-9d91-059b77bb7712", "line_number": 1, "pump_id": "5b40d8f6-b8de-408c-8494-60f555d020f8", "pump": "value-001", "product": "value-001", "liters": 1, "price_per_liter": 1, "total_amount": 1, "delivery_reference_number": "value-001", "notes": "value-001", "status": "value-001", "created": "2026-07-10T14:37:58Z", "updated": "2026-07-10T14:37:58Z"}'