.. AUTO-GENERATED FILE. DO NOT EDIT. /fuel-pump-inventories-payment-methods-post-one =============================================== Summary ------- - **Source repository:** ``jef-systems/jef-fuel-pump-inventories-backend`` - **Source SHA:** ``0345cd6480c0cb10fcd6bf1b5df3d407a0059226`` - **Source run id:** ``25995204672`` - **Lambda function:** ``jef-fuel-pump-inventories-payment-methods-post-one`` - **HTTP method:** ``POST`` - **API path:** ``/fuel-pump-inventories-payment-methods-post-one`` - **Endpoint URL:** ``https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-payment-methods-post-one`` - **Payload mode:** ``json-body`` Description ----------- - ``Function``: jef-fuel-pump-inventories-payment-methods-post-one - ``Module``: jef-fuel-pump-inventories - ``Action``: post-one - ``Method``: POST - ``Invocation Mode``: ASYNC - ``Resource Path``: /fuel-pump-inventories-payment-methods-post-one - ``Table``: jef-fuel-pump-inventories-payment-methods - ``Primary Key``: payment\_method\_id API Gateway Response -------------------- - ``status\_code``: 202 - ``message``: Request accepted for asynchronous processing. Payload Example --------------- - ``payment\_method\_id``: 85dee342-5c78-445d-822a-87185691987a - ``gas\_station\_id``: bca67f9d-d33a-4b86-9129-908895584666 - ``payment\_method\_name``: Cash - ``description``: Used for walk-in fuel sales - ``display\_order``: 1 - ``is\_active``: True - ``created\_at``: 2026-05-17T15:26:21Z - ``updated\_at``: 2026-05-17T15:26:21Z Payload Schema -------------- .. code-block:: json { "root.type": "M", "root.required": "True", "root.attributes.payment_method_id.type": "S", "root.attributes.payment_method_id.required": "True", "root.attributes.payment_method_id.format": "uuidv4", "root.attributes.payment_method_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.payment_method_name.type": "S", "root.attributes.payment_method_name.required": "True", "root.attributes.payment_method_name.regex": "^[A-Za-z0-9 ._-]{1,100}$", "root.attributes.description.type": "S", "root.attributes.description.required": "False", "root.attributes.description.regex": "^.{0,500}$", "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 --------------- .. code-block:: json { "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 --------------- .. code-block:: json { "payment_method_id": "85dee342-5c78-445d-822a-87185691987a", "gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666", "payment_method_name": "Cash", "description": "Used for walk-in fuel sales", "display_order": "1", "is_active": "True", "created_at": "2026-05-17T15:26:21Z", "updated_at": "2026-05-17T15:26:21Z" } Response -------- .. code-block:: json { "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 -------- .. code-block:: bat curl -X POST "https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-payment-methods-post-one" -H "Content-Type: application/json" --data-raw "{\"payment_method_id\": \"85dee342-5c78-445d-822a-87185691987a\", \"gas_station_id\": \"bca67f9d-d33a-4b86-9129-908895584666\", \"payment_method_name\": \"Cash\", \"description\": \"Used for walk-in fuel sales\", \"display_order\": 1, \"is_active\": true, \"created_at\": \"2026-05-17T15:26:21Z\", \"updated_at\": \"2026-05-17T15:26:21Z\"}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X POST "https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-payment-methods-post-one" -H "Content-Type: application/json" --data-raw '{"payment_method_id": "85dee342-5c78-445d-822a-87185691987a", "gas_station_id": "bca67f9d-d33a-4b86-9129-908895584666", "payment_method_name": "Cash", "description": "Used for walk-in fuel sales", "display_order": 1, "is_active": true, "created_at": "2026-05-17T15:26:21Z", "updated_at": "2026-05-17T15:26:21Z"}'