sales-invoices-customers-post¶
Source¶
Repository:
jef-systems/jef-sales-invoices-backendModule:
sales-invoicesDocumentation Scope:
asyncLambda:
jef-sales-invoices-post-29
Endpoint¶
API Name:
jef-sales-invoicesAction Name:
postMethod:
POSTScope Label:
AsyncResource Path:
/sales-invoices-customers-postComplete Endpoint:
https://f85p4su499.execute-api.ap-southeast-1.amazonaws.com/prod/sales-invoices-customers-postLambda ARN:
arn:aws:lambda:ap-southeast-1:246715082475:function:jef-sales-invoices-post-29curl payload mode:
json_body
API Gateway Description¶
Function: jef-sales-invoices-post-29
API Name: jef-sales-invoices
Action: post
Method: POST
Resource Path: /sales-invoices-customers-post
Payload:
- tin: 123-456-789-000
- entity_number: 1001
- name: Acme Corp
- business_style: Retail
- address: Bago City
- email: billing@example.com
- phone: 09123456789
- customer_type: CORPORATE
- credit_limit: 10000.00
Response:
- ok: true
- job_id: job-uuid
- status: PENDING
Request Payload¶
{
"tin": "123-456-789-000",
"entity_number": "1001",
"name": "Acme Corp",
"business_style": "Retail",
"address": "Bago City",
"email": "billing@example.com",
"phone": "09123456789",
"customer_type": "CORPORATE",
"credit_limit": "10000.00"
}
Response¶
{
"ok": "true",
"job_id": "job-uuid",
"status": "PENDING"
}
CMD curl¶
curl -X POST "https://f85p4su499.execute-api.ap-southeast-1.amazonaws.com/prod/sales-invoices-customers-post" -H "Content-Type: application/json" --data-raw "{\"tin\": \"123-456-789-000\", \"entity_number\": \"1001\", \"name\": \"Acme Corp\", \"business_style\": \"Retail\", \"address\": \"Bago City\", \"email\": \"billing@example.com\", \"phone\": \"09123456789\", \"customer_type\": \"CORPORATE\", \"credit_limit\": \"10000.00\"}"
PowerShell curl¶
curl.exe -X POST "https://f85p4su499.execute-api.ap-southeast-1.amazonaws.com/prod/sales-invoices-customers-post" -H "Content-Type: application/json" --data-raw '{"tin": "123-456-789-000", "entity_number": "1001", "name": "Acme Corp", "business_style": "Retail", "address": "Bago City", "email": "billing@example.com", "phone": "09123456789", "customer_type": "CORPORATE", "credit_limit": "10000.00"}'