{
    "componentChunkName": "component---src-templates-article-page-template-js",
    "path": "/concepts/inventory-management/",
    "result": {"data":{"markdownRemark":{"frontmatter":{"title":"Inventory management","slug":"inventory-management","updated":"2022-08-18T00:00:00.000Z","category":"concepts-availability","ingress":"Inventory or stock management is a key feature of many product marketplaces. Here’s how Flex’s stock management works.","skills":null},"htmlAst":{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"In Flex, you can manage the available stock or inventory of a listing\nvia the stock-related features in the Marketplace API and the\nIntegration API. With those APIs, you can determine the available stock\n(quantity) of any given listing as well as add to and subtract from it.\nAdditions to stock will mostly be determined by providers, as they\nrestock the items they sell. Stock subtractions, on the other hand, will\nmostly happen as part of transactions, as buyers on your marketplace\nmake purchases."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This article describes the stock management features of Flex on a high\nlevel. We also have\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/references/stock/"},"children":[{"type":"text","value":"a more technical article about stock management"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"how-do-you-determine-the-initial-available-stock-or-increase-the-available-stock-of-a-listing","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#how-do-you-determine-the-initial-available-stock-or-increase-the-available-stock-of-a-listing","ariaLabel":"how do you determine the initial available stock or increase the available stock of a listing permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"How do you determine the initial available stock or increase the available stock of a listing?"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"With the stock-related APIs, you add to the available stock of a listing\nby creating a\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/operator-guides/concepts/#stock-adjustment"},"children":[{"type":"text","value":"stock adjustment"}]},{"type":"text","value":". This is\nan API call that you make through one of our APIs that lets your Flex\nmarketplace know that you have increased the quantity of available stock\nfor one of your listings. This adjustment could be done directly through\nthe marketplace UI or a third-party integration using the corresponding\nAPI calls."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"how-do-you-remove-or-decrease-the-available-stock-of-a-listing","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#how-do-you-remove-or-decrease-the-available-stock-of-a-listing","ariaLabel":"how do you remove or decrease the available stock of a listing permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"How do you remove or decrease the available stock of a listing?"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Most of the time, a listing's available stock will decrease because\npeople purchase units via transactions. The stock-related transaction\nprocess actions allow defining your transaction process so that when a\ntransaction is initiated, a stock reservation is made as well, for\nexample. This prevents your users from purchasing more units than are\navailable."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If the transaction completes, the purchased units are removed from the\ninventory permanently. If the transaction is cancelled, the units are\nreleased back to the inventory and other users will be able to purchase\nthem. Find out more about\n"},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/references/transaction-process-actions/#stock-reservations"},"children":[{"type":"text","value":"transaction process actions related to stock reservations"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can also connect your Flex marketplace with third-party systems to\nfurther manage stock. If units are bought through another site or\nsystem, you can sync this information with the Integration API and\nadjust your stock accordingly."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Finally, providers could manually adjust their inventory directly from\nthe marketplace interface. Similar to how they would add inventory."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"can-listings-be-closed-automatically-if-there-is-no-stock-left","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#can-listings-be-closed-automatically-if-there-is-no-stock-left","ariaLabel":"can listings be closed automatically if there is no stock left permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"Can listings be closed automatically if there is no stock left?"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Yes! This feature can be built into your Flex marketplace app with\nrelative ease, even though it is not part of the default template.\nFurthermore, even if you don’t have a system in place that would close\nthe listings automatically, users will not be able to purchase more\nunits than are available, giving you peace of mind that no\ndouble-purchases of the same stock will happen."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"how-to-manage-the-number-of-seats-or-spaces-for-an-event-or-a-class","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#how-to-manage-the-number-of-seats-or-spaces-for-an-event-or-a-class","ariaLabel":"how to manage the number of seats or spaces for an event or a class permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"How to manage the number of seats or spaces for an event or a class?"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If you are looking to manage the number of spaces in an event, you\nshould take a look at the seats feature. With seats, you can manage the\nnumber of available spaces in a given event at a given time. Seats are\ntied to "},{"type":"element","tagName":"a","properties":{"href":"/docs/legacy/concepts/manage-seats/"},"children":[{"type":"text","value":"booking availability management"}]},{"type":"text","value":"."}]}],"data":{"quirksMode":false}},"headings":[{"value":"How do you determine the initial available stock or increase the available stock of a listing?","depth":2},{"value":"How do you remove or decrease the available stock of a listing?","depth":2},{"value":"Can listings be closed automatically if there is no stock left?","depth":2},{"value":"How to manage the number of seats or spaces for an event or a class?","depth":2}]}},"pageContext":{"slug":"inventory-management","category":"concepts-availability"}},
    "staticQueryHashes": ["3794076007","439097193","717698143"]}