/fuel-pump-inventories-fuel-pump-inventories-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-005

  • HTTP method: POST

  • API path: /fuel-pump-inventories-fuel-pump-inventories-post-one

  • Cloudflare path: /fuel-pump-inventories/async-post/fuel-pump-inventories-fuel-pump-inventories-post-one

  • Endpoint URL: https://api.jefoffice.com/fuel-pump-inventories/async-post/fuel-pump-inventories-fuel-pump-inventories-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

Function

jef-fuel-pump-inventories-post-005 Logical ID: jef-fuel-pump-inventories:jef-fuel-pump-inventories-fuel-pump-inventories:post-one Order Number: 003

Module

jef-fuel-pump-inventories

Action

post-one

Method

POST

Invocation Mode

ASYNC

Resource Path

/fuel-pump-inventories-fuel-pump-inventories-post-one Endpoint Name: jef-fuel-pump-inventories-fuel-pump-inventories-post-one

Table

jef-fuel-pump-inventories-fuel-pump-inventories

Primary Key

fuel_pump_inventory_id

API Gateway Response

status\_code

202

message

Request accepted for asynchronous processing.

Payload Example

fuel\_pump\_inventory\_id

8ae51349-c6ad-4dbe-9f53-15bf115e6533

gas\_station\_id

b19add1c-2f4d-4d72-a33f-0b0bdebc114c

inventory\_number

value-001

date

2026-05-17

shift

value-001

pump\_id

ec2f76fe-1c8c-42ef-a643-543f4574205c

pump

value-001

product

value-001

opening\_reading

1

closing\_reading

1

liters\_sold

1

price\_per\_liter

1

total\_amount

1

remarks

value-001

status

value-001

created

2026-07-10T14:37:58Z

updated

2026-07-10T14:37:58Z

Payload Schema

{
  "type": "object",
  "additionalProperties": "False",
  "payload_mode": "flat",
  "allow_children_wrapper": "False",
  "children_wrapper_field": "",
  "allow_batch": "False",
  "table": "jef-fuel-pump-inventories-fuel-pump-inventories",
  "primary_key": "fuel_pump_inventory_id",
  "required[0]": "gas_station_id",
  "required[1]": "inventory_number",
  "required[2]": "date",
  "required[3]": "shift",
  "required[4]": "pump_id",
  "required[5]": "pump",
  "required[6]": "product",
  "required[7]": "opening_reading",
  "required[8]": "closing_reading",
  "required[9]": "price_per_liter",
  "required[10]": "status",
  "properties.fuel_pump_inventory_id.field": "fuel_pump_inventory_id",
  "properties.fuel_pump_inventory_id.type": "S",
  "properties.fuel_pump_inventory_id.required": "False",
  "properties.fuel_pump_inventory_id.source_required": "True",
  "properties.fuel_pump_inventory_id.server_generated": "True",
  "properties.fuel_pump_inventory_id.autogenerated": "False",
  "properties.fuel_pump_inventory_id.frontend_autocomputed": "False",
  "properties.fuel_pump_inventory_id.format": "uuidv4",
  "properties.fuel_pump_inventory_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.inventory_number.field": "inventory_number",
  "properties.inventory_number.type": "S",
  "properties.inventory_number.required": "True",
  "properties.inventory_number.source_required": "True",
  "properties.inventory_number.server_generated": "False",
  "properties.inventory_number.autogenerated": "False",
  "properties.inventory_number.frontend_autocomputed": "False",
  "properties.inventory_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "properties.date.field": "date",
  "properties.date.type": "S",
  "properties.date.required": "True",
  "properties.date.source_required": "True",
  "properties.date.server_generated": "False",
  "properties.date.autogenerated": "False",
  "properties.date.frontend_autocomputed": "False",
  "properties.date.regex": "^\\d{4}-\\d{2}-\\d{2}$",
  "properties.shift.field": "shift",
  "properties.shift.type": "S",
  "properties.shift.required": "True",
  "properties.shift.source_required": "True",
  "properties.shift.server_generated": "False",
  "properties.shift.autogenerated": "False",
  "properties.shift.frontend_autocomputed": "False",
  "properties.shift.regex": "^(morning|afternoon|night)$",
  "properties.pump_id.field": "pump_id",
  "properties.pump_id.type": "S",
  "properties.pump_id.required": "True",
  "properties.pump_id.source_required": "True",
  "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": "True",
  "properties.pump.source_required": "True",
  "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.opening_reading.field": "opening_reading",
  "properties.opening_reading.type": "N",
  "properties.opening_reading.required": "True",
  "properties.opening_reading.source_required": "True",
  "properties.opening_reading.server_generated": "False",
  "properties.opening_reading.autogenerated": "False",
  "properties.opening_reading.frontend_autocomputed": "False",
  "properties.opening_reading.regex": "^-?\\d+(\\.\\d+)?$",
  "properties.closing_reading.field": "closing_reading",
  "properties.closing_reading.type": "N",
  "properties.closing_reading.required": "True",
  "properties.closing_reading.source_required": "True",
  "properties.closing_reading.server_generated": "False",
  "properties.closing_reading.autogenerated": "False",
  "properties.closing_reading.frontend_autocomputed": "False",
  "properties.closing_reading.regex": "^-?\\d+(\\.\\d+)?$",
  "properties.liters_sold.field": "liters_sold",
  "properties.liters_sold.type": "N",
  "properties.liters_sold.required": "False",
  "properties.liters_sold.source_required": "True",
  "properties.liters_sold.server_generated": "False",
  "properties.liters_sold.autogenerated": "False",
  "properties.liters_sold.frontend_autocomputed": "True",
  "properties.liters_sold.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.remarks.field": "remarks",
  "properties.remarks.type": "S",
  "properties.remarks.required": "False",
  "properties.remarks.source_required": "False",
  "properties.remarks.server_generated": "False",
  "properties.remarks.autogenerated": "False",
  "properties.remarks.frontend_autocomputed": "False",
  "properties.remarks.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.fuel_pump_inventory_id.field": "fuel_pump_inventory_id",
  "root.attributes.fuel_pump_inventory_id.type": "S",
  "root.attributes.fuel_pump_inventory_id.required": "False",
  "root.attributes.fuel_pump_inventory_id.source_required": "True",
  "root.attributes.fuel_pump_inventory_id.server_generated": "True",
  "root.attributes.fuel_pump_inventory_id.autogenerated": "False",
  "root.attributes.fuel_pump_inventory_id.frontend_autocomputed": "False",
  "root.attributes.fuel_pump_inventory_id.format": "uuidv4",
  "root.attributes.fuel_pump_inventory_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.inventory_number.field": "inventory_number",
  "root.attributes.inventory_number.type": "S",
  "root.attributes.inventory_number.required": "True",
  "root.attributes.inventory_number.source_required": "True",
  "root.attributes.inventory_number.server_generated": "False",
  "root.attributes.inventory_number.autogenerated": "False",
  "root.attributes.inventory_number.frontend_autocomputed": "False",
  "root.attributes.inventory_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.date.field": "date",
  "root.attributes.date.type": "S",
  "root.attributes.date.required": "True",
  "root.attributes.date.source_required": "True",
  "root.attributes.date.server_generated": "False",
  "root.attributes.date.autogenerated": "False",
  "root.attributes.date.frontend_autocomputed": "False",
  "root.attributes.date.regex": "^\\d{4}-\\d{2}-\\d{2}$",
  "root.attributes.shift.field": "shift",
  "root.attributes.shift.type": "S",
  "root.attributes.shift.required": "True",
  "root.attributes.shift.source_required": "True",
  "root.attributes.shift.server_generated": "False",
  "root.attributes.shift.autogenerated": "False",
  "root.attributes.shift.frontend_autocomputed": "False",
  "root.attributes.shift.regex": "^(morning|afternoon|night)$",
  "root.attributes.pump_id.field": "pump_id",
  "root.attributes.pump_id.type": "S",
  "root.attributes.pump_id.required": "True",
  "root.attributes.pump_id.source_required": "True",
  "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": "True",
  "root.attributes.pump.source_required": "True",
  "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.opening_reading.field": "opening_reading",
  "root.attributes.opening_reading.type": "N",
  "root.attributes.opening_reading.required": "True",
  "root.attributes.opening_reading.source_required": "True",
  "root.attributes.opening_reading.server_generated": "False",
  "root.attributes.opening_reading.autogenerated": "False",
  "root.attributes.opening_reading.frontend_autocomputed": "False",
  "root.attributes.opening_reading.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.closing_reading.field": "closing_reading",
  "root.attributes.closing_reading.type": "N",
  "root.attributes.closing_reading.required": "True",
  "root.attributes.closing_reading.source_required": "True",
  "root.attributes.closing_reading.server_generated": "False",
  "root.attributes.closing_reading.autogenerated": "False",
  "root.attributes.closing_reading.frontend_autocomputed": "False",
  "root.attributes.closing_reading.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.liters_sold.field": "liters_sold",
  "root.attributes.liters_sold.type": "N",
  "root.attributes.liters_sold.required": "False",
  "root.attributes.liters_sold.source_required": "True",
  "root.attributes.liters_sold.server_generated": "False",
  "root.attributes.liters_sold.autogenerated": "False",
  "root.attributes.liters_sold.frontend_autocomputed": "True",
  "root.attributes.liters_sold.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.remarks.field": "remarks",
  "root.attributes.remarks.type": "S",
  "root.attributes.remarks.required": "False",
  "root.attributes.remarks.source_required": "False",
  "root.attributes.remarks.server_generated": "False",
  "root.attributes.remarks.autogenerated": "False",
  "root.attributes.remarks.frontend_autocomputed": "False",
  "root.attributes.remarks.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

{
  "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

{
  "fuel_pump_inventory_id": "8ae51349-c6ad-4dbe-9f53-15bf115e6533",
  "gas_station_id": "b19add1c-2f4d-4d72-a33f-0b0bdebc114c",
  "inventory_number": "value-001",
  "date": "2026-05-17",
  "shift": "value-001",
  "pump_id": "ec2f76fe-1c8c-42ef-a643-543f4574205c",
  "pump": "value-001",
  "product": "value-001",
  "opening_reading": "1",
  "closing_reading": "1",
  "liters_sold": "1",
  "price_per_liter": "1",
  "total_amount": "1",
  "remarks": "value-001",
  "status": "value-001",
  "created": "2026-07-10T14:37:58Z",
  "updated": "2026-07-10T14:37:58Z"
}

Response

{
  "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

curl -X POST "https://api.jefoffice.com/fuel-pump-inventories/async-post/fuel-pump-inventories-fuel-pump-inventories-post-one" -H "Content-Type: application/json" --data-raw "{\"fuel_pump_inventory_id\": \"8ae51349-c6ad-4dbe-9f53-15bf115e6533\", \"gas_station_id\": \"b19add1c-2f4d-4d72-a33f-0b0bdebc114c\", \"inventory_number\": \"value-001\", \"date\": \"2026-05-17\", \"shift\": \"value-001\", \"pump_id\": \"ec2f76fe-1c8c-42ef-a643-543f4574205c\", \"pump\": \"value-001\", \"product\": \"value-001\", \"opening_reading\": 1, \"closing_reading\": 1, \"liters_sold\": 1, \"price_per_liter\": 1, \"total_amount\": 1, \"remarks\": \"value-001\", \"status\": \"value-001\", \"created\": \"2026-07-10T14:37:58Z\", \"updated\": \"2026-07-10T14:37:58Z\"}"

PowerShell curl

curl.exe -X POST "https://api.jefoffice.com/fuel-pump-inventories/async-post/fuel-pump-inventories-fuel-pump-inventories-post-one" -H "Content-Type: application/json" --data-raw '{"fuel_pump_inventory_id": "8ae51349-c6ad-4dbe-9f53-15bf115e6533", "gas_station_id": "b19add1c-2f4d-4d72-a33f-0b0bdebc114c", "inventory_number": "value-001", "date": "2026-05-17", "shift": "value-001", "pump_id": "ec2f76fe-1c8c-42ef-a643-543f4574205c", "pump": "value-001", "product": "value-001", "opening_reading": 1, "closing_reading": 1, "liters_sold": 1, "price_per_liter": 1, "total_amount": 1, "remarks": "value-001", "status": "value-001", "created": "2026-07-10T14:37:58Z", "updated": "2026-07-10T14:37:58Z"}'