“Hi everyone, I’m having an issue with API2 when using the POST method to create a new receipt. The problem is that the inventory items aren’t being automatically deducted after the receipt is posted. Has anyone else encountered this or know how to resolve it? Any help would be appreciated!”
Let me know if you’d like further adjustments!
POST http://localhost:8080/api2/receipt-form HTTP/1.1
Host: localhost
X-API-KEY: CglOb3J0aHdpbmQSEgn0fuadrKRsRRGid5IEpA/XkhoSCWb4QKZZItpPEbmds7wDD0WM
Content-Type: application/json
: 391
: application/json
: 413
Content-Length: 489
Authorization: Bearer
{
“Date”: “2025-02-13”,
“Payee”: “John Doe”,
“ReceivedIn”: “2631bab8-c6c5-4fcb-9ee3-4e61d9f9264f”,
“Name”: “Test”,
“Amount”: 100.00,
“Description”: “Payment received for services API 5”,
“Lines”: [
{
“Item”: “5dc541a0-99d3-4b61-a4ca-977f781d33ca”,
“Account”: “0fb45a62-fc42-43a8-a776-782e8b5ffc96”,
“Description”: “Service Fee 5”,
“Qty”: 1,
“Amount”: 100.00
}
]
}
Does it mean i Need to excute POST Inventory Write-Off?