/fuel-pump-inventories-pumps-post-one

Summary

  • Source repository: jef-systems/jef-fuel-pump-inventories-backend

  • Source SHA: 06a517c1413d99627ecd462c7e29779b2dfd2412

  • Source run id: 25888945233

  • Lambda function: jef-fuel-pump-inventories-pumps-post-one

  • HTTP method: POST

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

  • Endpoint URL: https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-pumps-post-one

  • Payload mode: json-body

Description

  • Function: jef-fuel-pump-inventories-pumps-post-one

  • Module: jef-fuel-pump-inventories

  • Action: post-one

  • Method: POST

  • Invocation Mode: ASYNC

  • Resource Path: /fuel-pump-inventories-pumps-post-one

  • Table: jef-fuel-pump-inventories-pumps

  • Primary Key: pump_id

API Gateway Response

  • status\_code: 202

  • message: Request accepted for asynchronous processing.

Payload Example

  • pump\_id: 1b57c133-526c-4a19-871d-883455fe5027

  • gas\_station\_id: bca67f9d-d33a-4b86-9129-908895584666

  • pump\_label: Value 001

  • product: Value 001

  • price\_per\_liter: 1

  • display\_order: 1

  • is\_active: True

  • created\_at: 2026-05-14T22:13:56Z

  • updated\_at: 2026-05-14T22:13:56Z

  • children.fuel\_pump\_inventories\[0\].fuel\_pump\_inventory\_id: 40dfbd7a-b010-4162-945a-3b68043cf786

  • children.fuel\_pump\_inventories\[0\].gas\_station\_id: bca67f9d-d33a-4b86-9129-908895584666

  • children.fuel\_pump\_inventories\[0\].pump\_id: 1b57c133-526c-4a19-871d-883455fe5027

  • children.fuel\_pump\_inventories\[0\].inventory\_number: value_001

  • children.fuel\_pump\_inventories\[0\].date: 2026-05-15

  • children.fuel\_pump\_inventories\[0\].pump\_label: Value 001

  • children.fuel\_pump\_inventories\[0\].product: Value 001

  • children.fuel\_pump\_inventories\[0\].opening\_reading: 1

  • children.fuel\_pump\_inventories\[0\].closing\_reading: 1

  • children.fuel\_pump\_inventories\[0\].liters\_sold: 0

  • children.fuel\_pump\_inventories\[0\].price\_per\_liter: 1

  • children.fuel\_pump\_inventories\[0\].total\_amount: 0

  • children.fuel\_pump\_inventories\[0\].status: value_001

  • children.fuel\_pump\_inventories\[0\].created\_at: 2026-05-14T22:13:56Z

  • children.fuel\_pump\_inventories\[0\].updated\_at: 2026-05-14T22:13:56Z

  • children.purchase\_orders\[0\].purchase\_order\_id: f6d0673e-3c28-4bd1-b23a-6539145c26f9

  • children.purchase\_orders\[0\].gas\_station\_id: bca67f9d-d33a-4b86-9129-908895584666

  • children.purchase\_orders\[0\].receipt\_number: value_001

  • children.purchase\_orders\[0\].date: 2026-05-15

  • children.purchase\_orders\[0\].shift: Value 001

  • children.purchase\_orders\[0\].pump\_id: 1b57c133-526c-4a19-871d-883455fe5027

  • children.purchase\_orders\[0\].pump\_label: Value 001

  • children.purchase\_orders\[0\].product: Value 001

  • children.purchase\_orders\[0\].liters: 1

  • children.purchase\_orders\[0\].price\_per\_liter: 1

  • children.purchase\_orders\[0\].total\_amount: 1

  • children.purchase\_orders\[0\].customer\_name: Value 001

  • children.purchase\_orders\[0\].plate\_number: Value 001

  • children.purchase\_orders\[0\].driver\_name: Value 001

  • children.purchase\_orders\[0\].notes: Value 001

  • children.purchase\_orders\[0\].status: value_001

  • children.purchase\_orders\[0\].created\_at: 2026-05-14T22:13:56Z

  • children.purchase\_orders\[0\].updated\_at: 2026-05-14T22:13:56Z

  • children.sales\_invoices\[0\].sales\_invoice\_id: 6691bf91-d11d-48c6-91fc-7de25b68f45b

  • children.sales\_invoices\[0\].gas\_station\_id: bca67f9d-d33a-4b86-9129-908895584666

  • children.sales\_invoices\[0\].receipt\_number: value_001

  • children.sales\_invoices\[0\].date: 2026-05-15

  • children.sales\_invoices\[0\].shift: Value 001

  • children.sales\_invoices\[0\].pump\_id: 1b57c133-526c-4a19-871d-883455fe5027

  • children.sales\_invoices\[0\].pump\_label: Value 001

  • children.sales\_invoices\[0\].product: Value 001

  • children.sales\_invoices\[0\].liters: 1

  • children.sales\_invoices\[0\].price\_per\_liter: 1

  • children.sales\_invoices\[0\].total\_amount: 1

  • children.sales\_invoices\[0\].customer\_name: Value 001

  • children.sales\_invoices\[0\].plate\_number: Value 001

  • children.sales\_invoices\[0\].notes: Value 001

  • children.sales\_invoices\[0\].status: value_001

  • children.sales\_invoices\[0\].created\_at: 2026-05-14T22:13:56Z

  • children.sales\_invoices\[0\].updated\_at: 2026-05-14T22:13:56Z

Payload Schema

{
  "root.type": "M",
  "root.required": "True",
  "root.attributes.pump_id.type": "S",
  "root.attributes.pump_id.required": "True",
  "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.gas_station_id.type": "S",
  "root.attributes.gas_station_id.required": "True",
  "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.pump_label.type": "S",
  "root.attributes.pump_label.required": "True",
  "root.attributes.pump_label.regex": "^[A-Za-z0-9 ._-]{1,80}$",
  "root.attributes.product.type": "S",
  "root.attributes.product.required": "True",
  "root.attributes.product.regex": "^[A-Za-z0-9 ._-]{1,80}$",
  "root.attributes.price_per_liter.type": "N",
  "root.attributes.price_per_liter.required": "True",
  "root.attributes.price_per_liter.regex": "^-?\\d+(\\.\\d+)?$",
  "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.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.children.type": "M",
  "root.attributes.children.required": "False",
  "root.attributes.children.attributes.fuel_pump_inventories.type": "L",
  "root.attributes.children.attributes.fuel_pump_inventories.required": "False",
  "root.attributes.children.attributes.fuel_pump_inventories.items.type": "M",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.fuel_pump_inventory_id.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.fuel_pump_inventory_id.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.fuel_pump_inventory_id.format": "uuidv4",
  "root.attributes.children.attributes.fuel_pump_inventories.items.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.children.attributes.fuel_pump_inventories.items.attributes.gas_station_id.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.gas_station_id.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.gas_station_id.format": "uuidv4",
  "root.attributes.children.attributes.fuel_pump_inventories.items.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.children.attributes.fuel_pump_inventories.items.attributes.pump_id.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.pump_id.required": "False",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.pump_id.format": "uuidv4",
  "root.attributes.children.attributes.fuel_pump_inventories.items.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.children.attributes.fuel_pump_inventories.items.attributes.inventory_number.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.inventory_number.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.inventory_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.date.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.date.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.date.regex": "^\\d{4}-\\d{2}-\\d{2}$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.pump_label.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.pump_label.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.pump_label.regex": "^[A-Za-z0-9 ._-]{1,80}$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.product.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.product.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.product.regex": "^[A-Za-z0-9 ._-]{1,80}$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.opening_reading.type": "N",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.opening_reading.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.opening_reading.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.closing_reading.type": "N",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.closing_reading.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.closing_reading.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.liters_sold.type": "N",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.liters_sold.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.liters_sold.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.price_per_liter.type": "N",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.price_per_liter.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.price_per_liter.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.total_amount.type": "N",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.total_amount.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.total_amount.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.status.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.status.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.status.regex": "^[A-Za-z0-9_-]{1,50}$",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.created_at.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.created_at.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.created_at.format": "iso8601",
  "root.attributes.children.attributes.fuel_pump_inventories.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.fuel_pump_inventories.items.attributes.updated_at.type": "S",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.updated_at.required": "True",
  "root.attributes.children.attributes.fuel_pump_inventories.items.attributes.updated_at.format": "iso8601",
  "root.attributes.children.attributes.fuel_pump_inventories.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.purchase_orders.type": "L",
  "root.attributes.children.attributes.purchase_orders.required": "False",
  "root.attributes.children.attributes.purchase_orders.items.type": "M",
  "root.attributes.children.attributes.purchase_orders.items.attributes.purchase_order_id.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.purchase_order_id.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.purchase_order_id.format": "uuidv4",
  "root.attributes.children.attributes.purchase_orders.items.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.children.attributes.purchase_orders.items.attributes.gas_station_id.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.gas_station_id.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.gas_station_id.format": "uuidv4",
  "root.attributes.children.attributes.purchase_orders.items.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.children.attributes.purchase_orders.items.attributes.receipt_number.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.receipt_number.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.receipt_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.date.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.date.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.date.regex": "^\\d{4}-\\d{2}-\\d{2}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.shift.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.shift.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.shift.regex": "^[A-Za-z0-9 ._-]{1,50}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.pump_id.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.pump_id.required": "False",
  "root.attributes.children.attributes.purchase_orders.items.attributes.pump_id.format": "uuidv4",
  "root.attributes.children.attributes.purchase_orders.items.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.children.attributes.purchase_orders.items.attributes.pump_label.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.pump_label.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.pump_label.regex": "^[A-Za-z0-9 ._-]{1,80}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.product.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.product.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.product.regex": "^[A-Za-z0-9 ._-]{1,80}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.liters.type": "N",
  "root.attributes.children.attributes.purchase_orders.items.attributes.liters.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.liters.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.price_per_liter.type": "N",
  "root.attributes.children.attributes.purchase_orders.items.attributes.price_per_liter.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.price_per_liter.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.total_amount.type": "N",
  "root.attributes.children.attributes.purchase_orders.items.attributes.total_amount.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.total_amount.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.customer_name.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.customer_name.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.customer_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.plate_number.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.plate_number.required": "False",
  "root.attributes.children.attributes.purchase_orders.items.attributes.plate_number.regex": "^[A-Za-z0-9 ._-]{1,30}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.driver_name.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.driver_name.required": "False",
  "root.attributes.children.attributes.purchase_orders.items.attributes.driver_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.notes.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.notes.required": "False",
  "root.attributes.children.attributes.purchase_orders.items.attributes.notes.regex": "^.{0,500}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.status.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.status.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.status.regex": "^[A-Za-z0-9_-]{1,50}$",
  "root.attributes.children.attributes.purchase_orders.items.attributes.created_at.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.created_at.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.created_at.format": "iso8601",
  "root.attributes.children.attributes.purchase_orders.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.purchase_orders.items.attributes.updated_at.type": "S",
  "root.attributes.children.attributes.purchase_orders.items.attributes.updated_at.required": "True",
  "root.attributes.children.attributes.purchase_orders.items.attributes.updated_at.format": "iso8601",
  "root.attributes.children.attributes.purchase_orders.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.sales_invoices.type": "L",
  "root.attributes.children.attributes.sales_invoices.required": "False",
  "root.attributes.children.attributes.sales_invoices.items.type": "M",
  "root.attributes.children.attributes.sales_invoices.items.attributes.sales_invoice_id.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.sales_invoice_id.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.sales_invoice_id.format": "uuidv4",
  "root.attributes.children.attributes.sales_invoices.items.attributes.sales_invoice_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.sales_invoices.items.attributes.gas_station_id.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.gas_station_id.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.gas_station_id.format": "uuidv4",
  "root.attributes.children.attributes.sales_invoices.items.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.children.attributes.sales_invoices.items.attributes.receipt_number.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.receipt_number.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.receipt_number.regex": "^[A-Za-z0-9_-]{1,64}$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.date.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.date.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.date.regex": "^\\d{4}-\\d{2}-\\d{2}$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.shift.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.shift.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.shift.regex": "^[A-Za-z0-9 ._-]{1,50}$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.pump_id.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.pump_id.required": "False",
  "root.attributes.children.attributes.sales_invoices.items.attributes.pump_id.format": "uuidv4",
  "root.attributes.children.attributes.sales_invoices.items.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.children.attributes.sales_invoices.items.attributes.pump_label.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.pump_label.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.pump_label.regex": "^[A-Za-z0-9 ._-]{1,80}$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.product.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.product.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.product.regex": "^[A-Za-z0-9 ._-]{1,80}$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.liters.type": "N",
  "root.attributes.children.attributes.sales_invoices.items.attributes.liters.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.liters.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.price_per_liter.type": "N",
  "root.attributes.children.attributes.sales_invoices.items.attributes.price_per_liter.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.price_per_liter.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.total_amount.type": "N",
  "root.attributes.children.attributes.sales_invoices.items.attributes.total_amount.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.total_amount.regex": "^-?\\d+(\\.\\d+)?$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.customer_name.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.customer_name.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.customer_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.plate_number.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.plate_number.required": "False",
  "root.attributes.children.attributes.sales_invoices.items.attributes.plate_number.regex": "^[A-Za-z0-9 ._-]{1,30}$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.notes.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.notes.required": "False",
  "root.attributes.children.attributes.sales_invoices.items.attributes.notes.regex": "^.{0,500}$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.status.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.status.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.status.regex": "^[A-Za-z0-9_-]{1,50}$",
  "root.attributes.children.attributes.sales_invoices.items.attributes.created_at.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.created_at.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.created_at.format": "iso8601",
  "root.attributes.children.attributes.sales_invoices.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.sales_invoices.items.attributes.updated_at.type": "S",
  "root.attributes.children.attributes.sales_invoices.items.attributes.updated_at.required": "True",
  "root.attributes.children.attributes.sales_invoices.items.attributes.updated_at.format": "iso8601",
  "root.attributes.children.attributes.sales_invoices.items.attributes.updated_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$"
}

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

{
  "pump_id": "1b57c133-526c-4a19-871d-883455fe5027",
  "gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666",
  "pump_label": "Value 001",
  "product": "Value 001",
  "price_per_liter": "1",
  "display_order": "1",
  "is_active": "True",
  "created_at": "2026-05-14T22:13:56Z",
  "updated_at": "2026-05-14T22:13:56Z",
  "children.fuel_pump_inventories[0].fuel_pump_inventory_id": "40dfbd7a-b010-4162-945a-3b68043cf786",
  "children.fuel_pump_inventories[0].gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666",
  "children.fuel_pump_inventories[0].pump_id": "1b57c133-526c-4a19-871d-883455fe5027",
  "children.fuel_pump_inventories[0].inventory_number": "value_001",
  "children.fuel_pump_inventories[0].date": "2026-05-15",
  "children.fuel_pump_inventories[0].pump_label": "Value 001",
  "children.fuel_pump_inventories[0].product": "Value 001",
  "children.fuel_pump_inventories[0].opening_reading": "1",
  "children.fuel_pump_inventories[0].closing_reading": "1",
  "children.fuel_pump_inventories[0].liters_sold": "0",
  "children.fuel_pump_inventories[0].price_per_liter": "1",
  "children.fuel_pump_inventories[0].total_amount": "0",
  "children.fuel_pump_inventories[0].status": "value_001",
  "children.fuel_pump_inventories[0].created_at": "2026-05-14T22:13:56Z",
  "children.fuel_pump_inventories[0].updated_at": "2026-05-14T22:13:56Z",
  "children.purchase_orders[0].purchase_order_id": "f6d0673e-3c28-4bd1-b23a-6539145c26f9",
  "children.purchase_orders[0].gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666",
  "children.purchase_orders[0].receipt_number": "value_001",
  "children.purchase_orders[0].date": "2026-05-15",
  "children.purchase_orders[0].shift": "Value 001",
  "children.purchase_orders[0].pump_id": "1b57c133-526c-4a19-871d-883455fe5027",
  "children.purchase_orders[0].pump_label": "Value 001",
  "children.purchase_orders[0].product": "Value 001",
  "children.purchase_orders[0].liters": "1",
  "children.purchase_orders[0].price_per_liter": "1",
  "children.purchase_orders[0].total_amount": "1",
  "children.purchase_orders[0].customer_name": "Value 001",
  "children.purchase_orders[0].plate_number": "Value 001",
  "children.purchase_orders[0].driver_name": "Value 001",
  "children.purchase_orders[0].notes": "Value 001",
  "children.purchase_orders[0].status": "value_001",
  "children.purchase_orders[0].created_at": "2026-05-14T22:13:56Z",
  "children.purchase_orders[0].updated_at": "2026-05-14T22:13:56Z",
  "children.sales_invoices[0].sales_invoice_id": "6691bf91-d11d-48c6-91fc-7de25b68f45b",
  "children.sales_invoices[0].gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666",
  "children.sales_invoices[0].receipt_number": "value_001",
  "children.sales_invoices[0].date": "2026-05-15",
  "children.sales_invoices[0].shift": "Value 001",
  "children.sales_invoices[0].pump_id": "1b57c133-526c-4a19-871d-883455fe5027",
  "children.sales_invoices[0].pump_label": "Value 001",
  "children.sales_invoices[0].product": "Value 001",
  "children.sales_invoices[0].liters": "1",
  "children.sales_invoices[0].price_per_liter": "1",
  "children.sales_invoices[0].total_amount": "1",
  "children.sales_invoices[0].customer_name": "Value 001",
  "children.sales_invoices[0].plate_number": "Value 001",
  "children.sales_invoices[0].notes": "Value 001",
  "children.sales_invoices[0].status": "value_001",
  "children.sales_invoices[0].created_at": "2026-05-14T22:13:56Z",
  "children.sales_invoices[0].updated_at": "2026-05-14T22:13:56Z"
}

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://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-pumps-post-one" -H "Content-Type: application/json" --data-raw "{\"pump_id\": \"1b57c133-526c-4a19-871d-883455fe5027\", \"gas_station_id\": \"bca67f9d-d33a-4b86-9129-908895584666\", \"pump_label\": \"Value 001\", \"product\": \"Value 001\", \"price_per_liter\": 1, \"display_order\": 1, \"is_active\": true, \"created_at\": \"2026-05-14T22:13:56Z\", \"updated_at\": \"2026-05-14T22:13:56Z\", \"children\": {\"fuel_pump_inventories\": [{\"fuel_pump_inventory_id\": \"40dfbd7a-b010-4162-945a-3b68043cf786\", \"gas_station_id\": \"bca67f9d-d33a-4b86-9129-908895584666\", \"pump_id\": \"1b57c133-526c-4a19-871d-883455fe5027\", \"inventory_number\": \"value_001\", \"date\": \"2026-05-15\", \"pump_label\": \"Value 001\", \"product\": \"Value 001\", \"opening_reading\": 1, \"closing_reading\": 1, \"liters_sold\": 0, \"price_per_liter\": 1, \"total_amount\": 0, \"status\": \"value_001\", \"created_at\": \"2026-05-14T22:13:56Z\", \"updated_at\": \"2026-05-14T22:13:56Z\"}], \"purchase_orders\": [{\"purchase_order_id\": \"f6d0673e-3c28-4bd1-b23a-6539145c26f9\", \"gas_station_id\": \"bca67f9d-d33a-4b86-9129-908895584666\", \"receipt_number\": \"value_001\", \"date\": \"2026-05-15\", \"shift\": \"Value 001\", \"pump_id\": \"1b57c133-526c-4a19-871d-883455fe5027\", \"pump_label\": \"Value 001\", \"product\": \"Value 001\", \"liters\": 1, \"price_per_liter\": 1, \"total_amount\": 1, \"customer_name\": \"Value 001\", \"plate_number\": \"Value 001\", \"driver_name\": \"Value 001\", \"notes\": \"Value 001\", \"status\": \"value_001\", \"created_at\": \"2026-05-14T22:13:56Z\", \"updated_at\": \"2026-05-14T22:13:56Z\"}], \"sales_invoices\": [{\"sales_invoice_id\": \"6691bf91-d11d-48c6-91fc-7de25b68f45b\", \"gas_station_id\": \"bca67f9d-d33a-4b86-9129-908895584666\", \"receipt_number\": \"value_001\", \"date\": \"2026-05-15\", \"shift\": \"Value 001\", \"pump_id\": \"1b57c133-526c-4a19-871d-883455fe5027\", \"pump_label\": \"Value 001\", \"product\": \"Value 001\", \"liters\": 1, \"price_per_liter\": 1, \"total_amount\": 1, \"customer_name\": \"Value 001\", \"plate_number\": \"Value 001\", \"notes\": \"Value 001\", \"status\": \"value_001\", \"created_at\": \"2026-05-14T22:13:56Z\", \"updated_at\": \"2026-05-14T22:13:56Z\"}]}}"

PowerShell curl

curl.exe -X POST "https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-pumps-post-one" -H "Content-Type: application/json" --data-raw '{"pump_id": "1b57c133-526c-4a19-871d-883455fe5027", "gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666", "pump_label": "Value 001", "product": "Value 001", "price_per_liter": 1, "display_order": 1, "is_active": true, "created_at": "2026-05-14T22:13:56Z", "updated_at": "2026-05-14T22:13:56Z", "children": {"fuel_pump_inventories": [{"fuel_pump_inventory_id": "40dfbd7a-b010-4162-945a-3b68043cf786", "gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666", "pump_id": "1b57c133-526c-4a19-871d-883455fe5027", "inventory_number": "value_001", "date": "2026-05-15", "pump_label": "Value 001", "product": "Value 001", "opening_reading": 1, "closing_reading": 1, "liters_sold": 0, "price_per_liter": 1, "total_amount": 0, "status": "value_001", "created_at": "2026-05-14T22:13:56Z", "updated_at": "2026-05-14T22:13:56Z"}], "purchase_orders": [{"purchase_order_id": "f6d0673e-3c28-4bd1-b23a-6539145c26f9", "gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666", "receipt_number": "value_001", "date": "2026-05-15", "shift": "Value 001", "pump_id": "1b57c133-526c-4a19-871d-883455fe5027", "pump_label": "Value 001", "product": "Value 001", "liters": 1, "price_per_liter": 1, "total_amount": 1, "customer_name": "Value 001", "plate_number": "Value 001", "driver_name": "Value 001", "notes": "Value 001", "status": "value_001", "created_at": "2026-05-14T22:13:56Z", "updated_at": "2026-05-14T22:13:56Z"}], "sales_invoices": [{"sales_invoice_id": "6691bf91-d11d-48c6-91fc-7de25b68f45b", "gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666", "receipt_number": "value_001", "date": "2026-05-15", "shift": "Value 001", "pump_id": "1b57c133-526c-4a19-871d-883455fe5027", "pump_label": "Value 001", "product": "Value 001", "liters": 1, "price_per_liter": 1, "total_amount": 1, "customer_name": "Value 001", "plate_number": "Value 001", "notes": "Value 001", "status": "value_001", "created_at": "2026-05-14T22:13:56Z", "updated_at": "2026-05-14T22:13:56Z"}]}}'