Skip to content

Instantly share code, notes, and snippets.

@tmclnk
Last active June 22, 2022 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmclnk/9b66709fd21d4b06e143c0fed9d2edc0 to your computer and use it in GitHub Desktop.
Save tmclnk/9b66709fd21d4b06e143c0fed9d2edc0 to your computer and use it in GitHub Desktop.
Inventory/ItemsInChunksList Response => Inventory/ItemPriceAndAvailabilityList Request
# Inventory/ItemsInChunksList Response => Inventory/ItemPriceAndAvailabilityList Request
jq '{request : {dsItemPriceAndAvailRequest: {dtPriceAndAvailRequest: [{CustomerID:"1234",ShiptoSequence:"0", SaleType:"WHSE"}], dtItemToProcessRequest: [.response.ItemsInChunksListResponse.dsItemsInChunksListResponse.dtItemsInChunksListResponse[] | {ItemCode: .ItemCode, OrderQty: "1", "UOM":""}]}}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment