fuel-pump-inventories-sales-invoices-patch-one

Source

  • Repository: jef-systems/jef-fuel-pump-inventories-backend

  • Source Run ID: 24967078100

  • Source SHA: 1159f01c85f4a6aefdd03618419a726c3fc9edbb

  • Module: fuel-pump-inventories

  • Documentation Scope: async

  • Lambda: jef-fuel-pump-inventories-patch-18

Endpoint

  • API Name: jef-fuel-pump-inventories

  • Action Name: patch

  • Method: PATCH

  • Scope Label: Async

  • Resource Path: /fuel-pump-inventories-sales-invoices-patch-one

  • Complete Endpoint: https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-sales-invoices-patch-one

  • Lambda ARN: arn:aws:lambda:ap-southeast-1:246715082475:function:jef-fuel-pump-inventories-patch-18

  • curl payload mode: json_body

API Gateway Description

Function: jef-fuel-pump-inventories-patch-18
Module: jef-fuel-pump-inventories
Action: patch
Method: PATCH
Invocation Mode: ASYNC
Resource Path: /fuel-pump-inventories-sales-invoices-patch-one

API Gateway Response:
- status_code: 202
- message: Request accepted for asynchronous processing.

Table:
- table: jef-fuel-pump-inventories-sales-invoices

Payload Example:
- pk: sales-invoice-0001
- gsi_1_pk: 0001
- gsi_1_sk: sales-invoice-0001
- entity_number: 0001
- id: sales-invoice-0001
- receipt_number: SI-0001
- date: 2026-04-26
- shift: AM
- pump_id: pump-001
- pump_label: Pump 1
- product: Diesel
- liters: 50
- price_per_liter: 62.5
- total_amount: 3125
- customer_name: Cash Customer
- plate_number: ABC-1234
- notes: Cash sale sample.
- status: paid
- created_at: 2026-04-26T02:00:00Z
- updated_at: 2026-04-26T02:00:00Z

Payload Schema:
- pk: string-{id}
- gsi_1_pk: string-{entity_number}
- gsi_1_sk: string-{id}
- entity_number: string
- id: string
- receipt_number: string
- date: string
- shift: string
- pump_id: string
- pump_label: string
- product: string
- liters: number
- price_per_liter: number
- total_amount: number
- customer_name: string
- plate_number: string
- notes: string
- status: string
- created_at: string
- updated_at: string

Response Schema:
- is_accepted: boolean
- message: string

Request Payload

{
  "pk": "sales-invoice-0001",
  "gsi_1_pk": "0001",
  "gsi_1_sk": "sales-invoice-0001",
  "entity_number": "0001",
  "id": "sales-invoice-0001",
  "receipt_number": "SI-0001",
  "date": "2026-04-26",
  "shift": "AM",
  "pump_id": "pump-001",
  "pump_label": "Pump 1",
  "product": "Diesel",
  "liters": "50",
  "price_per_liter": "62.5",
  "total_amount": "3125",
  "customer_name": "Cash Customer",
  "plate_number": "ABC-1234",
  "notes": "Cash sale sample.",
  "status": "paid",
  "created_at": "2026-04-26T02:00:00Z",
  "updated_at": "2026-04-26T02:00:00Z"
}

Response

{
  "is_accepted": "boolean",
  "message": "string"
}

CMD curl

curl -X PATCH "https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-sales-invoices-patch-one" -H "Content-Type: application/json" --data-raw "{\"pk\": \"sales-invoice-0001\", \"gsi_1_pk\": \"0001\", \"gsi_1_sk\": \"sales-invoice-0001\", \"entity_number\": \"0001\", \"id\": \"sales-invoice-0001\", \"receipt_number\": \"SI-0001\", \"date\": \"2026-04-26\", \"shift\": \"AM\", \"pump_id\": \"pump-001\", \"pump_label\": \"Pump 1\", \"product\": \"Diesel\", \"liters\": 50, \"price_per_liter\": 62.5, \"total_amount\": 3125, \"customer_name\": \"Cash Customer\", \"plate_number\": \"ABC-1234\", \"notes\": \"Cash sale sample.\", \"status\": \"paid\", \"created_at\": \"2026-04-26T02:00:00Z\", \"updated_at\": \"2026-04-26T02:00:00Z\"}"

PowerShell curl

curl.exe -X PATCH "https://zgmzv02c7f.execute-api.ap-southeast-1.amazonaws.com/prod/fuel-pump-inventories-sales-invoices-patch-one" -H "Content-Type: application/json" --data-raw '{"pk": "sales-invoice-0001", "gsi_1_pk": "0001", "gsi_1_sk": "sales-invoice-0001", "entity_number": "0001", "id": "sales-invoice-0001", "receipt_number": "SI-0001", "date": "2026-04-26", "shift": "AM", "pump_id": "pump-001", "pump_label": "Pump 1", "product": "Diesel", "liters": 50, "price_per_liter": 62.5, "total_amount": 3125, "customer_name": "Cash Customer", "plate_number": "ABC-1234", "notes": "Cash sale sample.", "status": "paid", "created_at": "2026-04-26T02:00:00Z", "updated_at": "2026-04-26T02:00:00Z"}'