on 2025 Mar 19 8:45 PM
I use this endpoint
POST: http://xxxxxx:50003/b1s/v1/Orders
with this JSON
{
"CardCode": "10260237-4C",
"DocDate": "2025-03-19",
"SalesPersonCode": -1,
"Rounding": "tNO",
"DocumentSubType": "bod_None",
"Series": 13,
"Comments": “Test",
"DocumentLines": [
{
"ItemCode": "A00001",
"PriceAfterVAT": 1785.0,
"Quantity": 1.0,
"TaxCode": "IVA",
"WarehouseCode": "01"
}
]
}
The response is :
Request clarification before answering.
Hi Arzch,
I tested your JSON in Postman.
In the first request, Comments is using wrong format of double quotes. Kindly correct it and check.
The second request appears fine.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arzch,
Ideally, it should trigger an error stating that 'DocDueDate is missing' or something similar.
The reason it's returning a 'Bad Post' error could be that you're using it differently or not capturing the correct response from the Service Layer.
Regardless, it's good to hear that the issue has been resolved.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
User | Count |
---|---|
94 | |
11 | |
9 | |
8 | |
7 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.