cancel
Showing results for 
Search instead for 
Did you mean: 

REST API / Credit Memo: Return to Stock?

SOLVED

REST API / Credit Memo: Return to Stock?

Is there any way to tell if "return to stock" is checked off in a credit memo, when retrieving a credit memo from the REST API? 

 

I've created credit memos on two orders: one with "return to stock" checked and one without and there is no discernible difference between the two credit memos returned by the REST API. 

 

Any ideas? 

 

image (4).png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: REST API / Credit Memo: Return to Stock?

"Return to Stock" checkbox value is not saved in CreditMemo Items table. This value is only used in run time.

You can check more in the below class 'load' function.

Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader

Hope this help !!

View solution in original post

2 REPLIES 2

Re: REST API / Credit Memo: Return to Stock?

"Return to Stock" checkbox value is not saved in CreditMemo Items table. This value is only used in run time.

You can check more in the below class 'load' function.

Magento\Sales\Controller\Adminhtml\Order\CreditmemoLoader

Hope this help !!

Re: REST API / Credit Memo: Return to Stock?

Thanks.

 

I believe what I'm looking for is the returns endpoint instead in the Enterprise edition. 

 

Thanks!