Skip to main content
Solved

creating an InventoryIssue via REST API


Forum|alt.badge.img

hello folks so i have a service which is supposed to create an InventoryIssue using IN302000, with the help of an API call on a custom endpoint:

I didn’t find an existing Contract , so I created an custom one named InventoryIssue, quite similar to InventoryReceipt.

different actions and details:

And I tried this PUT call in Postman:

put inventoryIssue request:

 

The response is what I expected, with a ReferenceNbr

but when I try the POST for ReleasingFromHold with this ReferenceNbr as parameter, it does not remove the hold of that specific ReferenceNbr, rather it creates a new Issue,

POST req with the ReferenceNbr, response is 204.

this is what the necessary actions look like

 

 

I have been following the integration development guide till now to create the different entities and details.

 

So if anyone can help me figure out why me calling the ReleaseFromHold does not removes hold from the previous PUT request, but rather create a new InventoryIssue?

Best answer by jinin

Hi @jdeol ,

I’ve created an Action “INReleaseFromHold” (We can give any name) and checked with the below mentioned endpoint request. It works for me. Please review.
 


Url:entity/EndpointName/20.200.001/InventoryIssue/INReleaseFromHold

Method: POST

Request:

{
    "entity": {

        "ReferenceNbr": {
            "value": "004640"
        }
    },
    "parameters": {}
}

 

View original

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • February 28, 2023

Hi @jdeol ,

I’ve created an Action “INReleaseFromHold” (We can give any name) and checked with the below mentioned endpoint request. It works for me. Please review.
 


Url:entity/EndpointName/20.200.001/InventoryIssue/INReleaseFromHold

Method: POST

Request:

{
    "entity": {

        "ReferenceNbr": {
            "value": "004640"
        }
    },
    "parameters": {}
}

 


Forum|alt.badge.img
  • Jr Varsity III
  • February 28, 2023

Hi @jinin ,

It turns I just has to name the name of the action different than the ReleaseFromHold, and it worked finally.

I think I just can’t keep the name of the action same as the mapped action.

Thanks for the quick response.

 

Cheers,

JDeol

 


jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • February 28, 2023

Hi @jdeol 

We can use the same action name and mapped name. I used the same action name on the sales order entity. So got an error. That's why I changed the Action name for the Inventory Issue.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings