Posting history reports or reports using the REST API output posting reasons with an internal ID. The IDs include: 1: shipped item 2: Reservation cancelled 3: Reserved 4: Goods receipt 5: Returns 6: Stock transfer 7: Packed 8: Inventory input 9: Inventory output 10: Inventory stock transfer