/fuel-pump-inventories-gas-stations-post-one¶
Summary¶
Source repository:
jef-systems/jef-fuel-pump-inventories-backendSource SHA:
72119609d80692052adc7462ef8cbe24eb23f022Source run id:
28366940754Lambda function:
jef-fuel-pump-inventories-post-001HTTP method:
POSTAPI path:
/fuel-pump-inventories-gas-stations-post-oneEndpoint URL:
https://fsqf5slhc1.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-gas-stations-post-onePayload mode:
json-body
Description¶
|
jef-fuel-pump-inventories-post-001 Logical ID: jef-fuel-pump-inventories:jef-fuel-pump-inventories-gas-stations:post-one Order Number: 001 |
|
jef-fuel-pump-inventories |
|
post-one |
|
POST |
|
ASYNC |
|
/fuel-pump-inventories-gas-stations-post-one Endpoint Name: jef-fuel-pump-inventories-gas-stations-post-one |
|
jef-fuel-pump-inventories-gas-stations |
|
gas_station_id |
API Gateway Response¶
|
202 |
|
Request accepted for asynchronous processing. |
Payload Example¶
|
0a7a1db0-49ed-4576-8857-e3e55654930a |
|
value-001 |
|
Sample Name |
|
value-001 |
|
value-001 |
|
True |
|
2026-06-29T10:53:22Z |
|
2026-06-29T10:53:22Z |
|
196b60e7-59c5-4a5e-bbbd-b132e54a6c87 |
|
0a7a1db0-49ed-4576-8857-e3e55654930a |
|
value-001 |
|
value-001 |
|
Sample Name |
|
1 |
|
value-001 |
|
1 |
|
True |
|
value-001 |
|
2026-06-29T10:53:22Z |
|
2026-06-29T10:53:22Z |
|
677c6801-f30c-4312-8a2d-093bf372f177 |
|
0a7a1db0-49ed-4576-8857-e3e55654930a |
|
value-001 |
|
2026-05-17 |
|
Sample Name |
|
value-001 |
|
1 |
|
1 |
|
2026-06-29T10:53:22Z |
|
2026-06-29T10:53:22Z |
|
d0d1ac89-eaa3-4980-b05f-e9d0c993b760 |
|
0a7a1db0-49ed-4576-8857-e3e55654930a |
|
value-001 |
|
2026-05-17 |
|
value-001 |
|
Sample Name |
|
value-001 |
|
value-001 |
|
1 |
|
1 |
|
value-001 |
|
value-001 |
|
2026-06-29T10:53:22Z |
|
2026-06-29T10:53:22Z |
Payload Schema¶
{
"type": "object",
"additionalProperties": "False",
"payload_mode": "parent-plus-children-wrapper",
"allow_children_wrapper": "True",
"children_wrapper_field": "children",
"allow_batch": "False",
"table": "jef-fuel-pump-inventories-gas-stations",
"primary_key": "gas_station_id",
"required[0]": "station_code",
"required[1]": "station_name",
"required[2]": "address",
"properties.gas_station_id.field": "gas_station_id",
"properties.gas_station_id.type": "S",
"properties.gas_station_id.required": "False",
"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.station_code.field": "station_code",
"properties.station_code.type": "S",
"properties.station_code.required": "True",
"properties.station_code.source_required": "True",
"properties.station_code.server_generated": "False",
"properties.station_code.autogenerated": "False",
"properties.station_code.frontend_autocomputed": "False",
"properties.station_code.regex": "^[A-Za-z0-9_-]{1,64}$",
"properties.station_name.field": "station_name",
"properties.station_name.type": "S",
"properties.station_name.required": "True",
"properties.station_name.source_required": "True",
"properties.station_name.server_generated": "False",
"properties.station_name.autogenerated": "False",
"properties.station_name.frontend_autocomputed": "False",
"properties.station_name.regex": "^[A-Za-z0-9 ._-]{1,100}$",
"properties.address.field": "address",
"properties.address.type": "S",
"properties.address.required": "True",
"properties.address.source_required": "True",
"properties.address.server_generated": "False",
"properties.address.autogenerated": "False",
"properties.address.frontend_autocomputed": "False",
"properties.address.regex": "^.{1,300}$",
"properties.contact_number.field": "contact_number",
"properties.contact_number.type": "S",
"properties.contact_number.required": "False",
"properties.contact_number.source_required": "False",
"properties.contact_number.server_generated": "False",
"properties.contact_number.autogenerated": "False",
"properties.contact_number.frontend_autocomputed": "False",
"properties.contact_number.regex": "^$|^[0-9+() .-]{7,30}$",
"properties.is_active.field": "is_active",
"properties.is_active.type": "BOOL",
"properties.is_active.required": "False",
"properties.is_active.source_required": "True",
"properties.is_active.server_generated": "True",
"properties.is_active.autogenerated": "False",
"properties.is_active.frontend_autocomputed": "False",
"properties.is_active.regex": "^(true|false)$",
"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[0].parent_table": "jef-fuel-pump-inventories-gas-stations",
"children[0].child_table": "jef-fuel-pump-inventories-pumps",
"children[0].parent_key": "gas_station_id",
"children[0].child_foreign_key": "gas_station_id",
"children[0].child_index_name": "gsi_1",
"children[0].child_index_key": "gsi_1_pk",
"children[0].aliases[0]": "jef-fuel-pump-inventories-pumps",
"children[0].aliases[1]": "pumps",
"children[0].aliases[2]": "fuel-pump-inventories-pumps",
"children[0].aliases[3]": "jef_fuel_pump_inventories_pumps",
"children[0].aliases[4]": "fuel_pump_inventories_pumps",
"children[1].parent_table": "jef-fuel-pump-inventories-gas-stations",
"children[1].child_table": "jef-fuel-pump-inventories-purchase-orders",
"children[1].parent_key": "gas_station_id",
"children[1].child_foreign_key": "gas_station_id",
"children[1].child_index_name": "gsi_1",
"children[1].child_index_key": "gsi_1_pk",
"children[1].aliases[0]": "jef-fuel-pump-inventories-purchase-orders",
"children[1].aliases[1]": "purchase-orders",
"children[1].aliases[2]": "fuel-pump-inventories-purchase-orders",
"children[1].aliases[3]": "jef_fuel_pump_inventories_purchase_orders",
"children[1].aliases[4]": "purchase_orders",
"children[1].aliases[5]": "fuel_pump_inventories_purchase_orders",
"children[1].aliases[6]": "orders",
"children[2].parent_table": "jef-fuel-pump-inventories-gas-stations",
"children[2].child_table": "jef-fuel-pump-inventories-sales-invoices",
"children[2].parent_key": "gas_station_id",
"children[2].child_foreign_key": "gas_station_id",
"children[2].child_index_name": "gsi_1",
"children[2].child_index_key": "gsi_1_pk",
"children[2].aliases[0]": "jef-fuel-pump-inventories-sales-invoices",
"children[2].aliases[1]": "sales-invoices",
"children[2].aliases[2]": "fuel-pump-inventories-sales-invoices",
"children[2].aliases[3]": "jef_fuel_pump_inventories_sales_invoices",
"children[2].aliases[4]": "sales_invoices",
"children[2].aliases[5]": "fuel_pump_inventories_sales_invoices",
"children[2].aliases[6]": "invoices",
"root.type": "object",
"root.attributes.gas_station_id.field": "gas_station_id",
"root.attributes.gas_station_id.type": "S",
"root.attributes.gas_station_id.required": "False",
"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.station_code.field": "station_code",
"root.attributes.station_code.type": "S",
"root.attributes.station_code.required": "True",
"root.attributes.station_code.source_required": "True",
"root.attributes.station_code.server_generated": "False",
"root.attributes.station_code.autogenerated": "False",
"root.attributes.station_code.frontend_autocomputed": "False",
"root.attributes.station_code.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.station_name.field": "station_name",
"root.attributes.station_name.type": "S",
"root.attributes.station_name.required": "True",
"root.attributes.station_name.source_required": "True",
"root.attributes.station_name.server_generated": "False",
"root.attributes.station_name.autogenerated": "False",
"root.attributes.station_name.frontend_autocomputed": "False",
"root.attributes.station_name.regex": "^[A-Za-z0-9 ._-]{1,100}$",
"root.attributes.address.field": "address",
"root.attributes.address.type": "S",
"root.attributes.address.required": "True",
"root.attributes.address.source_required": "True",
"root.attributes.address.server_generated": "False",
"root.attributes.address.autogenerated": "False",
"root.attributes.address.frontend_autocomputed": "False",
"root.attributes.address.regex": "^.{1,300}$",
"root.attributes.contact_number.field": "contact_number",
"root.attributes.contact_number.type": "S",
"root.attributes.contact_number.required": "False",
"root.attributes.contact_number.source_required": "False",
"root.attributes.contact_number.server_generated": "False",
"root.attributes.contact_number.autogenerated": "False",
"root.attributes.contact_number.frontend_autocomputed": "False",
"root.attributes.contact_number.regex": "^$|^[0-9+() .-]{7,30}$",
"root.attributes.is_active.field": "is_active",
"root.attributes.is_active.type": "BOOL",
"root.attributes.is_active.required": "False",
"root.attributes.is_active.source_required": "True",
"root.attributes.is_active.server_generated": "True",
"root.attributes.is_active.autogenerated": "False",
"root.attributes.is_active.frontend_autocomputed": "False",
"root.attributes.is_active.regex": "^(true|false)$",
"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¶
{
"gas_station_id": "0a7a1db0-49ed-4576-8857-e3e55654930a",
"station_code": "value-001",
"station_name": "Sample Name",
"address": "value-001",
"contact_number": "value-001",
"is_active": "True",
"created": "2026-06-29T10:53:22Z",
"updated": "2026-06-29T10:53:22Z",
"children.jef-fuel-pump-inventories-pumps[0].pump_id": "196b60e7-59c5-4a5e-bbbd-b132e54a6c87",
"children.jef-fuel-pump-inventories-pumps[0].gas_station_id": "0a7a1db0-49ed-4576-8857-e3e55654930a",
"children.jef-fuel-pump-inventories-pumps[0].pump_key": "value-001",
"children.jef-fuel-pump-inventories-pumps[0].pump_code": "value-001",
"children.jef-fuel-pump-inventories-pumps[0].pump_name": "Sample Name",
"children.jef-fuel-pump-inventories-pumps[0].pump_number": "1",
"children.jef-fuel-pump-inventories-pumps[0].product": "value-001",
"children.jef-fuel-pump-inventories-pumps[0].display_order": "1",
"children.jef-fuel-pump-inventories-pumps[0].is_active": "True",
"children.jef-fuel-pump-inventories-pumps[0].remarks": "value-001",
"children.jef-fuel-pump-inventories-pumps[0].created": "2026-06-29T10:53:22Z",
"children.jef-fuel-pump-inventories-pumps[0].updated": "2026-06-29T10:53:22Z",
"children.jef-fuel-pump-inventories-purchase-orders[0].purchase_order_id": "677c6801-f30c-4312-8a2d-093bf372f177",
"children.jef-fuel-pump-inventories-purchase-orders[0].gas_station_id": "0a7a1db0-49ed-4576-8857-e3e55654930a",
"children.jef-fuel-pump-inventories-purchase-orders[0].purchase_order_number": "value-001",
"children.jef-fuel-pump-inventories-purchase-orders[0].date": "2026-05-17",
"children.jef-fuel-pump-inventories-purchase-orders[0].supplier_name": "Sample Name",
"children.jef-fuel-pump-inventories-purchase-orders[0].delivery_reference_number": "value-001",
"children.jef-fuel-pump-inventories-purchase-orders[0].total_liters": "1",
"children.jef-fuel-pump-inventories-purchase-orders[0].total_amount": "1",
"children.jef-fuel-pump-inventories-purchase-orders[0].created": "2026-06-29T10:53:22Z",
"children.jef-fuel-pump-inventories-purchase-orders[0].updated": "2026-06-29T10:53:22Z",
"children.jef-fuel-pump-inventories-sales-invoices[0].sales_invoice_id": "d0d1ac89-eaa3-4980-b05f-e9d0c993b760",
"children.jef-fuel-pump-inventories-sales-invoices[0].gas_station_id": "0a7a1db0-49ed-4576-8857-e3e55654930a",
"children.jef-fuel-pump-inventories-sales-invoices[0].invoice_number": "value-001",
"children.jef-fuel-pump-inventories-sales-invoices[0].date": "2026-05-17",
"children.jef-fuel-pump-inventories-sales-invoices[0].shift": "value-001",
"children.jef-fuel-pump-inventories-sales-invoices[0].customer_name": "Sample Name",
"children.jef-fuel-pump-inventories-sales-invoices[0].plate_number": "value-001",
"children.jef-fuel-pump-inventories-sales-invoices[0].payment_method": "value-001",
"children.jef-fuel-pump-inventories-sales-invoices[0].total_liters": "1",
"children.jef-fuel-pump-inventories-sales-invoices[0].total_amount": "1",
"children.jef-fuel-pump-inventories-sales-invoices[0].notes": "value-001",
"children.jef-fuel-pump-inventories-sales-invoices[0].status": "value-001",
"children.jef-fuel-pump-inventories-sales-invoices[0].created": "2026-06-29T10:53:22Z",
"children.jef-fuel-pump-inventories-sales-invoices[0].updated": "2026-06-29T10:53:22Z"
}
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://fsqf5slhc1.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-gas-stations-post-one" -H "Content-Type: application/json" --data-raw "{\"gas_station_id\": \"0a7a1db0-49ed-4576-8857-e3e55654930a\", \"station_code\": \"value-001\", \"station_name\": \"Sample Name\", \"address\": \"value-001\", \"contact_number\": \"value-001\", \"is_active\": true, \"created\": \"2026-06-29T10:53:22Z\", \"updated\": \"2026-06-29T10:53:22Z\", \"children\": {\"jef-fuel-pump-inventories-pumps\": [{\"pump_id\": \"196b60e7-59c5-4a5e-bbbd-b132e54a6c87\", \"gas_station_id\": \"0a7a1db0-49ed-4576-8857-e3e55654930a\", \"pump_key\": \"value-001\", \"pump_code\": \"value-001\", \"pump_name\": \"Sample Name\", \"pump_number\": 1, \"product\": \"value-001\", \"display_order\": 1, \"is_active\": true, \"remarks\": \"value-001\", \"created\": \"2026-06-29T10:53:22Z\", \"updated\": \"2026-06-29T10:53:22Z\"}], \"jef-fuel-pump-inventories-purchase-orders\": [{\"purchase_order_id\": \"677c6801-f30c-4312-8a2d-093bf372f177\", \"gas_station_id\": \"0a7a1db0-49ed-4576-8857-e3e55654930a\", \"purchase_order_number\": \"value-001\", \"date\": \"2026-05-17\", \"supplier_name\": \"Sample Name\", \"delivery_reference_number\": \"value-001\", \"total_liters\": 1, \"total_amount\": 1, \"created\": \"2026-06-29T10:53:22Z\", \"updated\": \"2026-06-29T10:53:22Z\"}], \"jef-fuel-pump-inventories-sales-invoices\": [{\"sales_invoice_id\": \"d0d1ac89-eaa3-4980-b05f-e9d0c993b760\", \"gas_station_id\": \"0a7a1db0-49ed-4576-8857-e3e55654930a\", \"invoice_number\": \"value-001\", \"date\": \"2026-05-17\", \"shift\": \"value-001\", \"customer_name\": \"Sample Name\", \"plate_number\": \"value-001\", \"payment_method\": \"value-001\", \"total_liters\": 1, \"total_amount\": 1, \"notes\": \"value-001\", \"status\": \"value-001\", \"created\": \"2026-06-29T10:53:22Z\", \"updated\": \"2026-06-29T10:53:22Z\"}]}}"
PowerShell curl¶
curl.exe -X POST "https://fsqf5slhc1.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-gas-stations-post-one" -H "Content-Type: application/json" --data-raw '{"gas_station_id": "0a7a1db0-49ed-4576-8857-e3e55654930a", "station_code": "value-001", "station_name": "Sample Name", "address": "value-001", "contact_number": "value-001", "is_active": true, "created": "2026-06-29T10:53:22Z", "updated": "2026-06-29T10:53:22Z", "children": {"jef-fuel-pump-inventories-pumps": [{"pump_id": "196b60e7-59c5-4a5e-bbbd-b132e54a6c87", "gas_station_id": "0a7a1db0-49ed-4576-8857-e3e55654930a", "pump_key": "value-001", "pump_code": "value-001", "pump_name": "Sample Name", "pump_number": 1, "product": "value-001", "display_order": 1, "is_active": true, "remarks": "value-001", "created": "2026-06-29T10:53:22Z", "updated": "2026-06-29T10:53:22Z"}], "jef-fuel-pump-inventories-purchase-orders": [{"purchase_order_id": "677c6801-f30c-4312-8a2d-093bf372f177", "gas_station_id": "0a7a1db0-49ed-4576-8857-e3e55654930a", "purchase_order_number": "value-001", "date": "2026-05-17", "supplier_name": "Sample Name", "delivery_reference_number": "value-001", "total_liters": 1, "total_amount": 1, "created": "2026-06-29T10:53:22Z", "updated": "2026-06-29T10:53:22Z"}], "jef-fuel-pump-inventories-sales-invoices": [{"sales_invoice_id": "d0d1ac89-eaa3-4980-b05f-e9d0c993b760", "gas_station_id": "0a7a1db0-49ed-4576-8857-e3e55654930a", "invoice_number": "value-001", "date": "2026-05-17", "shift": "value-001", "customer_name": "Sample Name", "plate_number": "value-001", "payment_method": "value-001", "total_liters": 1, "total_amount": 1, "notes": "value-001", "status": "value-001", "created": "2026-06-29T10:53:22Z", "updated": "2026-06-29T10:53:22Z"}]}}'