Skip to main content
Solved

Query to see all valid endpoints?

  • October 11, 2023
  • 6 replies
  • 432 views

jamest
Varsity I
Forum|alt.badge.img

Some api frameworks have the ability to query and get a full list of the api endpoints. Does Acumatica have such a command?

The reason I ask is because I’m having a little trouble with the endpoint references on the platform and some of the linked endpoints. For example, I want to expand the Purchase Order to get the Shipping Address, but I don’t know the endpoints in the tree aren’t working. See below. 

Thanks, 

Best answer by stephenbologna39

Hi @jamest

Not sure if I understand your question either, but if you’ve found the Purchase Order section of one of the Default Endpoints and are having trouble getting Acumatica to include the Ship To Address, you could try the following URL:

[sitename]/entity/Default/22.200.001/PurchaseOrder?$expand=ShippingInstructions,ShippingInstructions/ShipToAddress

This should return the the Purchase Order with its Ship To Address.

Also, to expand on @Dmitrii Naumov’s point, you could also use the following URL to get the structure of data returned for the Purchase Order section (including linked entities and custom fields):

[sitename]/entity/Default/22.200.001/PurchaseOrder/$adHocSchema

Hope this helps

6 replies

Forum|alt.badge.img+8
  • Semi-Pro I
  • October 11, 2023

Hi @jamest An Endpoint can be created on top of a generic inquiry with all the PO screen fields that is required for you. 


jamest
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • October 11, 2023

Hi @jamest An Endpoint can be created on top of a generic inquiry with all the PO screen fields that is required for you. 

Thanks for the input. I would prefer to use the out of box endpoints at this point. I think I can get everything from the default endpoints if I can get the expand logic correct. 

 


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • October 11, 2023

@jamest I didn’t fully understand your example, but I assume you are looking for the endpoint schema? 

If that’s the case, you can access the endpoint schema using the following link:

 

[sitename]/entity/Default/22.200.001/swagger.json

you can find all available endpoints using [sitename]/entity


Forum|alt.badge.img+2

Hi @jamest

Not sure if I understand your question either, but if you’ve found the Purchase Order section of one of the Default Endpoints and are having trouble getting Acumatica to include the Ship To Address, you could try the following URL:

[sitename]/entity/Default/22.200.001/PurchaseOrder?$expand=ShippingInstructions,ShippingInstructions/ShipToAddress

This should return the the Purchase Order with its Ship To Address.

Also, to expand on @Dmitrii Naumov’s point, you could also use the following URL to get the structure of data returned for the Purchase Order section (including linked entities and custom fields):

[sitename]/entity/Default/22.200.001/PurchaseOrder/$adHocSchema

Hope this helps


jamest
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • October 12, 2023

@jamest I didn’t fully understand your example, but I assume you are looking for the endpoint schema? 

If that’s the case, you can access the endpoint schema using the following link:

 

[sitename]/entity/Default/22.200.001/swagger.json

you can find all available endpoints using [sitename]/entity

This is great, thanks for posting!


jamest
Varsity I
Forum|alt.badge.img
  • Author
  • Varsity I
  • October 12, 2023

Hi @jamest

Not sure if I understand your question either, but if you’ve found the Purchase Order section of one of the Default Endpoints and are having trouble getting Acumatica to include the Ship To Address, you could try the following URL:

[sitename]/entity/Default/22.200.001/PurchaseOrder?$expand=ShippingInstructions,ShippingInstructions/ShipToAddress

This should return the the Purchase Order with its Ship To Address.

Also, to expand on @Dmitrii Naumov’s point, you could also use the following URL to get the structure of data returned for the Purchase Order section (including linked entities and custom fields):

[sitename]/entity/Default/22.200.001/PurchaseOrder/$adHocSchema

Hope this helps

This is exactly what I was look for also, @stephenbologna39 . I was a little confused on the proper query string that type of linked entity.