store-customer-settings-post-one

Source

  • Repository: jef-systems/jef-store-backend

  • Source Run ID: 25334823297

  • Source SHA: 69cb846339fa14db005aec45414a4a94ec2a821e

  • Module: store

  • Documentation Scope: async

  • Lambda: jef-store-post-25

Endpoint

  • API Name: jef-store

  • Action Name: post

  • Method: POST

  • Scope Label: Async

  • Resource Path: /store-customer-settings-post-one

  • Complete Endpoint: https://rw53l0a90m.execute-api.ap-southeast-1.amazonaws.com/prod/store-customer-settings-post-one

  • Lambda ARN: arn:aws:lambda:ap-southeast-1:246715082475:function:jef-store-post-25

  • curl payload mode: json_body

API Gateway Description

Function: jef-store-post-25
Module: jef-store
Action: post
Method: POST
Invocation Mode: ASYNC
Resource Path: /store-customer-settings-post-one

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

Table:
- table: jef-store-customer-settings

Payload Example:
- pk: customer-settings-1001-0001
- gsi_1_pk: 1001
- gsi_1_sk: EMP-1001-0001
- customer_settings_id: customer-settings-1001-0001
- entity_number: 1001
- employee_number: EMP-1001-0001
- customer_number: CUS-1001-0001
- customer_name: Juan Dela Cruz
- phone: +63 917 100 0001
- email: [email protected]
- delivery_mode: Pandan Coconut Sea Salt Latte delivery mode 1001-0001
- payment_method: Pandan Coconut Sea Salt Latte payment method 1001-0001
- receipt_mode: Pandan Coconut Sea Salt Latte receipt mode 1001-0001
- branch_pickup_name: Bacolod Main Barista Grocery
- full_address: Bacolod City, Negros Occidental
- delivery_instructions: Pandan Coconut Sea Salt Latte delivery instructions 1001-0001
- internal_note: Barista grocery sample note for Pandan Coconut Sea Salt Latte at Bacolod Main Barista Grocery.
- call_before_delivery: true
- allow_partial_fulfillment: true
- save_as_default_customer: true
- is_active: true
- is_deleted: false
- deleted_at:
- created_at: 2026-05-04T09:07:00+08:00
- updated_at: 2026-05-04T09:07:00+08:00
- idempotency_key: 74e07c26-2c68-5cdc-af03-d25d83169369
- schema_version: 1001
- version: 1001

Payload Schema:
- pk: string-{customer_settings_id}
- gsi_1_pk: string-{entity_number}
- gsi_1_sk: string-{employee_number}
- customer_settings_id: string
- entity_number: string
- employee_number: string
- customer_number: string
- customer_name: string
- phone: string
- email: string
- delivery_mode: string
- payment_method: string
- receipt_mode: string
- branch_pickup_name: string
- full_address: string
- delivery_instructions: string
- internal_note: string
- call_before_delivery: boolean
- allow_partial_fulfillment: boolean
- save_as_default_customer: boolean
- is_active: boolean
- is_deleted: boolean
- deleted_at: string
- created_at: string
- updated_at: string
- idempotency_key: string
- schema_version: number
- version: number

Response Schema:
- is_accepted: boolean
- message: string

Request Payload

{
  "pk": "customer-settings-1001-0001",
  "gsi_1_pk": "1001",
  "gsi_1_sk": "EMP-1001-0001",
  "customer_settings_id": "customer-settings-1001-0001",
  "entity_number": "1001",
  "employee_number": "EMP-1001-0001",
  "customer_number": "CUS-1001-0001",
  "customer_name": "Juan Dela Cruz",
  "phone": "+63 917 100 0001",
  "email": "[email protected]",
  "delivery_mode": "Pandan Coconut Sea Salt Latte delivery mode 1001-0001",
  "payment_method": "Pandan Coconut Sea Salt Latte payment method 1001-0001",
  "receipt_mode": "Pandan Coconut Sea Salt Latte receipt mode 1001-0001",
  "branch_pickup_name": "Bacolod Main Barista Grocery",
  "full_address": "Bacolod City, Negros Occidental",
  "delivery_instructions": "Pandan Coconut Sea Salt Latte delivery instructions 1001-0001",
  "internal_note": "Barista grocery sample note for Pandan Coconut Sea Salt Latte at Bacolod Main Barista Grocery.",
  "call_before_delivery": "true",
  "allow_partial_fulfillment": "true",
  "save_as_default_customer": "true",
  "is_active": "true",
  "is_deleted": "false",
  "deleted_at": "",
  "created_at": "2026-05-04T09:07:00+08:00",
  "updated_at": "2026-05-04T09:07:00+08:00",
  "idempotency_key": "74e07c26-2c68-5cdc-af03-d25d83169369",
  "schema_version": "1001",
  "version": "1001"
}

Response

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

CMD curl

curl -X POST "https://rw53l0a90m.execute-api.ap-southeast-1.amazonaws.com/prod/store-customer-settings-post-one" -H "Content-Type: application/json" --data-raw "{\"pk\": \"customer-settings-1001-0001\", \"gsi_1_pk\": \"1001\", \"gsi_1_sk\": \"EMP-1001-0001\", \"customer_settings_id\": \"customer-settings-1001-0001\", \"entity_number\": \"1001\", \"employee_number\": \"EMP-1001-0001\", \"customer_number\": \"CUS-1001-0001\", \"customer_name\": \"Juan Dela Cruz\", \"phone\": \"+63 917 100 0001\", \"email\": \"[email protected]\", \"delivery_mode\": \"Pandan Coconut Sea Salt Latte delivery mode 1001-0001\", \"payment_method\": \"Pandan Coconut Sea Salt Latte payment method 1001-0001\", \"receipt_mode\": \"Pandan Coconut Sea Salt Latte receipt mode 1001-0001\", \"branch_pickup_name\": \"Bacolod Main Barista Grocery\", \"full_address\": \"Bacolod City, Negros Occidental\", \"delivery_instructions\": \"Pandan Coconut Sea Salt Latte delivery instructions 1001-0001\", \"internal_note\": \"Barista grocery sample note for Pandan Coconut Sea Salt Latte at Bacolod Main Barista Grocery.\", \"call_before_delivery\": \"true\", \"allow_partial_fulfillment\": \"true\", \"save_as_default_customer\": \"true\", \"is_active\": \"true\", \"is_deleted\": \"false\", \"deleted_at\": \"\", \"created_at\": \"2026-05-04T09:07:00+08:00\", \"updated_at\": \"2026-05-04T09:07:00+08:00\", \"idempotency_key\": \"74e07c26-2c68-5cdc-af03-d25d83169369\", \"schema_version\": 1001, \"version\": 1001}"

PowerShell curl

curl.exe -X POST "https://rw53l0a90m.execute-api.ap-southeast-1.amazonaws.com/prod/store-customer-settings-post-one" -H "Content-Type: application/json" --data-raw '{"pk": "customer-settings-1001-0001", "gsi_1_pk": "1001", "gsi_1_sk": "EMP-1001-0001", "customer_settings_id": "customer-settings-1001-0001", "entity_number": "1001", "employee_number": "EMP-1001-0001", "customer_number": "CUS-1001-0001", "customer_name": "Juan Dela Cruz", "phone": "+63 917 100 0001", "email": "[email protected]", "delivery_mode": "Pandan Coconut Sea Salt Latte delivery mode 1001-0001", "payment_method": "Pandan Coconut Sea Salt Latte payment method 1001-0001", "receipt_mode": "Pandan Coconut Sea Salt Latte receipt mode 1001-0001", "branch_pickup_name": "Bacolod Main Barista Grocery", "full_address": "Bacolod City, Negros Occidental", "delivery_instructions": "Pandan Coconut Sea Salt Latte delivery instructions 1001-0001", "internal_note": "Barista grocery sample note for Pandan Coconut Sea Salt Latte at Bacolod Main Barista Grocery.", "call_before_delivery": "true", "allow_partial_fulfillment": "true", "save_as_default_customer": "true", "is_active": "true", "is_deleted": "false", "deleted_at": "", "created_at": "2026-05-04T09:07:00+08:00", "updated_at": "2026-05-04T09:07:00+08:00", "idempotency_key": "74e07c26-2c68-5cdc-af03-d25d83169369", "schema_version": 1001, "version": 1001}'