Solved

REST API - empty response for Bill request.

  • 19 July 2021
  • 3 replies
  • 142 views

Hello,

I created a bill in Acumatica 2020/R1 and am trying to retrieve it via the Contract-Based REST API. I’ve tried with and without parameters like this:

GET https://acumatica-dev.psfc.coop/entity/Default/18.200.001//Bill?$select=Date,Amount,ReferenceNbr,Vendor,VendorRef,Details/Description,Details/UnitCost,Details/Qty,Details/Amount,Details/Account&$expand=Details

and this:
GET https://acumatica-dev.psfc.coop/entity/Default/18.200.001//Bill

I get back a 200 response and empty array [] in the body.

Can anyone please help me with this?

icon

Best answer by larryly 20 July 2021, 17:43

View original

3 replies

Userlevel 4
Badge +1

@ihe63 I tried your first URL. It looks good.

 

 

We have three custom fields defined for the Bills and Adjustment form. I successfully made the call to get the schema and they appear in the custom field tags, but could their presence be a reason why my queries fail?

Userlevel 4
Badge +1

@ihe63  Can’t give you any answer because I don’t have chance to working on Acumatica’s API. With my guess, all fields should be defined in endpoint. I’m not sure if you need extend endpoint for your custom field. 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved