Rest API Excetion

I am getting this error when trying out the API:

“HttpStatus”: 400,
“ReasonPhrase”: “REST API Exception”,
“ErrorMessage”: “Company ID cannot be blank.”,

This is from the helper page “Try It”. What am I missing?

What API are you calling? Are you testing a BAQ?

Erp.BO.CompanySvc/XaSysts(XYZ)

Try using v1 instead of v2. Also try using the XaSysts without the (‘{Company}’).

Thank you. I ended up not needing to call that method.

Are you familiar with the Sales Order Services? I cannot seem to add a order line to an existing sales order.

using this service/method: v1/Erp.BO.SalesOrdHedDtlSvc/SalesOrdHedDtls

Sorry I am not familiar with that method. I have only used API for GET requests. I haven’t done any POSTs yet.

Use the SalesOrderSvc object to add OrderDtl rows. I think GetNewOrderDtl is the method.