When submitting a new Purchase Delivery Note to be saved as a draft to the OData Service Layer, I get a "502 Proxy Error". However, if I submit the same request to the service layer to the PurchaseDeliveryNotes entity instead of the Drafts entity, the document is correctly saved.
The request being submitted is as follows:
POST /b1s/v1/Drafts HTTP/1.1
Host: hanab1.xxxxxxxx.local:50000
Cookie: B1SESSION=xxxxxx-xxxx-xxxxx-xxxxx-xxxxxxxxx; ROUTEID=.node1
Content-Type: application/json
Cache-Control: no-cache
{
"DocEntry": 0,
"HandWritten": 0,
"DocDate": "2017-11-17T00:00:00+00:00",
"CardCode": "FI00003",
"NumAtCard": "88888",
"Series": 0,
"DocObjectCode": "20",
"OpeningRemarks": "",
"DocumentLines": [{
"ItemCode": "HTHT14D",
"Quantity": 2.0,
"Price": 0.0,
"WarehouseCode": "01",
"BaseType": 22,
"BaseEntry": 66,
"BaseLine": 2,
"DocEntry": 0
}, {
"ItemCode": "HTHT9012",
"Quantity": 2.0,
"Price": 0.0,
"WarehouseCode": "01",
"BaseType": 22,
"BaseEntry": 66,
"BaseLine": 1,
"DocEntry": 0
}
]
}
Add comment