Skip to main content
Answer

REST API - empty response for Bill request.

  • July 19, 2021
  • 3 replies
  • 213 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?

Best answer by larryly

@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. 

 

3 replies

Forum|alt.badge.img+1
  • Semi-Pro II
  • July 20, 2021

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

 

 


  • Author
  • Freshman I
  • July 20, 2021

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?


Forum|alt.badge.img+1
  • Semi-Pro II
  • Answer
  • July 20, 2021

@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.