Skip to content

Create a shipment with Simple Product [Web API Tutorial]

Tomash Khamlai edited this page Jun 29, 2018 · 3 revisions

Endpoint
POST V1/inventory/source-selection-algorithm-result

Headers

Content-Type: application/json
Authorization: Bearer <admin_token>

Payload

{
	"inventoryRequest": {
		"stock_id": 0,
		"items": [{
			"sku": "Simple Product MSM 1",
			"qty": 12
		}]
	},
	"algorithmCode": "priority"
}

Response

Complete cURL request

curl -X POST "$endpoint/V1/inventory/source-selection-algorithm-result" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $admin_token" \
-d '{"inventoryRequest":{"stock_id":0,"items":[{"sku":"Simple Product MSM 1","qty":12}]},"algorithmCode":"priority"}'

MSI Documentation:

  1. Technical Vision. Catalog Inventory
  2. Installation Guide
  3. List of Inventory APIs and their legacy analogs
  4. MSI Roadmap
  5. Known Issues in Order Lifecycle
  6. MSI User Guide
  7. DevDocs Documentation
  8. User Stories
  9. User Scenarios:
  10. Technical Designs:
  11. Admin UI
  12. MFTF Extension Tests
  13. Weekly MSI Demos
  14. Tutorials
Clone this wiki locally