/fuel-pump-inventories-expense-categories-post-one¶
Summary¶
Source repository:
jef-systems/jef-fuel-pump-inventories-backendSource SHA:
0345cd6480c0cb10fcd6bf1b5df3d407a0059226Source run id:
25995204672Lambda function:
jef-fuel-pump-inventories-expense-categories-post-oneHTTP method:
POSTAPI path:
/fuel-pump-inventories-expense-categories-post-oneEndpoint URL:
https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-expense-categories-post-onePayload mode:
json-body
Description¶
Function: jef-fuel-pump-inventories-expense-categories-post-oneModule: jef-fuel-pump-inventoriesAction: post-oneMethod: POSTInvocation Mode: ASYNCResource Path: /fuel-pump-inventories-expense-categories-post-oneTable: jef-fuel-pump-inventories-expense-categoriesPrimary Key: expense_category_id
API Gateway Response¶
status\_code: 202message: Request accepted for asynchronous processing.
Payload Example¶
expense\_category\_id: 2a26f7b6-cb34-4b30-9000-a60105c333b8gas\_station\_id: bca67f9d-d33a-4b86-9129-908895584666category\_code: fuel_deliverycategory\_name: Fuel Deliverycategory\_type: fueldisplay\_order: 1is\_active: Truecreated\_at: 2026-05-17T15:26:21Zupdated\_at: 2026-05-17T15:26:21Z
Payload Schema¶
{
"root.type": "M",
"root.required": "True",
"root.attributes.expense_category_id.type": "S",
"root.attributes.expense_category_id.required": "True",
"root.attributes.expense_category_id.format": "uuidv4",
"root.attributes.expense_category_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.category_code.type": "S",
"root.attributes.category_code.required": "True",
"root.attributes.category_code.regex": "^[A-Za-z0-9_-]{1,64}$",
"root.attributes.category_name.type": "S",
"root.attributes.category_name.required": "True",
"root.attributes.category_name.regex": "^[A-Za-z0-9 ._-]{1,100}$",
"root.attributes.category_type.type": "S",
"root.attributes.category_type.required": "True",
"root.attributes.category_type.regex": "^(fuel|maintenance|utilities|salary|supplies|rent|tax|miscellaneous|other)$",
"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?$"
}
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¶
{
"expense_category_id": "2a26f7b6-cb34-4b30-9000-a60105c333b8",
"gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666",
"category_code": "fuel_delivery",
"category_name": "Fuel Delivery",
"category_type": "fuel",
"display_order": "1",
"is_active": "True",
"created_at": "2026-05-17T15:26:21Z",
"updated_at": "2026-05-17T15:26:21Z"
}
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-expense-categories-post-one" -H "Content-Type: application/json" --data-raw "{\"expense_category_id\": \"2a26f7b6-cb34-4b30-9000-a60105c333b8\", \"gas_station_id\": \"bca67f9d-d33a-4b86-9129-908895584666\", \"category_code\": \"fuel_delivery\", \"category_name\": \"Fuel Delivery\", \"category_type\": \"fuel\", \"display_order\": 1, \"is_active\": true, \"created_at\": \"2026-05-17T15:26:21Z\", \"updated_at\": \"2026-05-17T15:26:21Z\"}"
PowerShell curl¶
curl.exe -X POST "https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-expense-categories-post-one" -H "Content-Type: application/json" --data-raw '{"expense_category_id": "2a26f7b6-cb34-4b30-9000-a60105c333b8", "gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666", "category_code": "fuel_delivery", "category_name": "Fuel Delivery", "category_type": "fuel", "display_order": 1, "is_active": true, "created_at": "2026-05-17T15:26:21Z", "updated_at": "2026-05-17T15:26:21Z"}'