Skip to main content
Solved

REST API: how do I set the Warehouse value for a Sales Price row (AR202000 screen)?

  • 4 July 2024
  • 3 replies
  • 29 views

I can create a Sales Price fine using the following PUT method in Postman:

https://sandbox.com/AcumaticaERP/entity/Default/20.200.001/SalesPricesInquiry?$expand=SalesPriceDetails  

 

However, the Warehouse always shows up blank when I pass in this body:

{

    "SalesPriceDetails": l

    {

        "InventoryID": { "value": "00099-00098" },

        "Warehouse": { "value": "TEST001" },

        "PriceType": { "value": "Customer Price Class" },

        "PriceCode": { "value": "VIP" },

        "UOM": { "value": "EA" },

        "Price": { "value": "149.44" },

        "Currency": { "value": "USD" },

        "EffectiveDate": { "value": "2022-03-01T00:00:00-08:00" }        

     }

]

}

3 replies

Userlevel 7
Badge +11

Hi @bpgraves ,

The Warehouse field is currently not accessible in the Default endpoint entity. To address this, you have the option to extend the entity and include the required field. This will enable you to successfully insert the warehouse information as needed.

 

 

Userlevel 3
Badge +1

Hi @bpgraves ,

The Warehouse field is currently not accessible in the Default endpoint entity. To address this, you have the option to extend the entity and include the required field. This will enable you to successfully insert the warehouse information as needed.

 

 

The EXTEND ENTITY is greyed out (see above screenshot) so it doesn’t allow me to do what you’re suggesting.  I does allow me to EXTEND ENDPOINT but that creates a copy of the ENTIRE Default Endpoint which isn’t what I want.

Userlevel 7
Badge +4

@bpgraves you cannot modify system Default endpoint.

You will need to extend it, it will make a copy of Default and on that you should be able to make changes to any Entity you wish.

Here’s documentation on extending endpoints: To Extend an Existing Endpoint

Reply