{"info":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","description":"<html><head></head><body><h1 id=\"this-documentation-is-now-unsupported-and-no-longer-updated\">This documentation is now unsupported and no longer updated!</h1>\n<p>These legacy docs are still available here, but new and up-to-date information can be found at our new developer hub at <a href=\"https://developers.apicbase.com\">developers.apicbase.com</a>.</p>\n<hr>\n<h1 id=\"introduction\">Introduction</h1>\n<p>The Apicbase API uses version 2.0 of the <strong>OAuth</strong> specification for authentication and authorization. This means that all requests will need to be encrypted and sent via HTTPS.</p>\n<p>Is this your first time connecting to the Apicbase API? Are you not familiar with OAuth? Take a look at <a href=\"https://support.apicbase.com/en/help/api-auth-step-by-step-guide\">the quick start guide</a> in our knowledge base to help you get started.</p>\n<h2 id=\"endpoints\">Endpoints</h2>\n<p>The API is accessed by making HTTP requests to an endpoint URL. Most GET endpoints accept parameters that allow you to specify which information you wish to access. Calls to the API must be made via an SSL-enabled HTTPS (port 443), as per the OAuth 2.0 specification.</p>\n<p>The base URL for every HTTP endpoint for the current version is <code>https://app.apicbase.com/api/v1/</code></p>\n<h2 id=\"the-oauth-specification\">The OAuth Specification</h2>\n<p>This API exclusively uses the Authorization Code grant of the OAuth framework for authorization. A comprehensive guide to the Authorization Code flow can be found <a href=\"https://oauth.net/2/grant-types/authorization-code/\">here</a>.</p>\n<h2 id=\"support\">Support</h2>\n<p>Do you have questions about the API? Contact us directly at <a href=\"mailto:api_support@apicbase.com\">api_support@apicbase.com</a> to receive specialised support. When you describe a potential issue, please provide the maximum amount of details possible, and include both the raw request and response.</p>\n<h1 id=\"authentication-and-authorization\">Authentication and Authorization</h1>\n<h2 id=\"registering-an-application\">Registering an application</h2>\n<p>Every party accessing the API must be registered as an application.</p>\n<p>Library owners can create an application for themselves through the Apicbase user interface. This option can be found in <a href=\"https://app.apicbase.com/settings/library_settings/\">your library settings page</a>. You must have the API module in order to use API functionalities -- contact us at <a href=\"mailto:sales@apicbase.com\">sales@apicbase.com</a> to add this module to your account.</p>\n<p>Third parties must obtain those credentials directly from us. Contact us first at <a href=\"mailto:sales@apicbase.com\">sales@apicbase.com</a> if you are a third party that wishes to interact with customer data through the Apicbase API.</p>\n<h2 id=\"generating-an-access-token\">Generating an access token</h2>\n<p>The <a href=\"https://support.apicbase.com/en/help/api-auth-step-by-step-guide\">the quick start guide</a> at our knowledge base contains detailed instructions on how to generate an access token and authorize your client into our API for the first time.</p>\n<p>Use your client credentials to generate an access token.</p>\n<p>The authorization URL is <code>https://app.apicbase.com/oauth/authorize/</code>. A sample valid url will therefore look like <code>https://app.apicbase.com/oauth/authorize/?response_type=code&amp;client_id=MY_CLIENT_ID&amp;scope=SCOPE1+SCOPE2</code>.</p>\n<p>The access token URL is <code>https://app.apicbase.com/oauth/token/</code>. With the authentication code obtained from the authorization URL, make a POST request to this URL with the following payload:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>grant_type=\"authorization_code\",\ncode=\"YOUR_AUTHORIZATION_CODE\",\nredirect_uri=\"YOUR_REDIRECT_URI\",\nclient_id=\"YOUR_CLIENT_ID\",\nclient_secret=\"YOUR_CLIENT_SECRET\"\n\n</code></pre><p>POST requests to the <code>oauth/token</code> endpoint must be encoded as <strong>x-www-form-urlencoded</strong>.</p>\n<p>You may opt for sending your client's credentials in the Authorization header as Basic authentication. This also works. In this case, you can omit the <code>client_id</code> and the <code>client_secret</code> from the payload.</p>\n<p>The authorization server will reply with an access token and a refresh token, as well as the allowed scopes and the expiration time (in seconds).</p>\n<h2 id=\"using-the-access-token\">Using the access token</h2>\n<p>The access token is used to both authenticate (tell Apicbase which library you're connecting to) and authorize (verify that you have the required permissions) your client. Include the access token in the Authorization header with each request, like so:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location \\\n--request GET 'https://app.apicbase.com/api/v1/outlets/' \\\n--header 'Authorization: Bearer {YOUR ACCESS TOKEN}'\n\n</code></pre>\n<p>An access token is tied to a library, so all actions will be performed in the library that the token you're using is tied to.</p>\n<p>As a third party, you must keep track of which libraries your tokens belong to.</p>\n<h2 id=\"requesting-a-new-token\">Requesting a new token</h2>\n<p>The access token expires automatically after some time. You might get a <code>401 Unauthorized</code> if you're using an expired token. When that happens, request a new token using the refresh token by making a new POST request to the token endpoint:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X POST \\\n -d \"grant_type=refresh_token&amp;client_id=MY_CLIENT_ID&amp;client_secret=MY_CLIENT_SECRET&amp;refresh_token=MY_REFRESH_TOKEN\" \\\nhttps://app.apicbase.com/oauth/token/\n\n</code></pre>\n<p>The server will reply with a new set of access and refresh tokens. The old pair will be invalidated.</p>\n<h2 id=\"introspecting-a-token\">Introspecting a token</h2>\n<p>Your client can make requests to <code>https://app.apicbase.com/oauth/introspect/</code> in order to check the validity of an access token. Include the token along with your client credentials in a GET request:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl --location \\\n--request GET 'https://app.apicbase.com/oauth/introspect/?token=MY_ACCESS_TOKEN&amp;client_id=MY_CLIENT_ID&amp;client_secret=MY_CLIENT_SECRET'\n\n</code></pre>\n<p>Or in a POST request, with those same parameters in the request body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X POST -d \"token=MY_ACCESS_TOKEN&amp;client_id=MY_CLIENT_ID&amp;client_secret=MY_CLIENT_SECRET&amp;refresh_token=MY_REFRESH_TOKEN\" \\\nhttps://app.apicbase.com/oauth/introspect/\n\n</code></pre>\n<p>If the token is valid, belongs to the authenticated client and is not expired, the server will reply with information about the token:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"active\": true,\n    \"scope\": \"library sales accounts procurement\",\n    \"exp\": 1613120953,\n    \"client_id\": \"MY_CLIENT_ID\",\n    \"username\": \"john.doe@apicbase.com\"\n}\n\n</code></pre>\n<p>The <code>exp</code> field contains a unix timestamp which represents the expiration date of the token. This response means that the token is valid and can be used to interact with the API.</p>\n<p>If the token is valid but expired, the server will reply with a <code>200 OK</code> response, but the following body:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"active\": false\n}\n\n</code></pre>\n<p>This means that your client should use the refresh token to request a new access token.</p>\n<p>If the token is invalid or does not belong to the given client, the server will reply with a <code>401 Unauthorized</code> response.</p>\n<h2 id=\"access-scopes\">Access scopes</h2>\n<p>The authorized scopes of your token define which endpoints it can be used to interact with. The following scopes have been defined:</p>\n<ul>\n<li><code>accounts</code>: Manage user accounts and permissions</li>\n<li><code>library</code>: View library items: ingredients, recipes, menus...</li>\n<li><code>procurement</code>: View purchase orders and delivery information of orders made through Apicbase</li>\n<li><code>sales</code>: Read and upload sales/POS data</li>\n<li><code>media</code>: View images uploaded to Apicbase</li>\n</ul>\n<p>For security reasons, you should only request the scopes that are necessary for your application to function. You may request multiple scopes at a time: separate them with a <code>+</code> in the authorization code URL.</p>\n<p>The permissions of the API account your application will be used to connect also determine the level of access your client will have. For example, if the API user in the library you're connecting to doesn't have admin rights, your application will be blocked from managing accounts in that library even if you've requested the <code>accounts</code> scope.</p>\n<h2 id=\"rate-limiting\">Rate limiting</h2>\n<p>In order to maximize stability and ensure good service to all API users, the Apicbase API employs a rate limiting strategy. All API users are currently limited to <strong>100 request per minute</strong>. This limit applies to trial as well as full customers and third-party partners, for read and write operations. If your application exceeds this limit, the server will respond with status code <code>429 Too Many Requests</code>.</p>\n<p>API users should do their best to avoid getting this error (for example, by introducing a <code>sleep</code> statement between requests) or implement a retry mechanism to handle these errors gracefully.</p>\n<p>It's common to run into this issue when <code>GET</code> endpoints (e.g. the Recipe list endpoint) are accessed in quick succession. API users should keep in mind that it is <em>not</em> ideal to use the Apicbase API as a live API to serve real-time data about recipes, ingredients and other entities. The detail endpoints are particularly resource-intensive operations that aggregate large amounts of data to be served in a single JSON object.</p>\n<p>For the sake of their own application flow, and in order to minimize the overhead of waiting for Apicbase to compile this data or of having requests denied by the rate limiter, clients should best employ strategies to avoid querying the Apicbase API for redundant data (i.e. unchanged since the last request) and generating unnecessary load. Customers will find the <code>modified_date</code> filter available on the list <code>GET</code> endpoints most useful for implementing such strategies.</p>\n<p>To further help API consumers graciously handle rate limiting and avoid errors due to limits violation, we provide Rate Limiter Headers on every response from an endpoint bound by the rate limiter. The Rate Limiting Header contains three parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Rate Limiter Headers</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>X-RateLimit-Limit</td>\n<td>Request limit per minute for the current endpoint (usually 100/minute)</td>\n</tr>\n<tr>\n<td>X-RateLimit-Remaining</td>\n<td>The number of requests left for the current one minute rolling window</td>\n</tr>\n<tr>\n<td>X-RateLimit-Wait</td>\n<td>When the user is rate limited, this header tells how many seconds the user must wait until the next request</td>\n</tr>\n</tbody>\n</table>\n</div><p>By using the information provided on the <code>X-RateLimit-Remaining</code> header, the API consumer can prevent a limit violation by not exceeding the number of requests left from the moment the response was received up to one minute after that.</p>\n<p>In case a violation of the limit incurs and a <code>429 Too Many Requests</code> is received, the API consumer can retrieve from the <code>X-RateLimit-Wait</code> header of the 429 response the amount of seconds it must wait before making the next request, in order to prevent further 429 responses.</p>\n<p>The pseudo-python code below constitutes a routine that continuously fetches information from the <code>/xyz</code> endpoint at the limit allowed by the rate limiter. This routine demonstrates the use of both the <code>X-RateLimit-Remaining</code> and <code>X-RateLimit-Wait</code>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">while True:\n    requests_left = 1\n    while requests_left &gt; 0:\n        response = request.get('apicbase.com/xyz')\n        requests_left = response.headers['X-RateLimit-Remaining']\n        do_something_with_the_(response)\n    wait_time = response.headers['X-RateLimit-Wait']\n    time.sleep(wait_time)\n\n</code></pre>\n<hr>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"This documentation is now unsupported and no longer updated!","slug":"this-documentation-is-now-unsupported-and-no-longer-updated"},{"content":"Introduction","slug":"introduction"},{"content":"Authentication and Authorization","slug":"authentication-and-authorization"}],"owner":"1341785","collectionId":"dcadc288-9c6e-435c-8dc5-4758d245472f","publishedId":"2s8Z6vaFEo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-05-03T11:59:15.000Z"},"item":[{"name":"Accounts","item":[{"name":"Get users","event":[{"listen":"test","script":{"id":"e82b5d31-b512-4465-b991-c9b1fe7f811d","exec":["pm.test(\"Your test name\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.count).to.eql(2);","});"],"type":"text/javascript"}}],"id":"546f26f9-02b6-4d14-82d4-7a5dfb0c6e3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/accounts/users/","description":"<p>Gets a list of all users with access to the library, and their permissions.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["users",""],"host":["https://app.apicbase.com/api/v1/accounts"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set. Starts at 1</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>A name value to query on</p>\n","type":"text/plain"},"key":"name","value":""},{"disabled":true,"description":{"content":"<p>A username value to query on</p>\n","type":"text/plain"},"key":"username","value":""}],"variable":[]}},"response":[{"id":"bcdfe98b-3fc7-4d9b-855d-ebfbf950d795","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/accounts/users/","host":["https://app.apicbase.com/api/v1/accounts"],"path":["users",""],"query":[{"key":"page","value":"1","description":"A page number within the paginated result set. Starts at 1","disabled":true},{"key":"name","value":"John","description":"A name value to query on","disabled":true},{"key":"username","value":"john.doe@apicbase.com","description":"A username value to query on","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236700641440007/\",\n            \"id\": \"236700641440007\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"created_date\": \"2020-06-16T16:01:14.447462+02:00\",\n            \"permissions\": {\n                \"admin\": false,\n                \"write\": true,\n                \"delete\": false,\n                \"share\": false,\n                \"image_upload\": true,\n                \"financial\": false,\n                \"allergen_verification\": true\n            }\n        },\n        {\n            \"url\": \"https://www.apicbase.com/api/v1/accounts/users/236300957450001/\",\n            \"id\": \"236300957450001\",\n            \"username\": \"john.smith@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Smith\",\n            \"created_date\": \"2020-06-16T12:37:38.457149+02:00\",\n            \"permissions\": {\n                \"admin\": true,\n                \"write\": true,\n                \"delete\": true,\n                \"share\": true,\n                \"image_upload\": true,\n                \"financial\": true,\n                \"allergen_verification\": true\n            }\n        }\n    ]\n}"},{"id":"d9393c59-df4a-4e3f-856d-b38f9d2520b5","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/accounts/users/?page=1&name=John&username=john.doe@apicbase.com","host":["https://app.apicbase.com/api/v1/accounts"],"path":["users",""],"query":[{"key":"page","value":"1","description":"A page number within the paginated result set. Starts at 1"},{"key":"name","value":"John","description":"A name value to query on"},{"key":"username","value":"john.doe@apicbase.com","description":"A username value to query on"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236700641440007/\",\n            \"id\": \"236700641440007\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"created_date\": \"2020-06-16T16:01:14.447462+02:00\",\n            \"permissions\": {\n                \"admin\": false,\n                \"write\": true,\n                \"delete\": false,\n                \"share\": false,\n                \"image_upload\": true,\n                \"financial\": false,\n                \"allergen_verification\": true\n            }\n        }\n    ]\n}"}],"_postman_id":"546f26f9-02b6-4d14-82d4-7a5dfb0c6e3d"},{"name":"Get user details","id":"a293a0c9-8c0c-4fe9-84c8-44eed6209699","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/accounts/users/{{userId}}/","description":"<p>Gets information about a specific user in the library.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["users","{{userId}}",""],"host":["https://app.apicbase.com/api/v1/accounts"],"query":[],"variable":[]}},"response":[{"id":"ab01892f-114a-44d4-be47-c0e3a8f9cda2","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/accounts/users/{{userId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236700641440007/\",\n    \"id\": \"236700641440007\",\n    \"username\": \"john.doe@apicbase.com\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"created_date\": \"2020-06-16T16:01:14.447462+02:00\",\n    \"permissions\": {\n        \"admin\": false,\n        \"write\": true,\n        \"delete\": false,\n        \"share\": false,\n        \"image_upload\": true,\n        \"financial\": false,\n        \"allergen_verification\": true\n    }\n}"}],"_postman_id":"a293a0c9-8c0c-4fe9-84c8-44eed6209699"},{"name":"Remove user from library","id":"b6cefc48-c4ee-4ec5-82f8-1197af5592b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/accounts/users/{{userId}}/","description":"<p>Removes a user from the library. The user is not deleted, but their access to the library is revoked. If the user still exists in another library, they will continue to be able to access it.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["users","{{userId}}",""],"host":["https://app.apicbase.com/api/v1/accounts"],"query":[],"variable":[]}},"response":[{"id":"fb43d27b-8b08-4fe5-a0c9-cf2046bb5a45","name":"Success response","originalRequest":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/accounts/users/{{userId}}/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Connection","value":"Keep-Alive","enabled":true}],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"b6cefc48-c4ee-4ec5-82f8-1197af5592b0"}],"id":"7db0948e-7b7c-47e8-94be-acedeb0c46fe","description":"<p>This collection of endpoints is used to manage users in a library and their permissions.</p>\n","event":[{"listen":"prerequest","script":{"id":"86609e46-d847-4ad0-bf03-80c8a0aa29ec","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3ca7ac27-08ed-4b16-8a00-cd82735c4fe9","type":"text/javascript","exec":[""]}}],"_postman_id":"7db0948e-7b7c-47e8-94be-acedeb0c46fe","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Library","item":[{"name":"Products","item":[{"name":"Get outlets","event":[{"listen":"test","script":{"id":"8485c6af-9328-4635-be9c-1bbca9bc67f3","exec":[""],"type":"text/javascript"}}],"id":"3e7ce0da-b8ea-4485-9547-36b6dde5bc00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/accounts/outlets/","description":"<p>Gets a list of outlets in the library, complete with information about them.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets",""],"host":["https://app.apicbase.com/api/v1/accounts"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set. Starts at 1</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>A name value to query on</p>\n","type":"text/plain"},"key":"name","value":""},{"disabled":true,"description":{"content":"<p>A field to order the results on</p>\n","type":"text/plain"},"key":"ordering","value":""}],"variable":[]}},"response":[{"id":"8d9ef1c6-8363-4105-8246-fba052083841","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/accounts/outlets/","host":["https://app.apicbase.com/api/v1/accounts"],"path":["outlets",""],"query":[{"key":"page","value":"1","description":"A page number within the paginated result set. Starts at 1","disabled":true},{"key":"name","value":"Antwerpen","description":"A name value to query on","disabled":true},{"key":"ordering","value":"name","description":"A field to order the results on","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 3,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/729100535470009/\",\n            \"id\": \"729100535470009\",\n            \"name\": \"Gent\",\n            \"description\": null,\n            \"supplier\": {\n                \"id\": \"425220328090009\",\n                \"url\": \"https://app.apicbase.com/api/v1/contact/425220328090009/\",\n                \"company_name\": \"\",\n                \"first_name\": \"\",\n                \"last_name\": \"\",\n                \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n                \"telephone\": null,\n                \"mobile\": null,\n                \"email\": null,\n                \"website\": null,\n                \"facebook_url\": null,\n                \"twitter_url\": null,\n                \"instagram_url\": null,\n                \"linkedin_url\": null,\n                \"street\": null,\n                \"number\": null,\n                \"postal_code\": null,\n                \"city\": null,\n                \"country\": null\n            }\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/829100725420008/\",\n            \"id\": \"829100725420008\",\n            \"name\": \"Brussel\",\n            \"description\": null,\n            \"supplier\": {\n                \"id\": \"525220818060002\",\n                \"url\": \"https://app.apicbase.com/api/v1/contact/525220818060002/\",\n                \"company_name\": \"\",\n                \"first_name\": \"\",\n                \"last_name\": \"\",\n                \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n                \"telephone\": null,\n                \"mobile\": null,\n                \"email\": null,\n                \"website\": null,\n                \"facebook_url\": null,\n                \"twitter_url\": null,\n                \"instagram_url\": null,\n                \"linkedin_url\": null,\n                \"street\": null,\n                \"number\": null,\n                \"postal_code\": null,\n                \"city\": null,\n                \"country\": null\n            }\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\",\n            \"id\": \"229100415400002\",\n            \"name\": \"Antwerpen\",\n            \"description\": null,\n            \"supplier\": {\n                \"id\": \"525220897070005\",\n                \"url\": \"https://app.apicbase.com/api/v1/contact/525220897070005/\",\n                \"company_name\": \"\",\n                \"first_name\": \"\",\n                \"last_name\": \"\",\n                \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n                \"telephone\": null,\n                \"mobile\": null,\n                \"email\": null,\n                \"website\": null,\n                \"facebook_url\": null,\n                \"twitter_url\": null,\n                \"instagram_url\": null,\n                \"linkedin_url\": null,\n                \"street\": null,\n                \"number\": null,\n                \"postal_code\": null,\n                \"city\": null,\n                \"country\": null\n            }\n        }\n    ]\n}"},{"id":"d5044610-91e3-49c4-b64b-4bbf80e8952f","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/accounts/outlets/?page=1&name=Antwerpen&ordering=name","host":["https://app.apicbase.com/api/v1/accounts"],"path":["outlets",""],"query":[{"key":"page","value":"1","description":"A page number within the paginated result set. Starts at 1"},{"key":"name","value":"Antwerpen","description":"A name value to query on"},{"key":"ordering","value":"name","description":"A field to order the results on"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\",\n            \"id\": \"229100415400002\",\n            \"name\": \"Antwerpen\",\n            \"description\": null,\n            \"supplier\": {\n                \"id\": \"525220897070005\",\n                \"url\": \"https://app.apicbase.com/api/v1/contact/525220897070005/\",\n                \"company_name\": \"\",\n                \"first_name\": \"\",\n                \"last_name\": \"\",\n                \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n                \"telephone\": null,\n                \"mobile\": null,\n                \"email\": null,\n                \"website\": null,\n                \"facebook_url\": null,\n                \"twitter_url\": null,\n                \"instagram_url\": null,\n                \"linkedin_url\": null,\n                \"street\": null,\n                \"number\": null,\n                \"postal_code\": null,\n                \"city\": null,\n                \"country\": null\n            }\n        }\n    ]\n}"}],"_postman_id":"3e7ce0da-b8ea-4485-9547-36b6dde5bc00"},{"name":"Get outlet details","id":"5f5fd4b3-ce53-45d1-b6d3-f7297516cb66","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/accounts/outlets/{{outletId}}/","description":"<p>Gets information about a specific outlet in the library.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}",""],"host":["https://app.apicbase.com/api/v1/accounts"],"query":[],"variable":[]}},"response":[{"id":"411c303b-f5ca-4e4e-8a64-bd75cb432af0","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/accounts/outlets/{{outletId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\",\n    \"id\": \"229100415400002\",\n    \"name\": \"Antwerpen\",\n    \"description\": null,\n    \"supplier\": {\n        \"id\": \"525220897070005\",\n        \"url\": \"https://app.apicbase.com/api/v1/contact/525220897070005/\",\n        \"company_name\": \"\",\n        \"first_name\": \"\",\n        \"last_name\": \"\",\n        \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n        \"telephone\": null,\n        \"mobile\": null,\n        \"email\": null,\n        \"website\": null,\n        \"facebook_url\": null,\n        \"twitter_url\": null,\n        \"instagram_url\": null,\n        \"linkedin_url\": null,\n        \"street\": null,\n        \"number\": null,\n        \"postal_code\": null,\n        \"city\": null,\n        \"country\": null\n    }\n}"}],"_postman_id":"5f5fd4b3-ce53-45d1-b6d3-f7297516cb66"},{"name":"Get ingredients","id":"90961d9b-78d6-4bec-8436-a2c8e536eebb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/ingredients/","description":"<p>Gets a list of ingredients in the library. Optional params can be used to filter and sort the results. Results are paginated, with 10 items being shown by page by default, but more records can be requested by page by specifying a <code>page_size</code> value.</p>\n<p>Supports the following filters: name, short_name, composition, category, subcategory, created_by, allergen_verified, supplier, supplier_email, created_date[__gt|__lt], modified_date[__gt|__lt], custom_fields.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["ingredients",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Amount of records per page (max 200)</p>\n","type":"text/plain"},"key":"page_size","value":null},{"disabled":true,"description":{"content":"<p>A name or part of one to filter on</p>\n","type":"text/plain"},"key":"name","value":null},{"disabled":true,"description":{"content":"<p>The ingredient's short name</p>\n","type":"text/plain"},"key":"short_name","value":null},{"disabled":true,"description":{"content":"<p>Composition</p>\n","type":"text/plain"},"key":"composition","value":null},{"disabled":true,"description":{"content":"<p>Category</p>\n","type":"text/plain"},"key":"category","value":null},{"disabled":true,"description":{"content":"<p>Subcategory</p>\n","type":"text/plain"},"key":"subcategory","value":null},{"disabled":true,"description":{"content":"<p>The ID of the creator</p>\n","type":"text/plain"},"key":"created_by","value":null},{"disabled":true,"description":{"content":"<p>Whether the ingredient's allergens are verified (true/false)</p>\n","type":"text/plain"},"key":"allergen_verified","value":null},{"disabled":true,"description":{"content":"<p>Filter on suppliers by ID</p>\n","type":"text/plain"},"key":"supplier","value":null},{"disabled":true,"description":{"content":"<p>Filter on suppliers by email</p>\n","type":"text/plain"},"key":"supplier_email","value":null},{"disabled":true,"description":{"content":"<p>Creation_date</p>\n","type":"text/plain"},"key":"created_date","value":null},{"disabled":true,"key":"created_date__gt","value":null},{"disabled":true,"key":"created_date__lt","value":null},{"disabled":true,"description":{"content":"<p>Modification date</p>\n","type":"text/plain"},"key":"modified_date","value":null},{"disabled":true,"key":"modified_date__gt","value":null},{"disabled":true,"key":"modified_date__lt","value":null},{"disabled":true,"description":{"content":"<p>Custom fields</p>\n","type":"text/plain"},"key":"custom_fields","value":null}],"variable":[]}},"response":[{"id":"b838462a-2b3a-4736-87ab-a72bc7e1c28b","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/ingredients/","host":["https://app.apicbase.com/api/v1/products"],"path":["ingredients",""],"query":[{"key":"page","value":"1","description":"A page number within the paginated result set","type":"text","disabled":true},{"key":"name","value":"Milk","description":"A name to query on","type":"text","disabled":true},{"key":"supplier","value":"ordering@happycowproducts.com","type":"text","disabled":true},{"key":"uid","value":"444444","description":"An internal UID to query on","type":"text","disabled":true},{"key":"category","value":"Dairy","description":"A category to filter on","type":"text","disabled":true},{"key":"approved","value":"true","description":"An approved status to filter on (true/false)","type":"text","disabled":true},{"key":"start_date","value":"2020-06-01","description":"Return products created after this date","type":"text","disabled":true},{"key":"end_date","value":"2020-06-30","description":"Return products created before this date","type":"text","disabled":true},{"key":"ordering","value":"category","description":"A field to order the results on","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/ingredients/264556747770006/\",\n            \"id\": \"264556747770006\",\n            \"gtin\": \"44100262692\",\n            \"supplier_article_number\": \"100020\",\n            \"internal_uid\": \"444444\",\n            \"external_uid\": \"123456\",\n            \"name\": \"Milk\",\n            \"short_name\": \"\",\n            \"composition\": \"Some information goes here.\",\n            \"description\": \"More information about the ingredient.\",\n            \"brand\": \"Happy Cow Products\",\n            \"category\": \"Dairy\",\n            \"subcategory\": \"Milk\",\n            \"article_type\": \"\",\n            \"storage_instructions\": \"Don't let it stay out too long\",\n            \"shelf_life\": \"3 months\",\n            \"created_date\": \"2020-06-16T17:48:40.971604+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-16T17:48:40.988036+02:00\",\n            \"suppliers\": [\n                {\n                    \"id\": \"325220129010007\",\n                    \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\",\n                    \"company_name\": \"Happy Cow Products\",\n                    \"first_name\": \"Matthew\",\n                    \"last_name\": \"Smith\",\n                    \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n                    \"telephone\": \"+321234567890\",\n                    \"mobile\": \"\",\n                    \"email\": null,\n                    \"website\": null,\n                    \"facebook_url\": null,\n                    \"twitter_url\": null,\n                    \"instagram_url\": null,\n                    \"linkedin_url\": null,\n                    \"street\": \"Main Street\",\n                    \"number\": \"12\",\n                    \"postal_code\": \"2000\",\n                    \"city\": \"Brussels\",\n                    \"country\": null\n                }\n            ],\n            \"approved\": true,\n            \"in_use\": false,\n            \"allergen_verified\": false,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Accounting Category\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Category\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Subcategory\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Free Text Field\",\n                    \"value\": \"I type this freely\"\n                },\n                {\n                    \"name\": \"Multi Choice Field\",\n                    \"value\": [\n                        \"Choice 1\",\n                        \"Choice 3\"\n                    ]\n                }\n            ],\n            \"main_stock_items\": [\n                {\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421794978110009/\"\n                },\n                {\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121794868100003/\"\n                },\n                {\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/521794758100007/\"\n                }\n            ]\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/ingredients/964556037770002/\",\n            \"id\": \"964556037770002\",\n            \"gtin\": \"\",\n            \"supplier_article_number\": null,\n            \"internal_uid\": \"05400141090284\",\n            \"external_uid\": \"\",\n            \"name\": \"Egg\",\n            \"short_name\": \"Tomato\",\n            \"composition\": \"\",\n            \"description\": \"\",\n            \"brand\": \"Joey's Eggs\",\n            \"category\": \"\",\n            \"subcategory\": \"\",\n            \"article_type\": \"\",\n            \"storage_instructions\": \"\",\n            \"shelf_life\": \"\",\n            \"created_date\": \"2020-06-16T17:43:50.043180+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-16T17:43:50.057521+02:00\",\n            \"suppliers\": [],\n            \"approved\": true,\n            \"in_use\": true,\n            \"allergen_verified\": false,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Accounting Category\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Category\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Subcategory\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Free Text Field\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Multi Choice Field\",\n                    \"value\": null\n                }\n            ],\n            \"main_stock_items\": []\n        }\n    ]\n}"},{"id":"bb2de684-aaaf-4652-be24-abbc8c6a9c22","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/ingredients/?page=1&name=Milk&supplier=ordering@happycowproducts.com&uid=444444&category=Dairy&approved=true&start_date=2020-06-01&end_date=2020-06-30&ordering=category","host":["https://app.apicbase.com/api/v1/products"],"path":["ingredients",""],"query":[{"key":"page","value":"1","description":"A page number within the paginated result set"},{"key":"name","value":"Milk","description":"A name to query on"},{"key":"supplier","value":"ordering@happycowproducts.com"},{"key":"uid","value":"444444","description":"An internal UID to query on"},{"key":"category","value":"Dairy","description":"A category to filter on"},{"key":"approved","value":"true","description":"An approved status to filter on (true/false)"},{"key":"start_date","value":"2020-06-01","description":"Return products created after this date"},{"key":"end_date","value":"2020-06-30","description":"Return products created before this date"},{"key":"ordering","value":"category","description":"A field to order the results on"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/ingredients/264556747770006/\",\n            \"id\": \"264556747770006\",\n            \"gtin\": \"44100262692\",\n            \"supplier_article_number\": \"100020\",\n            \"internal_uid\": \"444444\",\n            \"external_uid\": \"123456\",\n            \"name\": \"Milk\",\n            \"short_name\": \"\",\n            \"composition\": \"Some information goes here.\",\n            \"description\": \"More information about the ingredient.\",\n            \"brand\": \"Happy Cow Products\",\n            \"category\": \"Dairy\",\n            \"subcategory\": \"Milk\",\n            \"article_type\": \"\",\n            \"storage_instructions\": \"Don't let it stay out too long\",\n            \"shelf_life\": \"3 months\",\n            \"created_date\": \"2020-06-16T17:48:40.971604+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-16T17:48:40.988036+02:00\",\n            \"suppliers\": [\n                {\n                    \"id\": \"325220129010007\",\n                    \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\",\n                    \"company_name\": \"Happy Cow Products\",\n                    \"first_name\": \"Matthew\",\n                    \"last_name\": \"Smith\",\n                    \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n                    \"telephone\": \"+321234567890\",\n                    \"mobile\": \"\",\n                    \"email\": null,\n                    \"website\": null,\n                    \"facebook_url\": null,\n                    \"twitter_url\": null,\n                    \"instagram_url\": null,\n                    \"linkedin_url\": null,\n                    \"street\": \"Main Street\",\n                    \"number\": \"12\",\n                    \"postal_code\": \"2000\",\n                    \"city\": \"Brussels\",\n                    \"country\": null\n                }\n            ],\n            \"approved\": true,\n            \"in_use\": false,\n            \"allergen_verified\": false,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Accounting Category\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Category\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Subcategory\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Free Text Field\",\n                    \"value\": \"I type this freely\"\n                },\n                {\n                    \"name\": \"Multi Choice Field\",\n                    \"value\": [\n                        \"Choice 1\",\n                        \"Choice 3\"\n                    ]\n                }\n            ],\n            \"main_stock_items\": [\n                {\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421794978110009/\"\n                },\n                {\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121794868100003/\"\n                },\n                {\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/521794758100007/\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"90961d9b-78d6-4bec-8436-a2c8e536eebb"},{"name":"Get ingredient details","id":"c2443141-b9e2-45b4-b133-a0cb4647d31b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/ingredients/{{ingredientId}}/","description":"<p>Gets information about a specific ingredient.  </p>\n<p>Allergen data:  </p>\n<p>0 = does not contain<br />1 = contains<br />2 = may contain traces of<br />3 = unknown</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["ingredients","{{ingredientId}}",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"4e7ab629-c143-48b0-9030-d4c5722f303d","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/ingredients/{{ingredientId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/products/ingredients/264556747770006/\",\n    \"id\": \"264556747770006\",\n    \"gtin\": \"44100262692\",\n    \"supplier_article_number\": \"100020\",\n    \"internal_uid\": \"444444\",\n    \"external_uid\": \"123456\",\n    \"name\": \"Milk Whole\",\n    \"short_name\": \"Milk\",\n    \"description\": \"More information about the ingredient.\",\n    \"composition\": \"Some information goes here.\",\n    \"brand\": \"Happy Cow Products\",\n    \"category\": \"Dairy\",\n    \"subcategory\": \"Milk\",\n    \"article_type\": \"\",\n    \"storage_instructions\": \"Don't let it stay out too long\",\n    \"shelf_life\": \"3 months\",\n    \"created_date\": \"2020-06-16T17:48:40.971604+02:00\",\n    \"created_by\": \"john.doe@apicbase.com\",\n    \"modified_date\": \"2020-06-17T11:36:04.481807+02:00\",\n    \"suppliers\": [\n        {\n            \"id\": \"325220129010007\",\n            \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\",\n            \"company_name\": \"Happy Cow Products\",\n            \"first_name\": \"Matthew\",\n            \"last_name\": \"Smith\",\n            \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n            \"telephone\": \"+321234567890\",\n            \"mobile\": \"\",\n            \"email\": null,\n            \"website\": null,\n            \"facebook_url\": null,\n            \"twitter_url\": null,\n            \"instagram_url\": null,\n            \"linkedin_url\": null,\n            \"street\": \"Main Street\",\n            \"number\": \"12\",\n            \"postal_code\": \"2000\",\n            \"city\": \"Brussels\",\n            \"country\": null\n        }\n    ],\n    \"approved\": true,\n    \"in_use\": false,\n    \"allergen_verified\": false,\n    \"allergens\": {\n        \"spelt\": 0,\n        \"sulfites\": 0,\n        \"mustard\": 0,\n        \"lactose\": 1,\n        \"rye\": 0,\n        \"hazelnuts\": 0,\n        \"sunflower_seeds\": 0,\n        \"macadamia_nuts\": 0,\n        \"gluten\": 0,\n        \"corn\": 0,\n        \"oats\": 0,\n        \"barley\": 0,\n        \"fish\": 0,\n        \"peanut\": 0,\n        \"wheat\": 0,\n        \"mollusc\": 0,\n        \"brazil_nuts\": 0,\n        \"legume_pulse\": 0,\n        \"egg\": 0,\n        \"pecan_nuts\": 0,\n        \"milk_dairy\": 1,\n        \"poppy_seeds\": 0,\n        \"lupine\": 0,\n        \"almonds\": 0,\n        \"cashews\": 0,\n        \"kamut\": 0,\n        \"shellfish\": 0,\n        \"soy\": 0,\n        \"walnuts\": 0,\n        \"nut\": 0,\n        \"sesame\": 0,\n        \"celery\": 0,\n        \"pistachio_nuts\": 0,\n        \"seeds\": 0\n    },\n    \"additional_info\": {\n        \"lamb\": false,\n        \"genetic_modified\": false,\n        \"caffeine\": false,\n        \"sulphur\": false,\n        \"nitrates\": false,\n        \"coriander\": false,\n        \"preservative\": false,\n        \"carrot\": false,\n        \"cacao\": false,\n        \"aspartame_e951\": false,\n        \"sorbates\": false,\n        \"coloring\": false,\n        \"beef\": false,\n        \"antioxidant\": false,\n        \"taurine\": false,\n        \"pigmeat\": false,\n        \"propionates\": false,\n        \"kosher\": false,\n        \"flavor_enhancer\": false,\n        \"vegan\": false,\n        \"vegetarian\": false,\n        \"glutamate\": false,\n        \"halal\": false,\n        \"benzoates\": false,\n        \"poultry_meat\": false,\n        \"quinine\": false,\n        \"phosphate\": false,\n        \"alcohol\": false,\n        \"acesulfame_e962\": false,\n        \"sweetener\": false,\n        \"blackened\": false\n    },\n    \"images\": [],\n    \"main_image\": null,\n    \"nutrition_info\": {\n        \"for_weight_qty\": \"100.0000\",\n        \"for_weight_unit\": \"g\",\n        \"energy_kj\": null,\n        \"energy_kcal\": null,\n        \"fat\": null,\n        \"trans_fatty_acids\": null,\n        \"saturates\": null,\n        \"mono_unsaturates\": null,\n        \"polyunsaturates\": null,\n        \"carbohydrate\": null,\n        \"sugars\": null,\n        \"polyols\": null,\n        \"starch\": null,\n        \"fibre\": null,\n        \"protein\": null,\n        \"animal_protein\": null,\n        \"plants_protein\": null,\n        \"salt\": null,\n        \"sodium\": null,\n        \"vitamin_a\": null,\n        \"vitamin_d\": null,\n        \"vitamin_e\": null,\n        \"vitamin_k\": null,\n        \"vitamin_c\": null,\n        \"thiamin\": null,\n        \"riboflavin\": null,\n        \"niacin\": null,\n        \"vitamin_b6\": null,\n        \"folic_acid\": null,\n        \"vitamin_b12\": null,\n        \"biotin\": null,\n        \"pantothenic_acid\": null,\n        \"potassium\": null,\n        \"chloride\": null,\n        \"calcium\": null,\n        \"phosphorus\": null,\n        \"magnesium\": null,\n        \"iron\": null,\n        \"zinc\": null,\n        \"copper\": null,\n        \"manganese\": null,\n        \"fluoride\": null,\n        \"selenium\": null,\n        \"chromium\": null,\n        \"molybdenum\": null,\n        \"iodine\": null,\n        \"water\": null\n    },\n    \"custom_fields\": [\n        {\n            \"name\": \"Accounting Category\",\n            \"value\": null\n        },\n        {\n            \"name\": \"Category\",\n            \"value\": null\n        },\n        {\n            \"name\": \"Subcategory\",\n            \"value\": null\n        },\n        {\n            \"name\": \"Free Text Field\",\n            \"value\": \"I type this freely\"\n        },\n        {\n            \"name\": \"Multi Choice Field\",\n            \"value\": [\n                \"Choice 1\",\n                \"Choice 3\"\n            ]\n        }\n    ],\n    \"main_stock_items\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421794978110009/\"\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121794868100003/\"\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/521794758100007/\"\n        }\n    ],\n    \"outlets\": [\n        \"https://app.apicbase.com/api/v1/accounts/outlets/629100261280001/\",\n        \"https://app.apicbase.com/api/v1/accounts/outlets/329100649120004/\"\n    ],\n    \"preferred_uoms\": [\"g\", \"kg\"],\n    \"used_in_recipes\": [\n        \"https://app.apicbase.com/api/v1/products/recipes/549173754990004/\"\n    ],\n    \"name_translations\": [\n        {\n            \"string\": \"Lait entier\",\n            \"base_language_code\": \"fr\"\n        },\n        {\n            \"string\": \"Leche integral\",\n            \"base_language_code\": \"es\"\n        },\n        {\n            \"string\": \"Milk Whole\",\n            \"base_language_code\": \"en\"\n        }\n    ],\n    \"short_name_translations\": [\n        {\n            \"string\": \"Lait\",\n            \"base_language_code\": \"fr\"\n        },\n        {\n            \"string\": \"Leche\",\n            \"base_language_code\": \"es\"\n        },\n        {\n            \"string\": \"Milk\",\n            \"base_language_code\": \"en\"\n        }\n    ],\n    \"storage_instructions_translations\": [\n        {\n            \"string\": \"No dejes que se quede fuera de la nevera mucho tiempo.\",\n            \"base_language_code\": \"es\"\n        },\n        {\n            \"string\": \"Don't let it stay out too long\",\n            \"base_language_code\": \"en\"\n        }\n    ],\n    \"description_translations\": [\n        {\n            \"string\": \"Información sobre este ingrediente\",\n            \"base_language_code\": \"es\"\n        },\n        {\n            \"string\": \"More information about the ingredient.\",\n            \"base_language_code\": \"en\"\n        }\n    ],\n    \"composition_translations\": [\n        {\n            \"string\": \"Some information goes here.\",\n            \"base_language_code\": \"en\"\n        }\n    ],\n    \"shelf_life_translations\": [\n        {\n            \"string\": \"3 mois\",\n            \"base_language_code\": \"fr\"\n        },\n        {\n            \"string\": \"3 meses\",\n            \"base_language_code\": \"es\"\n        },\n        {\n            \"string\": \"3 months\",\n            \"base_language_code\": \"en\"\n        }\n    ]\n}"}],"_postman_id":"c2443141-b9e2-45b4-b133-a0cb4647d31b"},{"name":"Create an ingredient","id":"8f7c0f24-a285-4568-9ac9-b40832952109","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/ingredients/","description":"<p>Creates a new instance of an ingredient.</p>\n<p><strong>Watch out</strong>: the POST method is strictly for creating <strong>new</strong> entries. Making repeated POST requests with the same payload will create duplicates! To update an existing ingredient, make a PATCH request.</p>\n<p>The only required field is <code>name</code>. All other fields are optional.</p>\n<p>Uniqueness is enforced on the <code>internal_uid</code> field (when provided), meaning that no two entries can have the same value for this field. When attempting to create entries with duplicated UIDs, the server will respond with a <code>400 Bad Request</code> error.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["ingredients",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"ef687ada-bf91-40b0-8833-7f51386d78f8","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"gtin\": \"0012345678990011\",\n    \"internal_uid\": \"W-1000\",\n    \"external_uid\": \"\",\n    \"name\": \"Wheat flour soft\",\n    \"short_name\": \"Wheat flour\",\n    \"composition\": \"Wheat\",\n    \"description\": \"Some free text description goes here\",\n    \"brand\": \"Mama Donna\",\n    \"category\": \"Flour\",\n    \"subcategory\": \"With gluten\",\n    \"article_type\": \"Food\",\n    \"storage_instructions\": \"Store in a cool, dry place\",\n    \"shelf_life\": 365,\n    \"approved\": true,\n    \"allergen_verified\": true,\n    \"custom_fields\": [\n        {\n            \"name\": \"Accounting Category\",\n            \"value\": \"Food\"\n        },\n        {\n            \"name\": \"Free Text Field\",\n            \"value\": \"This is a custom field\"\n        },\n        {\n            \"name\": \"Multi Choice Field\",\n            \"value\": [\"Choice 1\", \"Choice 3\"]\n        }\n    ],\n    \"allergens\": {\n        \"lupine\": 0,\n        \"fish\": 0,\n        \"poppy_seeds\": 0,\n        \"hazelnuts\": 0,\n        \"sulfites\": 0,\n        \"kamut\": 0,\n        \"mollusc\": 0,\n        \"legume_pulse\": 0,\n        \"wheat\": 1,\n        \"shellfish\": 0,\n        \"mustard\": 0,\n        \"sesame\": 0,\n        \"celery\": 0,\n        \"oats\": 0,\n        \"seeds\": 0,\n        \"rye\": 0,\n        \"soy\": 0,\n        \"pistachio_nuts\": 0,\n        \"milk_dairy\": 0,\n        \"peanut\": 0,\n        \"spelt\": 0,\n        \"egg\": 0,\n        \"barley\": 0,\n        \"gluten\": 0,\n        \"lactose\": 0,\n        \"corn\": 0,\n        \"walnuts\": 0,\n        \"nut\": 0,\n        \"brazil_nuts\": 0,\n        \"pecan_nuts\": 0,\n        \"macadamia_nuts\": 0,\n        \"sunflower_seeds\": 0,\n        \"almonds\": 0,\n        \"cashews\": 0\n    },\n    \"additional_info\": {\n        \"aspartame_e951\": false,\n        \"phosphate\": false,\n        \"kosher\": false,\n        \"genetic_modified\": false,\n        \"pigmeat\": false,\n        \"sulphur\": false,\n        \"cacao\": false,\n        \"poultry_meat\": false,\n        \"vegetarian\": true,\n        \"coriander\": false,\n        \"flavor_enhancer\": false,\n        \"glutamate\": false,\n        \"beef\": false,\n        \"blackened\": false,\n        \"nitrates\": false,\n        \"lamb\": false,\n        \"benzoates\": false,\n        \"vegan\": true,\n        \"taurine\": false,\n        \"propionates\": false,\n        \"acesulfame_e962\": false,\n        \"coloring\": false,\n        \"quinine\": false,\n        \"sorbates\": false,\n        \"preservative\": false,\n        \"antioxidant\": false,\n        \"sweetener\": false,\n        \"carrot\": false,\n        \"alcohol\": false,\n        \"caffeine\": false,\n        \"halal\": false\n    },\n    \"nutrition_info\": {\n        \"for_weight_qty\": \"100\",\n        \"for_weight_unit\": \"g\",\n        \"energy_kj\": null,\n        \"energy_kcal\": 364,\n        \"fat\": 1,\n        \"trans_fatty_acids\": null,\n        \"saturates\": null,\n        \"mono_unsaturates\": null,\n        \"polyunsaturates\": null,\n        \"carbohydrate\": 76,\n        \"sugars\": 0.3,\n        \"polyols\": null,\n        \"starch\": null,\n        \"fibre\": null,\n        \"protein\": 10,\n        \"animal_protein\": null,\n        \"plants_protein\": null,\n        \"salt\": null,\n        \"sodium\": 2,\n        \"vitamin_a\": null,\n        \"vitamin_d\": null,\n        \"vitamin_e\": null,\n        \"vitamin_k\": null,\n        \"vitamin_c\": null,\n        \"thiamin\": null,\n        \"riboflavin\": null,\n        \"niacin\": null,\n        \"vitamin_b6\": null,\n        \"folic_acid\": null,\n        \"vitamin_b12\": null,\n        \"biotin\": null,\n        \"pantothenic_acid\": null,\n        \"potassium\": 107,\n        \"chloride\": null,\n        \"calcium\": null,\n        \"phosphorus\": null,\n        \"magnesium\": null,\n        \"iron\": null,\n        \"zinc\": null,\n        \"copper\": null,\n        \"manganese\": null,\n        \"fluoride\": null,\n        \"selenium\": null,\n        \"chromium\": null,\n        \"molybdenum\": null,\n        \"iodine\": null,\n        \"water\": null\n    },\n    \"images\": [\"181566068410002\"],\n    \"outlets\": [\"729100119160000\", \"629100261280001\"],\n    \"preferred_uoms\": [\"g\", \"kg\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/ingredients/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"instance\": \"https://app.apicbase.com/api/v1/products/ingredients/264696398000008/\"\n}"}],"_postman_id":"8f7c0f24-a285-4568-9ac9-b40832952109"},{"name":"Edit an ingredient","id":"c5705dee-8468-459b-9919-4c0026a16414","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/ingredients/{{ingredientId}}/","description":"<p>Edits an existing ingredient. The same fields available and restrictions applied to the POST method also apply here. For this method, only fields included in the request body will be modified; omitted fields will keep their current values.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["ingredients","{{ingredientId}}",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"41a1b11b-113b-406d-bb8c-a58d99c3ed1b","name":"Success response","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Wheat flour extra soft\",\n    \"description\": \"My new text description goes here\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/ingredients/{{ingredientId}}/"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"instance\": \"https://app.apicbase.com/api/v1/products/ingredients/264696398000008/\"\n}"}],"_postman_id":"c5705dee-8468-459b-9919-4c0026a16414"},{"name":"Get menus","id":"dec0e8bb-6cd5-4f5a-baa7-23b9b9a732e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/menus/","description":"<p>Gets a list of menus in the library. Optional params can be used to filter and sort the results. Results are paginated, with 10 items being shown by page by default.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["menus",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>A name to query on</p>\n","type":"text/plain"},"key":"name","value":""},{"disabled":true,"description":{"content":"<p>A UID (reference number) to filter on</p>\n","type":"text/plain"},"key":"uid","value":""},{"disabled":true,"description":{"content":"<p>Filter by the contents of the menus' description</p>\n","type":"text/plain"},"key":"description","value":""},{"disabled":true,"description":{"content":"<p>A user ID to filter on</p>\n","type":"text/plain"},"key":"created_by","value":""},{"disabled":true,"description":{"content":"<p>The menus' creation date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"created_date","value":""},{"disabled":true,"key":"created_date__gt","value":null},{"disabled":true,"key":"created_date__lt","value":null},{"disabled":true,"description":{"content":"<p>The menus' last modified date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"modified_date","value":null},{"disabled":true,"key":"modified_date__gt","value":null},{"disabled":true,"key":"modified_date__lt","value":null},{"disabled":true,"description":{"content":"<p>The menus' start date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"starting_date","value":null},{"disabled":true,"key":"starting_date__gt","value":null},{"disabled":true,"key":"starting_date__lt","value":null},{"disabled":true,"description":{"content":"<p>The menus' end date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ending_date","value":null},{"disabled":true,"key":"ending_date__gt","value":null},{"disabled":true,"key":"ending_date__lt","value":null},{"disabled":true,"description":{"content":"<p>The menus' sell price (exact)</p>\n","type":"text/plain"},"key":"current_sell_price","value":null},{"disabled":true,"key":"current_sell_price__gt","value":null},{"disabled":true,"key":"current_sell_price__lt","value":null},{"disabled":true,"description":{"content":"<p>The menus' VAT rate (exact)</p>\n","type":"text/plain"},"key":"vat","value":null},{"disabled":true,"key":"vat__gt","value":null},{"disabled":true,"key":"vat__lt","value":null},{"disabled":true,"description":{"content":"<p>A field to order the results by</p>\n","type":"text/plain"},"key":"ordering","value":null},{"disabled":true,"description":{"content":"<p>Custom fields</p>\n","type":"text/plain"},"key":"custom_fields","value":null}],"variable":[]}},"response":[{"id":"ef04dd5c-df42-46ed-b330-ba942207c2a4","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/menus/?page=1&name=Spaghetti&created_after=2020-06-01&created_before=2020-06-30&uid=1000&ordering=-name","host":["https://app.apicbase.com/api/v1/products"],"path":["menus",""],"query":[{"key":"page","value":"1"},{"key":"name","value":"Spaghetti"},{"key":"created_after","value":"2020-06-01"},{"key":"created_before","value":"2020-06-30"},{"key":"uid","value":"1000"},{"key":"ordering","value":"-name"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/menus/390400735470004/\",\n            \"id\": \"390400735470004\",\n            \"name\": \"Spaghetti Special Menu\",\n            \"uid\": \"1000\",\n            \"description\": \"A menu for all tastes.\",\n            \"created_date\": \"2020-06-17T11:54:31.484550+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T11:55:36.303100+02:00\",\n            \"courses\": [\n                {\n                    \"name\": \"Main Course\",\n                    \"recipes\": [\n                        \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n                        \"https://app.apicbase.com/api/v1/products/recipes/749980262120005/\"\n                    ]\n                },\n                {\n                    \"name\": \"Dessert\",\n                    \"recipes\": [\n                        \"https://app.apicbase.com/api/v1/products/recipes/549980272150003/\"\n                    ]\n                }\n            ],\n            \"cycle_year\": null,\n            \"cycle_week\": null,\n            \"cycle_day\": null,\n            \"starting_date\": \"2020-06-01\",\n            \"ending_date\": \"2020-08-31\",\n            \"time_of_day\": \"12:00:00\",\n            \"vat\": \"12.00\",\n            \"target_profit_margin\": \"60.00\",\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 11:55:36.302531\",\n                \"pricing\": 16,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [\n                {\n                    \"created\": \"2020-06-17 11:55:32.387997\",\n                    \"pricing\": 16,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                }\n            ],\n            \"custom_fields\": [\n                {\n                    \"name\": \"Menu Choice Field\",\n                    \"value\": \"Choice 2\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"7923dcc1-53b0-4b19-b5c9-293c96387f59","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/menus/","host":["https://app.apicbase.com/api/v1/products"],"path":["menus",""],"query":[{"key":"page","value":"1","disabled":true},{"key":"name","value":"Spaghetti","disabled":true},{"key":"created_after","value":"2020-06-01","disabled":true},{"key":"created_before","value":"2020-06-30","disabled":true},{"key":"uid","value":"1000","disabled":true},{"key":"ordering","value":"-name","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/menus/990400245400005/\",\n            \"id\": \"990400245400005\",\n            \"name\": \"Second Menu\",\n            \"uid\": \"\",\n            \"description\": \"\",\n            \"created_date\": \"2020-06-17T12:11:33.452280+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T12:11:33.452297+02:00\",\n            \"courses\": [],\n            \"cycle_year\": null,\n            \"cycle_week\": null,\n            \"cycle_day\": null,\n            \"starting_date\": null,\n            \"ending_date\": null,\n            \"time_of_day\": null,\n            \"vat\": \"12.00\",\n            \"target_profit_margin\": null,\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 12:11:33.445185\",\n                \"pricing\": 10,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [],\n            \"custom_fields\": [\n                {\n                    \"name\": \"Menu Choice Field\",\n                    \"value\": null\n                }\n            ]\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/menus/390400735470004/\",\n            \"id\": \"390400735470004\",\n            \"name\": \"Spaghetti Special Menu\",\n            \"uid\": \"1000\",\n            \"description\": \"A menu for all tastes.\",\n            \"created_date\": \"2020-06-17T11:54:31.484550+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T11:55:36.303100+02:00\",\n            \"courses\": [\n                {\n                    \"name\": \"Main Course\",\n                    \"recipes\": [\n                        \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n                        \"https://app.apicbase.com/api/v1/products/recipes/749980262120005/\"\n                    ]\n                },\n                {\n                    \"name\": \"Dessert\",\n                    \"recipes\": [\n                        \"https://app.apicbase.com/api/v1/products/recipes/549980272150003/\"\n                    ]\n                }\n            ],\n            \"cycle_year\": null,\n            \"cycle_week\": null,\n            \"cycle_day\": null,\n            \"starting_date\": \"2020-06-01\",\n            \"ending_date\": \"2020-08-31\",\n            \"time_of_day\": \"12:00:00\",\n            \"vat\": \"12.00\",\n            \"target_profit_margin\": \"60.00\",\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 11:55:36.302531\",\n                \"pricing\": 16,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [\n                {\n                    \"created\": \"2020-06-17 11:55:32.387997\",\n                    \"pricing\": 16,\n                    \"user_pk\": 3475,\n                    \"username\": \"thiago@apicbase.com\"\n                }\n            ],\n            \"custom_fields\": [\n                {\n                    \"name\": \"Menu Choice Field\",\n                    \"value\": \"Choice 2\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"dec0e8bb-6cd5-4f5a-baa7-23b9b9a732e6"},{"name":"Get menu details","id":"83eab303-9810-4188-b290-547ed6e300d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/menus/{{menuId}}/","description":"<p>Gets information about a specific menu.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["menus","{{menuId}}",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"4c490a71-94f5-4e5e-8daf-d1413c1306cc","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/menus/{{menuId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/products/menus/390400735470004/\",\n    \"id\": \"390400735470004\",\n    \"name\": \"Spaghetti Special Menu\",\n    \"uid\": \"1000\",\n    \"description\": \"A menu for all tastes.\",\n    \"created_date\": \"2020-06-17T11:54:31.484550+02:00\",\n    \"created_by\": \"thiago@apicbase.com\",\n    \"modified_date\": \"2020-06-17T11:55:36.303100+02:00\",\n    \"courses\": [\n        {\n            \"name\": \"Main Course\",\n            \"recipes\": [\n                \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n                \"https://app.apicbase.com/api/v1/products/recipes/749980262120005/\"\n            ]\n        },\n        {\n            \"name\": \"Dessert\",\n            \"recipes\": [\n                \"https://app.apicbase.com/api/v1/products/recipes/549980272150003/\"\n            ]\n        }\n    ],\n    \"cycle_year\": null,\n    \"cycle_week\": null,\n    \"cycle_day\": null,\n    \"starting_date\": \"2020-06-01\",\n    \"ending_date\": \"2020-08-31\",\n    \"time_of_day\": \"12:00:00\",\n    \"vat\": \"12.00\",\n    \"target_profit_margin\": \"60.00\",\n    \"current_sell_price\": {\n        \"created\": \"2020-06-17 11:55:36.302531\",\n        \"pricing\": 16,\n        \"user_pk\": 3475,\n        \"username\": \"thiago@apicbase.com\"\n    },\n    \"sell_price_history\": [\n        {\n            \"created\": \"2020-06-17 11:55:32.387997\",\n            \"pricing\": 16,\n            \"user_pk\": 3475,\n            \"username\": \"thiago@apicbase.com\"\n        }\n    ],\n    \"custom_fields\": [\n        {\n            \"name\": \"Menu Choice Field\",\n            \"value\": \"Choice 2\"\n        }\n    ]\n}"}],"_postman_id":"83eab303-9810-4188-b290-547ed6e300d8"},{"name":"Get menus linked to an outlet","id":"b5d56cdd-a82b-41da-ab63-77c998e509a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/outlets/{{outletId}}/menus/","description":"<p>Gets a list of menus linked to a given outlet. Optional params can be used to filter and sort the results. Results are paginated, with 10 items being shown by page by default.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","menus",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>A name to query on</p>\n","type":"text/plain"},"key":"name","value":""},{"disabled":true,"description":{"content":"<p>A UID (reference number) to filter on</p>\n","type":"text/plain"},"key":"uid","value":""},{"disabled":true,"description":{"content":"<p>Filter by the contents of the menus' description</p>\n","type":"text/plain"},"key":"description","value":null},{"disabled":true,"description":{"content":"<p>A user ID to filter on</p>\n","type":"text/plain"},"key":"created_by","value":null},{"disabled":true,"description":{"content":"<p>The menus' creation date</p>\n","type":"text/plain"},"key":"created_date","value":""},{"disabled":true,"key":"created_date__gt","value":""},{"disabled":true,"key":"created_date__lt","value":""},{"disabled":true,"description":{"content":"<p>The menus' last modified date</p>\n","type":"text/plain"},"key":"modified_date","value":""},{"disabled":true,"key":"modified_date__gt","value":""},{"disabled":true,"key":"modified_date__lt","value":""},{"disabled":true,"description":{"content":"<p>The menus' start date</p>\n","type":"text/plain"},"key":"starting_date","value":""},{"disabled":true,"key":"starting_date__gt","value":""},{"disabled":true,"key":"starting_date__lt","value":""},{"disabled":true,"description":{"content":"<p>The menus' end date</p>\n","type":"text/plain"},"key":"ending_date","value":""},{"disabled":true,"key":"ending_date__gt","value":""},{"disabled":true,"key":"ending_date__lt","value":""},{"disabled":true,"description":{"content":"<p>The menus' sell price (exact)</p>\n","type":"text/plain"},"key":"current_sell_price","value":null},{"disabled":true,"key":"current_sell_price__gt","value":null},{"disabled":true,"key":"current_sell_price__lt","value":null},{"disabled":true,"description":{"content":"<p>The menus' VAT rate (exact)</p>\n","type":"text/plain"},"key":"vat","value":null},{"disabled":true,"key":"vat__gt","value":null},{"disabled":true,"key":"vat__lt","value":null},{"disabled":true,"description":{"content":"<p>A field to order the results by</p>\n","type":"text/plain"},"key":"ordering","value":""},{"disabled":true,"description":{"content":"<p>Custom fields</p>\n","type":"text/plain"},"key":"custom_fields","value":null}],"variable":[]}},"response":[{"id":"cac3ec41-a414-4738-9f0e-3bf73ed6c9a6","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/outlets/{{outletId}}/menus/","host":["https://app.apicbase.com/api/v1/products"],"path":["outlets","{{outletId}}","menus",""],"query":[{"key":"page","value":"","description":"A page number within the paginated result set","disabled":true},{"key":"name","value":"","description":"A name to query on","disabled":true},{"key":"created_after","value":"","description":"Get created after this date","disabled":true},{"key":"created_before","value":"","description":"Get created before this date","disabled":true},{"key":"uid","value":"","description":"An internal UID to query on","disabled":true},{"key":"ordering","value":"","description":"A field to order the results on","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/menus/990400245400005/\",\n            \"id\": \"990400245400005\",\n            \"name\": \"Second Menu\",\n            \"uid\": \"\",\n            \"description\": \"\",\n            \"created_date\": \"2020-06-17T12:11:33.452280+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T12:11:33.452297+02:00\",\n            \"courses\": [],\n            \"cycle_year\": null,\n            \"cycle_week\": null,\n            \"cycle_day\": null,\n            \"starting_date\": null,\n            \"ending_date\": null,\n            \"time_of_day\": null,\n            \"vat\": \"12.00\",\n            \"target_profit_margin\": null,\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 12:11:33.445185\",\n                \"pricing\": 10,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [],\n            \"custom_fields\": [\n                {\n                    \"name\": \"Menu Choice Field\",\n                    \"value\": null\n                }\n            ]\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/menus/390400735470004/\",\n            \"id\": \"390400735470004\",\n            \"name\": \"Spaghetti Special Menu\",\n            \"uid\": \"1000\",\n            \"description\": \"A menu for all tastes.\",\n            \"created_date\": \"2020-06-17T11:54:31.484550+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T11:55:36.303100+02:00\",\n            \"courses\": [\n                {\n                    \"name\": \"Main Course\",\n                    \"recipes\": [\n                        \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n                        \"https://app.apicbase.com/api/v1/products/recipes/749980262120005/\"\n                    ]\n                },\n                {\n                    \"name\": \"Dessert\",\n                    \"recipes\": [\n                        \"https://app.apicbase.com/api/v1/products/recipes/549980272150003/\"\n                    ]\n                }\n            ],\n            \"cycle_year\": null,\n            \"cycle_week\": null,\n            \"cycle_day\": null,\n            \"starting_date\": \"2020-06-01\",\n            \"ending_date\": \"2020-08-31\",\n            \"time_of_day\": \"12:00:00\",\n            \"vat\": \"12.00\",\n            \"target_profit_margin\": \"60.00\",\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 11:55:36.302531\",\n                \"pricing\": 16,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [\n                {\n                    \"created\": \"2020-06-17 11:55:32.387997\",\n                    \"pricing\": 16,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                }\n            ],\n            \"custom_fields\": [\n                {\n                    \"name\": \"Menu Choice Field\",\n                    \"value\": \"Choice 2\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"b5d56cdd-a82b-41da-ab63-77c998e509a9"},{"name":"Get courses in a menu","id":"681df5c5-061d-476c-892c-2e6416d917fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/menus/{{menuId}}/courses/","description":"<p>Gets a menu's courses. Results are paginated, with 10 items being shown by page.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["menus","{{menuId}}","courses",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set.</p>\n","type":"text/plain"},"key":"page","value":""}],"variable":[]}},"response":[{"id":"e9c5613f-6bfe-4fb1-a8b5-7ee6fa3d2956","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/menus/{{menuId}}/courses/","host":["https://app.apicbase.com/api/v1/products"],"path":["menus","{{menuId}}","courses",""],"query":[{"description":"A page number within the paginated result set.","key":"page","type":"text","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"name\": \"Main Course\",\n            \"recipes\": [\n                \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n                \"https://app.apicbase.com/api/v1/products/recipes/749980262120005/\"\n            ]\n        },\n        {\n            \"name\": \"Dessert\",\n            \"recipes\": [\n                \"https://app.apicbase.com/api/v1/products/recipes/549980272150003/\"\n            ]\n        }\n    ]\n}"}],"_postman_id":"681df5c5-061d-476c-892c-2e6416d917fe"},{"name":"Get recipes","id":"db4386f2-8b2a-48b3-a666-de4af902a0a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/recipes/","description":"<p>Gets a list of recipes in the library. Optional params can be used to filter and sort the results. Results are paginated, with 10 items being shown by page, but more records can be requested by page by specifying a <code>page_size</code> value.</p>\n<p>Supports the following filters: name, uid, persons[__gt|__lt], vat[__gt|__lt], current_sell_price[__gt|__lt], created_date[__gt|__lt], modified_date[__gt|__lt], created_by, original, net_weight[__gt|__lt], net_volume[__gt|__lt], prep_time[__gt|__lt], prep_time_passive[__gt|__lt], cooking_time[__gt|__lt], cooking_time_passive[__gt|__lt], plating_time[__gt|__lt], plating_time_passive[__gt|__lt], custom_fields</p>\n<p><strong>Note:</strong> See examples for how to filter on custom fields.</p>\n<p><strong>About filtering on modified_date:</strong> the <code>modified_date</code> field reflects modifications to a Recipe's data fields and not changes in the potential outcomes of calculated fields, such as allergens, food cost and nutrition info. Those fields (available in the Recipe detail endpoint) are calculated from data native to the Recipe's individual Ingredients -- those Ingredients' <code>modified_date</code> attributes must be tracked in order to detect potential changes in the calculated attributes of Recipes that contain them.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["recipes",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>The amount of records per page (max 200)</p>\n","type":"text/plain"},"key":"page_size","value":null},{"disabled":true,"description":{"content":"<p>A name to query on</p>\n","type":"text/plain"},"key":"name","value":""},{"disabled":true,"description":{"content":"<p>An internal UID to query on</p>\n","type":"text/plain"},"key":"uid","value":""},{"disabled":true,"description":{"content":"<p>Amount of servings</p>\n","type":"text/plain"},"key":"persons","value":null},{"disabled":true,"key":"persons__gt","value":null},{"disabled":true,"key":"persons__lt","value":null},{"disabled":true,"description":{"content":"<p>VAT percentage</p>\n","type":"text/plain"},"key":"vat","value":null},{"disabled":true,"key":"vat__gt","value":null},{"disabled":true,"key":"vat__lt","value":null},{"disabled":true,"description":{"content":"<p>Sell price (decimal)</p>\n","type":"text/plain"},"key":"current_sell_price","value":null},{"disabled":true,"key":"current_sell_price__gt","value":null},{"disabled":true,"key":"current_sell_price__lt","value":null},{"disabled":true,"description":{"content":"<p>Most recent modification date</p>\n","type":"text/plain"},"key":"modified_date","value":null},{"disabled":true,"key":"modified_date__gt","value":null},{"disabled":true,"key":"modified_date__lt","value":null},{"disabled":true,"description":{"content":"<p>Creation date</p>\n","type":"text/plain"},"key":"created_date","value":null},{"disabled":true,"key":"created_date__gt","value":null},{"disabled":true,"key":"created_date__lt","value":null},{"disabled":true,"description":{"content":"<p>The ID of the user who created</p>\n","type":"text/plain"},"key":"created_by","value":null},{"disabled":true,"description":{"content":"<p>The ID of the original recipe (get a recipe's clones)</p>\n","type":"text/plain"},"key":"original","value":null},{"disabled":true,"description":{"content":"<p>Net weight</p>\n","type":"text/plain"},"key":"net_weight","value":null},{"disabled":true,"key":"net_weight__gt","value":null},{"disabled":true,"key":"net_weight__lt","value":null},{"disabled":true,"description":{"content":"<p>Net volume</p>\n","type":"text/plain"},"key":"net_volume","value":null},{"disabled":true,"key":"net_volume__gt","value":null},{"disabled":true,"key":"net_volume__lt","value":null},{"disabled":true,"description":{"content":"<p>Preparation time (hh:mm:ss)</p>\n","type":"text/plain"},"key":"prep_time","value":null},{"disabled":true,"key":"prep_time__gt","value":null},{"disabled":true,"key":"prep_time__lt","value":null},{"disabled":true,"description":{"content":"<p>Cooking time (hh:mm:ss)</p>\n","type":"text/plain"},"key":"cooking_time","value":null},{"disabled":true,"key":"cooking_time__gt","value":null},{"disabled":true,"key":"cooking_time__lt","value":null},{"disabled":true,"description":{"content":"<p>Plating time (hh:mm:ss)</p>\n","type":"text/plain"},"key":"plating_time","value":null},{"disabled":true,"key":"plating_time__gt","value":null},{"disabled":true,"key":"plating_time__lt","value":null},{"disabled":true,"description":{"content":"<p>Custom fields</p>\n","type":"text/plain"},"key":"custom_fields","value":""}],"variable":[]}},"response":[{"id":"088d46f7-9ba6-4252-8166-b0607a7f236e","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/recipes/","host":["https://app.apicbase.com/api/v1/products"],"path":["recipes",""],"query":[{"key":"page","value":"","type":"text","description":"A page number within the paginated result set","disabled":true},{"key":"uid","value":"","type":"text","description":"An internal UID to query on","disabled":true},{"key":"min_persons","value":"","type":"text","description":"Minimum amount of servings","disabled":true},{"key":"max_persons","value":"","type":"text","description":"Maximum amount of servings","disabled":true},{"key":"start_date","value":"","type":"text","description":"Get created after this date","disabled":true},{"key":"end_date","value":"","type":"text","description":"Get created before this date","disabled":true},{"key":"prepping_time_greater","value":"","type":"text","description":"Get recipes with prep time greater than this. Format: hh:mm:ss","disabled":true},{"key":"prepping_time_lower","value":"","type":"text","description":"Get recipes with prep time lesser than this. Format: hh:mm:ss","disabled":true},{"key":"ordering","value":"","type":"text","description":"A field to order the results on","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/549980272150003/\",\n            \"id\": \"549980272150003\",\n            \"name\": \"Tiramisù\",\n            \"uid\": \"\",\n            \"description\": \"\",\n            \"persons\": 1,\n            \"cuisine\": \"\",\n            \"recipe_stage\": \"\",\n            \"remarks\": \"<p><br data-mce-bogus=\\\"1\\\"></p>\",\n            \"recipe_type\": null,\n            \"recipe_type_other\": null,\n            \"season\": \"\",\n            \"difficulty\": null,\n            \"recipe_class\": \"\",\n            \"target_profit_margin\": null,\n            \"vat\": null,\n            \"current_sell_price\": null,\n            \"sell_price_history\": [],\n            \"created_date\": \"2020-06-17T11:55:07.786026+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T11:55:47.360000+02:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"net_weight\": null,\n            \"net_weight_unit\": \"\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": null,\n            \"prep_time_passive\": null,\n            \"cooking_time\": null,\n            \"cooking_time_passive\": null,\n            \"plating_time\": null,\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": null\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": null\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/749980262120005/\",\n            \"id\": \"749980262120005\",\n            \"name\": \"Cola\",\n            \"uid\": \"\",\n            \"description\": \"\",\n            \"persons\": 1,\n            \"cuisine\": \"\",\n            \"recipe_stage\": \"\",\n            \"remarks\": \"<p><br></p>\",\n            \"recipe_type\": null,\n            \"recipe_type_other\": null,\n            \"season\": \"\",\n            \"difficulty\": null,\n            \"recipe_class\": \"\",\n            \"target_profit_margin\": null,\n            \"vat\": \"21.00\",\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 11:56:10.489811\",\n                \"pricing\": 2.5,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [],\n            \"created_date\": \"2020-06-17T11:54:11.790015+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T11:56:10.511324+02:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"public\": false,\n            \"net_weight\": null,\n            \"net_weight_unit\": \"\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": null,\n            \"prep_time_passive\": null,\n            \"cooking_time\": null,\n            \"cooking_time_passive\": null,\n            \"plating_time\": null,\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": null\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": null\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/449980552170001/\",\n            \"id\": \"449980552170001\",\n            \"name\": \"Tomato Passata\",\n            \"uid\": \"2222\",\n            \"description\": \"\",\n            \"persons\": 1,\n            \"cuisine\": \"\",\n            \"recipe_stage\": \"complete\",\n            \"remarks\": \"<p><br data-mce-bogus=\\\"1\\\"></p>\",\n            \"recipe_type\": \"Other\",\n            \"recipe_type_other\": \"Preparation\",\n            \"season\": \"all_seasons\",\n            \"difficulty\": 5,\n            \"recipe_class\": \"semi_finished_product\",\n            \"target_profit_margin\": null,\n            \"vat\": null,\n            \"current_sell_price\": null,\n            \"sell_price_history\": [],\n            \"created_date\": \"2020-06-17T11:48:04.244626+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T11:48:05.453191+02:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"public\": false,\n            \"net_weight\": null,\n            \"net_weight_unit\": \"\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": null,\n            \"prep_time_passive\": null,\n            \"cooking_time\": null,\n            \"cooking_time_passive\": null,\n            \"plating_time\": null,\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": [\n                        \"Choice 2\"\n                    ]\n                }\n            ],\n            \"main_stock_items\": [\n                {\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/321794593440005/\"\n                }\n            ],\n            \"shelf_life\": \"1 00:00:00\"\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n            \"id\": \"349980442190000\",\n            \"name\": \"Spaghetti Bolognese\",\n            \"uid\": \"0001\",\n            \"description\": \"A free text field here\",\n            \"persons\": 16,\n            \"cuisine\": \"Italian\",\n            \"recipe_stage\": \"active\",\n            \"remarks\": \"<p>General remarks about this recipe. Free text.</p>\",\n            \"recipe_type\": \"Main course\",\n            \"recipe_type_other\": null,\n            \"season\": \"all_seasons\",\n            \"difficulty\": 1,\n            \"recipe_class\": \"dish\",\n            \"target_profit_margin\": \"80.00\",\n            \"vat\": \"12.00\",\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 12:04:28.685633\",\n                \"pricing\": 13,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [\n                {\n                    \"created\": \"2020-06-17 11:44:38.762287\",\n                    \"pricing\": 13,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                },\n                {\n                    \"created\": \"2020-06-17 11:49:30.968115\",\n                    \"pricing\": 13,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                }\n            ],\n            \"created_date\": \"2020-06-17T11:44:38.737130+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T12:04:28.748661+02:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"public\": false,\n            \"net_weight\": \"3.00\",\n            \"net_weight_unit\": \"kg\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": \"00:05:00\",\n            \"prep_time_passive\": null,\n            \"cooking_time\": \"00:02:00\",\n            \"cooking_time_passive\": \"00:15:30\",\n            \"plating_time\": \"00:01:00\",\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": [\n                        \"Choice 1\",\n                        \"Choice 3\"\n                    ]\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": \"4 00:00:00\"\n        }\n    ]\n}"},{"id":"0d5d359c-e38f-4cd2-8443-9e6482ef5fe2","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/recipes/?page=1&name=spaghetti&uid=0001&min_persons=16&max_persons=20&start_date=2020-06-01&end_date=2020-06-30&prepping_time_greater=00:04:59&prepping_time_lower=00:05:01&ordering=name","host":["https://app.apicbase.com/api/v1/products"],"path":["recipes",""],"query":[{"key":"page","value":"1","description":"A page number within the paginated result set"},{"key":"name","value":"spaghetti","description":"A name to query on"},{"key":"uid","value":"0001","description":"An internal UID to query on"},{"key":"min_persons","value":"16","description":"Minimum amount of servings"},{"key":"max_persons","value":"20","description":"Maximum amount of servings"},{"key":"start_date","value":"2020-06-01","description":"Get created after this date"},{"key":"end_date","value":"2020-06-30","description":"Get created before this date"},{"key":"prepping_time_greater","value":"00:04:59","description":"Get recipes with prep time greater than this. Format: hh:mm:ss"},{"key":"prepping_time_lower","value":"00:05:01","description":"Get recipes with prep time lesser than this. Format: hh:mm:ss"},{"key":"ordering","value":"name","description":"A field to order the results on"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n            \"id\": \"349980442190000\",\n            \"name\": \"Spaghetti Bolognese\",\n            \"uid\": \"0001\",\n            \"description\": \"A free text field here\",\n            \"persons\": 16,\n            \"cuisine\": \"Italian\",\n            \"recipe_stage\": \"active\",\n            \"remarks\": \"<p>General remarks about this recipe. Free text.</p>\",\n            \"recipe_type\": \"Main course\",\n            \"recipe_type_other\": null,\n            \"season\": \"all_seasons\",\n            \"difficulty\": 1,\n            \"recipe_class\": \"dish\",\n            \"target_profit_margin\": \"80.00\",\n            \"vat\": \"12.00\",\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 12:04:28.685633\",\n                \"pricing\": 13,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [\n                {\n                    \"created\": \"2020-06-17 11:44:38.762287\",\n                    \"pricing\": 13,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                },\n                {\n                    \"created\": \"2020-06-17 11:49:30.968115\",\n                    \"pricing\": 13,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                }\n            ],\n            \"created_date\": \"2020-06-17T11:44:38.737130+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T12:04:28.748661+02:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"net_weight\": \"3.00\",\n            \"net_weight_unit\": \"kg\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": \"00:05:00\",\n            \"prep_time_passive\": null,\n            \"cooking_time\": \"00:02:00\",\n            \"cooking_time_passive\": \"00:15:30\",\n            \"plating_time\": \"00:01:00\",\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": [\n                        \"Choice 1\",\n                        \"Choice 3\"\n                    ]\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": \"4 00:00:00\"\n        }\n    ]\n}"},{"id":"8c6c8276-c714-48b0-bc0d-999a4ed0b2f6","name":"Filter on custom fields (single value)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/recipes/?custom_fields={\"filter-field-single\": \"Single 1\"}","host":["https://app.apicbase.com/api/v1/products"],"path":["recipes",""],"query":[{"key":"custom_fields","value":"{\"filter-field-single\": \"Single 1\"}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/549980272150003/\",\n            \"id\": \"549980272150003\",\n            \"name\": \"Tiramisù\",\n            \"uid\": \"\",\n            \"description\": \"\",\n            \"persons\": 1,\n            \"cuisine\": \"\",\n            \"recipe_stage\": \"\",\n            \"remarks\": \"<p><br></p>\",\n            \"recipe_type\": null,\n            \"recipe_type_other\": null,\n            \"season\": \"\",\n            \"difficulty\": null,\n            \"recipe_class\": \"\",\n            \"target_profit_margin\": \"10.00\",\n            \"vat\": null,\n            \"current_sell_price\": null,\n            \"sell_price_history\": [],\n            \"created_date\": \"2020-06-17T11:55:07.786026+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-11-18T16:25:15.046681+01:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"net_weight\": null,\n            \"net_weight_unit\": \"\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": \"00:45:00\",\n            \"prep_time_passive\": null,\n            \"cooking_time\": null,\n            \"cooking_time_passive\": null,\n            \"plating_time\": null,\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Filter Field Multi\",\n                    \"value\": [\n                        \"First\",\n                        \"Fourth\"\n                    ]\n                },\n                {\n                    \"name\": \"Filter Field Single\",\n                    \"value\": \"Single 1\"\n                },\n                {\n                    \"name\": \"Filter Field Text\",\n                    \"value\": \"filter text\"\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": null\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": null\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n            \"id\": \"349980442190000\",\n            \"name\": \"Spaghetti Bolognese\",\n            \"uid\": \"0001\",\n            \"description\": \"A free text field here\",\n            \"persons\": 16,\n            \"cuisine\": \"Italian\",\n            \"recipe_stage\": \"active\",\n            \"remarks\": \"<p>General remarks about this recipe. Free text.</p>\",\n            \"recipe_type\": \"Main course\",\n            \"recipe_type_other\": null,\n            \"season\": \"all_seasons\",\n            \"difficulty\": 1,\n            \"recipe_class\": \"dish\",\n            \"target_profit_margin\": \"80.00\",\n            \"vat\": \"12.00\",\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 12:04:28.685633\",\n                \"pricing\": 13.0,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [\n                {\n                    \"created\": \"2020-06-17 11:44:38.762287\",\n                    \"pricing\": 13.0,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                },\n                {\n                    \"created\": \"2020-06-17 11:49:30.968115\",\n                    \"pricing\": 13.0,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                }\n            ],\n            \"created_date\": \"2020-06-17T11:44:38.737130+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-11-18T16:21:35.938295+01:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"net_weight\": \"3.00\",\n            \"net_weight_unit\": \"kg\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": \"00:05:00\",\n            \"prep_time_passive\": null,\n            \"cooking_time\": \"00:02:00\",\n            \"cooking_time_passive\": \"00:15:30\",\n            \"plating_time\": \"00:01:00\",\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Filter Field Multi\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Filter Field Single\",\n                    \"value\": \"Single 1\"\n                },\n                {\n                    \"name\": \"Filter Field Text\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": [\n                        \"Choice 1\",\n                        \"Choice 3\"\n                    ]\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": 4\n        }\n    ]\n}"},{"id":"0c3125a0-18a7-44c3-927e-1129458ff28e","name":"Filter on custom fields (multiple values)","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/recipes/?custom_fields={\"filter-field-multi\": [\"First\"], \"filter-field-text\": \"filter text\"}","host":["https://app.apicbase.com/api/v1/products"],"path":["recipes",""],"query":[{"key":"custom_fields","value":"{\"filter-field-multi\": [\"First\"], \"filter-field-text\": \"filter text\"}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/549980272150003/\",\n            \"id\": \"549980272150003\",\n            \"name\": \"Tiramisù\",\n            \"uid\": \"\",\n            \"description\": \"\",\n            \"persons\": 1,\n            \"cuisine\": \"\",\n            \"recipe_stage\": \"\",\n            \"remarks\": \"<p><br></p>\",\n            \"recipe_type\": null,\n            \"recipe_type_other\": null,\n            \"season\": \"\",\n            \"difficulty\": null,\n            \"recipe_class\": \"\",\n            \"target_profit_margin\": \"10.00\",\n            \"vat\": null,\n            \"current_sell_price\": null,\n            \"sell_price_history\": [],\n            \"created_date\": \"2020-06-17T11:55:07.786026+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-11-18T16:25:15.046681+01:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"net_weight\": null,\n            \"net_weight_unit\": \"\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": \"00:45:00\",\n            \"prep_time_passive\": null,\n            \"cooking_time\": null,\n            \"cooking_time_passive\": null,\n            \"plating_time\": null,\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Filter Field Multi\",\n                    \"value\": [\n                        \"First\",\n                        \"Fourth\"\n                    ]\n                },\n                {\n                    \"name\": \"Filter Field Single\",\n                    \"value\": \"Single 1\"\n                },\n                {\n                    \"name\": \"Filter Field Text\",\n                    \"value\": \"filter text\"\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": null\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": null\n        }\n    ]\n}"}],"_postman_id":"db4386f2-8b2a-48b3-a666-de4af902a0a5"},{"name":"Get recipe details","event":[{"listen":"test","script":{"id":"b7b4382a-dc07-47ee-a4c8-e84451b1bd73","exec":["pm.test(\"Compare expected response\", () => {","    var expectedJson = {","        \"url\": \"https://www.apicbase.com/api/v1/products/recipes/149711846520004/\",","        \"id\": \"149711846520004\",","        \"name\": \"Spaghetti Bolognese\",","        \"uid\": \"SB0001\",","        \"description\": \"\",","        \"persons\": 2,","        \"cuisine\": \"Italian\",","        \"recipe_stage\": \"complete\",","        \"remarks\": \"<p>Remarks about the spaghetti</p>\",","        \"recipe_type\": \"Main course\",","        \"recipe_type_other\": null,","        \"season\": \"all_seasons\",","        \"difficulty\": 2,","        \"recipe_class\": \"Dish\",","        \"target_profit_margin\": \"30.00\",","        \"vat\": \"15.00\",","        \"current_sell_price\": {","            \"created\": \"2021-01-11 15:45:10.615603\",","            \"pricing\": 7.5,","            \"user_pk\": 3475,","            \"username\": \"thiago@apicbase.com\"","        },","        \"sell_price_history\": [","            {","                \"created\": \"2021-01-11 15:43:53.244686\",","                \"pricing\": 7.0,","                \"user_pk\": 3475,","                \"username\": \"thiago@apicbase.com\"","            }","        ],","        \"created_date\": \"2021-01-11T15:43:53.223490+01:00\",","        \"created_by\": \"thiago@apicbase.com\",","        \"modified_date\": \"2021-01-11T15:45:10.668153+01:00\",","        \"original\": null,","        \"clones\": [],","        \"public\": false,","        \"net_weight\": \"1320.00\",","        \"net_weight_unit\": \"g\",","        \"net_volume\": \"1320.00\",","        \"net_volume_unit\": \"ml\",","        \"prep_time\": null,","        \"prep_time_passive\": null,","        \"cooking_time\": \"00:05:00\",","        \"cooking_time_passive\": null,","        \"plating_time\": null,","        \"portion_pieces\": null,","        \"custom_fields\": [","            {","                \"name\": \"Kitchen Utensils\",","                \"value\": null","            },","            {","                \"name\": \"Custom Free Text Field\",","                \"value\": null","            },","            {","                \"name\": \"Custom Multi Choice Field\",","                \"value\": [","                    \"Value 1\",","                    \"Value 3\"","                ]","            }","        ],","        \"main_stock_items\": [],","        \"shelf_life\": \"00:00:00\",","        \"ingredients\": [","            {","                \"number\": 1,","                \"description\": \"[R] Bolognese sauce\",","                \"quantity\": \"1.000\",","                \"unit\": \"piece\",","                \"ingredient\": null,","                \"subrecipe\": \"https://www.apicbase.com/api/v1/products/recipes/149711257190004/\",","                \"remarks\": \"\",","                \"waste_percentage\": 0.03","            },","            {","                \"number\": 2,","                \"description\": \"[R] Pasta\",","                \"quantity\": \"500.000\",","                \"unit\": \"g\",","                \"ingredient\": null,","                \"subrecipe\": \"https://www.apicbase.com/api/v1/products/recipes/549711338150008/\",","                \"remarks\": \"\",","                \"waste_percentage\": 0.03","            },","            {","                \"number\": 3,","                \"description\": \"[I] Parmesan cheese\",","                \"quantity\": \"20.000\",","                \"unit\": \"g\",","                \"ingredient\": \"https://www.apicbase.com/api/v1/products/ingredients/364687147510005/\",","                \"subrecipe\": null,","                \"remarks\": \"grated\",","                \"waste_percentage\": 0.03","            }","        ],","        \"allergens\": {","            \"brazil_nuts\": 0,","            \"seeds\": 0,","            \"shellfish\": 0,","            \"barley\": 0,","            \"peanut\": 0,","            \"poppy_seeds\": 0,","            \"kamut\": 0,","            \"rye\": 0,","            \"macadamia_nuts\": 0,","            \"oats\": 0,","            \"pistachio_nuts\": 0,","            \"hazelnuts\": 0,","            \"sunflower_seeds\": 0,","            \"egg\": 1,","            \"wheat\": 1,","            \"nut\": 0,","            \"sesame\": 0,","            \"milk_dairy\": 1,","            \"spelt\": 0,","            \"lupine\": 0,","            \"gluten\": 1,","            \"pecan_nuts\": 0,","            \"soy\": 0,","            \"sulfites\": 0,","            \"mustard\": 0,","            \"celery\": 0,","            \"almonds\": 0,","            \"mollusc\": 0,","            \"corn\": 0,","            \"legume_pulse\": 0,","            \"fish\": 0,","            \"cashews\": 0,","            \"lactose\": 1,","            \"walnuts\": 0","        },","        \"steps\": [","            {","                \"description\": \"Step one\",","                \"description_translations\": []","            },","            {","                \"description\": \"Step two\",","                \"description_translations\": []","            },","            {","                \"description\": \"Step three\",","                \"image_thumb_url\": null,","                \"image_web_url\": null,","                \"image_orig_url\": null,","                \"description_translations\": []","            }","        ],","        \"images\": [","            \"https://www.apicbase.com/api/v1/media/images/881537947580005/\"","        ],","        \"main_image\": {","            \"url\": \"https://www.apicbase.com/api/v1/media/images/881537947580005/\",","            \"id\": \"881537947580005\",","            \"studio_login\": \"thiago@apicbase.com\",","            \"restaurant\": null,","            \"description\": \"placeholder\",","            \"category\": null,","            \"uploaded_at\": \"2021-01-07T15:58:27.230009+01:00\",","            \"picture_taken_date\": \"2021-01-07T15:58:27.241922+01:00\",","            \"shared_on\": null,","            \"modified_date\": \"2021-01-07T16:00:10.894590+01:00\",","            \"uploaded_by\": \"thiago@apicbase.com\",","            \"tags\": [","                {","                    \"id\": \"id-29-45\",","                    \"top\": 45,","                    \"left\": 29,","                    \"text\": \"I'm a tag!\"","                }","            ],","            \"public\": false,","            \"external\": true","        },","        \"name_translations\": [],","        \"financial\": {","            \"foodcost\": 3.7021118919434906,","            \"personnel_cost\": 2.0","        },","        \"nutrition_info\": {","            \"for\": {","                \"quantity\": 100,","                \"unit\": \"g\"","            },","            \"kcal\": {","                \"quantity\": 106.58146666666667,","                \"unit\": \"kcal\"","            },","            \"kj\": {","                \"quantity\": 445.9625535030304,","                \"unit\": \"kJ\"","            },","            \"fat\": {","                \"quantity\": 8.22256734006734,","                \"unit\": \"g\"","            },","            \"trans_fatty_acids\": {","                \"quantity\": 0.0,","                \"unit\": \"g\"","            },","            \"saturated_fat\": {","                \"quantity\": 2.4241164983164984,","                \"unit\": \"g\"","            },","            \"mono_unsaturated_fat\": {","                \"quantity\": 0.15673400673400675,","                \"unit\": \"g\"","            },","            \"poly_unsaturated_fat\": {","                \"quantity\": 0.13602693602693605,","                \"unit\": \"g\"","            },","            \"carbohydrate\": {","                \"quantity\": 24.515193602693607,","                \"unit\": \"g\"","            },","            \"sugar\": {","                \"quantity\": 1.2876262626262627,","                \"unit\": \"g\"","            },","            \"protein\": {","                \"quantity\": 9.657870370370372,","                \"unit\": \"g\"","            },","            \"animal_protein\": {","                \"quantity\": 5.757575757575758,","                \"unit\": \"g\"","            },","            \"plants_protein\": {","                \"quantity\": 2.9461279461279464,","                \"unit\": \"g\"","            },","            \"fibre\": {","                \"quantity\": 0.1609848484848485,","                \"unit\": \"g\"","            },","            \"polyol\": {","                \"quantity\": 0.0,","                \"unit\": \"g\"","            },","            \"salt\": {","                \"quantity\": 1.17246632996633,","                \"unit\": \"g\"","            },","            \"sodium\": {","                \"quantity\": 21.06470287643097,","                \"unit\": \"g\"","            },","            \"starch\": {","                \"quantity\": 0.0,","                \"unit\": \"g\"","            },","            \"vitamin_a\": {","                \"quantity\": 0.0,","                \"unit\": \"µg\"","            },","            \"vitamin_c\": {","                \"quantity\": 0.0,","                \"unit\": \"mg\"","            },","            \"vitamin_d\": {","                \"quantity\": 0.0,","                \"unit\": \"µg\"","            },","            \"vitamin_e\": {","                \"quantity\": 0.004545454545454545,","                \"unit\": \"mg\"","            },","            \"vitamin_k\": {","                \"quantity\": 0.028787878787878786,","                \"unit\": \"µg\"","            },","            \"thiamin\": {","                \"quantity\": 0.0,","                \"unit\": \"mg\"","            },","            \"riboflavin\": {","                \"quantity\": 0.007575757575757576,","                \"unit\": \"mg\"","            },","            \"niacin\": {","                \"quantity\": 0.0015151515151515154,","                \"unit\": \"mg\"","            },","            \"vitamin_b6\": {","                \"quantity\": 0.0,","                \"unit\": \"mg\"","            },","            \"folic_acid\": {","                \"quantity\": 0.15151515151515152,","                \"unit\": \"µg\"","            },","            \"vitamin_b12\": {","                \"quantity\": 0.034848484848484844,","                \"unit\": \"µg\"","            },","            \"biotin\": {","                \"quantity\": 0.0,","                \"unit\": \"µg\"","            },","            \"pantothenic_acid\": {","                \"quantity\": 0.0,","                \"unit\": \"mg\"","            },","            \"potassium\": {","                \"quantity\": 204.77811750841755,","                \"unit\": \"mg\"","            },","            \"chloride\": {","                \"quantity\": 0.0,","                \"unit\": \"mg\"","            },","            \"calcium\": {","                \"quantity\": 30.383162626262628,","                \"unit\": \"mg\"","            },","            \"phosphorus\": {","                \"quantity\": 0.0,","                \"unit\": \"mg\"","            },","            \"magnesium\": {","                \"quantity\": 0.5757575757575758,","                \"unit\": \"mg\"","            },","            \"iron\": {","                \"quantity\": 2.1087605664983164,","                \"unit\": \"mg\"","            },","            \"zinc\": {","                \"quantity\": 0.05909090909090909,","                \"unit\": \"mg\"","            },","            \"copper\": {","                \"quantity\": 0.0030303030303030307,","                \"unit\": \"mg\"","            },","            \"manganese\": {","                \"quantity\": 0.0015151515151515154,","                \"unit\": \"mg\"","            },","            \"fluoride\": {","                \"quantity\": 0.0,","                \"unit\": \"mg\"","            },","            \"selenium\": {","                \"quantity\": 0.2681818181818182,","                \"unit\": \"µg\"","            },","            \"chromium\": {","                \"quantity\": 0.0,","                \"unit\": \"µg\"","            },","            \"molybdenum\": {","                \"quantity\": 0.0,","                \"unit\": \"µg\"","            },","            \"iodine\": {","                \"quantity\": 0.0,","                \"unit\": \"µg\"","            },","            \"water\": {","                \"quantity\": 0.3151515151515152,","                \"unit\": \"g\"","            }","        },","        \"nutriscore\": null,","        \"dietary_info\": {","            \"halal\": false,","            \"carrot\": false,","            \"glutamate\": false,","            \"alcohol\": false,","            \"poultry_meat\": false,","            \"blackened\": false,","            \"cacao\": false,","            \"benzoates\": false,","            \"lamb\": false,","            \"caffeine\": false,","            \"quinine\": false,","            \"vegan\": false,","            \"genetic_modified\": false,","            \"sulphur\": false,","            \"propionates\": false,","            \"antioxidant\": false,","            \"sweetener\": false,","            \"phosphate\": false,","            \"acesulfame_e962\": false,","            \"nitrates\": false,","            \"sorbates\": false,","            \"preservative\": true,","            \"coloring\": false,","            \"coriander\": false,","            \"vegetarian\": false,","            \"flavor_enhancer\": false,","            \"pigmeat\": false,","            \"aspartame_e951\": false,","            \"taurine\": false,","            \"beef\": true,","            \"kosher\": false","        }","    }","    var responseJson = pm.response.json();","","    function compareObjects(x, y) {","        for (var p in x) {","            if (!y.hasOwnProperty(p)) throw new Error(\"Attribute {\"+p+\"} missing in response\");","","            if(typeof(x[p]) === \"object\") {","                compareObjects(x[p], y[p]);","            } else {","                pm.expect(y[p]).to.eql(x[p], \"Attribute {\"+p+\"} mismatch\");","            }","        }","    }","    compareObjects(expectedJson, responseJson);","});"],"type":"text/javascript"}}],"id":"3c50668b-7b24-4834-90df-076c9d7528ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/recipes/{{recipeId}}/","description":"<p>Gets information about a specific recipe.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["recipes","{{recipeId}}",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"e69147c1-936e-48be-aa55-466c20797bdd","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/recipes/{{recipeId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n    \"id\": \"349980442190000\",\n    \"name\": \"Spaghetti Bolognese\",\n    \"uid\": \"0001\",\n    \"web_page\": \"https://app.apicbase.com/library/recipe/89124/\",\n    \"description\": \"A free text field here\",\n    \"persons\": 16,\n    \"cuisine\": \"Italian\",\n    \"recipe_stage\": \"active\",\n    \"remarks\": \"<p>General remarks about this recipe. Free text.</p>\",\n    \"recipe_type\": \"Main course\",\n    \"recipe_type_other\": null,\n    \"season\": \"all_seasons\",\n    \"difficulty\": 1,\n    \"recipe_class\": \"Dish\",\n    \"target_profit_margin\": \"80.00\",\n    \"vat\": \"12.00\",\n    \"current_sell_price\": {\n        \"created\": \"2020-06-17 12:04:28.685633\",\n        \"pricing\": 13,\n        \"user_pk\": 3475,\n        \"username\": \"john.doe@apicbase.com\"\n    },\n    \"sell_price_history\": [\n        {\n            \"created\": \"2020-06-17 11:44:38.762287\",\n            \"pricing\": 13,\n            \"user_pk\": 3475,\n            \"username\": \"john.doe@apicbase.com\"\n        },\n        {\n            \"created\": \"2020-06-17 11:49:30.968115\",\n            \"pricing\": 13,\n            \"user_pk\": 3475,\n            \"username\": \"john.doe@apicbase.com\"\n        }\n    ],\n    \"created_date\": \"2020-06-17T11:44:38.737130+02:00\",\n    \"created_by\": \"john.doe@apicbase.com\",\n    \"modified_date\": \"2020-11-18T16:21:35.938295+01:00\",\n    \"original\": null,\n    \"clones\": [\n        \"https://app.apicbase.com/api/v1/products/recipes/349691174570004/\"\n    ],\n    \"public\": false,\n    \"net_weight\": \"3.00\",\n    \"net_weight_unit\": \"kg\",\n    \"net_volume\": \"3000.00\",\n    \"net_volume_unit\": \"ml\",\n    \"prep_time\": \"00:05:00\",\n    \"prep_time_passive\": null,\n    \"cooking_time\": \"00:02:00\",\n    \"cooking_time_passive\": \"00:15:30\",\n    \"plating_time\": \"00:01:00\",\n    \"portion_pieces\": null,\n    \"custom_fields\": [\n        {\n            \"name\": \"Kitchen Utensils\",\n            \"value\": null\n        },\n        {\n            \"name\": \"Filter Field Multi\",\n            \"value\": null\n        },\n        {\n            \"name\": \"Filter Field Single\",\n            \"value\": \"Single 1\"\n        },\n        {\n            \"name\": \"Filter Field Text\",\n            \"value\": \"Some free text\"\n        },\n        {\n            \"name\": \"Recipe Multi Field\",\n            \"value\": [\n                \"Choice 1\",\n                \"Choice 3\"\n            ]\n        }\n    ],\n    \"main_stock_items\": [],\n    \"shelf_life\": {\n        \"days\": 4,\n        \"hours\": 0\n    },\n    \"ingredients\": [\n        {\n            \"number\": 1,\n            \"quantity\": \"1.000\",\n            \"unit\": \"kg\",\n            \"type\": \"INGREDIENT\",\n            \"name\": \"Pasta Spaghetti\",\n            \"uid\": \"\",\n            \"ingredient\": \"https://app.apicbase.com/api/v1/products/ingredients/764556666890005/\",\n            \"subrecipe\": null,\n            \"remarks\": \"\",\n            \"waste_percentage\": 0,\n            \"description\": \"[I] Pasta Spaghetti\"\n        },\n        {\n            \"number\": 2,\n            \"quantity\": \"1.500\",\n            \"unit\": \"l\",\n            \"type\": \"RECIPE\",\n            \"name\": \"Tomato Passata\",\n            \"uid\": \"2222\",\n            \"ingredient\": null,\n            \"subrecipe\": \"https://app.apicbase.com/api/v1/products/recipes/449980552170001/\",\n            \"remarks\": \"\",\n            \"waste_percentage\": 0,\n            \"description\": \"[R] Tomato Passata\"\n        },\n        {\n            \"number\": 3,\n            \"quantity\": \"800.000\",\n            \"unit\": \"g\",\n            \"type\": \"INGREDIENT\",\n            \"name\": \"Beef mince\",\n            \"uid\": \"\",\n            \"ingredient\": \"https://app.apicbase.com/api/v1/products/ingredients/764556486880003/\",\n            \"subrecipe\": null,\n            \"remarks\": \"\",\n            \"waste_percentage\": 0,\n            \"description\": \"[I] Beef mince\"\n        },\n        {\n            \"number\": 4,\n            \"quantity\": \"5.000\",\n            \"unit\": \"g\",\n            \"type\": \"INGREDIENT\",\n            \"name\": \"White pepper powder\",\n            \"uid\": \"\",\n            \"ingredient\": \"https://app.apicbase.com/api/v1/products/ingredients/664556196850009/\",\n            \"subrecipe\": null,\n            \"remarks\": \"\",\n            \"waste_percentage\": 0,\n            \"description\": \"[I] White pepper powder\"\n        },\n        {\n            \"number\": 5,\n            \"quantity\": \"600.000\",\n            \"unit\": \"g\",\n            \"type\": \"INGREDIENT\",\n            \"name\": \"Carrots\",\n            \"uid\": \"\",\n            \"ingredient\": \"https://app.apicbase.com/api/v1/products/ingredients/464556907820001/\",\n            \"subrecipe\": null,\n            \"remarks\": \"Only fresh carrots!\",\n            \"waste_percentage\": 0,\n            \"description\": \"[I] Carrots\"\n        }\n    ],\n    \"allergens\": {\n        \"kamut\": 0,\n        \"pecan_nuts\": 0,\n        \"gluten\": 1,\n        \"spelt\": 0,\n        \"barley\": 0,\n        \"hazelnuts\": 0,\n        \"shellfish\": 0,\n        \"milk_dairy\": 0,\n        \"almonds\": 0,\n        \"lupine\": 0,\n        \"seeds\": 0,\n        \"celery\": 0,\n        \"rye\": 0,\n        \"mustard\": 0,\n        \"poppy_seeds\": 0,\n        \"sesame\": 0,\n        \"peanut\": 0,\n        \"egg\": 0,\n        \"walnuts\": 0,\n        \"wheat\": 1,\n        \"lactose\": 0,\n        \"brazil_nuts\": 0,\n        \"macadamia_nuts\": 0,\n        \"pistachio_nuts\": 0,\n        \"sulfites\": 0,\n        \"cashews\": 0,\n        \"oats\": 0,\n        \"fish\": 0,\n        \"sunflower_seeds\": 0,\n        \"nut\": 0,\n        \"legume_pulse\": 0,\n        \"soy\": 0,\n        \"corn\": 0,\n        \"mollusc\": 0\n    },\n    \"steps\": [\n        {\n            \"description\": \"This is the first step.\",\n            \"image_thumb_url\": null,\n            \"image_web_url\": null,\n            \"image_orig_url\": null,\n            \"description_translations\": []\n        },\n        {\n            \"description\": \"This is the second step.\",\n            \"image_thumb_url\": null,\n            \"image_web_url\": null,\n            \"image_orig_url\": null,\n            \"description_translations\": []\n        },\n        {\n            \"description\": \"Third step, voilà.\",\n            \"image_thumb_url\": null,\n            \"image_web_url\": null,\n            \"image_orig_url\": null,\n            \"description_translations\": []\n        }\n    ],\n    \"images\": [\n        \"https://app.apicbase.com/api/v1/media/images/181566068410002/\"\n    ],\n    \"main_image\": {\n        \"url\": \"https://app.apicbase.com/api/v1/media/images/181566068410002/\",\n        \"id\": \"181566068410002\",\n        \"studio_login\": \"john.doe@apicbase.com\",\n        \"full_image_url\": \"https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download_7MkdGJt.png?AWSAccessKeyId=AKIA3XQ5A2DMB3AJEFEK&Signature=%2BBJFlKxbZtd%2Bp7VDtkL5%2FC86UqI%3D&Expires=1617201562\",\n        \"web_image_url\": \"https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download-webImage_large.png?AWSAccessKeyId=AKIA3XQ5A2DMB3AJEFEK&Signature=p8Ixii%2BWO2wuVzn2%2BZ5x1UE1P7Q%3D&Expires=1617201562\",\n        \"thumb_image_url\": \"https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download-thumbImage.png?AWSAccessKeyId=AKIA3XQ5A2DMB3AJEFEK&Signature=4lZooFXA4qRBMB6zJEU8WWfK%2BFw%3D&Expires=1617201562\",\n        \"restaurant\": null,\n        \"description\": \"download\",\n        \"category\": \"recipe\",\n        \"uploaded_at\": \"2020-06-17T18:08:28.851366+02:00\",\n        \"picture_taken_date\": \"2020-06-17T18:08:28.861966+02:00\",\n        \"shared_on\": null,\n        \"modified_date\": \"2020-06-17T18:09:49.459202+02:00\",\n        \"uploaded_by\": \"john.doe@apicbase.com\",\n        \"tags\": [\n            {\n                \"id\": \"id-54-78\",\n                \"top\": 78,\n                \"left\": 54,\n                \"text\": \"tag 1\"\n            },\n            {\n                \"id\": \"id-65-43\",\n                \"top\": 43,\n                \"left\": 65,\n                \"text\": \"tag 2\"\n            }\n        ],\n        \"public\": false,\n        \"external\": true\n    },\n    \"outlets\": [\n        \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\",\n        \"https://app.apicbase.com/api/v1/accounts/outlets/829100725420008/\"\n    ],\n    \"preferred_uoms\": [\n        \"g\",\n        \"kg\"\n    ],\n    \"allergen_verified\": false,\n    \"name_translations\": [],\n    \"financial\": {\n        \"foodcost\": 0.05714285714285714,\n        \"personnel_cost\": 0\n    },\n    \"nutrition_info\": {\n        \"for\": {\n            \"quantity\": 100,\n            \"unit\": \"g\"\n        },\n        \"kcal\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"kcal\"\n        },\n        \"kj\": {\n            \"quantity\": 13.946666666666669,\n            \"unit\": \"kJ\"\n        },\n        \"fat\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        },\n        \"saturated_fat\": {\n            \"quantity\": 1.666666666666667,\n            \"unit\": \"g\"\n        },\n        \"carbohydrate\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        },\n        \"sugar\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        },\n        \"protein\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        },\n        \"salt\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        }\n    },\n    \"nutrition_info_per_portion\": {\n        \"for\": {\n            \"quantity\": 1,\n            \"unit\": \"portion\"\n        },\n        \"kcal\": {\n            \"quantity\": 6.25,\n            \"unit\": \"kcal\"\n        },\n        \"kj\": {\n            \"quantity\": 26.150000000000002,\n            \"unit\": \"kJ\"\n        },\n        \"fat\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        },\n        \"saturated_fat\": {\n            \"quantity\": 3.125,\n            \"unit\": \"g\"\n        },\n        \"carbohydrate\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        },\n        \"sugar\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        },\n        \"protein\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        },\n        \"salt\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        }\n    },\n    \"nutriscore\": null,\n    \"dietary_info\": {\n        \"blackened\": false,\n        \"acesulfame_e962\": false,\n        \"alcohol\": false,\n        \"quinine\": false,\n        \"genetic_modified\": false,\n        \"coriander\": false,\n        \"kosher\": false,\n        \"preservative\": false,\n        \"sweetener\": false,\n        \"coloring\": false,\n        \"vegetarian\": false,\n        \"vegan\": false,\n        \"halal\": false,\n        \"phosphate\": false,\n        \"sorbates\": false,\n        \"aspartame_e951\": false,\n        \"pigmeat\": false,\n        \"sulphur\": false,\n        \"flavor_enhancer\": false,\n        \"lamb\": false,\n        \"beef\": true,\n        \"taurine\": false,\n        \"nitrates\": false,\n        \"poultry_meat\": false,\n        \"glutamate\": false,\n        \"cacao\": false,\n        \"benzoates\": false,\n        \"carrot\": true,\n        \"propionates\": false,\n        \"caffeine\": false,\n        \"antioxidant\": false\n    },\n    \"used_in_recipes\": [\n        \"https://app.apicbase.com/api/v1/products/recipes/349173044980009/\"\n    ],\n    \"used_in_menus\": [\n        \"https://app.apicbase.com/api/v1/products/menus/390400735470004/\"\n    ],\n    \"inventory_ingredient\": null,\n    \"outlet_prices\": [\n        {\n            \"created\": \"2022-01-01 12:00:00.335435\",\n            \"pricing\": 8,\n            \"user_pk\": null,\n            \"username\": null,\n            \"outlet\": {\n                \"id\": \"829100725420008\",\n                \"name\": \"Brussel\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/829100725420008/\"\n            }\n        },\n        {\n            \"created\": \"2022-01-01 12:00:00.335435\",\n            \"pricing\": 7.5,\n            \"user_pk\": null,\n            \"username\": null,\n            \"outlet\": {\n                \"id\": \"229100415400002\",\n                \"name\": \"Antwerpen\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\"\n            }\n        }\n    ]\n}"}],"_postman_id":"3c50668b-7b24-4834-90df-076c9d7528ce"},{"name":"Create a recipe","id":"8fee1155-d766-4b7d-85a7-49df5f0bc1c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/recipes/","description":"<p>Creates a new instance of a recipe.</p>\n<p><strong>Watch out</strong>: the POST method is strictly for creating <strong>new</strong> entries. Making repeated POST requests with the same payload will create duplicates! To update an existing recipe, make a PATCH request.</p>\n<p>The only required fields are <code>name</code> and <code>persons</code> (servings). All other fields are optional.</p>\n<p>Uniqueness is enforced on the <code>uid</code> field (when provided), meaning that no two entries can have the same value for this field. When attempting to create entries with duplicated UIDs, the server will respond with a <code>400 Bad Request</code> error.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["recipes",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"139978a4-d975-4ea6-8c05-50bdafd3bc19","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Carrot Cake\",\n    \"uid\": \"10023R\",\n    \"description\": \"A delicious cake.\",\n    \"persons\": 12,\n    \"cuisine\": \"English\",\n    \"recipe_stage\": \"complete\",\n    \"remarks\": \"Include remarks here, if you like.\",\n    \"recipe_type\": \"dessert\",\n    \"recipe_type_other\": null,\n    \"season\": \"all_seasons\",\n    \"difficulty\": 1,\n    \"recipe_class\": \"dish\",\n    \"target_profit_margin\": 10.25,\n    \"vat\": 12,\n    \"sell_price\": 6.50,\n    \"net_weight\": \"700\",\n    \"net_weight_unit\": \"g\",\n    \"net_volume\": \"0.00\",\n    \"net_volume_unit\": \"ml\",\n    \"prep_time\": \"00:05:00\",\n    \"prep_time_passive\": null,\n    \"cooking_time\": \"01:15:00\",\n    \"cooking_time_passive\": \"00:45:00\",\n    \"plating_time\": null,\n    \"portion_pieces\": null,\n    \"custom_fields\": [\n        {\n            \"name\": \"Recipe Multi Field\",\n            \"value\": [\"Choice 1\", \"Choice 2\"]\n        }\n    ],\n    \"shelf_life\": 2,\n    \"ingredients\": [\n        {\n            \"ingredient\": \"264696398000008\",\n            \"waste_percentage\": 5,\n            \"quantity\": 400,\n            \"unit\": \"g\"\n        },\n        {\n            \"ingredient\": \"464556907820001\",\n            \"waste_percentage\": 2.5,\n            \"quantity\": 1,\n            \"unit\": \"kg\"\n        }\n    ],\n    \"allergens\": {\n        \"oats\": 0,\n        \"pistachio_nuts\": 0,\n        \"spelt\": 0,\n        \"pecan_nuts\": 0,\n        \"soy\": 0,\n        \"almonds\": 0,\n        \"rye\": 0,\n        \"fish\": 0,\n        \"lactose\": 0,\n        \"kamut\": 0,\n        \"sulfites\": 0,\n        \"corn\": 0,\n        \"sunflower_seeds\": 0,\n        \"nut\": 0,\n        \"sesame\": 0,\n        \"milk_dairy\": 0,\n        \"macadamia_nuts\": 0,\n        \"legume_pulse\": 0,\n        \"barley\": 0,\n        \"celery\": 0,\n        \"cashews\": 0,\n        \"gluten\": 0,\n        \"shellfish\": 0,\n        \"brazil_nuts\": 0,\n        \"mollusc\": 0,\n        \"peanut\": 0,\n        \"hazelnuts\": 0,\n        \"wheat\": 1,\n        \"egg\": 1,\n        \"seeds\": 0,\n        \"lupine\": 0,\n        \"mustard\": 0,\n        \"walnuts\": 0,\n        \"poppy_seeds\": 0\n    },\n    \"steps\": [\n        {\"description\": \"The first step for a delicious carrot cake\"},\n        {\"description\": \"The second step, almost there\"},\n        {\"description\": \"Third step, it's done!\"}\n    ],\n    \"images\": [\"181566068410002\"],\n    \"outlets\": [\"629100261280001\"],\n    \"preferred_uoms\": [\"g\", \"kg\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/recipes/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"instance\": \"https://app.apicbase.com/api/v1/products/recipes/549990580860002/\"\n}"}],"_postman_id":"8fee1155-d766-4b7d-85a7-49df5f0bc1c4"},{"name":"Edit a recipe","id":"2387cfbe-9b1a-4681-93cd-3af9fd8eaaf3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/recipes/{{recipeId}}/","description":"<p>Edits an existing ingredient. The same fields available and restrictions applied to the POST method also apply here. For this method, only fields included in the request body will be modified; omitted fields will keep their current values.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["recipes","{{recipeId}}",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"993c18b4-d88d-44d5-ab3a-0601e986ae73","name":"Success response","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Carrot Cake (w/ Milk)\",\n    \"remarks\": \"This recipe now contains milk.\",\n    \"allergens\": {\n        \"milk_dairy\": 1,\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/recipes/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"instance\": \"https://app.apicbase.com/api/v1/products/recipes/549990580860002/\"\n}"}],"_postman_id":"2387cfbe-9b1a-4681-93cd-3af9fd8eaaf3"},{"name":"Get a recipe's historical pricing data","id":"8f27c673-020e-4666-b0ba-0ff2a1716677","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/recipes/{{recipeId}}/cost_history/","description":"<p>Gets historical pricing data for a given recipe, including all recorded price changes. Results are paginated, with 10 items being shown by page.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["recipes","{{recipeId}}","cost_history",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":null}],"variable":[]}},"response":[{"id":"20d18e0c-082d-4adf-afe8-4a6f475967d9","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/recipes/{{recipeId}}/cost_history/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"recipe\": \"https://app.apicbase.com/api/v1/products/recipes/749980262120005/\",\n            \"cache_date\": \"2020-10-14\",\n            \"personnel_cost_one\": \"0.00\",\n            \"waste_cost_one\": \"0.00\",\n            \"ingredient_cost_one\": \"0.00\",\n            \"prime_cost_one\": \"0.00\",\n            \"actual_profit_one\": \"1.65\",\n            \"sell_price_excl_vat\": \"1.65\",\n            \"actual_profit_margin\": \"100.00\",\n            \"servings\": 1,\n            \"extra_info\": {},\n            \"updated_at\": \"2020-10-14T17:01:27.666624+02:00\"\n        },\n        {\n            \"recipe\": \"https://app.apicbase.com/api/v1/products/recipes/749980262120005/\",\n            \"cache_date\": \"2020-06-17\",\n            \"personnel_cost_one\": \"0.00\",\n            \"waste_cost_one\": \"0.00\",\n            \"ingredient_cost_one\": \"0.00\",\n            \"prime_cost_one\": \"0.00\",\n            \"actual_profit_one\": null,\n            \"sell_price_excl_vat\": null,\n            \"actual_profit_margin\": null,\n            \"servings\": 1,\n            \"extra_info\": {},\n            \"updated_at\": \"2020-06-17T11:55:47.326323+02:00\"\n        }\n    ]\n}"}],"_postman_id":"8f27c673-020e-4666-b0ba-0ff2a1716677"},{"name":"Get recipe nutritional data","id":"efa95e96-5118-479f-a523-d36f66983eaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/recipes/{{recipeId}}/nutrition","description":"<p>Gets data from a recipe's allergen and nutritional info tab.</p>\n<p>The attributes of the <code>allergens</code> object may contain these values, meaning:</p>\n<p>0 = does not contain<br />1 = contains<br />2 = may contain traces of<br />3 = unknown</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["recipes","{{recipeId}}","nutrition"],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"2dd95b86-c26d-47bc-b450-551d587c8dca","name":"Get recipe nutritional data","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/recipes/{{recipeId}}/nutrition"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"nutrition_info\": {\n        \"for\": {\n            \"quantity\": 100,\n            \"unit\": \"g\"\n        },\n        \"kcal\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"kcal\"\n        },\n        \"kj\": {\n            \"quantity\": 13.946666666666669,\n            \"unit\": \"kJ\"\n        },\n        \"fat\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        },\n        \"saturated_fat\": {\n            \"quantity\": 1.666666666666667,\n            \"unit\": \"g\"\n        },\n        \"carbohydrate\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        },\n        \"sugar\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        },\n        \"protein\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        },\n        \"salt\": {\n            \"quantity\": 3.333333333333334,\n            \"unit\": \"g\"\n        }\n    },\n    \"nutrition_info_per_portion\": {\n        \"for\": {\n            \"quantity\": 1,\n            \"unit\": \"portion\"\n        },\n        \"kcal\": {\n            \"quantity\": 6.25,\n            \"unit\": \"kcal\"\n        },\n        \"kj\": {\n            \"quantity\": 26.150000000000002,\n            \"unit\": \"kJ\"\n        },\n        \"fat\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        },\n        \"saturated_fat\": {\n            \"quantity\": 3.125,\n            \"unit\": \"g\"\n        },\n        \"carbohydrate\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        },\n        \"sugar\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        },\n        \"protein\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        },\n        \"salt\": {\n            \"quantity\": 6.25,\n            \"unit\": \"g\"\n        }\n    },\n    \"dietary_info\": {\n        \"caffeine\": false,\n        \"nitrates\": false,\n        \"poultry_meat\": false,\n        \"blackened\": false,\n        \"cacao\": false,\n        \"acesulfame_e962\": false,\n        \"kosher\": false,\n        \"coriander\": false,\n        \"vegetarian\": false,\n        \"propionates\": false,\n        \"glutamate\": false,\n        \"sweetener\": false,\n        \"coloring\": false,\n        \"pigmeat\": false,\n        \"lamb\": false,\n        \"antioxidant\": false,\n        \"quinine\": false,\n        \"preservative\": false,\n        \"alcohol\": false,\n        \"flavor_enhancer\": false,\n        \"beef\": true,\n        \"carrot\": true,\n        \"genetic_modified\": false,\n        \"sulphur\": false,\n        \"benzoates\": false,\n        \"sorbates\": false,\n        \"halal\": false,\n        \"aspartame_e951\": false,\n        \"taurine\": false,\n        \"phosphate\": false,\n        \"vegan\": false\n    },\n    \"nutriscore\": {\n        \"label\": null\n    },\n    \"nutrition_verified\": false,\n    \"allergens\": {\n        \"kamut\": 0,\n        \"oats\": 0,\n        \"sesame\": 0,\n        \"barley\": 0,\n        \"spelt\": 0,\n        \"walnuts\": 0,\n        \"corn\": 0,\n        \"pistachio_nuts\": 0,\n        \"lactose\": 0,\n        \"macadamia_nuts\": 0,\n        \"brazil_nuts\": 0,\n        \"sunflower_seeds\": 0,\n        \"egg\": 2,\n        \"peanut\": 0,\n        \"almonds\": 0,\n        \"hazelnuts\": 0,\n        \"shellfish\": 0,\n        \"mustard\": 0,\n        \"soy\": 0,\n        \"lupine\": 0,\n        \"poppy_seeds\": 0,\n        \"mollusc\": 0,\n        \"rye\": 0,\n        \"seeds\": 0,\n        \"milk_dairy\": 0,\n        \"legume_pulse\": 0,\n        \"sulfites\": 0,\n        \"celery\": 0,\n        \"gluten\": 1,\n        \"nut\": 0,\n        \"fish\": 0,\n        \"pecan_nuts\": 0,\n        \"wheat\": 1,\n        \"cashews\": 0\n    },\n    \"allergen_verified\": false,\n    \"label_ingredients\": \"Tomato Passata (44.84%), Pasta Spaghetti (29.90%) (<b>Cereals containing gluten, Wheat</b>), Beef mince (23.92%), Carrots (1.20%), White pepper powder (0.15%)\"\n}"}],"_postman_id":"efa95e96-5118-479f-a523-d36f66983eaf"},{"name":"Get recipes linked to an outlet","id":"00c8d6c8-126b-42e4-b52d-42d9c4cb68ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/outlets/{{outletId}}/recipes/","description":"<p>Gets a list of recipes linked to a given outlet. Recipes indirectly linked to the queried outlet through subrecipes or menus are also shown. Optional params can be used to filter and sort the results. Results are paginated, with 10 items being shown by page.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","recipes",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>A name to query on</p>\n","type":"text/plain"},"key":"name","value":""},{"disabled":true,"description":{"content":"<p>An internal UID to query on</p>\n","type":"text/plain"},"key":"uid","value":""},{"disabled":true,"description":{"content":"<p>Minimum amount of servings</p>\n","type":"text/plain"},"key":"min_persons","value":""},{"disabled":true,"description":{"content":"<p>Maximum amount of servings</p>\n","type":"text/plain"},"key":"max_persons","value":""},{"disabled":true,"description":{"content":"<p>Get created after this date</p>\n","type":"text/plain"},"key":"start_date","value":""},{"disabled":true,"description":{"content":"<p>Get created before this date</p>\n","type":"text/plain"},"key":"end_date","value":""},{"disabled":true,"description":{"content":"<p>Get recipes with prep time greater than this. Format: hh:mm:ss</p>\n","type":"text/plain"},"key":"prepping_time_greater","value":""},{"disabled":true,"description":{"content":"<p>Get recipes with prep time lesser than this. Format: hh:mm:ss</p>\n","type":"text/plain"},"key":"prepping_time_lower","value":""},{"disabled":true,"description":{"content":"<p>A field to order the results on</p>\n","type":"text/plain"},"key":"ordering","value":""}],"variable":[]}},"response":[{"id":"bbf668df-bb47-4d67-a9c1-429fe5bb24d1","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/outlets/{{outletId}}/recipes/","host":["https://app.apicbase.com/api/v1/products"],"path":["outlets","{{outletId}}","recipes",""],"query":[{"description":"A page number within the paginated result set","key":"page","type":"text","value":"","disabled":true},{"description":"A name to query on","key":"name","value":"","disabled":true},{"description":"An internal UID to query on","key":"uid","type":"text","value":"","disabled":true},{"description":"Minimum amount of servings","key":"min_persons","type":"text","value":"","disabled":true},{"description":"Maximum amount of servings","key":"max_persons","type":"text","value":"","disabled":true},{"description":"Get created after this date","key":"start_date","type":"text","value":"","disabled":true},{"description":"Get created before this date","key":"end_date","type":"text","value":"","disabled":true},{"description":"Get recipes with prep time greater than this. Format: hh:mm:ss","key":"prepping_time_greater","type":"text","value":"","disabled":true},{"description":"Get recipes with prep time lesser than this. Format: hh:mm:ss","key":"prepping_time_lower","type":"text","value":"","disabled":true},{"description":"A field to order the results on","key":"ordering","type":"text","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/549980272150003/\",\n            \"id\": \"549980272150003\",\n            \"name\": \"Tiramisù\",\n            \"uid\": \"\",\n            \"description\": \"\",\n            \"persons\": 1,\n            \"cuisine\": \"\",\n            \"recipe_stage\": \"\",\n            \"remarks\": \"<p><br data-mce-bogus=\\\"1\\\"></p>\",\n            \"recipe_type\": null,\n            \"recipe_type_other\": null,\n            \"season\": \"\",\n            \"difficulty\": null,\n            \"recipe_class\": \"\",\n            \"target_profit_margin\": null,\n            \"vat\": null,\n            \"current_sell_price\": null,\n            \"sell_price_history\": [],\n            \"created_date\": \"2020-06-17T11:55:07.786026+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T11:55:47.360000+02:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"net_weight\": null,\n            \"net_weight_unit\": \"\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": null,\n            \"prep_time_passive\": null,\n            \"cooking_time\": null,\n            \"cooking_time_passive\": null,\n            \"plating_time\": null,\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": null\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": null\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/749980262120005/\",\n            \"id\": \"749980262120005\",\n            \"name\": \"Cola\",\n            \"uid\": \"\",\n            \"description\": \"\",\n            \"persons\": 1,\n            \"cuisine\": \"\",\n            \"recipe_stage\": \"\",\n            \"remarks\": \"<p><br></p>\",\n            \"recipe_type\": null,\n            \"recipe_type_other\": null,\n            \"season\": \"\",\n            \"difficulty\": null,\n            \"recipe_class\": \"\",\n            \"target_profit_margin\": null,\n            \"vat\": \"21.00\",\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 11:56:10.489811\",\n                \"pricing\": 2.5,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [],\n            \"created_date\": \"2020-06-17T11:54:11.790015+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T11:56:10.511324+02:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"net_weight\": null,\n            \"net_weight_unit\": \"\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": null,\n            \"prep_time_passive\": null,\n            \"cooking_time\": null,\n            \"cooking_time_passive\": null,\n            \"plating_time\": null,\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": null\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": null\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/449980552170001/\",\n            \"id\": \"449980552170001\",\n            \"name\": \"Tomato Passata\",\n            \"uid\": \"2222\",\n            \"description\": \"\",\n            \"persons\": 1,\n            \"cuisine\": \"\",\n            \"recipe_stage\": \"complete\",\n            \"remarks\": \"<p><br data-mce-bogus=\\\"1\\\"></p>\",\n            \"recipe_type\": \"Other\",\n            \"recipe_type_other\": \"Preparation\",\n            \"season\": \"all_seasons\",\n            \"difficulty\": 5,\n            \"recipe_class\": \"semi_finished_product\",\n            \"target_profit_margin\": null,\n            \"vat\": null,\n            \"current_sell_price\": null,\n            \"sell_price_history\": [],\n            \"created_date\": \"2020-06-17T11:48:04.244626+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T11:48:05.453191+02:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"net_weight\": null,\n            \"net_weight_unit\": \"\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": null,\n            \"prep_time_passive\": null,\n            \"cooking_time\": null,\n            \"cooking_time_passive\": null,\n            \"plating_time\": null,\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": [\n                        \"Choice 2\"\n                    ]\n                }\n            ],\n            \"main_stock_items\": [\n                {\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/321794593440005/\"\n                }\n            ],\n            \"shelf_life\": \"1 00:00:00\"\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/recipes/349980442190000/\",\n            \"id\": \"349980442190000\",\n            \"name\": \"Spaghetti Bolognese\",\n            \"uid\": \"0001\",\n            \"description\": \"A free text field here\",\n            \"persons\": 16,\n            \"cuisine\": \"Italian\",\n            \"recipe_stage\": \"active\",\n            \"remarks\": \"<p>General remarks about this recipe. Free text.</p>\",\n            \"recipe_type\": \"Main course\",\n            \"recipe_type_other\": null,\n            \"season\": \"all_seasons\",\n            \"difficulty\": 1,\n            \"recipe_class\": \"dish\",\n            \"target_profit_margin\": \"80.00\",\n            \"vat\": \"12.00\",\n            \"current_sell_price\": {\n                \"created\": \"2020-06-17 12:04:28.685633\",\n                \"pricing\": 13,\n                \"user_pk\": 3475,\n                \"username\": \"john.doe@apicbase.com\"\n            },\n            \"sell_price_history\": [\n                {\n                    \"created\": \"2020-06-17 11:44:38.762287\",\n                    \"pricing\": 13,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                },\n                {\n                    \"created\": \"2020-06-17 11:49:30.968115\",\n                    \"pricing\": 13,\n                    \"user_pk\": 3475,\n                    \"username\": \"john.doe@apicbase.com\"\n                }\n            ],\n            \"created_date\": \"2020-06-17T11:44:38.737130+02:00\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"modified_date\": \"2020-06-17T12:04:28.748661+02:00\",\n            \"original\": null,\n            \"clones\": [],\n            \"net_weight\": \"3.00\",\n            \"net_weight_unit\": \"kg\",\n            \"net_volume\": null,\n            \"net_volume_unit\": \"\",\n            \"prep_time\": \"00:05:00\",\n            \"prep_time_passive\": null,\n            \"cooking_time\": \"00:02:00\",\n            \"cooking_time_passive\": \"00:15:30\",\n            \"plating_time\": \"00:01:00\",\n            \"portion_pieces\": null,\n            \"custom_fields\": [\n                {\n                    \"name\": \"Kitchen Utensils\",\n                    \"value\": null\n                },\n                {\n                    \"name\": \"Recipe Multi Field\",\n                    \"value\": [\n                        \"Choice 1\",\n                        \"Choice 3\"\n                    ]\n                }\n            ],\n            \"main_stock_items\": [],\n            \"shelf_life\": \"4 00:00:00\"\n        }\n    ]\n}"}],"_postman_id":"00c8d6c8-126b-42e4-b52d-42d9c4cb68ee"},{"name":"Get stock items","id":"2accce6e-885d-427b-a704-3f2d2ebbf9d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/stock_items/","description":"<p>Gets a list of stock items in the library. Optional params can be used to filter and sort the results. Results are paginated, with 10 items being shown by page.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["stock_items",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>A name to query on</p>\n","type":"text/plain"},"key":"name","value":""},{"disabled":true,"key":"id__in","value":""},{"disabled":true,"description":{"content":"<p>Get items created by a given user. Provide the user's email</p>\n","type":"text/plain"},"key":"created_by","value":""},{"disabled":true,"description":{"content":"<p>An ingredient ID to filter on</p>\n","type":"text/plain"},"key":"ingredient","value":null},{"disabled":true,"description":{"content":"<p>Get items linked to a given outlet</p>\n","type":"text/plain"},"key":"count_outlet","value":""},{"disabled":true,"description":{"content":"<p>boolean, If true this package can have stock and can be counted.</p>\n","type":"text/plain"},"key":"stockable","value":""},{"disabled":true,"description":{"content":"<p>GTIN/EAN</p>\n","type":"text/plain"},"key":"gtin","value":""},{"disabled":true,"description":{"content":"<p>last modified date, %Y-%m-%d</p>\n","type":"text/plain"},"key":"modified_date__date","value":""},{"disabled":true,"key":"modified_date__date__gte","value":""},{"disabled":true,"key":"modified_date__date__lte","value":""},{"disabled":true,"description":{"content":"<p>last modified date, %H:%M:%S</p>\n","type":"text/plain"},"key":"modified_date__time","value":""},{"disabled":true,"key":"modified_date__time__gte","value":""},{"disabled":true,"key":"modified_date__time__lte","value":""},{"disabled":true,"description":{"content":"<p>A field to order the results on</p>\n","type":"text/plain"},"key":"ordering","value":""}],"variable":[]}},"response":[{"id":"4890b1bb-b310-4ca0-afbb-ae357420cff9","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/stock_items/","host":["https://app.apicbase.com/api/v1/products"],"path":["stock_items",""],"query":[{"description":"A page number within the paginated result set","key":"page","value":"","disabled":true},{"description":"A name to query on","key":"name","value":"","disabled":true},{"description":"Get items created by a given user. Provide the user's email","key":"created_by","value":"","disabled":true},{"description":"A field to order the results on","key":"ordering","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721794004480005/\",\n            \"id\": \"721794004480005\",\n            \"name\": \"Cola Can (33 cl)\",\n            \"main_ingredient_id\": \"664556437850007\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"content\": \"33 cl\",\n            \"package_description\": {\n                \"unit\": \"cl\",\n                \"quantity\": \"33.000000\"\n            },\n            \"average_price_per_package\": null,\n            \"average_price_per_standard_unit\": null,\n            \"base_stock_item_quantity\": \"1.00000\",\n            \"base_stock_item_unit\": \"cl\"\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/321794593440005/\",\n            \"id\": \"321794593440005\",\n            \"name\": \"Tomato Passata Pot (1 l)\",\n            \"main_ingredient_id\": \"664556317810006\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"content\": \"1 l\",\n            \"package_description\": {\n                \"unit\": \"l\",\n                \"quantity\": \"1.000000\"\n            },\n            \"average_price_per_package\": null,\n            \"average_price_per_standard_unit\": null,\n            \"base_stock_item_quantity\": \"1.00000\",\n            \"base_stock_item_unit\": \"l\"\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421794978110009/\",\n            \"id\": \"421794978110009\",\n            \"name\": \"Milk Crate (6 x 1 l)\",\n            \"main_ingredient_id\": \"264556747770006\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"content\": \"6 x 1 l\",\n            \"package_description\": {\n                \"unit\": \"Bottle (1 l)\",\n                \"quantity\": \"6.000000\"\n            },\n            \"average_price_per_package\": \"4.00000\",\n            \"average_price_per_standard_unit\": \"0.66667\",\n            \"base_stock_item_quantity\": \"6.00000\",\n            \"base_stock_item_unit\": \"l\"\n        },\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/521794758100007/\",\n            \"id\": \"521794758100007\",\n            \"name\": \"Milk Bottle (1 l)\",\n            \"main_ingredient_id\": \"264556747770006\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"content\": \"1 l\",\n            \"package_description\": {\n                \"unit\": \"l\",\n                \"quantity\": \"1.000000\"\n            },\n            \"average_price_per_package\": null,\n            \"average_price_per_standard_unit\": null,\n            \"base_stock_item_quantity\": \"1.00000\",\n            \"base_stock_item_unit\": \"l\"\n        }\n    ]\n}"},{"id":"600b4af0-4717-417d-b163-b1a169ca9c69","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/stock_items/?page=1&name=Cola&created_by=john.doe@apicbase.com&ordering=average_price_per_package","host":["https://app.apicbase.com/api/v1/products"],"path":["stock_items",""],"query":[{"key":"page","value":"1","description":"A page number within the paginated result set"},{"key":"name","value":"Cola","description":"A name to query on"},{"key":"created_by","value":"john.doe@apicbase.com","description":"Get items created by a given user. Provide the user's email"},{"key":"ordering","value":"average_price_per_package","description":"A field to order the results on"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721794004480005/\",\n            \"id\": \"721794004480005\",\n            \"name\": \"Cola Can (33 cl)\",\n            \"main_ingredient_id\": \"664556437850007\",\n            \"created_by\": \"john.doe@apicbase.com\",\n            \"content\": \"33 cl\",\n            \"package_description\": {\n                \"unit\": \"cl\",\n                \"quantity\": \"33.000000\"\n            },\n            \"average_price_per_package\": null,\n            \"average_price_per_standard_unit\": null,\n            \"base_stock_item_quantity\": \"1.00000\",\n            \"base_stock_item_unit\": \"cl\"\n        }\n    ]\n}"}],"_postman_id":"2accce6e-885d-427b-a704-3f2d2ebbf9d6"},{"name":"Get stock item details","id":"7581ae58-47fd-4f50-8e8d-7da9d0e03d8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/stock_items/{{stockItemId}}/","description":"<p>Gets information about a specific stock item.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["stock_items","{{stockItemId}}",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"7da01256-e2b4-4707-b095-a5bf2d888945","name":"Get stock item details","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/stock_items/{{stockItemId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721794004480005/\",\n    \"id\": \"721794004480005\",\n    \"name\": \"Cola Can (33 cl)\",\n    \"created_by\": \"john.doe@apicbase.com\",\n    \"main_ingredient_id\": \"664556437850007\",\n    \"package_description\": {\n        \"unit\": \"cl\",\n        \"quantity\": \"33.000000\"\n    },\n    \"supplier_packages\": [],\n    \"content\": \"33 cl\",\n    \"base_stock_item_unit\": \"cl\",\n    \"base_stock_item_quantity\": \"1.00000\",\n    \"average_price_per_standard_unit\": null,\n    \"average_price_per_package\": null\n}"}],"_postman_id":"7581ae58-47fd-4f50-8e8d-7da9d0e03d8b"},{"name":"Create a stock item","id":"45ed1b4c-8918-439d-a7dc-7cb9756383df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Can\",\n    \"main_ingredient_id\": \"264835764070003\",\n    \"package_description\": {\n        \"base_unit\": \"g\",\n        \"quantity\": \"200\",\n        \"unit_stock_item\": null\n    },\n    \"gtin\": \"8486465151\",\n    \"piece\": false,\n    \"stockable\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/stock_items/","description":"<p>Creates a stock item.</p>\n<p><strong>Watch out</strong>: the POST method is strictly for creating new entries. Making repeated POST requests with the same payload will create duplicates! To update an existing stock item, make a PATCH request.</p>\n<p>This endpoint can also be used to create stock items for stockable recipes. In that case, the relevant field must be specified in the payload. Consult <a href=\"https://support.apicbase.com/help/everything-you-need-to-know-about-stockable-recipes\">the support article about stockable recipes</a> to know more.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>name (type)</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>main_ingredient_id</td>\n<td>string</td>\n<td>Ingredient id</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>stockable_recipe</td>\n<td>string</td>\n<td>Recipe id</td>\n<td></td>\n<td></td>\n</tr>\n<tr>\n<td>package_description</td>\n<td>PackageDescription</td>\n<td>unit and quanity</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>gtin</td>\n<td>string</td>\n<td>gtin/barcode</td>\n<td>N</td>\n<td>Sub-count N</td>\n</tr>\n<tr>\n<td>piece</td>\n<td>boolean</td>\n<td></td>\n<td>N</td>\n<td>Sub-count N</td>\n</tr>\n<tr>\n<td>stockable</td>\n<td>boolean</td>\n<td></td>\n<td>N</td>\n<td>Sub-count N</td>\n</tr>\n</tbody>\n</table>\n</div><p>One of <code>main_ingredient_id</code> or <code>stockable_recipe</code> is required.</p>\n<h3 id=\"objects\">Objects</h3>\n<h4 id=\"packagedescription\">PackageDescription</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>base_unit</td>\n<td>string or null</td>\n<td>basic unit ('g', 'piece', 'l', ..)</td>\n</tr>\n<tr>\n<td>unit_stock_item</td>\n<td>string or null</td>\n<td>unit based on another stock item, Id of Stock Item</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>float</td>\n<td>quantity</td>\n</tr>\n</tbody>\n</table>\n</div><p><code>quantity</code> is required. One of <code>base_unit</code> or <code>unit_stock_item</code> should be filled, but not both.</p>\n<p>The unit within <code>package_description</code> can be a basic unit ('g', 'piece', 'l', ..) or another stock item belonging to the same ingredient</p>\n<p>Example: a single can of Cola could be a stock item within the Cola ingredient, and its <code>base_unit</code> could be 'piece' or 'ml'. A stock item describing a 6-pack could have the basic stock item describing a single can of Cola as its <code>unit_stock_item</code>.</p>\n<p>Check examples for clarity.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["stock_items",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"6421902e-d1d4-4256-ae46-619b10d6bffe","name":"Create stock item with basic unit","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Pack\",\n    \"main_ingredient_id\": \"264835764070003\",\n    \"package_description\": {\n        \"base_unit\": \"g\",\n        \"quantity\": \"200\",\n        \"unit_stock_item\": null\n    },\n    \"gtin\": \"8486465151\",\n    \"piece\": false,\n    \"stockable\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/stock_items/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/621993824180008/\",\n    \"id\": \"621993824180008\",\n    \"name\": \"Cabbage Pack (200 g)\",\n    \"main_ingredient_id\": \"264835764070003\",\n    \"main_ingredient_name\": \"jan19-even2\",\n    \"stockable_recipe\": null,\n    \"created_by\": \"john.doe@apicbase.com\",\n    \"content\": \"200 g\",\n    \"package_description\": {\n        \"unit\": \"g\",\n        \"base_unit\": \"g\",\n        \"quantity\": \"200.000000\",\n        \"unit_stock_item\": null\n    },\n    \"average_price_per_package\": null,\n    \"average_price_per_standard_unit\": null,\n    \"base_stock_item_quantity\": \"1.00000\",\n    \"base_stock_item_unit\": \"g\",\n    \"gtin\": \"8486465151\",\n    \"modified_date\": \"2021-04-09T14:04:57\",\n    \"piece\": false,\n    \"stockable\": true,\n    \"active\": true\n}"},{"id":"cff46d42-bd8b-4204-91ca-4f349819256f","name":"Create stock item with stock item as an unit","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"8 Packs\",\n    \"main_ingredient_id\": \"264835764070003\",\n    \"package_description\": {\n        \"base_unit\": null,\n        \"quantity\": \"8\",\n        \"unit_stock_item\": \"621993824180008\"\n    },\n    \"gtin\": \"8486465151\",\n    \"piece\": false,\n    \"stockable\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/stock_items/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421993434130005/\",\n    \"id\": \"421993434130005\",\n    \"name\": \"Cabbage 8 Packs (8 x 200 g)\",\n    \"main_ingredient_id\": \"264835764070003\",\n    \"main_ingredient_name\": \"jan19-even2\",\n    \"stockable_recipe\": null,\n    \"created_by\": \"john.doe@apicbase.com\",\n    \"content\": \"8 x 200 g\",\n    \"package_description\": {\n        \"unit\": \"Pack (200 g)\",\n        \"base_unit\": null,\n        \"quantity\": \"8.000000\",\n        \"unit_stock_item\": {\n            \"id\": \"621993824180008\",\n            \"name\": \"Cabbage Pack (200 g)\",\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/621993824180008/\"\n        }\n    },\n    \"average_price_per_package\": null,\n    \"average_price_per_standard_unit\": null,\n    \"base_stock_item_quantity\": \"8.00000\",\n    \"base_stock_item_unit\": \"g\",\n    \"gtin\": \"8486465151\",\n    \"modified_date\": \"2021-04-09T14:11:17\",\n    \"piece\": false,\n    \"stockable\": true,\n    \"active\": true\n}"},{"id":"a764387c-fcc2-4f6c-80c3-b3bc483554c9","name":"Create stock item for recipe","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Can\",\n    \"stockable_recipe\": \"249960950400005\",\n    \"package_description\": {\n        \"base_unit\": \"ml\",\n        \"quantity\": \"200\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/stock_items/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121993444160004/\",\n    \"id\": \"121993444160004\",\n    \"name\": \"Cola Can (200 ml)\",\n    \"main_ingredient_id\": \"664645906990004\",\n    \"main_ingredient_name\": \"Cola\",\n    \"stockable_recipe\": {\n        \"id\": \"249960950400005\",\n        \"name\": \"Cola\",\n        \"url\": \"https://app.apicbase.com/api/v1/recipes/249960950400005/\"\n    },\n    \"created_by\": \"john.doe@apicbase.com\",\n    \"content\": \"200 ml\",\n    \"package_description\": {\n        \"unit\": \"ml\",\n        \"base_unit\": \"ml\",\n        \"quantity\": \"200.000000\",\n        \"unit_stock_item\": null\n    },\n    \"average_price_per_package\": null,\n    \"average_price_per_standard_unit\": null,\n    \"base_stock_item_quantity\": \"1.00000\",\n    \"base_stock_item_unit\": \"ml\",\n    \"gtin\": null,\n    \"modified_date\": \"2021-04-09T15:31:46\",\n    \"piece\": false,\n    \"stockable\": true,\n    \"active\": true\n}"}],"_postman_id":"45ed1b4c-8918-439d-a7dc-7cb9756383df"},{"name":"Update a stock item","id":"a17f10d0-6533-47bd-b6be-87e7da97e5bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Can\",\n    \"package_description\": {\n        \"base_unit\": \"g\",\n        \"quantity\": \"200\",\n        \"unit_stock_item\": null\n    },\n    \"gtin\": \"8486465151\",\n    \"piece\": false,\n    \"stockable\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/stock_items/{{stockItemId}}/","description":"<p>Updates an existing stock item.</p>\n<p><strong>Beware:</strong> updating an existing stock item's PackageDescription with its associated quantity will <strong>not</strong> correct any existing stock or inventory value. This should only be done to correct mistakes. If a stock item's composition has changed, disable it and create a new one with the new quantity instead.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["stock_items","{{stockItemId}}",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"5547ed81-bf04-4dac-8e60-8adfc4d2acfe","name":"Success response","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Can\",\n    \"package_description\": {\n        \"base_unit\": \"g\",\n        \"quantity\": \"200\",\n        \"unit_stock_item\": null\n    },\n    \"gtin\": \"8486465151\",\n    \"piece\": false,\n    \"stockable\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/products/stock_items/{{stockItemId}}/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/621993824180008/\",\n    \"id\": \"621993824180008\",\n    \"name\": \"Cabbage Can (200 g)\",\n    \"main_ingredient_id\": \"264835764070003\",\n    \"main_ingredient_name\": \"jan19-even2\",\n    \"stockable_recipe\": null,\n    \"created_by\": \"john.doe@apicbase.com\",\n    \"content\": \"200 g\",\n    \"package_description\": {\n        \"unit\": \"g\",\n        \"base_unit\": \"g\",\n        \"quantity\": \"200.000000\",\n        \"unit_stock_item\": null\n    },\n    \"average_price_per_package\": null,\n    \"average_price_per_standard_unit\": null,\n    \"base_stock_item_quantity\": \"1.00000\",\n    \"base_stock_item_unit\": \"g\",\n    \"gtin\": \"8486465151\",\n    \"modified_date\": \"2021-04-09T14:04:57\",\n    \"piece\": false,\n    \"stockable\": true,\n    \"active\": true\n}"}],"_postman_id":"a17f10d0-6533-47bd-b6be-87e7da97e5bc"},{"name":"Get supplier packages","id":"14dda7c5-df8d-4650-a169-af7db97222bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/supplier_packages/","description":"<p>Gets a list of supplier packages in the library. Optional params can be used to filter and sort the results. Results are paginated, with 10 items being shown per page by default.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_packages",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>A stock item ID to filter on</p>\n","type":"text/plain"},"key":"stock_item_id","value":""},{"disabled":true,"description":{"content":"<p>A supplied ID to filter on.</p>\n","type":"text/plain"},"key":"supplier_id","value":""},{"disabled":true,"description":{"content":"<p>A supplier to filter on. Provide the supplier's ordering email</p>\n","type":"text/plain"},"key":"supplier_email","value":""},{"disabled":true,"description":{"content":"<p>Filter on the supplier's article number for an item</p>\n","type":"text/plain"},"key":"supplier_article_number","value":null},{"disabled":true,"description":{"content":"<p>Filter on active status (true/false)</p>\n","type":"text/plain"},"key":"active","value":""},{"disabled":true,"description":{"content":"<p>Filter on orderable status (true/false)</p>\n","type":"text/plain"},"key":"orderable","value":""},{"disabled":true,"description":{"content":"<p>A field to order the results on</p>\n","type":"text/plain"},"key":"ordering","value":""}],"variable":[]}},"response":[{"id":"6a00b661-2638-4084-87ff-1dae4f6ee287","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/supplier_packages/","host":["https://app.apicbase.com/api/v1/products"],"path":["supplier_packages",""],"query":[{"key":"page","value":"","description":"A page number within the paginated result set","type":"text","disabled":true},{"key":"supplier","value":"","description":"A supplier to filter on. Provide the supplier's ordering email","type":"text","disabled":true},{"key":"active","value":"","description":"Filter on active status (true/false)","type":"text","disabled":true},{"key":"orderable","value":"","description":"Filter on orderable status (true/false)","type":"text","disabled":true},{"key":"ordering","value":"","description":"A field to order the results on","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/417240/\",\n            \"id\": 417240,\n            \"stock_item\": {\n                \"id\": \"421169401830007\",\n                \"name\": \"Coca-Cola Pack (6 x 33 cl)\",\n                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421169401830007/\"\n            },\n            \"supplier\": {\n                \"id\": \"325220129010007\",\n                \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\",\n                \"company_name\": \"Happy Cow Products\",\n                \"first_name\": \"Matthew\",\n                \"last_name\": \"Smith\",\n                \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n                \"telephone\": \"+321234567890\",\n                \"mobile\": \"\",\n                \"email\": null,\n                \"website\": null,\n                \"facebook_url\": null,\n                \"twitter_url\": null,\n                \"instagram_url\": null,\n                \"linkedin_url\": null,\n                \"street\": \"Main Street\",\n                \"number\": \"12\",\n                \"postal_code\": \"2000\",\n                \"city\": \"Brussels\",\n                \"country\": null\n            },\n            \"average_price_per_package\": \"4.00000\",\n            \"average_price_per_standard_unit\": \"0.66667\",\n            \"active\": true,\n            \"orderable\": true,\n            \"portioning\": false\n        }\n    ]\n}"},{"id":"1c640d78-8c30-4655-92da-ea3926fe63d5","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/products/supplier_packages/?page=1&supplier=ordering@happycowproducts.com&active=true&orderable=true&ordering=name","host":["https://app.apicbase.com/api/v1/products"],"path":["supplier_packages",""],"query":[{"key":"page","value":"1","description":"A page number within the paginated result set"},{"key":"supplier","value":"ordering@happycowproducts.com","description":"A supplier to filter on. Provide the supplier's ordering email"},{"key":"active","value":"true","description":"Filter on active status (true/false)"},{"key":"orderable","value":"true","description":"Filter on orderable status (true/false)"},{"key":"ordering","value":"name","description":"A field to order the results on"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/417240/\",\n            \"id\": 417240,\n            \"stock_item\": {\n                \"id\": \"421169401830007\",\n                \"name\": \"Coca-Cola Pack (6 x 33 cl)\",\n                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421169401830007/\"\n            },\n            \"supplier\": {\n                \"id\": \"325220129010007\",\n                \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\",\n                \"company_name\": \"Happy Cow Products\",\n                \"first_name\": \"Matthew\",\n                \"last_name\": \"Smith\",\n                \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n                \"telephone\": \"+321234567890\",\n                \"mobile\": \"\",\n                \"email\": null,\n                \"website\": null,\n                \"facebook_url\": null,\n                \"twitter_url\": null,\n                \"instagram_url\": null,\n                \"linkedin_url\": null,\n                \"street\": \"Main Street\",\n                \"number\": \"12\",\n                \"postal_code\": \"2000\",\n                \"city\": \"Brussels\",\n                \"country\": null\n            },\n            \"average_price_per_package\": \"4.00000\",\n            \"average_price_per_standard_unit\": \"0.66667\",\n            \"active\": true,\n            \"orderable\": true,\n            \"portioning\": false\n        }\n    ]\n}"}],"_postman_id":"14dda7c5-df8d-4650-a169-af7db97222bc"},{"name":"Get supplier package details","id":"88605621-7207-4b1d-8825-d34957072c43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/supplier_packages/{{supplierPackageId}}/","description":"<p>Gets information about a specific supplier package.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_packages","{{supplierPackageId}}",""],"host":["https://app.apicbase.com/api/v1/products"],"query":[],"variable":[]}},"response":[{"id":"8f3a671d-4f39-4745-b725-b43a850f70e8","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/products/supplier_packages/{{supplierPackageId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/417240/\",\n    \"id\": \"417240\",\n    \"stock_item\": {\n        \"id\": \"421169401830007\",\n        \"name\": \"Coca-Cola Pack (6 x 33 cl)\",\n        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421169401830007/\"\n    },\n    \"supplier\": {\n        \"id\": \"325220129010007\",\n        \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\",\n        \"company_name\": \"Happy Cow Products\",\n        \"first_name\": \"Matthew\",\n        \"last_name\": \"Smith\",\n        \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n        \"telephone\": \"+321234567890\",\n        \"mobile\": \"\",\n        \"email\": null,\n        \"website\": null,\n        \"facebook_url\": null,\n        \"twitter_url\": null,\n        \"instagram_url\": null,\n        \"linkedin_url\": null,\n        \"street\": \"Main Street\",\n        \"number\": \"12\",\n        \"postal_code\": \"2000\",\n        \"city\": \"Brussels\",\n        \"country\": null\n    },\n    \"average_price_per_package\": \"4.00000\",\n    \"average_price_per_standard_unit\": \"0.66667\",\n    \"active\": true,\n    \"orderable\": true,\n    \"portioning\": false\n}"}],"_postman_id":"88605621-7207-4b1d-8825-d34957072c43"},{"name":"Get suppliers","id":"4eec15c4-9bd0-46aa-840d-483c041e1f1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/contacts/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":[""],"host":["https://app.apicbase.com/api/v1/contacts"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Filter on the company's name</p>\n","type":"text/plain"},"key":"company_or_full_name","value":""},{"disabled":true,"description":{"content":"<p>Filter on the company's contact/ordering email(s)</p>\n","type":"text/plain"},"key":"email","value":""},{"disabled":true,"description":{"content":"<p>Filter on the company's VAT number</p>\n","type":"text/plain"},"key":"vat_number","value":""},{"disabled":true,"description":{"content":"<p>A field to order the results on</p>\n","type":"text/plain"},"key":"ordering","value":""}],"variable":[]}},"response":[{"id":"66192a9d-a803-4ec3-ae14-6f4eebfc9574","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/contacts/","host":["https://app.apicbase.com/api/v1/contacts"],"path":[""],"query":[{"key":"page","value":"","description":"A page number within the paginated result set","type":"text","disabled":true},{"key":"company_or_full_name","value":"","description":"Filter on the company's name","type":"text","disabled":true},{"key":"email","value":"","description":"Filter on the company's contact/ordering email(s)","type":"text","disabled":true},{"key":"vat_number","value":"","description":"Filter on the company's VAT number","type":"text","disabled":true},{"key":"ordering","value":"","description":"A field to order the results on","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"325220129010007\",\n            \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\",\n            \"company_name\": \"Happy Cow Products\",\n            \"first_name\": \"Matthew\",\n            \"last_name\": \"Smith\",\n            \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n            \"telephone\": \"+321234567890\",\n            \"mobile\": \"\",\n            \"email\": null,\n            \"website\": null,\n            \"facebook_url\": null,\n            \"twitter_url\": null,\n            \"instagram_url\": null,\n            \"linkedin_url\": null,\n            \"street\": \"Main Street\",\n            \"number\": \"12\",\n            \"postal_code\": \"2000\",\n            \"city\": \"Brussels\",\n            \"country\": null\n        }\n    ]\n}"},{"id":"e8223e7a-d3fe-4ed4-b1a5-42c1fdfe023c","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/contacts/?page=1&company_or_full_name=Happy+Cow+Products&email=ordering@happycowproducts.com&vat_number=44100262692&ordering=name","host":["https://app.apicbase.com/api/v1/contacts"],"path":[""],"query":[{"key":"page","value":"1"},{"key":"company_or_full_name","value":"Happy+Cow+Products"},{"key":"email","value":"ordering@happycowproducts.com"},{"key":"vat_number","value":"44100262692"},{"key":"ordering","value":"name"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"325220129010007\",\n            \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\",\n            \"company_name\": \"Happy Cow Products\",\n            \"first_name\": \"Matthew\",\n            \"last_name\": \"Smith\",\n            \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n            \"telephone\": \"+321234567890\",\n            \"mobile\": \"\",\n            \"email\": null,\n            \"website\": null,\n            \"facebook_url\": null,\n            \"twitter_url\": null,\n            \"instagram_url\": null,\n            \"linkedin_url\": null,\n            \"street\": \"Main Street\",\n            \"number\": \"12\",\n            \"postal_code\": \"2000\",\n            \"city\": \"Brussels\",\n            \"country\": null\n        }\n    ]\n}"}],"_postman_id":"4eec15c4-9bd0-46aa-840d-483c041e1f1e"},{"name":"Get supplier details","id":"07ba5ac3-d50f-4ef9-98fe-659c189ae2cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/contacts/{{supplierId}}/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["{{supplierId}}",""],"host":["https://app.apicbase.com/api/v1/contacts"],"query":[],"variable":[]}},"response":[{"id":"1da2a83a-9db6-4d82-a5a8-bc5719a5380d","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/contacts/{{supplierId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"325220129010007\",\n    \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\",\n    \"company_name\": \"Happy Cow Products\",\n    \"first_name\": \"Matthew\",\n    \"last_name\": \"Smith\",\n    \"avatar\": \"https://production-apicvault-static.s3.amazonaws.com/apicbase/images/avatar.png\",\n    \"telephone\": \"+321234567890\",\n    \"mobile\": \"\",\n    \"email\": null,\n    \"website\": null,\n    \"facebook_url\": null,\n    \"twitter_url\": null,\n    \"instagram_url\": null,\n    \"linkedin_url\": null,\n    \"street\": \"Main Street\",\n    \"number\": \"12\",\n    \"postal_code\": \"2000\",\n    \"city\": \"Brussels\",\n    \"country\": null\n}"}],"_postman_id":"07ba5ac3-d50f-4ef9-98fe-659c189ae2cf"}],"id":"8334a8f0-afde-42d9-93e3-422045d45b3b","_postman_id":"8334a8f0-afde-42d9-93e3-422045d45b3b","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Inventory","item":[{"name":"Count events","item":[{"name":"Top-counts","item":[{"name":"Get top-counts","id":"254d8792-5840-4258-9804-9341280e0dd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/count_events/aggregated/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","count_events","aggregated",""],"host":["https://app.apicbase.com/api/v1/inventory"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set.</p>\n","type":"text/plain"},"key":"page","value":null},{"disabled":true,"description":{"content":"<p>Filter on in_progress status (true/false)</p>\n","type":"text/plain"},"key":"in_progress","value":""},{"disabled":true,"key":"created_date","value":""},{"disabled":true,"key":"created_date__gt","value":""},{"disabled":true,"key":"created_date__lt","value":""},{"disabled":true,"key":"actual_date","value":""},{"disabled":true,"key":"actual_date__gt","value":""},{"disabled":true,"key":"actual_date__lt","value":""},{"disabled":true,"key":"remarks","value":""},{"disabled":true,"key":"created_by","value":""},{"disabled":true,"key":"created_by__email","value":""},{"disabled":true,"key":"owned_by","value":""},{"disabled":true,"key":"owned_by__email","value":""},{"disabled":true,"key":"stock_value","value":""},{"disabled":true,"key":"stock_value__gt","value":""},{"disabled":true,"key":"stock_value__lt","value":""}],"variable":[]}},"response":[{"id":"687c1106-fafa-46ad-8bfa-e738c4250637","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/count_events/aggregated/","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","count_events","aggregated",""],"query":[{"key":"in_progress","value":"false","type":"text","disabled":true},{"key":"created_date","value":"2021-03-16","type":"text","disabled":true},{"key":"created_date__gt","value":"2021-03-15","type":"text","disabled":true},{"key":"created_date__lt","value":"2021-03-17","type":"text","disabled":true},{"key":"actual_date","value":"","type":"text","disabled":true},{"key":"actual_date__gt","value":"","type":"text","disabled":true},{"key":"actual_date__lt","value":"","type":"text","disabled":true},{"key":"remarks","value":"","type":"text","disabled":true},{"key":"created_by","value":"136000910080000","type":"text","disabled":true},{"key":"created_by__email","value":"john.doe@apicbase.com","type":"text","disabled":true},{"key":"owned_by","value":"136000910080000","type":"text","disabled":true},{"key":"owned_by__email","value":"john.doe@apicbase.com","type":"text","disabled":true},{"key":"stock_value","value":"-53.46","type":"text","disabled":true},{"key":"stock_value__gt","value":"-100","type":"text","disabled":true},{"key":"stock_value__lt","value":"0","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"422471249150002\",\n            \"in_progress\": true,\n            \"created\": \"2020-06-17T14:02:43.095483+01:00\",\n            \"finished\": null,\n            \"created_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"owned_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"stock_value\": null,\n            \"counted_items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"521093553960007\",\n                        \"name\": \"Apples Package (10 kg)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/521093553960007/\"\n                    },\n                    \"quantity\": \"12.0000000000\",\n                    \"stock_value\": \"0.00\",\n                    \"stock_item_updates\": []\n                }\n            ]\n        },\n        {\n            \"id\": \"322471629160006\",\n            \"in_progress\": false,\n            \"created\": \"2020-06-17T14:01:55.450281+01:00\",\n            \"finished\": \"2020-06-17T14:02:39.974550+01:00\",\n            \"created_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"owned_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"stock_value\": \"-6.00\",\n            \"counted_items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"621983616290005\",\n                        \"name\": \"Apples Package (22 kg)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/621983616290005/\"\n                    },\n                    \"quantity\": \"10.0000000000\",\n                    \"stock_value\": \"-26.00\",\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"621983616290005\",\n                                \"name\": \"Apples Package (22 kg)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/621983616290005/\"\n                            },\n                            \"original_quantity\": \"-13.00\",\n                            \"original_unit\": \"Package (22 kg)\",\n                            \"quantity\": \"-13\",\n                            \"stock_value\": \"-26.00\"\n                        }\n                    ]\n                },\n                {\n                    \"stock_item\": {\n                        \"id\": \"421993669070005\",\n                        \"name\": \"Basmani Rice Recipe Z Pack (9 kg)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421993669070005/\"\n                    },\n                    \"quantity\": \"10.0000000000\",\n                    \"stock_value\": \"20.00\",\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421993669070005\",\n                                \"name\": \"Basmani Rice Recipe Z Pack (9 kg)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421993669070005/\"\n                            },\n                            \"original_quantity\": \"10.00\",\n                            \"original_unit\": \"Pack (9 kg)\",\n                            \"quantity\": \"10\",\n                            \"stock_value\": \"20.00\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}"},{"id":"430c0b04-1d00-4a54-9319-b24fdd17cc40","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/229100415400002/count_events/aggregated/?in_progress=false&created_date=2020-06-17&created_by=236300957450001&owned_by=236300957450001&stock_value__gt=5","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","229100415400002","count_events","aggregated",""],"query":[{"key":"in_progress","value":"false"},{"key":"created_date","value":"2020-06-17"},{"key":"created_by","value":"236300957450001"},{"key":"owned_by","value":"236300957450001"},{"key":"stock_value__gt","value":"5"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"322471629160006\",\n            \"in_progress\": false,\n            \"created\": \"2020-06-17T14:01:55.450281+01:00\",\n            \"finished\": \"2020-06-17T14:02:39.974550+01:00\",\n            \"created_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"owned_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"stock_value\": \"-6.00\",\n            \"counted_items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"621983616290005\",\n                        \"name\": \"Apples Package (22 kg)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/621983616290005/\"\n                    },\n                    \"quantity\": \"10.0000000000\",\n                    \"stock_value\": \"-26.00\",\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"621983616290005\",\n                                \"name\": \"Apples Package (22 kg)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/621983616290005/\"\n                            },\n                            \"original_quantity\": \"-13.00\",\n                            \"original_unit\": \"Package (22 kg)\",\n                            \"quantity\": \"-13\",\n                            \"stock_value\": \"-26.00\"\n                        }\n                    ]\n                },\n                {\n                    \"stock_item\": {\n                        \"id\": \"421993669070005\",\n                        \"name\": \"Basmani Rice Recipe Z Pack (9 kg)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421993669070005/\"\n                    },\n                    \"quantity\": \"10.0000000000\",\n                    \"stock_value\": \"20.00\",\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421993669070005\",\n                                \"name\": \"Basmani Rice Recipe Z Pack (9 kg)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421993669070005/\"\n                            },\n                            \"original_quantity\": \"10.00\",\n                            \"original_unit\": \"Pack (9 kg)\",\n                            \"quantity\": \"10\",\n                            \"stock_value\": \"20.00\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"254d8792-5840-4258-9804-9341280e0dd5"},{"name":"Get top-count details","id":"ac97b126-8a6e-4410-814d-5031057a2208","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/","description":"<p>Gets details for a single top-count and a list of its associated sub-counts.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"569b1980-c776-40b9-8316-2985f49e964f","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371042760009/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"322371791760003\",\n    \"owned_by\":{\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"created_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"finished_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"created\": \"2021-03-29T12:22:58\",\n    \"finished\": null,\n    \"stock_value\": null,\n    \"remarks\": null,\n    \"in_progress\": true,\n    \"counted_items_quantity\": 2,\n    \"partial_counts\": [\n        {\n            \"id\": \"622371402790002\",\n            \"owned_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            }\n            \"created_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            },\n            \"finished_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            },\n            \"created\": \"2021-03-29T12:22:58\",\n            \"finished\": null,\n            \"stock_value\": null,\n            \"remarks\": null,\n            \"in_progress\": true,\n            \"description\": \"Sub-count 1\",\n            \"counted_items_quantity\": 2\n        }\n    ]\n}"}],"_postman_id":"ac97b126-8a6e-4410-814d-5031057a2208"},{"name":"Get stock items in a top-count","id":"b1c0701e-499c-4074-b49e-f2b022f15fd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/stocks/","description":"<p>Gets a list of counted stock items in a given top-count. The shown numbers are an aggregation of the sub-counts that make up the given top-count.</p>\n<p>When querying stock items in a closed count, the <code>inventory_log_entries</code> list is populated with inventory variance numbers. <code>inventory_log_entries</code> will be an empty list when querying open counts.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","stocks",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"cf0c33fc-49af-49fe-b9d4-ebaa65213b1c","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371042760009/stocks/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"stock_item\": {\n            \"id\": \"521093553960007\",\n            \"name\": \"Apples Package (10 kg)\",\n            \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/521093553960007/\"\n        },\n        \"quantity\": \"1.0000000000\",\n        \"inventory_log_entries\": [\n            {\n                \"theoretical_quantity\": \"0.0000000000\",\n                \"quantity\": \"1.0000000000\",\n                \"variance_quantity\": \"1.0000000000\",\n                \"theoretical_value\": \"0.0000000000\",\n                \"counted_value\": \"27.9999600000\",\n                \"variance_value\": \"27.9999600000\"\n            }\n        ]\n    },\n    {\n        \"stock_item\": {\n            \"id\": \"321993625020001\",\n            \"name\": \"Basmani Rice Recipe Z Pack (1 kg)\",\n            \"url\": \"http://app.apicbase.com/api/v1/products/stock_items/321993625020001/\"\n        },\n        \"quantity\": \"6.0000000000\",\n        \"inventory_log_entries\": [\n            {\n                \"theoretical_quantity\": \"1.0000000000\",\n                \"quantity\": \"6.0000000000\",\n                \"variance_quantity\": \"5.0000000000\",\n                \"theoretical_value\": \"2.5000000000\",\n                \"counted_value\": \"15.0000000000\",\n                \"variance_value\": \"12.5000000000\"\n            }\n        ]\n    }\n]"}],"_postman_id":"b1c0701e-499c-4074-b49e-f2b022f15fd2"},{"name":"Start top-count","id":"2d30a59c-0e8a-4f23-bb09-6125816c9d38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/","description":"<p>Starts a new top-count. It does not start the associated sub-count; you must do that yourself via the start partial count endpoints once the top-count is open.</p>\n<p>Only one top-count can be in progress in a given outlet at the same time. You will get an error response if there is already a top-count in progress in the given outlet.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"6a381574-59b2-4b69-b628-06c4eeff7f7c","name":"Success response","originalRequest":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"instance\": {\n        \"id\": \"722371512760004\",\n        \"owned_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"finished_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created\": \"2021-03-29T12:31:58\",\n        \"finished\": null,\n        \"stock_value\": null,\n        \"remarks\": null,\n        \"in_progress\": true\n    }\n}"},{"id":"49a7f95e-b46c-4ef3-bc61-b9396477c2eb","name":"Fail response","originalRequest":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"message\": \"Already exists\"\n}"}],"_postman_id":"2d30a59c-0e8a-4f23-bb09-6125816c9d38"},{"name":"Cancel top-count","id":"dc56d039-92ab-4a1f-aeb7-d9a674283f97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/","description":"<p>Cancels and deletes a top-count and all of its sub-counts. Can only delete a top-count that is still in progress. This operation cannot be undone.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"ec58db50-f610-4764-9462-fc55954f185e","name":"Cancel top count","originalRequest":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371042760009/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"dc56d039-92ab-4a1f-aeb7-d9a674283f97"},{"name":"Submit top-count","id":"98fbdfc2-db4b-45df-9fe7-ac0a05a9e328","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/submit/","description":"<p>Closes and submits a top-count and applies changes in inventory. Any associated sub-counts that are still open will also be closed.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","submit",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"7dd223de-486c-4d31-9d52-9deacefe5759","name":"Success response","originalRequest":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371042760009/submit/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"instance\": {\n        \"id\": \"922371522770008\",\n        \"owned_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"finished_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created\": \"2021-03-29T12:34:36\",\n        \"finished\": \"2021-03-29T12:35:23\",\n        \"stock_value\": \"37.80\",\n        \"remarks\": null,\n        \"in_progress\": false,\n        \"counted_items_quantity\": 2,\n        \"partial_counts\": [\n            {\n                \"id\": \"222371532710009\",\n                \"owned_by\": {\n                    \"id\": \"236300957450001\",\n                    \"username\": \"john.doe@apicbase.com\",\n                    \"first_name\": \"John\",\n                    \"last_name\": \"Doe\",\n                    \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n                },\n                \"created_by\": {\n                    \"id\": \"236300957450001\",\n                    \"username\": \"john.doe@apicbase.com\",\n                    \"first_name\": \"John\",\n                    \"last_name\": \"Doe\",\n                    \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n                },\n                \"finished_by\": {\n                    \"id\": \"236300957450001\",\n                    \"username\": \"john.doe@apicbase.com\",\n                    \"first_name\": \"John\",\n                    \"last_name\": \"Doe\",\n                    \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n                },\n                \"created\": \"2021-03-29T12:34:36\",\n                \"finished\": \"2021-03-29T12:35:23\",\n                \"stock_value\": null,\n                \"remarks\": null,\n                \"in_progress\": false,\n                \"description\": \"Sub-count 1\",\n                \"counted_items_quantity\": 2\n            }\n        ]\n    }\n}"}],"_postman_id":"98fbdfc2-db4b-45df-9fe7-ac0a05a9e328"}],"id":"762720b8-d7a8-4cf4-9467-a8808a21f6bc","_postman_id":"762720b8-d7a8-4cf4-9467-a8808a21f6bc","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Sub-counts","item":[{"name":"Start sub-count","id":"9c74ff65-fe42-420e-a830-a0c89856f7a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/partials/","description":"<p>Starts a sub-count within a given top-count.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>description (name)</td>\n<td>N</td>\n<td>Sub-count N</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","partials",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"fa5b0730-2f89-412a-96de-4e965d044257","name":"Success response","originalRequest":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"instance\": {\n        \"id\": \"922371982750002\",\n        \"owned_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"finished_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created\": \"2021-03-29T12:58:08\",\n        \"finished\": null,\n        \"stock_value\": null,\n        \"remarks\": null,\n        \"in_progress\": true,\n        \"description\": \"Sub-count 1\",\n        \"counted_items_quantity\": 0\n    }\n}"}],"_postman_id":"9c74ff65-fe42-420e-a830-a0c89856f7a4"},{"name":"Get sub-count details","id":"3fa7582e-9639-4648-9d40-b41ecdbeac72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/partials/{{subCountId}}/","description":"<p>Gets information about a specific sub-count, as well as its counted stock items.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","partials","{{subCountId}}",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"ba129af4-6946-4bec-a952-e4d4fdcfdf5d","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"222371292790002\",\n    \"owned_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"created_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"finished_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"created\": \"2021-03-29T12:59:11\",\n    \"finished\": null,\n    \"stock_value\": null,\n    \"remarks\": null,\n    \"in_progress\": true,\n    \"description\": \"Sub-count 3\",\n    \"counted_items_quantity\": 2,\n    \"stock_count\": [\n        {\n            \"stock_item\": {\n                \"id\": \"421193564060002\",\n                \"name\": \"Carrot Box (5 kg)\",\n                \"url\": \"http://app.apicbase.com/api/v1/products/stock_items/421193564060002/\"\n            },\n            \"current\": 1.0,\n            \"total\": 1.0\n        },\n        {\n            \"stock_item\": {\n                \"id\": \"521093553960007\",\n                \"name\": \"Apples Package (10 kg)\",\n                \"url\": \"http://app.apicbase.com/api/v1/products/stock_items/521093553960007/\"\n            },\n            \"current\": 8.0,\n            \"total\": 8.0\n        }\n    ]\n}"}],"_postman_id":"3fa7582e-9639-4648-9d40-b41ecdbeac72"},{"name":"Claim sub-count","id":"265b5931-5a03-4770-aae7-5485d47e4e12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/partials/{{subCountId}}/claim/","description":"<p>Claims a sub-count from any other users that may be working on it. This action must be performed before manipulating the sub-count.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","partials","{{subCountId}}","claim",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"56ae2c92-4b4d-4ec6-bb51-bcbe4e8ec38b","name":"Success response","originalRequest":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/claim/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"instance\": {\n        \"id\": \"222371292790002\",\n        \"owned_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"finished_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created\": \"2021-03-29T12:59:11\",\n        \"finished\": null,\n        \"stock_value\": null,\n        \"remarks\": null,\n        \"in_progress\": true,\n        \"description\": \"Sub-count 3\",\n        \"counted_items_quantity\": 2\n    }\n}"}],"_postman_id":"265b5931-5a03-4770-aae7-5485d47e4e12"},{"name":"Delete all sub-counts in a top-count","id":"6a40820b-c7ba-4501-b5c8-c83d1d75c5d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/reset/","description":"<p>Deletes all sub-counts within a top-count. This action cannot be undone.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","reset",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"ff309b9f-148a-46c8-a463-65d2b940bd98","name":"Success response","originalRequest":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/reset/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"instance\": {\n        \"id\": \"822371262730002\",\n        \"owned_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"finished_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created\": \"2021-03-29T12:55:12\",\n        \"finished\": null,\n        \"stock_value\": null,\n        \"remarks\": null,\n        \"in_progress\": true,\n        \"counted_items_quantity\": 0,\n        \"partial_counts\": []\n    }\n}"}],"_postman_id":"6a40820b-c7ba-4501-b5c8-c83d1d75c5d5"},{"name":"Update a single stock item's counted quantity in a sub-count","id":"56a3ed70-e9d7-4098-ae18-21de2234844d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"stock_item\": \"521093553960007\",\n\t\"quantity\": 2.5\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{countId}}/partials/{{subCountId}}/set_single_item/","description":"<p>Counts a single stock item within a sub-count. Setting <code>quantity</code> to <code>null</code> will remove the stock item from the given sub-count.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>stock_item</td>\n<td>string</td>\n<td>ID of stock item</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>float or null</td>\n<td>counted quantity</td>\n<td>Y</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{countId}}","partials","{{subCountId}}","set_single_item",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"8503e544-ea09-4860-8048-c6b5f59d1108","name":"Success response","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"stock_item\": \"521093553960007\",\n\t\"quantity\": 2.5\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/set_single_item/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"stock_item\": {\n            \"id\": \"521093553960007\",\n            \"name\": \"Apples Package (10 kg)\",\n            \"url\": \"https:/app.apicbase.com/api/v1/products/stock_items/521093553960007/\"\n        },\n        \"current\": 2.5,\n        \"total\": 3\n    }\n}"},{"id":"2f16e74d-c348-4d54-bcad-9f8bf2d5945a","name":"Success response (delete)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"stock_item\": \"521093553960007\",\n\t\"quantity\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/set_single_item/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"stock_item\": {\n            \"id\": \"521093553960007\",\n            \"name\": \"Apples Package (10 kg)\",\n            \"url\": \"https://app.apicbase.comapi/v1/products/stock_items/521093553960007/\"\n        },\n        \"current\": null,\n        \"total\": null\n    }\n}"}],"_postman_id":"56a3ed70-e9d7-4098-ae18-21de2234844d"},{"name":"Delete all counted stock items within a sub-count","id":"c33a0acd-707e-4ccb-a4f9-85c455c6f6b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/partials/{{partialCountId}}/reset/","description":"<p>Removes all counted quantities from a given sub-count. This action cannot be undone.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","partials","{{partialCountId}}","reset",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"524a9358-1a9e-41d8-9309-fc72b3c97a05","name":"Success response","originalRequest":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/reset/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"        {\n    \"status\": \"success\",\n    \"instance\": {\n        \"id\": \"222371292790002\",\n        \"owned_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"finished_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created\": \"2021-03-29T12:59:11\",\n        \"finished\": null,\n        \"stock_value\": null,\n        \"remarks\": null,\n        \"in_progress\": true,\n        \"description\": \"Sub-count 3\",\n        \"counted_items_quantity\": 0\n    }\n}"}],"_postman_id":"c33a0acd-707e-4ccb-a4f9-85c455c6f6b1"},{"name":"Update state of all counted stock items in a sub-count","id":"ec93af99-3f07-42a4-93e4-ea467dfe3a68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/partials/{{partialCountId}}/set_items/","description":"<p>This endpoint is used to upload the entirety of a sub-count's counted quantities. The sub-count will take on the state determined by the payload. Previously counted quantities will be overwritten, and those not included in the payload will be deleted.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>stock_item</td>\n<td>string</td>\n<td>Id of stock item</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>float or null</td>\n<td>counted quantity</td>\n<td>Y</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","partials","{{partialCountId}}","set_items",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"12b8d66c-c073-4962-a8d3-23c8277b35b7","name":"Success response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"stock_item\": \"621093523900001\",\n        \"quantity\": 0\n    },\n    {\n        \"stock_item\": \"821893013920005\",\n        \"quantity\": null\n    },{\n        \"stock_item\": \"421193564060002\",\n        \"quantity\": 3\n    },{\n        \"stock_item\": \"521093553960007\",\n        \"quantity\": 5\n    }\n]\n","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/set_items/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"stock_items_quantities\": [\n        {\n            \"stock_item\": {\n                \"id\": \"521093553960007\",\n                \"name\": \"Apples Package (10 kg)\",\n                \"url\": \"https://app.apicbase.comapi/v1/products/stock_items/521093553960007/\"\n            },\n            \"current\": 5,\n            \"total\": 5\n        },\n        {\n            \"stock_item\": {\n                \"id\": \"621093523900001\",\n                \"name\": \"Sunflower Oil Bottle (1 l)\",\n                \"url\": \"https://app.apicbase.comapi/v1/products/stock_items/621093523900001/\"\n            },\n            \"current\": 0,\n            \"total\": 0\n        },\n        {\n            \"stock_item\": {\n                \"id\": \"421193564060002\",\n                \"name\": \"Carrot Box (5 kg)\",\n                \"url\": \"https://app.apicbase.comapi/v1/products/stock_items/421193564060002/\"\n            },\n            \"current\": 3,\n            \"total\": 3\n        }\n    ]\n}"}],"_postman_id":"ec93af99-3f07-42a4-93e4-ea467dfe3a68"},{"name":"Submit sub-count","id":"5cc741e7-740e-4a98-ba26-132f3ee7fa69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/partials/{{subCountId}}/submit/","description":"<p>Closes and submits a top-count. Does not apply changes to inventory (only when the top-count is closed are the changes final). After a sub-count is closed, it must be reopened in order to update its counted quantities.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","partials","{{subCountId}}","submit",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"19513016-d8f7-4f6d-a605-b16cbd93d42c","name":"Success response","originalRequest":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/submit/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"stock_item\": {\n            \"id\": \"521093553960007\",\n            \"name\": \"Apples Package (10 kg)\",\n            \"url\": \"https:/app.apicbase.com/api/v1/products/stock_items/521093553960007/\"\n        },\n        \"current\": 2.5,\n        \"total\": 3\n    }\n}{\n    \"status\": \"success\",\n    \"instance\": {\n        \"id\": \"222371292790002\",\n        \"owned_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"finished_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created\": \"2021-03-29T12:59:11\",\n        \"finished\": \"2021-03-30T11:36:23\",\n        \"stock_value\": null,\n        \"remarks\": null,\n        \"in_progress\": false,\n        \"description\": \"Sub-count 3\",\n        \"counted_items_quantity\": 3\n    }\n}"}],"_postman_id":"5cc741e7-740e-4a98-ba26-132f3ee7fa69"},{"name":"Reopen a submitted sub-count","id":"423d18a4-f809-44c1-bbaf-d4f5c7266bf6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/partials/{{subCountId}}/reopen/","description":"<p>Reopens a closed sub-count. Counted quantities can be freely modified after the sub-count is reopened. Can only reopen sub-counts belonging to an open top-count.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","partials","{{subCountId}}","reopen",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"385f33b1-13ab-4c91-a6e4-a137a3097f12","name":"Success response","originalRequest":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/reopen/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"instance\": {\n        \"id\": \"222371292790002\",\n        \"owned_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"finished_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created\": \"2021-03-29T12:59:11\",\n        \"finished\": null,\n        \"stock_value\": null,\n        \"remarks\": null,\n        \"in_progress\": true,\n        \"description\": \"Sub-count 3\",\n        \"counted_items_quantity\": 3\n    }\n}"}],"_postman_id":"423d18a4-f809-44c1-bbaf-d4f5c7266bf6"},{"name":"Cancel sub-count","id":"27f927e9-a79e-4420-8888-653779c36e3d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/partials/{{subCountId}}/","description":"<p>Cancels and deletes a sub-count an all associated counted quantities. This operation cannot be undone.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","partials","{{subCountId}}",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"9db26889-d2fd-4384-be3d-e5d0f3e9a72c","name":"Success response","originalRequest":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\"\n}"}],"_postman_id":"27f927e9-a79e-4420-8888-653779c36e3d"},{"name":"Update sub-count's description","id":"0f29c62c-8a61-49a2-aec7-2336c659b75e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1//inventory/outlets/{{outletId}}/count_events/{{topCountId}}/partials/{{subCountId}}/update_description/","description":"<p>Updates the description (name) of a sub-count.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>new value</td>\n<td>Y</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["inventory","outlets","{{outletId}}","count_events","{{topCountId}}","partials","{{subCountId}}","update_description",""],"host":["https://app.apicbase.com/api/v1/"],"query":[],"variable":[]}},"response":[{"id":"0b85c538-b44a-4513-8624-041763ca915a","name":"Update partail's count description","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"description\": \"basement\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1//inventory/outlets/329100649120004/count_events/822371262730002/partials/222371292790002/update_description/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"instance\": {\n        \"id\": \"222371292790002\",\n        \"owned_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"finished_by\": {\n            \"id\": \"236300957450001\",\n            \"username\": \"john.doe@apicbase.com\",\n            \"first_name\": \"John\",\n            \"last_name\": \"Doe\",\n            \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n        },\n        \"created\": \"2021-03-29T12:59:11\",\n        \"finished\": null,\n        \"stock_value\": null,\n        \"remarks\": null,\n        \"in_progress\": true,\n        \"description\": \"basement\",\n        \"counted_items_quantity\": 3\n    }\n}"}],"_postman_id":"0f29c62c-8a61-49a2-aec7-2336c659b75e"}],"id":"427b68cd-fb28-44f5-bdad-e038572498c3","description":"<p>These endpoints are used to manipulate sub-counts within a top-count. The ID of the top-count must be specified in every URL, and the top-count must not have been closed or cancelled.</p>\n","_postman_id":"427b68cd-fb28-44f5-bdad-e038572498c3","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}}],"id":"0b8672ca-86ac-4f1b-aaf8-6711564b101a","description":"<p>This collection includes endpoints through which you you can create and manipulate count events.</p>\n<p>Pay close attention to the distinction between a top-count and a sub-count: a top-count is the outlet-wide inventory event, itself composed by an aggregation of sub-counts. Different endpoints are made available to work within each level.</p>\n<p>Get familiarised with how counting your inventory works in Apicbase by consulting <a href=\"https://support.apicbase.com/help/counting-your-inventory\">the relevant support article</a>.</p>\n","_postman_id":"0b8672ca-86ac-4f1b-aaf8-6711564b101a","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Waste events","item":[{"name":"Get waste events","id":"0eff4011-54e7-43f5-adc6-161b4ff1ba7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/waste_events/","description":"<p>Get waste events that happened in a given Outlet.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","waste_events",""],"host":["https://app.apicbase.com/api/v1/inventory"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set.</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Filter on in_progress status (true/false)</p>\n","type":"text/plain"},"key":"in_progress","value":""},{"disabled":true,"description":{"content":"<p>Filter on wastes created on this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"created_date","value":""},{"disabled":true,"description":{"content":"<p>Filter on wastes created later than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"created_date__gt","value":""},{"disabled":true,"description":{"content":"<p>Filter on wastes created earlier than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"created_date__lt","value":""},{"disabled":true,"description":{"content":"<p>Filter on events actually happened on this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"actual_date","value":""},{"disabled":true,"description":{"content":"<p>Filter on events actually happened later that this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"actual_date__gt","value":""},{"disabled":true,"description":{"content":"<p>Filter on events actually happened earlier than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"actual_date__lt","value":""},{"disabled":true,"description":{"content":"<p>The ID of the user, who created the waste</p>\n","type":"text/plain"},"key":"created_by","value":""},{"disabled":true,"description":{"content":"<p>The email of the user, who created the waste</p>\n","type":"text/plain"},"key":"created_by__email","value":""},{"disabled":true,"description":{"content":"<p>The ID of the user, who currently can edit the waste</p>\n","type":"text/plain"},"key":"owned_by","value":""},{"disabled":true,"description":{"content":"<p>The email of the user, who currently can edit the waste</p>\n","type":"text/plain"},"key":"owned_by__email","value":""},{"disabled":true,"description":{"content":"<p>Filter by amount of waste's stock items' cost</p>\n","type":"text/plain"},"key":"stock_value","value":""},{"disabled":true,"description":{"content":"<p>Filter by amount that greater then waste's stock items' cost</p>\n","type":"text/plain"},"key":"stock_value__gt","value":""},{"disabled":true,"description":{"content":"<p>Filter by amount that less then waste's stock items' cost</p>\n","type":"text/plain"},"key":"stock_value__lt","value":""}],"variable":[]}},"response":[{"id":"e979f744-6b4f-4455-b12f-8f288576118c","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/waste_events/?in_progress=&created_date=&created_date__gt=&created_date__lt=&actual_date&actual_date__gt&actual_date__lt&remarks&created_by=&created_by__email=&owned_by=&owned_by__email=&stock_value=&stock_value__gt=&stock_value__lt=","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","waste_events",""],"query":[{"key":"in_progress","value":"","description":"Filter on status of event"},{"key":"created_date","value":"","description":"Filter by event creation date"},{"key":"created_date__gt","value":"","description":"Filter by event creation date"},{"key":"created_date__lt","value":"","description":"Filter by event creation date"},{"key":"actual_date","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__gt","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__lt","value":null,"description":"Filter by event actual date that happened"},{"key":"remarks","value":null,"description":"Filter by event remarks"},{"key":"created_by","value":"","description":"Filter by user id, which created the event"},{"key":"created_by__email","value":"","description":"Filter by user email, which created the event"},{"key":"owned_by","value":"","description":"Filter by user id, which owns the event"},{"key":"owned_by__email","value":"","description":"Filter by user email, which owns the event"},{"key":"stock_value","value":"","description":"Filter by event stock value"},{"key":"stock_value__gt","value":"","description":"Filter by event stock value"},{"key":"stock_value__lt","value":"","description":"Filter by event stock value"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"922162621490001\",\n            \"in_progress\": false,\n            \"created\": \"2021-03-16T19:01:52.305065+01:00\",\n            \"finished\": \"2021-03-16T19:02:11.523836+01:00\",\n            \"actual_date\": null,\n            \"remarks\": \"\",\n            \"created_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"owned_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"stock_value\": \"-53.46\",\n            \"items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"821836538280009\",\n                        \"name\": \"Milk Bottle (200 g)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/821836538280009/\"\n                    },\n                    \"recipe\": null,\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"-10.00\",\n                    \"remarks\": \"\",\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"821836538280009\",\n                                \"name\": \"Milk cream Bottle (200 g)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/821836538280009/\"\n                            },\n                            \"original_quantity\": \"-10.00\",\n                            \"original_unit\": \"Bottle (200 g)\",\n                            \"quantity\": \"-10\",\n                            \"stock_value\": \"-10.00\"\n                        }\n                    ],\n                    \"waste_category\": \"Date expired\",\n                    \"waste_category_value\": \"DATE_EXPIRED\"\n                },\n                {\n                    \"recipe\": {\n                        \"id\": \"449211344290008\",\n                        \"name\": \"Açai Cremoso\",\n                        \"url\": \"https://app.apicbase.com/api/v1/recipes/449211344290008/\"\n                    },\n                    \"stock_item\": null,\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"-43.46\",\n                    \"remarks\": \"\",\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"721836208200002\",\n                                \"name\": \"Açai Bottle (1 l)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721836208200002/\"\n                            },\n                            \"original_quantity\": \"-2551.02\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-2.55\",\n                            \"stock_value\": \"-12.76\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421836028240009\",\n                                \"name\": \"Condensed Milk Bottle (395 g)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836028240009/\"\n                            },\n                            \"original_quantity\": \"-2078.95\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-5.26\",\n                            \"stock_value\": \"-7.89\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"821836538280009\",\n                                \"name\": \"Milk cream Bottle (200 g)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/821836538280009/\"\n                            },\n                            \"original_quantity\": \"-1052.63\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-5.26\",\n                            \"stock_value\": \"-5.26\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"221836318250006\",\n                                \"name\": \"Cereal Pack (120 g)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/221836318250006/\"\n                            },\n                            \"original_quantity\": \"-421.05\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-3.51\",\n                            \"stock_value\": \"-17.54\"\n                        }\n                    ],\n                    \"waste_category\": \"Returned by customer\",\n                    \"waste_category_value\": \"RETURNED_BY_CUSTOMER\"\n                }\n            ]\n        }\n    ]\n}"},{"id":"7adf288d-cb03-45ae-b7f6-200011ba6c06","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/waste_events/?in_progress=false&created_date=2021-03-16&created_date__gt=2021-03-15&created_date__lt=2021-03-17&actual_date&actual_date__gt&actual_date__lt&remarks&created_by=136000910080000&created_by__email=john.doe@apicbase.com&owned_by=136000910080000&owned_by__email=john.doe@apicbase.com&stock_value=-53.46&stock_value__gt=-100&stock_value__lt=0","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","waste_events",""],"query":[{"key":"in_progress","value":"false","description":"Filter on status of event"},{"key":"created_date","value":"2021-03-16","description":"Filter by event creation date"},{"key":"created_date__gt","value":"2021-03-15","description":"Filter by event creation date"},{"key":"created_date__lt","value":"2021-03-17","description":"Filter by event creation date"},{"key":"actual_date","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__gt","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__lt","value":null,"description":"Filter by event actual date that happened"},{"key":"remarks","value":null,"description":"Filter by event remarks"},{"key":"created_by","value":"136000910080000","description":"Filter by user id, which created the event"},{"key":"created_by__email","value":"john.doe@apicbase.com","description":"Filter by user email, which created the event"},{"key":"owned_by","value":"136000910080000","description":"Filter by user id, which owns the event"},{"key":"owned_by__email","value":"john.doe@apicbase.com","description":"Filter by user email, which owns the event"},{"key":"stock_value","value":"-53.46","description":"Filter by event stock value"},{"key":"stock_value__gt","value":"-100","description":"Filter by event stock value"},{"key":"stock_value__lt","value":"0","description":"Filter by event stock value"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"922162621490001\",\n            \"in_progress\": false,\n            \"created\": \"2021-03-16T19:01:52.305065+01:00\",\n            \"finished\": \"2021-03-16T19:02:11.523836+01:00\",\n            \"actual_date\": null,\n            \"remarks\": \"\",\n            \"created_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"owned_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"stock_value\": \"-53.46\",\n            \"items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"821836538280009\",\n                        \"name\": \"Milk Bottle (200 g)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/821836538280009/\"\n                    },\n                    \"recipe\": null,\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"-10.00\",\n                    \"remarks\": \"\",\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"821836538280009\",\n                                \"name\": \"Milk cream Bottle (200 g)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/821836538280009/\"\n                            },\n                            \"original_quantity\": \"-10.00\",\n                            \"original_unit\": \"Bottle (200 g)\",\n                            \"quantity\": \"-10\",\n                            \"stock_value\": \"-10.00\"\n                        }\n                    ],\n                    \"waste_category\": \"Date expired\",\n                    \"waste_category_value\": \"DATE_EXPIRED\"\n                },\n                {\n                    \"stock_item\": null,\n                    \"recipe\": {\n                        \"id\": \"449211344290008\",\n                        \"name\": \"Açai Cremoso\",\n                        \"url\": \"https://app.apicbase.com/api/v1/recipes/449211344290008/\"\n                    },\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"-43.46\",\n                    \"remarks\": \"\",\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"721836208200002\",\n                                \"name\": \"Açai Bottle (1 l)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721836208200002/\"\n                            },\n                            \"original_quantity\": \"-2551.02\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-2.55\",\n                            \"stock_value\": \"-12.76\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421836028240009\",\n                                \"name\": \"Condensed Milk Bottle (395 g)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836028240009/\"\n                            },\n                            \"original_quantity\": \"-2078.95\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-5.26\",\n                            \"stock_value\": \"-7.89\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"821836538280009\",\n                                \"name\": \"Milk cream Bottle (200 g)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/821836538280009/\"\n                            },\n                            \"original_quantity\": \"-1052.63\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-5.26\",\n                            \"stock_value\": \"-5.26\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"221836318250006\",\n                                \"name\": \"Cereal Pack (120 g)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/221836318250006/\"\n                            },\n                            \"original_quantity\": \"-421.05\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-3.51\",\n                            \"stock_value\": \"-17.54\"\n                        }\n                    ],\n                    \"waste_category\": \"Returned by customer\",\n                    \"waste_category_value\": \"RETURNED_BY_CUSTOMER\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"0eff4011-54e7-43f5-adc6-161b4ff1ba7d"},{"name":"Get waste event detail","id":"cdf89a3a-b604-48e7-8906-55de8e2d5519","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/","description":"<p>Gets details for a single waste event</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"df1c3032-1e3e-40be-84dc-bf0446a5c3d2","name":"Get waste event detail","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/count_events/622471703120004/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"922471313120009\",\n    \"in_progress\": true,\n    \"created\": \"2021-11-29T10:41:46.818064+01:00\",\n    \"finished\": null,\n    \"actual_date\": null,\n    \"remarks\": null,\n    \"created_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"owned_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"stock_value\": null,\n    \"items\": [\n        {\n            \"stock_item\": null,\n            \"recipe\": {\n                \"id\": \"949960289010009\",\n                \"name\": \"My Waffles\",\n                \"url\": \"https://app.apicbase.com/api/v1/recipes/949960289010009/\"\n            },\n            \"quantity\": \"5\",\n            \"stock_value\": \"5.00\",\n            \"remarks\": \"Hmm\",\n            \"stock_item_updates\": [],\n            \"waste_category\": \"Returned by customer\",\n            \"waste_category_value\": \"RETURNED_BY_CUSTOMER\",\n            \"id\": \"123431829580008\"\n        },\n        {\n            \"stock_item\": {\n                \"id\": \"121993979080005\",\n                \"name\": \"Basmani Rice Recipe Z Pack (10 kg)\",\n                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121993979080005/\"\n            },\n            \"recipe\": null,\n            \"quantity\": \"4\",\n            \"stock_value\": \"0.00\",\n            \"remarks\": null,\n            \"stock_item_updates\": [],\n            \"waste_category\": \"Kitchen error\",\n            \"waste_category_value\": \"KITCHEN_ERROR\",\n            \"id\": \"223431739540002\"\n        },\n        {\n            \"stock_item\": {\n                \"id\": \"121993979080005\",\n                \"name\": \"Basmani Rice Recipe Z Pack (10 kg)\",\n                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121993979080005/\"\n            },\n            \"recipe\": null,\n            \"quantity\": \"47\",\n            \"stock_value\": \"0.00\",\n            \"remarks\": null,\n            \"stock_item_updates\": [],\n            \"waste_category\": \"Returned by customer\",\n            \"waste_category_value\": \"RETURNED_BY_CUSTOMER\",\n            \"id\": \"423431649520002\"\n        }\n    ]\n}"}],"_postman_id":"cdf89a3a-b604-48e7-8906-55de8e2d5519"},{"name":"Record/Create/Start waste event","id":"ff602048-4117-4bb1-a76b-d0fd97ce8c77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/","description":"<p>Create a new waste event.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"2d30459e-eb7b-41da-a546-ae4b5fe197e3","name":"Record/Create/Start waste event","originalRequest":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"922471313120009\",\n    \"in_progress\": true,\n    \"created\": \"2021-11-29T10:41:46.818064+01:00\",\n    \"finished\": null,\n    \"actual_date\": null,\n    \"remarks\": null,\n    \"created_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"owned_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"stock_value\": null,\n    \"items\": []\n}"}],"_postman_id":"ff602048-4117-4bb1-a76b-d0fd97ce8c77"},{"name":"Add  stock item or recipe into a waste event","id":"a8ba6e14-52b2-401d-bc65-cfc421515f5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/items/","description":"<p>Waste a single stock item or recipe. A waste item should be related to stock item or recipe; it cannot be related to stock item and recipe in the same time.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>stock_item</td>\n<td>string</td>\n<td>ID of stock item</td>\n<td>stock_item xor recipe</td>\n</tr>\n<tr>\n<td>recipe</td>\n<td>string</td>\n<td>ID of recipe</td>\n<td>stock_item xor recipe</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>float or null</td>\n<td>counted quantity</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>remarks</td>\n<td>string</td>\n<td></td>\n<td>N</td>\n</tr>\n<tr>\n<td>waste_category</td>\n<td>string</td>\n<td>constance of Waste category</td>\n<td>Y</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}","items",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"6eb7fb44-e240-4578-86df-f128228a12e7","name":"Add  stock item or recipe into a waste event","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"waste_category\": \"RETURNED_BY_CUSTOMER\",\n    \"recipe\": \"949960289010009\",\n    \"stock_item\": null,\n    \"quantity\": \"4\",\n    \"remarks\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/922471313120009/items/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"stock_item\": null,\n    \"recipe\": {\n        \"id\": \"949960289010009\",\n        \"name\": \"My Waffles\",\n        \"url\": \"https://app.apicbase.com/api/v1/recipes/949960289010009/\"\n    },\n    \"quantity\": \"4\",\n    \"stock_value\": \"0.00\",\n    \"remarks\": \"\",\n    \"stock_item_updates\": [],\n    \"waste_category\": \"Returned by customer\",\n    \"waste_category_value\": \"RETURNED_BY_CUSTOMER\",\n    \"id\": \"323431459590008\"\n}"},{"id":"0502379a-f72e-431a-9fc7-c671b92a10f4","name":"Add  stock item or recipe into a waste event","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"waste_category\": \"RETURNED_BY_CUSTOMER\",\n    \"stock_item\": \"121993979080005\",\n    \"recipe\": null,\n    \"quantity\": \"4\",\n    \"remarks\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/items/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"stock_item\": {\n        \"id\": \"121993979080005\",\n        \"name\": \"Basmani Rice Recipe Z Pack (10 kg)\",\n        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121993979080005/\"\n    },\n    \"recipe\": null,\n    \"quantity\": \"4\",\n    \"stock_value\": \"0.00\",\n    \"remarks\": \"\",\n    \"stock_item_updates\": [],\n    \"waste_category\": \"Returned by customer\",\n    \"waste_category_value\": \"RETURNED_BY_CUSTOMER\",\n    \"id\": \"723431669570000\"\n}"}],"_postman_id":"a8ba6e14-52b2-401d-bc65-cfc421515f5b"},{"name":"Update  stock item or recipe into a waste event","id":"6e9e52d3-5eaf-4485-abac-8ca90e19c691","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/items/{{wasteEventItemId}}/","description":"<p>Update a single stock item or recipe.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>quantity</td>\n<td>float or null</td>\n<td>counted quantity</td>\n<td>N</td>\n</tr>\n<tr>\n<td>remarks</td>\n<td>string</td>\n<td></td>\n<td>N</td>\n</tr>\n<tr>\n<td>waste_category</td>\n<td>string</td>\n<td>constance of Waste category</td>\n<td>Y</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}","items","{{wasteEventItemId}}",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"bdd21448-c2b7-4942-b0cd-7f399676aead","name":"Update  stock item or recipe into a waste event","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"stock_item\": \"321993625020001\",\n    \"quantity\": \"5\",\n    \"stock_value\": \"0.00\",\n    \"remarks\": \"Updated remark\",\n    \"waste_category\": \"RETURNED_BY_CUSTOMER\",\n    \"id\": \"123431419570000\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/922471313120009/items/123431419570000/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"stock_item\": {\n        \"id\": \"321993625020001\",\n        \"name\": \"Basmani Rice Recipe Z Pack (1 kg)\",\n        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/321993625020001/\"\n    },\n    \"recipe\": null,\n    \"quantity\": \"5\",\n    \"stock_value\": \"0.00\",\n    \"remarks\": \"Updated remark\",\n    \"stock_item_updates\": [],\n    \"waste_category\": \"Returned by customer\",\n    \"waste_category_value\": \"RETURNED_BY_CUSTOMER\",\n    \"id\": \"123431419570000\"\n}"}],"_postman_id":"6e9e52d3-5eaf-4485-abac-8ca90e19c691"},{"name":"Delete stock item or recipe from waste event","id":"d95f4cd7-0eb2-4129-9918-a057281099e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/items/{{wasteEventItemId}}/","description":"<p>Delete waste event item</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}","items","{{wasteEventItemId}}",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"e41c7541-2d9d-4683-b493-d859b11cf960","name":"Delete stock item or recipe from waste event","originalRequest":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/922471313120009/items/123431419570000/"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d95f4cd7-0eb2-4129-9918-a057281099e2"},{"name":"Full update stock items and recipes list of waste event","id":"1232c9c2-466c-4bce-a6db-172f96e0a1cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/full_update/","description":"<p>This endpoint is used to full bulk upload the entirety of a waste event wasted quantities. The waste event will take on the state determined by the payload. Previously wasted quantities will be overwritten, and those not included in the payload will be deleted.</p>\n<p>A waste item should be related to a stock item or recipe; it cannot be related to stock item and recipe at the same time. Cannot change stock item or recipe of created stock item.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>ID of waste event item</td>\n<td>id xor stock_item xor recipe</td>\n</tr>\n<tr>\n<td>stock_item</td>\n<td>string</td>\n<td>ID of stock item</td>\n<td>id xor stock_item xor recipe</td>\n</tr>\n<tr>\n<td>recipe</td>\n<td>string</td>\n<td>ID of recipe</td>\n<td>id xor stock_item xor recipe</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>float or null</td>\n<td>counted quantity</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>remarks</td>\n<td>string</td>\n<td></td>\n<td>N</td>\n</tr>\n<tr>\n<td>waste_category</td>\n<td>string</td>\n<td>constance of Waste category</td>\n<td>Y</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}","full_update",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"7084557d-7eb0-47b3-9e4b-c096178c8f82","name":"Full update stock items and recipes list of waste event","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"recipe\": \"949960289010009\",\n        \"quantity\": \"5\",\n        \"stock_value\": \"5.00\",\n        \"remarks\": \"Hmm\",\n        \"waste_category\": \"Returned by customer\"\n    },\n    {\n        \"stock_item\":\"121993979080005\",\n        \"quantity\": \"4\",\n        \"stock_value\": \"0.00\",\n        \"remarks\": \"\",\n        \"waste_category\": \"Kitchen error\"\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/922471313120009/full_update/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"recipe\": {\n                \"id\": \"949960289010009\",\n                \"name\": \"My Waffles\",\n                \"url\": \"https://app.apicbase.com/api/v1/recipes/949960289010009/\"\n            },\n            \"stock_item\": null,\n            \"quantity\": \"5\",\n            \"stock_value\": \"0.00\",\n            \"remarks\": \"Hmm\",\n            \"stock_item_updates\": [],\n            \"waste_category\": \"Returned by customer\",\n            \"waste_category_value\": \"RETURNED_BY_CUSTOMER\",\n            \"id\": \"123431829580008\"\n        },\n        {\n            \"stock_item\": {\n                \"id\": \"121993979080005\",\n                \"name\": \"Basmani Rice Recipe Z Pack (10 kg)\",\n                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121993979080005/\"\n            },\n            \"recipe\": null,\n            \"quantity\": \"4\",\n            \"stock_value\": \"0.00\",\n            \"remarks\": \"\",\n            \"stock_item_updates\": [],\n            \"waste_category\": \"Kitchen error\",\n            \"waste_category_value\": \"KITCHEN_ERROR\",\n            \"id\": \"623431089590006\"\n        }\n    ]\n}"}],"_postman_id":"1232c9c2-466c-4bce-a6db-172f96e0a1cc"},{"name":"Bulk update stock items and recipes list of waste event","id":"16d3ac49-ca26-43ca-8e38-c5ec829f9464","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/bulk_update/","description":"<p>This endpoint is used to bulk upload the entirety of a waste event wasted quantities. The waste event will take on the state determined by the previous state and the payload. Previously wasted quantities will be overwritten, and those not included in the payload will not be changed.</p>\n<p>A waste item should be related to a stock item or recipe; it cannot be related to stock item and recipe at the same time. Cannot change stock item or recipe of created stock item.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>ID of waste event item</td>\n<td>id xor stock_item xor recipe</td>\n</tr>\n<tr>\n<td>stock_item</td>\n<td>string</td>\n<td>ID of stock item</td>\n<td>id xor stock_item xor recipe</td>\n</tr>\n<tr>\n<td>recipe</td>\n<td>string</td>\n<td>ID of recipe</td>\n<td>id xor stock_item xor recipe</td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>float or null</td>\n<td>counted quantity</td>\n<td>Y</td>\n</tr>\n<tr>\n<td>remarks</td>\n<td>string</td>\n<td></td>\n<td>N</td>\n</tr>\n<tr>\n<td>waste_category</td>\n<td>string</td>\n<td>constance of Waste category</td>\n<td>Y</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}","bulk_update",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"14d37751-18db-4f74-97c6-1854a98b873a","name":"Bulk update stock items and recipes list of waste event","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"[\n    {\n        \"id\": \"123431829580008\",\n        \"quantity\": \"5\",\n        \"stock_value\": \"5.00\",\n        \"remarks\": \"Hmm\",\n        \"waste_category\": \"Returned by customer\"\n    },\n    {\n        \"stock_item\":\"121993979080005\",\n        \"quantity\": \"4\",\n        \"stock_value\": \"0.00\",\n        \"remarks\": \"\",\n        \"waste_category\": \"Kitchen error\"\n    }\n]","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/922471313120009/bulk_update/"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"stock_item\": null,\n            \"recipe\": {\n                \"id\": \"949960289010009\",\n                \"name\": \"My Waffles\",\n                \"url\": \"https://app.apicbase.com/api/v1/recipes/949960289010009/\"\n            },\n            \"quantity\": \"5\",\n            \"stock_value\": \"0.00\",\n            \"remarks\": \"Hmm\",\n            \"stock_item_updates\": [],\n            \"waste_category\": \"Returned by customer\",\n            \"waste_category_value\": \"RETURNED_BY_CUSTOMER\",\n            \"id\": \"123431829580008\"\n        },\n        {\n            \"stock_item\": {\n                \"id\": \"121993979080005\",\n                \"name\": \"Basmani Rice Recipe Z Pack (10 kg)\",\n                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121993979080005/\"\n            },\n            \"recipe\": null,\n            \"quantity\": \"4\",\n            \"stock_value\": \"0.00\",\n            \"remarks\": \"\",\n            \"stock_item_updates\": [],\n            \"waste_category\": \"Kitchen error\",\n            \"waste_category_value\": \"KITCHEN_ERROR\",\n            \"id\": \"623431089590006\"\n        }\n    ]\n}"}],"_postman_id":"16d3ac49-ca26-43ca-8e38-c5ec829f9464"},{"name":"Reset stock items and recipes list of waste event","id":"e866631e-ec28-47ca-b580-0f578c6fb789","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/reset/","description":"<p>Delete all wasted items in a waste event</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}","reset",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"4f0e7f70-bd23-4837-8f7d-15dd7d6830ca","name":"Reset stock items and recipes list of waste event","originalRequest":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/922471313120009/reset/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"922471313120009\",\n    \"in_progress\": true,\n    \"created\": \"2021-11-29T10:41:46.818064+01:00\",\n    \"finished\": null,\n    \"actual_date\": null,\n    \"remarks\": null,\n    \"created_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"owned_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"stock_value\": null,\n    \"items\": []\n}"}],"_postman_id":"e866631e-ec28-47ca-b580-0f578c6fb789"},{"name":"Claim waste event","id":"634897da-b7a5-4b7b-9968-35cffa4b5ea0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/claim/","description":"<p>Claims a waste event from any other users that may be working on it. This action must be performed before manipulating the waste.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}","claim",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"89a16647-44f4-4299-a032-2dc12ef5ef94","name":"Claim waste item","originalRequest":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/922471313120009/reset/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"922471313120009\",\n    \"in_progress\": true,\n    \"created\": \"2021-11-29T10:41:46.818064+01:00\",\n    \"finished\": null,\n    \"actual_date\": null,\n    \"remarks\": null,\n    \"created_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"owned_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"stock_value\": null,\n    \"items\": []\n}"}],"_postman_id":"634897da-b7a5-4b7b-9968-35cffa4b5ea0"},{"name":"Delete/Cancel waste event","id":"95aa6303-75b7-4b8b-9adf-ae80685b3c14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/","description":"<p>Delete a waste event</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"f1ab698f-f901-4b20-b50e-9d3ad4a56f7d","name":"Delete/Cancel waste event","originalRequest":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/922471313120009/"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"95aa6303-75b7-4b8b-9adf-ae80685b3c14"},{"name":"Submit/Close/Save waste event","id":"13115ec1-9f51-415e-aa71-0228cd774500","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/{{outletId}}/waste_events/{{wasteEventId}}/submit/","description":"<p>Closes and submits a waste event and applies changes in inventory. After submitting the waste event is not editable.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","v1","inventory","inventory","outlets","{{outletId}}","waste_events","{{wasteEventId}}","submit",""],"host":["app","apicbase","com"],"query":[],"variable":[]}},"response":[{"id":"5f27e613-1236-4b56-95a9-9dba251f0aeb","name":"Submit/Close/Save waste event","originalRequest":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/inventory/inventory/outlets/629100261280001/waste_events/522471423120002/submit/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"522471423120002\",\n    \"in_progress\": false,\n    \"created\": \"2021-11-29T11:46:04.479375+01:00\",\n    \"finished\": \"2021-11-29T11:46:50.343149+01:00\",\n    \"actual_date\": null,\n    \"remarks\": null,\n    \"created_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"owned_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"stock_value\": \"-4.00\",\n    \"items\": [\n        {\n            \"stock_item\": {\n                \"id\": \"121993979080005\",\n                \"name\": \"Basmani Rice Recipe Z Pack (10 kg)\",\n                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121993979080005/\"\n            },\n            \"recipe\": null,\n            \"quantity\": \"4\",\n            \"stock_value\": \"-4.00\",\n            \"remarks\": null,\n            \"stock_item_updates\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"121993979080005\",\n                        \"name\": \"Basmani Rice Recipe Z Pack (10 kg)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/121993979080005/\"\n                    },\n                    \"original_quantity\": \"-4.00\",\n                    \"original_unit\": \"Pack (10 kg)\",\n                    \"quantity\": \"-4\",\n                    \"stock_value\": \"-4.00\"\n                }\n            ],\n            \"waste_category\": \"Accident\",\n            \"waste_category_value\": \"ACCIDENT\",\n            \"id\": \"123431099540006\"\n        },\n        {\n            \"stock_item\": null,\n            \"recipe\": {\n                \"id\": \"949960289010009\",\n                \"name\": \"My Waffles\",\n                \"url\": \"https://app.apicbase.com/api/v1/recipes/949960289010009/\"\n            },\n            \"quantity\": \"5\",\n            \"stock_value\": \"0.00\",\n            \"remarks\": null,\n            \"stock_item_updates\": [],\n            \"waste_category\": \"Used for marketing\",\n            \"waste_category_value\": \"MARKETING\",\n            \"id\": \"623431400650001\"\n        }\n    ]\n}"}],"_postman_id":"13115ec1-9f51-415e-aa71-0228cd774500"}],"id":"a1dde224-ef9d-43a6-9b28-b20470a7bdc5","description":"<p>This collection includes endpoints through which you you can create and manipulate waste events.</p>\n<p>The main flow how to update waste:</p>\n<ol>\n<li>Create a new waste event</li>\n<li>Add stock items and/or recipes into the waste event</li>\n<li>Submit waste event</li>\n</ol>\n<p>Stock item and recipes list can be edited in different ways: with manipulating a single item. bulk or full list update</p>\n<p>Waste categories:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Value</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>DATE_EXPIRED</td>\n<td>Date expired</td>\n</tr>\n<tr>\n<td>RETURNED_BY_CUSTOMER</td>\n<td>Returned by customer</td>\n</tr>\n<tr>\n<td>KITCHEN_ERROR</td>\n<td>Kitchen error</td>\n</tr>\n<tr>\n<td>ITEM_RENDERED_UNUSABLE</td>\n<td>Item rendered unusable</td>\n</tr>\n<tr>\n<td>MISTAKE_EXPIRED</td>\n<td>Expired because of mistake</td>\n</tr>\n<tr>\n<td>MARKETING</td>\n<td>Used for marketing</td>\n</tr>\n<tr>\n<td>FREEBIE</td>\n<td>Given away as a freebie</td>\n</tr>\n<tr>\n<td>BUFFET_BREAKFAST</td>\n<td>Buffet/Breakfast</td>\n</tr>\n<tr>\n<td>STAFF</td>\n<td>Staff</td>\n</tr>\n<tr>\n<td>ACCIDENT</td>\n<td>Accident</td>\n</tr>\n<tr>\n<td>OTHER</td>\n<td>Other</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"a1dde224-ef9d-43a6-9b28-b20470a7bdc5","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Get stock items inventory information","id":"9d89f969-45cc-402b-9b85-17bfc75079a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/stock_items/","description":"<p>Gets inventory information for stock items in a given outlet.</p>\n<p>Returns a list of stock items in inventory in the specified outlet with information about their current inventory status: current quantity, current value, minimum quantity and par.</p>\n<p>The <code>aggregated_quantity</code> and <code>aggregated_stock_value</code> numbers are determined by the amounts of every other stock item in the same inventory that are defined in terms of the stock item being queried, or that it is defined in terms of.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","stock_items",""],"host":["https://app.apicbase.com/api/v1/inventory"],"query":[{"disabled":true,"description":{"content":"<p>The amount of records per page (max 200)</p>\n","type":"text/plain"},"key":"page_size","value":""}],"variable":[]}},"response":[{"id":"82b3e952-71f9-47b8-8777-ca1cb20c8edc","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/stock_items/?page_size=4","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","stock_items",""],"query":[{"key":"page_size","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true},{"key":"Vary","value":"Accept, Origin, Accept-Language, Cookie","enabled":true},{"key":"Allow","value":"GET, HEAD, OPTIONS","enabled":true},{"key":"Content-Length","value":"1984","enabled":true},{"key":"Content-Language","value":"en","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"721794004480005\",\n            \"name\": \"Cola Can (33 cl)\",\n            \"package_description\": {\n                \"unit\": \"cl\",\n                \"base_unit\": \"cl\",\n                \"quantity\": \"33.000000\",\n                \"unit_stock_item\": null\n            },\n            \"par\": \"15.00\",\n            \"minimum_quantity_required\": \"6.00\",\n            \"quantity\": \"12.00\",\n            \"stock_value\": \"0.00\",\n            \"aggregated_quantity\": \"18.00\",\n            \"aggregated_stock_value\": \"0.00\"\n        },\n        {\n            \"id\": \"921060274251001\",\n            \"name\": \"Cola 6 x 33 cl\",\n            \"package_description\": {\n                \"unit\": \"Can (33 cl)\",\n                \"base_unit\": null,\n                \"quantity\": \"6.000000\",\n                \"unit_stock_item\": {\n                    \"id\": \"721794004480005\",\n                    \"name\": \"Cola Can (33 cl)\",\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721794004480005/\"\n                }\n            },\n            \"par\": null,\n            \"minimum_quantity_required\": null,\n            \"quantity\": \"1.00\",\n            \"stock_value\": \"0.00\",\n            \"aggregated_quantity\": \"3.00\",\n            \"aggregated_stock_value\": \"0.00\"\n        },\n        {\n            \"id\": \"521725390640009\",\n            \"name\": \"Pasta Spaghetti 2 Box (50 x 700 g)\",\n            \"package_description\": {\n                \"unit\": \"700 g\",\n                \"base_unit\": null,\n                \"quantity\": \"50.000000\",\n                \"unit_stock_item\": {\n                    \"id\": \"421725380620004\",\n                    \"name\": \"Pasta Spaghetti 2 700 g\",\n                    \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421725380620004/\"\n                }\n            },\n            \"par\": null,\n            \"minimum_quantity_required\": null,\n            \"quantity\": null,\n            \"stock_value\": null,\n            \"aggregated_quantity\": null,\n            \"aggregated_stock_value\": null\n        },\n        {\n            \"id\": \"421725380620004\",\n            \"name\": \"Pasta Spaghetti 2 700 g\",\n            \"package_description\": {\n                \"unit\": \"g\",\n                \"base_unit\": \"g\",\n                \"quantity\": \"700.000000\",\n                \"unit_stock_item\": null\n            },\n            \"par\": null,\n            \"minimum_quantity_required\": null,\n            \"quantity\": null,\n            \"stock_value\": null,\n            \"aggregated_quantity\": null,\n            \"aggregated_stock_value\": null\n        }\n    ]\n}"}],"_postman_id":"9d89f969-45cc-402b-9b85-17bfc75079a5"},{"name":"Get stock item's inventory information detail","id":"a913511c-c6db-41ad-afa2-ea451fa49f35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/stock_items/{{stockItemId}}/stock/","description":"<p>Gets stock information about a specific stock item in a specific outlet.</p>\n<p>The <code>aggregated_quantity</code> and <code>aggregated_stock_value</code> numbers are determined by the amounts of every other stock item in the same inventory that are defined in terms of the stock item being queried, or that it is defined in terms of.</p>\n<p>In the example, there are a <strong>Cola Can (33 cl)</strong> stock item and another one <strong>Cola Can Pack (6 x 33 cl)</strong> that is defined as 6 units of the other. The inventory has 12 units of Cola Can and 1 unit of Cola Can Pack. The <code>aggregated_quantity</code> of Cola Can is <strong>18</strong> = 12 + (1 * 6).</p>\n<p>Meanwhile, <code>quantity</code> and <code>stock_value</code> are the amounts for the queried stock item only.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","stock_items","{{stockItemId}}","stock",""],"host":["https://app.apicbase.com/api/v1/inventory"],"query":[],"variable":[]}},"response":[{"id":"ecb873d8-7c72-48bf-92e8-e7ee29cdc37c","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/stock_items/{{stockItemId}}/stock/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"721794004480005\",\n    \"name\": \"Cola Can (33 cl)\",\n    \"package_description\": {\n        \"unit\": \"cl\",\n        \"base_unit\": \"cl\",\n        \"quantity\": \"33.000000\",\n        \"unit_stock_item\": null\n    },\n    \"par\": \"10.00\",\n    \"minimum_quantity_required\": \"6.00\",\n    \"quantity\": \"12.00\",\n    \"stock_value\": \"18.20\",\n    \"aggregated_quantity\": \"18.00\",\n    \"aggregated_stock_value\": \"25.00\"\n}"}],"_postman_id":"a913511c-c6db-41ad-afa2-ea451fa49f35"},{"name":"Create a manual sales event","id":"9596aab0-3ff5-46de-9708-784f618517da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"remarks\": \"General remarks about this sale\",\n    \"sales_items\": [\n        {\"recipe\": \"749980262120005\", \"quantity\": 2, \"unit_price\": 2.25, \"vat\": 12},\n        {\"recipe\": \"349980442190000\", \"quantity\": 1, \"unit_price\": 12, \"vat\": 12, \"total_discount\": 2.5}\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/manual_sales_event/","description":"<p>Creates and submits a manual sales event at a given outlet.</p>\n<p>One event is created per request. The sales event is processed immediately and stock is updated accordingly.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>remarks</td>\n<td>string</td>\n<td>Free text, remarks to be added to the manual sales event.</td>\n<td>N</td>\n<td>\"\"</td>\n</tr>\n<tr>\n<td>sales_items</td>\n<td>ManualSalesEventRecipe[]</td>\n<td>A list of sales lines</td>\n<td>Y</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"objects\">Objects</h3>\n<h4 id=\"manualsaleseventrecipe\">ManualSalesEventRecipe</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>recipe</td>\n<td>string</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>integer</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>unit_price</td>\n<td>decimal</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>vat</td>\n<td>decimal</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>total_discount</td>\n<td>decimal</td>\n<td>N</td>\n<td>0</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><code>total_discount</code> is a flat amount to be subtracted from the sales line. </li>\n<li>The total revenue generated from a single line is (<code>quantity</code> * <code>unit_price</code>) - <code>total_discount</code>.</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","manual_sales_event",""],"host":["https://app.apicbase.com/api/v1/inventory"],"query":[],"variable":[]}},"response":[{"id":"1ed37352-cc83-4083-a9a4-6ffab826810c","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"remarks\": \"General remarks about this sale\",\n    \"sales_items\": [\n        {\"recipe\": \"749980262120005\", \"quantity\": 2, \"unit_price\": 2.25, \"vat\": 12},\n        {\"recipe\": \"349980442190000\", \"quantity\": 1, \"unit_price\": 12, \"vat\": 12, \"total_discount\": 2.5}\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/inventory/outlets/229100415400002/manual_sales_event/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"9596aab0-3ff5-46de-9708-784f618517da"},{"name":"Get creation events","id":"45cb3a50-f820-4b52-800a-cd3432aab0cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/create_events/","description":"<p>Get creation events that happened in a given Outlet.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","create_events",""],"host":["https://app.apicbase.com/api/v1/inventory"],"query":[],"variable":[]}},"response":[{"id":"2fe58632-827f-4cc2-af88-e58f61ef07ad","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/create_events/?in_progress=false&created_date=2021-03-16&created_date__gt=2021-03-15&created_date__lt=2021-03-17&actual_date&actual_date__gt&actual_date__lt&remarks&created_by=136000910080000&created_by__email=john.doe@apicbase.com&owned_by=136000910080000&owned_by__email=john.doe@apicbase.com&stock_value=-53.46&stock_value__gt=-100&stock_value__lt=0","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","create_events",""],"query":[{"key":"in_progress","value":"false","description":"Filter on status of event"},{"key":"created_date","value":"2021-03-16","description":"Filter by event creation date"},{"key":"created_date__gt","value":"2021-03-15","description":"Filter by event creation date"},{"key":"created_date__lt","value":"2021-03-17","description":"Filter by event creation date"},{"key":"actual_date","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__gt","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__lt","value":null,"description":"Filter by event actual date that happened"},{"key":"remarks","value":null,"description":"Filter by event remarks"},{"key":"created_by","value":"136000910080000","description":"Filter by user id, which created the event"},{"key":"created_by__email","value":"john.doe@apicbase.com","description":"Filter by user email, which created the event"},{"key":"owned_by","value":"136000910080000","description":"Filter by user id, which owns the event"},{"key":"owned_by__email","value":"john.doe@apicbase.com","description":"Filter by user email, which owns the event"},{"key":"stock_value","value":"-53.46","description":"Filter by event stock value"},{"key":"stock_value__gt","value":"-100","description":"Filter by event stock value"},{"key":"stock_value__lt","value":"0","description":"Filter by event stock value"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"222162723460007\",\n            \"in_progress\": false,\n            \"created\": \"2021-03-24T02:18:58.151161+01:00\",\n            \"finished\": \"2021-03-24T02:28:27.526274+01:00\",\n            \"actual_date\": null,\n            \"remarks\": \"\",\n            \"created_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"owned_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"stock_value\": \"-51.32\",\n            \"items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"221836878270001\",\n                        \"name\": \"Potious Burger Pack (3 piece)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/221836878270001/\"\n                    },\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"0.00\",\n                    \"remarks\": null,\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421836548240007\",\n                                \"name\": \"Bread 1 kg\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836548240007/\"\n                            },\n                            \"original_quantity\": \"-6315.79\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-6.32\",\n                            \"stock_value\": \"-47.37\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"721836958250006\",\n                                \"name\": \"Burger Meat 360 g\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721836958250006/\"\n                            },\n                            \"original_quantity\": \"-5684.21\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-15.79\",\n                            \"stock_value\": \"-94.74\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421836668200002\",\n                                \"name\": \"Ketchup 500 g\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836668200002/\"\n                            },\n                            \"original_quantity\": \"-1578.95\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-3.16\",\n                            \"stock_value\": \"-11.84\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"221836878270001\",\n                                \"name\": \"Potious Burger Pack (3 piece)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/221836878270001/\"\n                            },\n                            \"original_quantity\": \"10.00\",\n                            \"original_unit\": \"Pack (3 piece)\",\n                            \"quantity\": \"10\",\n                            \"stock_value\": \"102.63\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}"},{"id":"6c83968d-2133-4496-ba29-bb79cbdba5e3","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/create_events/?in_progress=&created_date=&created_date__gt=&created_date__lt=&actual_date&actual_date__gt&actual_date__lt&remarks&created_by=&created_by__email=&owned_by=&owned_by__email=&stock_value=&stock_value__gt=&stock_value__lt=","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","create_events",""],"query":[{"key":"in_progress","value":"","description":"Filter on status of event"},{"key":"created_date","value":"","description":"Filter by event creation date"},{"key":"created_date__gt","value":"","description":"Filter by event creation date"},{"key":"created_date__lt","value":"","description":"Filter by event creation date"},{"key":"actual_date","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__gt","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__lt","value":null,"description":"Filter by event actual date that happened"},{"key":"remarks","value":null,"description":"Filter by event remarks"},{"key":"created_by","value":"","description":"Filter by user id, which created the event"},{"key":"created_by__email","value":"","description":"Filter by user email, which created the event"},{"key":"owned_by","value":"","description":"Filter by user id, which owns the event"},{"key":"owned_by__email","value":"","description":"Filter by user email, which owns the event"},{"key":"stock_value","value":"","description":"Filter by event stock value"},{"key":"stock_value__gt","value":"","description":"Filter by event stock value"},{"key":"stock_value__lt","value":"","description":"Filter by event stock value"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"222162723460007\",\n            \"in_progress\": false,\n            \"created\": \"2021-03-24T02:18:58.151161+01:00\",\n            \"finished\": \"2021-03-24T02:28:27.526274+01:00\",\n            \"actual_date\": null,\n            \"remarks\": \"\",\n            \"created_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"owned_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"stock_value\": \"-51.32\",\n            \"items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"221836878270001\",\n                        \"name\": \"Potious Burger Pack (3 piece)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/221836878270001/\"\n                    },\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"0.00\",\n                    \"remarks\": null,\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421836548240007\",\n                                \"name\": \"Bread 1 kg\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836548240007/\"\n                            },\n                            \"original_quantity\": \"-6315.79\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-6.32\",\n                            \"stock_value\": \"-47.37\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"721836958250006\",\n                                \"name\": \"Burger Meat 360 g\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721836958250006/\"\n                            },\n                            \"original_quantity\": \"-5684.21\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-15.79\",\n                            \"stock_value\": \"-94.74\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421836668200002\",\n                                \"name\": \"Ketchup 500 g\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836668200002/\"\n                            },\n                            \"original_quantity\": \"-1578.95\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-3.16\",\n                            \"stock_value\": \"-11.84\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"221836878270001\",\n                                \"name\": \"Potious Burger Pack (3 piece)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/221836878270001/\"\n                            },\n                            \"original_quantity\": \"10.00\",\n                            \"original_unit\": \"Pack (3 piece)\",\n                            \"quantity\": \"10\",\n                            \"stock_value\": \"102.63\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"45cb3a50-f820-4b52-800a-cd3432aab0cb"},{"name":"Get incoming transfer events","id":"f93ac713-b7fd-4cc3-b6d7-03ec6ab06d25","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/transfer_events/incoming/","description":"<p>Get incoming transfer events that happened in a given Outlet.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","transfer_events","incoming",""],"host":["https://app.apicbase.com/api/v1/inventory"],"query":[],"variable":[]}},"response":[{"id":"1a916d08-8db2-4bbe-8600-59eda9b80320","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/transfer_events/incoming/?in_progress=&created_date=&created_date__gt=&created_date__lt=&actual_date&actual_date__gt&actual_date__lt&remarks&created_by=&created_by__email=&owned_by=&owned_by__email=&stock_value=&stock_value__gt=&stock_value__lt=","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","transfer_events","incoming",""],"query":[{"key":"in_progress","value":"","description":"Filter on status of event"},{"key":"created_date","value":"","description":"Filter by event creation date"},{"key":"created_date__gt","value":"","description":"Filter by event creation date"},{"key":"created_date__lt","value":"","description":"Filter by event creation date"},{"key":"actual_date","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__gt","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__lt","value":null,"description":"Filter by event actual date that happened"},{"key":"remarks","value":null,"description":"Filter by event remarks"},{"key":"created_by","value":"","description":"Filter by user id, which created the event"},{"key":"created_by__email","value":"","description":"Filter by user email, which created the event"},{"key":"owned_by","value":"","description":"Filter by user id, which owns the event"},{"key":"owned_by__email","value":"","description":"Filter by user email, which owns the event"},{"key":"stock_value","value":"","description":"Filter by event stock value"},{"key":"stock_value__gt","value":"","description":"Filter by event stock value"},{"key":"stock_value__lt","value":"","description":"Filter by event stock value"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"722162682470005\",\n            \"in_progress\": false,\n            \"created\": \"2021-03-24T02:15:34.146324+01:00\",\n            \"finished\": \"2021-03-24T02:15:46.414650+01:00\",\n            \"actual_date\": null,\n            \"remarks\": \"\",\n            \"created_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"owned_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"stock_value\": \"50.00\",\n            \"items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"721836208200002\",\n                        \"name\": \"Açai Bottle (1 l)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721836208200002/\"\n                    },\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"50.00\",\n                    \"remarks\": null,\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"721836208200002\",\n                                \"name\": \"Açai Bottle (1 l)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721836208200002/\"\n                            },\n                            \"original_quantity\": \"10.00\",\n                            \"original_unit\": \"Bottle (1 l)\",\n                            \"quantity\": \"10\",\n                            \"stock_value\": \"50.00\"\n                        }\n                    ]\n                }\n            ],\n            \"origin_outlet\": \"https://app.apicbase.com/api/v1/accounts/outlets/729100266010004/\"\n        }\n    ]\n}"},{"id":"6c1555a4-ca3c-4800-9435-54fb89a34c9d","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/transfer_events/incoming/?in_progress=false&created_date=2021-03-24&created_date__gt=2021-03-23&created_date__lt=2021-03-25&actual_date&actual_date__gt&actual_date__lt&remarks&created_by=136000910080000&created_by__email=john.doe@apicbase.com&owned_by=136000910080000&owned_by__email=john.doe@apicbase.com&stock_value=50&stock_value__gt=0&stock_value__lt=100","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","transfer_events","incoming",""],"query":[{"key":"in_progress","value":"false","description":"Filter on status of event"},{"key":"created_date","value":"2021-03-24","description":"Filter by event creation date"},{"key":"created_date__gt","value":"2021-03-23","description":"Filter by event creation date"},{"key":"created_date__lt","value":"2021-03-25","description":"Filter by event creation date"},{"key":"actual_date","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__gt","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__lt","value":null,"description":"Filter by event actual date that happened"},{"key":"remarks","value":null,"description":"Filter by event remarks"},{"key":"created_by","value":"136000910080000","description":"Filter by user id, which created the event"},{"key":"created_by__email","value":"john.doe@apicbase.com","description":"Filter by user email, which created the event"},{"key":"owned_by","value":"136000910080000","description":"Filter by user id, which owns the event"},{"key":"owned_by__email","value":"john.doe@apicbase.com","description":"Filter by user email, which owns the event"},{"key":"stock_value","value":"50","description":"Filter by event stock value"},{"key":"stock_value__gt","value":"0","description":"Filter by event stock value"},{"key":"stock_value__lt","value":"100","description":"Filter by event stock value"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"722162682470005\",\n            \"in_progress\": false,\n            \"created\": \"2021-03-24T02:15:34.146324+01:00\",\n            \"finished\": \"2021-03-24T02:15:46.414650+01:00\",\n            \"actual_date\": null,\n            \"remarks\": \"\",\n            \"created_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"owned_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"stock_value\": \"50.00\",\n            \"items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"721836208200002\",\n                        \"name\": \"Açai Bottle (1 l)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721836208200002/\"\n                    },\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"50.00\",\n                    \"remarks\": null,\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"721836208200002\",\n                                \"name\": \"Açai Bottle (1 l)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721836208200002/\"\n                            },\n                            \"original_quantity\": \"10.00\",\n                            \"original_unit\": \"Bottle (1 l)\",\n                            \"quantity\": \"10\",\n                            \"stock_value\": \"50.00\"\n                        }\n                    ]\n                }\n            ],\n            \"origin_outlet\": \"https://app.apicbase.com/api/v1/accounts/outlets/729100266010004/\"\n        }\n    ]\n}"}],"_postman_id":"f93ac713-b7fd-4cc3-b6d7-03ec6ab06d25"},{"name":"Get outgoing transfer events","id":"6f37cf6f-3306-4014-bd4d-ff57f4e93c4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/transfer_events/outgoing/","description":"<p>Get outgoing transfer events that happened in a given Outlet.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","transfer_events","outgoing",""],"host":["https://app.apicbase.com/api/v1/inventory"],"query":[],"variable":[]}},"response":[{"id":"731d8fe4-6c19-443f-97a0-ec5c17d150b1","name":"Without optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/transfer_events/outgoing/?in_progress=&created_date=&created_date__gt=&created_date__lt=&actual_date&actual_date__gt&actual_date__lt&remarks&created_by=&created_by__email=&owned_by=&owned_by__email=&stock_value=&stock_value__gt=&stock_value__lt=","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","transfer_events","outgoing",""],"query":[{"key":"in_progress","value":"","description":"Filter on status of event"},{"key":"created_date","value":"","description":"Filter by event creation date"},{"key":"created_date__gt","value":"","description":"Filter by event creation date"},{"key":"created_date__lt","value":"","description":"Filter by event creation date"},{"key":"actual_date","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__gt","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__lt","value":null,"description":"Filter by event actual date that happened"},{"key":"remarks","value":null,"description":"Filter by event remarks"},{"key":"created_by","value":"","description":"Filter by user id, which created the event"},{"key":"created_by__email","value":"","description":"Filter by user email, which created the event"},{"key":"owned_by","value":"","description":"Filter by user id, which owns the event"},{"key":"owned_by__email","value":"","description":"Filter by user email, which owns the event"},{"key":"stock_value","value":"","description":"Filter by event stock value"},{"key":"stock_value__gt","value":"","description":"Filter by event stock value"},{"key":"stock_value__lt","value":"","description":"Filter by event stock value"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"122162992420000\",\n            \"in_progress\": false,\n            \"created\": \"2021-03-24T02:17:17.898657+01:00\",\n            \"finished\": \"2021-03-24T02:17:31.120502+01:00\",\n            \"actual_date\": null,\n            \"remarks\": \"\",\n            \"created_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"owned_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"stock_value\": \"-75.00\",\n            \"items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"421836548240007\",\n                        \"name\": \"Bread 1 kg\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836548240007/\"\n                    },\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"-75.00\",\n                    \"remarks\": null,\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421836548240007\",\n                                \"name\": \"Bread 1 kg\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836548240007/\"\n                            },\n                            \"original_quantity\": \"-10.00\",\n                            \"original_unit\": \"1 kg\",\n                            \"quantity\": \"-10\",\n                            \"stock_value\": \"-75.00\"\n                        }\n                    ]\n                }\n            ],\n            \"destination_outlet\": \"https://app.apicbase.com/api/v1/accounts/outlets/729100266010004/\"\n        }\n    ]\n}"},{"id":"236bc115-179f-4aa8-9acd-671a8e362918","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/inventory/outlets/{{outletId}}/transfer_events/outgoing/?in_progress=false&created_date=2021-03-24&created_date__gt=2021-03-23&created_date__lt=2021-03-25&actual_date&actual_date__gt&actual_date__lt&remarks&created_by=136000910080000&created_by__email=john.doe@apicbase.com&owned_by=136000910080000&owned_by__email=john.doe@apicbase.com&stock_value=-51.32&stock_value__gt=-100&stock_value__lt=0","host":["https://app.apicbase.com/api/v1/inventory"],"path":["outlets","{{outletId}}","transfer_events","outgoing",""],"query":[{"key":"in_progress","value":"false","description":"Filter on status of event"},{"key":"created_date","value":"2021-03-24","description":"Filter by event creation date"},{"key":"created_date__gt","value":"2021-03-23","description":"Filter by event creation date"},{"key":"created_date__lt","value":"2021-03-25","description":"Filter by event creation date"},{"key":"actual_date","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__gt","value":null,"description":"Filter by event actual date that happened"},{"key":"actual_date__lt","value":null,"description":"Filter by event actual date that happened"},{"key":"remarks","value":null,"description":"Filter by event remarks"},{"key":"created_by","value":"136000910080000","description":"Filter by user id, which created the event"},{"key":"created_by__email","value":"john.doe@apicbase.com","description":"Filter by user email, which created the event"},{"key":"owned_by","value":"136000910080000","description":"Filter by user id, which owns the event"},{"key":"owned_by__email","value":"john.doe@apicbase.com","description":"Filter by user email, which owns the event"},{"key":"stock_value","value":"-51.32","description":"Filter by event stock value"},{"key":"stock_value__gt","value":"-100","description":"Filter by event stock value"},{"key":"stock_value__lt","value":"0","description":"Filter by event stock value"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"222162723460007\",\n            \"in_progress\": false,\n            \"created\": \"2021-03-24T02:18:58.151161+01:00\",\n            \"finished\": \"2021-03-24T02:28:27.526274+01:00\",\n            \"actual_date\": null,\n            \"remarks\": \"\",\n            \"created_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Wellens\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"owned_by\": {\n                \"id\": \"136000910080000\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Wellens\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/136000910080000/\"\n            },\n            \"stock_value\": \"-51.32\",\n            \"items\": [\n                {\n                    \"stock_item\": {\n                        \"id\": \"221836878270001\",\n                        \"name\": \"Potious Burger Pack (3 piece)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/221836878270001/\"\n                    },\n                    \"quantity\": \"10\",\n                    \"stock_value\": \"0.00\",\n                    \"remarks\": null,\n                    \"stock_item_updates\": [\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421836548240007\",\n                                \"name\": \"Bread 1 kg\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836548240007/\"\n                            },\n                            \"original_quantity\": \"-6315.79\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-6.32\",\n                            \"stock_value\": \"-47.37\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"721836958250006\",\n                                \"name\": \"Burger Meat 360 g\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/721836958250006/\"\n                            },\n                            \"original_quantity\": \"-5684.21\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-15.79\",\n                            \"stock_value\": \"-94.74\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"421836668200002\",\n                                \"name\": \"Ketchup 500 g\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/421836668200002/\"\n                            },\n                            \"original_quantity\": \"-1578.95\",\n                            \"original_unit\": \"g\",\n                            \"quantity\": \"-3.16\",\n                            \"stock_value\": \"-11.84\"\n                        },\n                        {\n                            \"stock_item\": {\n                                \"id\": \"221836878270001\",\n                                \"name\": \"Potious Burger Pack (3 piece)\",\n                                \"url\": \"https://app.apicbase.com/api/v1/products/stock_items/221836878270001/\"\n                            },\n                            \"original_quantity\": \"10.00\",\n                            \"original_unit\": \"Pack (3 piece)\",\n                            \"quantity\": \"10\",\n                            \"stock_value\": \"102.63\"\n                        }\n                    ]\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"6f37cf6f-3306-4014-bd4d-ff57f4e93c4b"}],"id":"2509d4c6-3b71-48e1-a075-55a4adeee1d0","_postman_id":"2509d4c6-3b71-48e1-a075-55a4adeee1d0","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Get default currency in library","id":"81d62e81-3716-4d21-9930-cde42f93287d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/library_settings/default_currency/","description":"<p>Get the display currency used for monetary values in the present library.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["default_currency",""],"host":["https://app.apicbase.com/api/v1/library_settings"],"query":[],"variable":[]}},"response":[{"id":"a8a1a6bb-bdf0-454b-a8f0-0888819cef36","name":"Get default library currency","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/library_settings/default_currency/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": \"EUR\",\n    \"symbol\": \"€\",\n    \"name\": \"Euro\"\n}"}],"_postman_id":"81d62e81-3716-4d21-9930-cde42f93287d"}],"id":"499208df-6028-4378-b605-7ab0a2573f8a","description":"<p>This collection includes endpoints from which you can fetch library data, including ingredients, recipes, menus, among others.</p>\n","_postman_id":"499208df-6028-4378-b605-7ab0a2573f8a","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Procurement","item":[{"name":"Purchase Orders","item":[{"name":"Order Invoice Files","item":[{"name":"Get invoices","id":"db50c564-a2ee-426a-b1ee-a384c130a2c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/invoices/","description":"<p>Get list of invoice files related to a purchase order</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["purchase_orders","{{purchaseOrderId}}","invoices",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"beb22011-23df-454b-91ff-8b62ba4ad331","name":"Get invoices","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/invoices/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"479000823140006\",\n        \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/istockphoto-518473490-612x612.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131749Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=85c9aa103e47949c6f3459f735884dea32e1997870b4d3bd9065625e22bed33e\"\n    },\n    {\n        \"id\": \"979000433160008\",\n        \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/PyCharm_ReferenceCard.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131749Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=eff80df65498da44a724c79813eb81bae8311568984e04119bc1d0f3b740ba9b\"\n    }\n]"}],"_postman_id":"db50c564-a2ee-426a-b1ee-a384c130a2c1"},{"name":"Upload invoice","id":"9872925e-2ea6-479b-a663-3a1a0a85789b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"original_file","description":"<p>Uploading file</p>\n","type":"file","value":null}]},"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/invoices/","description":"<p>A Purchase Order can have up to 10 invoice files attached. Upload an invoice file. One file can be uploaded per request. PDF and image formats are supported. The upload file limit is 20Mb. An invoice file can be uploaded after the order is sent.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["purchase_orders","{{purchaseOrderId}}","invoices",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"f482902b-0615-4301-b25e-eadf87c3ccf1","name":"Upload invoice","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"original_file","type":"file","src":"dOugvAAZ2/INVOICE.pdf"}]},"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/invoices/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"479000653120002\",\n    \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/INVOICE.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T132221Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=a83203ba424f75530dd2986bb2e78779ea1f03496099f3b4b062058f32ef55c2\"\n}"}],"_postman_id":"9872925e-2ea6-479b-a663-3a1a0a85789b"},{"name":"Delete invoice file","id":"6d547afb-1f2e-4110-b8b2-bd4e160a411e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/invoices/{{invoiceId}}/","description":"<p>Delete an invoice file. Deleting a file does not depend on the status of the order</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["purchase_orders","{{purchaseOrderId}}","invoices","{{invoiceId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"d21e2ac6-352a-4bbf-8a78-81da8ddf6f0b","name":"Delete invoice file","originalRequest":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/invoices/{{invoiceId}}/"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6d547afb-1f2e-4110-b8b2-bd4e160a411e"}],"id":"aef3f71c-9aad-4183-8f8e-9384f0a8d9a4","description":"<p>A Purchase Order can have up to 10 invoice files attached. Invoice files are related to an order (not a delivery). PDF and image formats are supported. An invoice file can be uploaded after the order is sent.</p>\n","_postman_id":"aef3f71c-9aad-4183-8f8e-9384f0a8d9a4","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Get purchase orders","id":"9b09d70b-3c12-4453-b3d3-e53bbf468964","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/","description":"<p>Gets a list of all purchase orders in the library. Results are paginated, but more records can be requested per page by specifying a <code>page_size</code> value.</p>\n<h3 id=\"invoice_status-values\">invoice_status values</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Number</strong></th>\n<th><strong>Meaning</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>0</td>\n<td>Not yet received</td>\n</tr>\n<tr>\n<td>1</td>\n<td>Received</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Payable</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Paid</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["purchase_orders",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[{"disabled":true,"description":{"content":"<p>The amount of records to be returned by page. Default is 25</p>\n","type":"text/plain"},"key":"page_size","value":""},{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":null},{"disabled":true,"description":{"content":"<p>A supplier ID to query on</p>\n","type":"text/plain"},"key":"supplier","value":""},{"disabled":true,"description":{"content":"<p>An outlet ID to query on</p>\n","type":"text/plain"},"key":"outlet","value":""},{"disabled":true,"description":{"content":"<p>The order's status (options: IN_PROGRESS, ORDERED or DELIVERED)</p>\n","type":"text/plain"},"key":"status","value":""},{"disabled":true,"description":{"content":"<p>The order's number, partial or whole</p>\n","type":"text/plain"},"key":"order_number","value":""},{"disabled":true,"description":{"content":"<p>A user ID to query on</p>\n","type":"text/plain"},"key":"owned_by","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders sent on this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ordered_on","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders sent later than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ordered_on__gt","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders sent earlier than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ordered_on__lt","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders with an expected delivery on this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"expected_delivery_date","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders with an expected delivery later than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"expected_delivery_date__gt","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders with an expected delivery earlier than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"expected_delivery_date__lt","value":""},{"disabled":true,"description":{"content":"<p>Filter on an exact discount amount</p>\n","type":"text/plain"},"key":"discount","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders with a total discount greater than</p>\n","type":"text/plain"},"key":"discount__gt","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders with a total discount lower than</p>\n","type":"text/plain"},"key":"discount__lt","value":""},{"disabled":true,"description":{"content":"<p>Filter on an invoice number</p>\n","type":"text/plain"},"key":"invoice_number","value":""},{"disabled":true,"description":{"content":"<p>Filter on the order's invoice status (0 = not yet received; 1 = received; 2 = payable; 3 = paid)</p>\n","type":"text/plain"},"key":"invoice_status","value":""}],"variable":[]}},"response":[{"id":"7a661dea-cf4d-4717-a010-a19ee5c1c3bb","name":"Without additional params","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 4,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"773820515180004\",\n            \"order_number\": null,\n            \"status\": \"IN_PROGRESS\",\n            \"supplier\": {\n                \"id\": \"325220129010007\",\n                \"company_name\": \"Happy Cow Products\",\n                \"email\": [\n                    \"ordering@happycowproducts.com\"\n                ],\n                \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\"\n            },\n            \"outlet\": {\n                \"id\": \"729100535470009\",\n                \"name\": \"Gent\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/729100535470009/\"\n            },\n            \"ordered_on\": null,\n            \"owned_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"thiago@apicbase.com\",\n                \"first_name\": \"Thiago\",\n                \"last_name\": \"da Cunha\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            },\n            \"order_remarks\": null,\n            \"packages\": [\n                {\n                    \"id\": \"474181670100007\",\n                    \"stock_item\": {\n                        \"id\": \"621725870650009\",\n                        \"name\": \"Milk 0% Fat Big Crate (12 x 1 l)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/stock_items/621725870650009/\"\n                    },\n                    \"supplier_package\": {\n                        \"id\": \"443306\",\n                        \"supplier_article_number\": \"7771234\",\n                        \"theoretical_price_per_package\": \"9.00\",\n                        \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/443306/\"\n                    },\n                    \"accounting_category\": null,\n                    \"quantity_ordered\": 3,\n                    \"total_theoretical_price\": \"27.00\"\n                }\n            ],\n            \"expected_delivery_date\": null,\n            \"viewed_by_supplier\": false,\n            \"viewed_by_supplier_at\": null,\n            \"fetched_by_supplier\": false,\n            \"fetched_by_supplier_at\": null,\n            \"invoice_number\": null,\n            \"invoice_status\": \"0\",\n            \"delivery_remarks\": null,\n            \"discount\": null,\n            \"discount_remarks\": null,\n            \"returnables_in\": null,\n            \"returnables_out\": null,\n            \"returnables_remarks\": null,\n            \"manual_price_after_discount_returnables\": null,\n            \"theoretical_price\": \"27.00\",\n            \"delivery_closed\": false,\n            \"invoice_documents\": []\n        },\n        {\n            \"id\": \"873820484110009\",\n            \"order_number\": \"#20200729-1452-1\",\n            \"status\": \"DELIVERED\",\n            \"supplier\": {\n                \"id\": \"825320333320003\",\n                \"company_name\": \"Mama Pasta\",\n                \"email\": [\n                    \"sales@mamapastaproducts.com\"\n                ],\n                \"url\": \"https://app.apicbase.com/api/v1/contact/825320333320003/\"\n            },\n            \"outlet\": {\n                \"id\": \"829100725420008\",\n                \"name\": \"Brussel\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/829100725420008/\"\n            },\n            \"ordered_on\": \"2020-07-29T10:53:40.347929+02:00\",\n            \"owned_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"thiago@apicbase.com\",\n                \"first_name\": \"Thiago\",\n                \"last_name\": \"da Cunha\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            },\n            \"order_remarks\": null,\n            \"packages\": [\n                {\n                    \"id\": \"274181740160004\",\n                    \"stock_item\": {\n                        \"id\": \"521725390640009\",\n                        \"name\": \"Pasta Spaghetti Box (50 x 700 g)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/stock_items/521725390640009/\"\n                    },\n                    \"supplier_package\": {\n                        \"id\": \"443307\",\n                        \"supplier_article_number\": \"9999999\",\n                        \"theoretical_price_per_package\": \"32.00\",\n                        \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/443307/\"\n                    },\n                    \"accounting_category\": null,\n                    \"quantity_ordered\": 5,\n                    \"total_theoretical_price\": \"160.00\"\n                }\n            ],\n            \"expected_delivery_date\": \"2020-08-04T10:00:00+02:00\",\n            \"viewed_by_supplier\": false,\n            \"viewed_by_supplier_at\": null,\n            \"fetched_by_supplier\": false,\n            \"fetched_by_supplier_at\": null,\n            \"invoice_number\": \"2222\",\n            \"invoice_status\": \"2\",\n            \"delivery_remarks\": \"Delivered at gate 2\",\n            \"discount\": \"15.00\",\n            \"discount_remarks\": \"Discount because of units ordered\",\n            \"returnables_in\": null,\n            \"returnables_out\": \"10.00\",\n            \"returnables_remarks\": null,\n            \"manual_price_after_discount_returnables\": null,\n            \"theoretical_price\": \"160.00\",\n            \"delivery_closed\": false,\n            \"invoice_documents\": []\n        },\n        {\n            \"id\": \"473820664180007\",\n            \"order_number\": \"#20200729-1451-2\",\n            \"status\": \"ORDERED\",\n            \"supplier\": {\n                \"id\": \"825320333320003\",\n                \"company_name\": \"Mama Pasta\",\n                \"email\": [\n                    \"sales@mamapastaproducts.com\"\n                ],\n                \"url\": \"https://app.apicbase.com/api/v1/contact/825320333320003/\"\n            },\n            \"outlet\": {\n                \"id\": \"229100415400002\",\n                \"name\": \"Antwerpen\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\"\n            },\n            \"ordered_on\": \"2020-07-29T10:53:02.012162+02:00\",\n            \"owned_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"thiago@apicbase.com\",\n                \"first_name\": \"Thiago\",\n                \"last_name\": \"da Cunha\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            },\n            \"order_remarks\": \"Nothing to add\",\n            \"packages\": [\n                {\n                    \"id\": \"574181510100003\",\n                    \"stock_item\": {\n                        \"id\": \"521725390640009\",\n                        \"name\": \"Pasta Spaghetti Box (50 x 700 g)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/stock_items/521725390640009/\"\n                    },\n                    \"supplier_package\": {\n                        \"id\": \"443307\",\n                        \"supplier_article_number\": \"9999999\",\n                        \"theoretical_price_per_package\": \"32.00\",\n                        \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/443307/\"\n                    },\n                    \"accounting_category\": null,\n                    \"quantity_ordered\": 3,\n                    \"total_theoretical_price\": \"96.00\"\n                }\n            ],\n            \"expected_delivery_date\": null,\n            \"viewed_by_supplier\": false,\n            \"viewed_by_supplier_at\": null,\n            \"fetched_by_supplier\": false,\n            \"fetched_by_supplier_at\": null,\n            \"invoice_number\": null,\n            \"invoice_status\": \"0\",\n            \"delivery_remarks\": null,\n            \"discount\": null,\n            \"discount_remarks\": null,\n            \"returnables_in\": null,\n            \"returnables_out\": null,\n            \"returnables_remarks\": null,\n            \"manual_price_after_discount_returnables\": null,\n            \"theoretical_price\": \"96.00\",\n            \"delivery_closed\": false,\n            \"invoice_documents\": [\n                {\n                    \"id\": \"479000823140006\",\n                    \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/istockphoto-518473490-612x612.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131025Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=62d3cf8cc4805a10be27dfe577db65da83d7e175e3eee6804e9a15f79fd01b6f\"\n                },\n                {\n                    \"id\": \"979000433160008\",\n                    \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/PyCharm_ReferenceCard.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131025Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=da8a9ad6d7815f572a845b394157d4f3f4f0ecb788f061297b7f53e9bac097be\"\n                }\n            ]\n        },\n        {\n            \"id\": \"773820254140000\",\n            \"order_number\": \"#20200729-1451-1\",\n            \"status\": \"ORDERED\",\n            \"supplier\": {\n                \"id\": \"325220129010007\",\n                \"company_name\": \"Happy Cow Products\",\n                \"email\": [\n                    \"ordering@happycowproducts.com\"\n                ],\n                \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\"\n            },\n            \"outlet\": {\n                \"id\": \"229100415400002\",\n                \"name\": \"Antwerpen\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\"\n            },\n            \"ordered_on\": \"2020-07-29T10:52:12.983482+02:00\",\n            \"owned_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"thiago@apicbase.com\",\n                \"first_name\": \"Thiago\",\n                \"last_name\": \"da Cunha\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            },\n            \"order_remarks\": \"This is a remark\",\n            \"packages\": [\n                {\n                    \"id\": \"374181120170007\",\n                    \"stock_item\": {\n                        \"id\": \"621725870650009\",\n                        \"name\": \"Milk 0% Fat Big Crate (12 x 1 l)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/stock_items/621725870650009/\"\n                    },\n                    \"supplier_package\": {\n                        \"id\": \"443306\",\n                        \"supplier_article_number\": \"7771234\",\n                        \"theoretical_price_per_package\": \"9.00\",\n                        \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/443306/\"\n                    },\n                    \"accounting_category\": null,\n                    \"quantity_ordered\": 20,\n                    \"total_theoretical_price\": \"180.00\"\n                },\n                {\n                    \"id\": \"474181500100006\",\n                    \"stock_item\": {\n                        \"id\": \"421794978110009\",\n                        \"name\": \"Milk Whole Crate (6 x 1 l)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/stock_items/421794978110009/\"\n                    },\n                    \"supplier_package\": {\n                        \"id\": \"417240\",\n                        \"supplier_article_number\": \"100020\",\n                        \"theoretical_price_per_package\": \"4.00\",\n                        \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/417240/\"\n                    },\n                    \"accounting_category\": \"Beverage\",\n                    \"quantity_ordered\": 20,\n                    \"total_theoretical_price\": \"80.00\"\n                }\n            ],\n            \"expected_delivery_date\": \"2020-08-03T09:00:00+02:00\",\n            \"viewed_by_supplier\": false,\n            \"viewed_by_supplier_at\": null,\n            \"fetched_by_supplier\": false,\n            \"fetched_by_supplier_at\": null,\n            \"invoice_number\": null,\n            \"invoice_status\": \"0\",\n            \"delivery_remarks\": null,\n            \"discount\": null,\n            \"discount_remarks\": null,\n            \"returnables_in\": null,\n            \"returnables_out\": null,\n            \"returnables_remarks\": null,\n            \"manual_price_after_discount_returnables\": null,\n            \"theoretical_price\": \"260.00\",\n            \"delivery_closed\": false,\n            \"invoice_documents\": []\n        }\n    ]\n}"},{"id":"878e6309-708c-4b7f-a8da-b0a67ae29ad2","name":"With additional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/procurement/purchase_orders/?supplier=325220129010007&outlet=229100415400002&status=ORDERED&owned_by=236300957450001&ordered_on=2020-07-29&expected_delivery_date__gt=2020-08-01&max_page_size=50&order_number=%2320200729-1451-1","host":["https://app.apicbase.com/api/v1/procurement"],"path":["purchase_orders",""],"query":[{"key":"supplier","value":"325220129010007","description":"A supplier ID to query on"},{"key":"outlet","value":"229100415400002","description":"An outlet ID to query on"},{"key":"status","value":"ORDERED","description":"The order's status (options: IN_PROGRESS, ORDERED or DELIVERED)"},{"key":"owned_by","value":"236300957450001","description":"A user ID to query on"},{"key":"ordered_on","value":"2020-07-29","description":"Filter on orders sent on this date (YYYY-MM-DD)"},{"key":"ordered_on__gt","value":"2020-07-01","description":"Filter on orders sent later than this date (YYYY-MM-DD)","type":"text","disabled":true},{"key":"ordered_on__lt","value":"2020-07-31","description":"Filter on orders sent earlier than this date (YYYY-MM-DD)","type":"text","disabled":true},{"key":"expected_delivery_date","value":"2020-08-03","description":"Filter on orders with an expected delivery on this date (YYYY-MM-DD)","type":"text","disabled":true},{"key":"expected_delivery_date__gt","value":"2020-08-01","description":"Filter on orders with an expected delivery later than this date (YYYY-MM-DD)"},{"key":"expected_delivery_date__lt","value":"2020-08-31","description":"Filter on orders with an expected delivery earlier than this date (YYYY-MM-DD)","type":"text","disabled":true},{"key":"discount","value":"10","description":"Filter on an exact discount amount","type":"text","disabled":true},{"key":"discount__gt","value":null,"description":"Filter on orders with a total discount greater than","type":"text","disabled":true},{"key":"discount__lt","value":null,"description":"Filter on orders with a total discount lower than","type":"text","disabled":true},{"key":"invoice_number","value":null,"description":"Filter on an invoice number","type":"text","disabled":true},{"key":"invoice_status","value":null,"description":"Filter on the order's invoice status (0 = not yet received; 1 = received; 2 = payable; 3 = paid)","type":"text","disabled":true},{"key":"max_page_size","value":"50","description":"The amount of records to be returned by page. Default is 25"},{"key":"order_number","value":"%2320200729-1451-1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"773820254140000\",\n            \"order_number\": \"#20200729-1451-1\",\n            \"status\": \"ORDERED\",\n            \"supplier\": {\n                \"id\": \"325220129010007\",\n                \"company_name\": \"Happy Cow Products\",\n                \"email\": [\n                    \"ordering@happycowproducts.com\"\n                ],\n                \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\"\n            },\n            \"outlet\": {\n                \"id\": \"229100415400002\",\n                \"name\": \"Antwerpen\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\"\n            },\n            \"ordered_on\": \"2020-07-29T10:52:12.983482+02:00\",\n            \"owned_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            },\n            \"order_remarks\": \"This is a remark\",\n            \"packages\": [\n                {\n                    \"id\": \"374181120170007\",\n                    \"stock_item\": {\n                        \"id\": \"621725870650009\",\n                        \"name\": \"Milk 0% Fat Big Crate (12 x 1 l)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/stock_items/621725870650009/\"\n                    },\n                    \"supplier_package\": {\n                        \"id\": \"443306\",\n                        \"supplier_article_number\": \"7771234\",\n                        \"theoretical_price_per_package\": \"9.00\",\n                        \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/443306/\"\n                    },\n                    \"accounting_category\": null,\n                    \"quantity_ordered\": 20,\n                    \"total_theoretical_price\": \"180.00\"\n                },\n                {\n                    \"id\": \"474181500100006\",\n                    \"stock_item\": {\n                        \"id\": \"421794978110009\",\n                        \"name\": \"Milk Whole Crate (6 x 1 l)\",\n                        \"url\": \"https://app.apicbase.com/api/v1/stock_items/421794978110009/\"\n                    },\n                    \"supplier_package\": {\n                        \"id\": \"417240\",\n                        \"supplier_article_number\": \"100020\",\n                        \"theoretical_price_per_package\": \"4.00\",\n                        \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/417240/\"\n                    },\n                    \"accounting_category\": \"Beverage\",\n                    \"quantity_ordered\": 20,\n                    \"total_theoretical_price\": \"80.00\"\n                }\n            ],\n            \"expected_delivery_date\": \"2020-08-03T09:00:00+02:00\",\n            \"viewed_by_supplier\": false,\n            \"viewed_by_supplier_at\": null,\n            \"fetched_by_supplier\": false,\n            \"fetched_by_supplier_at\": null,\n            \"invoice_number\": null,\n            \"invoice_status\": \"0\",\n            \"delivery_remarks\": null,\n            \"discount\": null,\n            \"discount_remarks\": null,\n            \"returnables_in\": null,\n            \"returnables_out\": null,\n            \"returnables_remarks\": null,\n            \"manual_price_after_discount_returnables\": null,\n            \"theoretical_price\": \"260.00\"\n        },\n    \"delivery_closed\": false,\n    \"invoice_documents\": [\n        {\n            \"id\": \"479000823140006\",\n            \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/istockphoto-518473490-612x612.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131025Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=62d3cf8cc4805a10be27dfe577db65da83d7e175e3eee6804e9a15f79fd01b6f\"\n        },\n        {\n            \"id\": \"979000433160008\",\n            \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/PyCharm_ReferenceCard.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131025Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=da8a9ad6d7815f572a845b394157d4f3f4f0ecb788f061297b7f53e9bac097be\"\n        }\n    ]\n}"}],"_postman_id":"9b09d70b-3c12-4453-b3d3-e53bbf468964"},{"name":"Get purchase order details","id":"ed7826c3-282c-4fff-844a-e5641fbea653","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/","description":"<p>Gets information about a single purchase order.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["purchase_orders","{{purchaseOrderId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"7adde783-e3d2-47e0-93a2-7e39f2376676","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/773820254140000/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"773820254140000\",\n    \"order_number\": \"#20200729-1451-1\",\n    \"status\": \"ORDERED\",\n    \"supplier\": {\n        \"id\": \"325220129010007\",\n        \"company_name\": \"Happy Cow Products\",\n        \"email\": [\n            \"ordering@happycowproducts.com\"\n        ],\n        \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\"\n    },\n    \"outlet\": {\n        \"id\": \"229100415400002\",\n        \"name\": \"Antwerpen\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\"\n    },\n    \"ordered_on\": \"2020-07-29T10:52:12.983482+02:00\",\n    \"owned_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"order_remarks\": \"This is a remark\",\n    \"packages\": [\n        {\n            \"id\": \"374181120170007\",\n            \"stock_item\": {\n                \"id\": \"621725870650009\",\n                \"name\": \"Milk 0% Fat Big Crate (12 x 1 l)\",\n                \"url\": \"https://app.apicbase.com/api/v1/stock_items/621725870650009/\"\n            },\n            \"supplier_package\": {\n                \"id\": \"443306\",\n                \"supplier_article_number\": \"7771234\",\n                \"theoretical_price_per_package\": \"9.00\",\n                \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/443306/\"\n            },\n            \"accounting_category\": null,\n            \"quantity_ordered\": 20,\n            \"total_theoretical_price\": \"180.00\"\n        },\n        {\n            \"id\": \"474181500100006\",\n            \"stock_item\": {\n                \"id\": \"421794978110009\",\n                \"name\": \"Milk Whole Crate (6 x 1 l)\",\n                \"url\": \"https://app.apicbase.com/api/v1/stock_items/421794978110009/\"\n            },\n            \"supplier_package\": {\n                \"id\": \"417240\",\n                \"supplier_article_number\": \"100020\",\n                \"theoretical_price_per_package\": \"4.00\",\n                \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/417240/\"\n            },\n            \"accounting_category\": \"Beverage\",\n            \"quantity_ordered\": 20,\n            \"total_theoretical_price\": \"80.00\"\n        }\n    ],\n    \"expected_delivery_date\": \"2020-08-03T09:00:00+02:00\",\n    \"viewed_by_supplier\": false,\n    \"viewed_by_supplier_at\": null,\n    \"fetched_by_supplier\": false,\n    \"fetched_by_supplier_at\": null,\n    \"invoice_number\": null,\n    \"invoice_status\": \"0\",\n    \"delivery_remarks\": null,\n    \"discount\": null,\n    \"discount_remarks\": null,\n    \"returnables_in\": null,\n    \"returnables_out\": null,\n    \"returnables_remarks\": null,\n    \"manual_price_after_discount_returnables\": null,\n    \"theoretical_price\": \"260.00\",\n    \"delivery_closed\": false,\n    \"invoice_documents\": [\n        {\n            \"id\": \"479000823140006\",\n            \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/istockphoto-518473490-612x612.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131025Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=62d3cf8cc4805a10be27dfe577db65da83d7e175e3eee6804e9a15f79fd01b6f\"\n        },\n        {\n            \"id\": \"979000433160008\",\n            \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/PyCharm_ReferenceCard.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131025Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=da8a9ad6d7815f572a845b394157d4f3f4f0ecb788f061297b7f53e9bac097be\"\n        }\n    ]\n}"}],"_postman_id":"ed7826c3-282c-4fff-844a-e5641fbea653"},{"name":"Update Purchase Order","id":"76bc687c-5070-492f-9022-b60d4bedf121","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/","description":"<p>Update invoice related fields of a purchase order. The fields can be updated after the order is sent.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>invoice_number</td>\n<td>string or number</td>\n<td>Invoice #. Can be updated after the order is sent</td>\n<td>N</td>\n</tr>\n<tr>\n<td>invoice_status</td>\n<td>string</td>\n<td>Invoice status. You can get possible values via the \"Get invoice status options\" endpoint. The invoice status can be updated after the order is sent</td>\n<td>N</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["purchase_orders","{{purchaseOrderId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"72676a0c-492d-42ec-a3c8-8ebeac4d3c91","name":"Update Purchase Order","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"invoice_number\": \"#1234\",\n    \"invoice_status\": \"2\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"773820254140000\",\n    \"order_number\": \"#20200729-1451-1\",\n    \"status\": \"DELIVERED\",\n    \"supplier\": {\n        \"id\": \"325220129010007\",\n        \"company_name\": \"Happy Cow Products\",\n        \"email\": [\n            \"ordering@happycowproducts.com\"\n        ],\n        \"url\": \"https://app.apicbase.com/api/v1/contact/325220129010007/\"\n    },\n    \"outlet\": {\n        \"id\": \"229100415400002\",\n        \"name\": \"Antwerpen\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/outlets/229100415400002/\"\n    },\n    \"ordered_on\": \"2020-07-29T10:52:12.983482+02:00\",\n    \"owned_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"order_remarks\": \"This is a remark\",\n    \"packages\": [\n        {\n            \"id\": \"374181120170007\",\n            \"stock_item\": {\n                \"id\": \"621725870650009\",\n                \"name\": \"Milk 0% Fat Big Crate (12 x 1 l)\",\n                \"url\": \"https://app.apicbase.com/api/v1/stock_items/621725870650009/\"\n            },\n            \"supplier_package\": {\n                \"id\": \"443306\",\n                \"supplier_article_number\": \"7771234\",\n                \"theoretical_price_per_package\": \"9.00\",\n                \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/443306/\"\n            },\n            \"accounting_category\": null,\n            \"quantity_ordered\": 20,\n            \"total_theoretical_price\": \"180.00\"\n        },\n        {\n            \"id\": \"474181500100006\",\n            \"stock_item\": {\n                \"id\": \"421794978110009\",\n                \"name\": \"Milk Whole Crate (6 x 1 l)\",\n                \"url\": \"https://app.apicbase.com/api/v1/stock_items/421794978110009/\"\n            },\n            \"supplier_package\": {\n                \"id\": \"417240\",\n                \"supplier_article_number\": \"100020\",\n                \"theoretical_price_per_package\": \"4.00\",\n                \"url\": \"https://app.apicbase.com/api/v1/supplier_packages/417240/\"\n            },\n            \"accounting_category\": \"Beverage\",\n            \"quantity_ordered\": 20,\n            \"total_theoretical_price\": \"80.00\"\n        }\n    ],\n    \"expected_delivery_date\": \"2020-08-03T09:00:00+02:00\",\n    \"viewed_by_supplier\": false,\n    \"viewed_by_supplier_at\": null,\n    \"fetched_by_supplier\": false,\n    \"fetched_by_supplier_at\": null,\n    \"invoice_number\": \"#1234\",\n    \"invoice_status\": \"2\"\n    \"delivery_remarks\": null,\n    \"discount\": null,\n    \"discount_remarks\": null,\n    \"returnables_in\": null,\n    \"returnables_out\": null,\n    \"returnables_remarks\": null,\n    \"manual_price_after_discount_returnables\": null,\n    \"theoretical_price\": \"260.00\",\n    \"delivery_closed\": false,\n    \"invoice_documents\": [\n        {\n            \"id\": \"479000823140006\",\n            \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/istockphoto-518473490-612x612.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131025Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=62d3cf8cc4805a10be27dfe577db65da83d7e175e3eee6804e9a15f79fd01b6f\"\n        },\n        {\n            \"id\": \"979000433160008\",\n            \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/PyCharm_ReferenceCard.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T131025Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=da8a9ad6d7815f572a845b394157d4f3f4f0ecb788f061297b7f53e9bac097be\"\n        }\n    ]\n}"}],"_postman_id":"76bc687c-5070-492f-9022-b60d4bedf121"},{"name":"Mark a purchase order as fetched or viewed","id":"d1cd1d68-762b-4349-962c-987d960bb794","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"fetched_by_supplier\": true,\n    \"viewed_by_supplier\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/purchase_orders/{{purchaseOrderId}}/","description":"<p>The <code>fetched_by_supplier</code> and <code>viewed_by_supplier</code> fields can be set to <code>true</code> via this endpoint. This will change these attributes to <code>true</code> and also set the datetimes on the <code>fetched_by_supplier_on</code> and <code>viewed_by_supplier_on</code> fields to the current time. It is not possible to change those attributes back to <code>false</code> once set to <code>true</code>.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["purchase_orders","{{purchaseOrderId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[],"_postman_id":"d1cd1d68-762b-4349-962c-987d960bb794"},{"name":"Get invoice status options","id":"aa18f2d9-051b-4182-9c9e-da9525750cef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/invoice_statuses/","description":"<p>Possible values of the <code>invoice_status</code> field of a purchase order</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["invoice_statuses",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"f96e35ca-97a9-4bb8-9a09-c56ddf0e66fa","name":"Get invoice status options","originalRequest":{"method":"GET","header":[],"url":"app.apicbase.com/api/v1/procurement/invoice_statuses/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"value\": 0,\n            \"text\": \"Not yet received\"\n        },\n        {\n            \"value\": 1,\n            \"text\": \"Received\"\n        },\n        {\n            \"value\": 2,\n            \"text\": \"Payable\"\n        },\n        {\n            \"value\": 3,\n            \"text\": \"Paid\"\n        }\n    ]\n}"}],"_postman_id":"aa18f2d9-051b-4182-9c9e-da9525750cef"}],"id":"8c427d14-0847-4860-aaf9-bfd4ad6767a4","description":"<p>A Purchase Order (PO), often referred to an as order, contains all order details that are sent to a supplier. A Purchase Order has 3 possible statuses: <code>IN_PROGRESS</code>, <code>ORDERED</code>, <code>DELIVERED</code> and one sub-status: <code>delivery_closed</code>.</p>\n<ul>\n<li><code>IN_PROGRESS</code>, the order is not sent yet, the order can still be edited;</li>\n<li><code>ORDERED</code>, the order is sent to the supplier, delivery is expected;</li>\n<li><code>DELIVERED</code>. One order can have more than one delivery. <code>DELIVERED</code> status means that at least one delivery has been received for this order.</li>\n</ul>\n<p><code>delivery_closed=false</code> means that one or more deliveries are still expected; <code>delivery_closed=true</code> means that delivery has been fully completed, and no further delivery is expected for the order. <code>delivery_closed</code> is always <code>false</code> in <code>IN_PROGRESS</code> and <code>ORDERED</code> stages.</p>\n","_postman_id":"8c427d14-0847-4860-aaf9-bfd4ad6767a4","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Deliveries","item":[{"name":"Aggregated Supplier Deliveries","item":[{"name":"Get aggregated supplier deliveries","id":"cd88011f-a586-4a5f-b010-5630e5bff01c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/","description":"<p>Gets a list of all Aggregated Supplier Deliveries in the library.</p>\n<p>Specify a <code>purchase_order</code> value in the query in order to get delivery information for a known purchase order. Note that an instance of Aggregated Supplier Delivery does not share the ID of the Purchase Order that generated it.</p>\n<p>Results are paginated, but more records can be requested per page by specifying a <code>page_size</code> value.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["aggregated_supplier_deliveries",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[{"disabled":true,"description":{"content":"<p>Amount of records per page (max 200)</p>\n","type":"text/plain"},"key":"page_size","value":""},{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>The ID of the purchase order linked to this delivery</p>\n","type":"text/plain"},"key":"purchase_order_id","value":""},{"disabled":true,"description":{"content":"<p>A supplier ID to query on</p>\n","type":"text/plain"},"key":"supplier_id","value":""},{"disabled":true,"description":{"content":"<p>An outlet ID to query on</p>\n","type":"text/plain"},"key":"outlet_id","value":""},{"disabled":true,"description":{"content":"<p>A user ID to query on</p>\n","type":"text/plain"},"key":"owned_by_id","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders sent on this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ordered_on","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders sent earliter than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ordered_on__gt","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders later than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ordered_on__lt","value":""},{"disabled":true,"description":{"content":"<p>Filter on the associated PO's invoice number</p>\n","type":"text/plain"},"key":"invoice_number","value":""},{"disabled":true,"description":{"content":"<p>Filter on the associated PO's invoice status (0-3).</p>\n","type":"text/plain"},"key":"invoice_status","value":""},{"disabled":true,"description":{"content":"<p>Filter on open or closed deliveries</p>\n","type":"text/plain"},"key":"delivery_closed","value":""}],"variable":[]}},"response":[{"id":"4e51c1b2-7fa1-4eac-8093-9c9895b55b8f","name":"Get aggregated supplier deliveries","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"775860528690006\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490200500004/\",\n            \"purchase_order_id\": \"373490200500004\",\n            \"total_actual_price\": \"70.46\",\n            \"aggregated_delivered_packages\": [\n                {\n                    \"id\": \"476005347250003\",\n                    \"purchase_order_package\": \"974466112050001\",\n                    \"quantity_delivered\": \"1.00\",\n                    \"quantity_delivered_status\": \"ALL\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"4.94\",\n                    \"intake_reason\": 1\n                },\n                {\n                    \"id\": \"976005437270007\",\n                    \"purchase_order_package\": \"174466402030005\",\n                    \"quantity_delivered\": \"1.00\",\n                    \"quantity_delivered_status\": \"ALL\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"15.00\",\n                    \"intake_reason\": 0\n                },\n                {\n                    \"id\": \"976005257270001\",\n                    \"purchase_order_package\": \"174466622020007\",\n                    \"quantity_delivered\": \"1.00\",\n                    \"quantity_delivered_status\": \"ALL\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"49.40\",\n                    \"intake_reason\": 1\n                },\n                {\n                    \"id\": \"576005567260007\",\n                    \"purchase_order_package\": \"274466463050001\",\n                    \"quantity_delivered\": \"1.00\",\n                    \"quantity_delivered_status\": \"PARTIALLY\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"1.12\",\n                    \"intake_reason\": 0\n                }\n            ],\n            \"delivery_closed\": true,\n            \"created_date\": \"2022-12-01T15:00:44.588028+01:00\",\n            \"modified_date\": \"2022-12-01T15:01:17.210052+01:00\",\n            \"next_delivery_date\": null,\n            \"received_deliveries_summary\": [\n                {\n                    \"id\": \"177760676470006\",\n                    \"delivery_date\": \"2022-12-01T16:09:00\",\n                    \"actual_price\": \"16.12\",\n                    \"discount\": \"0.00\",\n                    \"returnables_in\": \"0.00\",\n                    \"returnables_out\": \"0.00\"\n                },\n                {\n                    \"id\": \"377760986480007\",\n                    \"delivery_date\": \"2022-12-01T17:01:00\",\n                    \"actual_price\": \"54.34\",\n                    \"discount\": \"0.00\",\n                    \"returnables_in\": \"0.00\",\n                    \"returnables_out\": \"0.00\"\n                }\n            ]\n        },\n        {\n            \"id\": \"775860518640001\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/873200230080006/\",\n            \"purchase_order_id\": \"873200230080006\",\n            \"total_actual_price\": \"0.00\",\n            \"aggregated_delivered_packages\": [],\n            \"delivery_closed\": false,\n            \"created_date\": \"2022-11-30T12:29:33.682902+01:00\",\n            \"modified_date\": \"2022-11-30T12:29:33.682925+01:00\",\n            \"next_delivery_date\": null,\n            \"received_deliveries_summary\": []\n        },\n        {\n            \"id\": \"375860308620007\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490682390008/\",\n            \"purchase_order_id\": \"373490682390008\",\n            \"total_actual_price\": \"30.75\",\n            \"aggregated_delivered_packages\": [\n                {\n                    \"id\": \"176005817240007\",\n                    \"purchase_order_package\": \"474366266420002\",\n                    \"quantity_delivered\": \"1.00\",\n                    \"quantity_delivered_status\": \"ALL\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"0.75\",\n                    \"intake_reason\": 1\n                },\n                {\n                    \"id\": \"776005927270003\",\n                    \"purchase_order_package\": \"174366596420006\",\n                    \"quantity_delivered\": \"12.00\",\n                    \"quantity_delivered_status\": \"ALL\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"30.00\",\n                    \"intake_reason\": 0\n                }\n            ],\n            \"delivery_closed\": true,\n            \"created_date\": \"2022-11-30T11:15:59.700050+01:00\",\n            \"modified_date\": \"2022-11-30T11:16:12.598188+01:00\",\n            \"next_delivery_date\": null,\n            \"received_deliveries_summary\": [\n                {\n                    \"id\": \"777760046480006\",\n                    \"delivery_date\": \"2022-11-30T11:15:59\",\n                    \"actual_price\": \"30.00\",\n                    \"discount\": \"0.00\",\n                    \"returnables_in\": \"0.00\",\n                    \"returnables_out\": \"0.00\"\n                },\n                {\n                    \"id\": \"577760756440001\",\n                    \"delivery_date\": \"2022-11-30T11:16:47\",\n                    \"actual_price\": \"0.75\",\n                    \"discount\": \"0.00\",\n                    \"returnables_in\": \"0.00\",\n                    \"returnables_out\": \"0.00\"\n                }\n            ]\n        },\n        {\n            \"id\": \"675860897660008\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/873490907410006/\",\n            \"purchase_order_id\": \"873490907410006\",\n            \"total_actual_price\": \"0.00\",\n            \"aggregated_delivered_packages\": [\n                {\n                    \"id\": \"976005507250009\",\n                    \"purchase_order_package\": \"874366401960006\",\n                    \"quantity_delivered\": \"0.00\",\n                    \"quantity_delivered_status\": \"NONE\",\n                    \"remarks\": null,\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": null\n                }\n            ],\n            \"delivery_closed\": false,\n            \"created_date\": \"2022-11-15T16:49:43.408644+01:00\",\n            \"modified_date\": \"2022-11-15T16:49:43.408666+01:00\",\n            \"next_delivery_date\": null,\n            \"received_deliveries_summary\": []\n        },\n        {\n            \"id\": \"375860057600009\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/673490896440006/\",\n            \"purchase_order_id\": \"673490896440006\",\n            \"total_actual_price\": \"480.00\",\n            \"aggregated_delivered_packages\": [\n                {\n                    \"id\": \"476005005230007\",\n                    \"purchase_order_package\": \"974366390940002\",\n                    \"quantity_delivered\": \"12.00\",\n                    \"quantity_delivered_status\": \"ALL\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"480.00\",\n                    \"intake_reason\": 0\n                }\n            ],\n            \"delivery_closed\": true,\n            \"created_date\": \"2022-11-14T14:30:42.070421+01:00\",\n            \"modified_date\": \"2022-11-14T14:30:42.222812+01:00\",\n            \"next_delivery_date\": null,\n            \"received_deliveries_summary\": [\n                {\n                    \"id\": \"977760495480006\",\n                    \"delivery_date\": \"2022-11-14T16:30:00\",\n                    \"actual_price\": \"480.00\",\n                    \"discount\": null,\n                    \"returnables_in\": null,\n                    \"returnables_out\": null\n                }\n            ]\n        },\n        {\n            \"id\": \"675860947600001\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/573490543360008/\",\n            \"purchase_order_id\": \"573490543360008\",\n            \"total_actual_price\": \"10.00\",\n            \"aggregated_delivered_packages\": [\n                {\n                    \"id\": \"676005694280000\",\n                    \"purchase_order_package\": \"574366137440002\",\n                    \"quantity_delivered\": \"5.00\",\n                    \"quantity_delivered_status\": \"ALL\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"10.00\",\n                    \"intake_reason\": 0\n                }\n            ],\n            \"delivery_closed\": true,\n            \"created_date\": \"2022-11-14T14:28:23.224533+01:00\",\n            \"modified_date\": \"2022-11-14T14:28:23.510312+01:00\",\n            \"next_delivery_date\": null,\n            \"received_deliveries_summary\": [\n                {\n                    \"id\": \"877760185440008\",\n                    \"delivery_date\": \"2022-11-14T16:28:00\",\n                    \"actual_price\": \"10.00\",\n                    \"discount\": \"0.00\",\n                    \"returnables_in\": \"0.00\",\n                    \"returnables_out\": \"0.00\"\n                }\n            ]\n        },\n        {\n            \"id\": \"675860627660002\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/873490853360000/\",\n            \"purchase_order_id\": \"873490853360000\",\n            \"total_actual_price\": \"24.00\",\n            \"aggregated_delivered_packages\": [\n                {\n                    \"id\": \"576005743270003\",\n                    \"purchase_order_package\": \"574366147460004\",\n                    \"quantity_delivered\": \"1.00\",\n                    \"quantity_delivered_status\": \"ALL\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"24.00\",\n                    \"intake_reason\": 0\n                }\n            ],\n            \"delivery_closed\": true,\n            \"created_date\": \"2022-11-09T10:28:41.068208+01:00\",\n            \"modified_date\": \"2022-11-09T10:28:41.286713+01:00\",\n            \"next_delivery_date\": null,\n            \"received_deliveries_summary\": [\n                {\n                    \"id\": \"777760465480001\",\n                    \"delivery_date\": \"2022-11-09T10:28:00\",\n                    \"actual_price\": \"24.00\",\n                    \"discount\": \"0.00\",\n                    \"returnables_in\": \"0.00\",\n                    \"returnables_out\": \"0.00\"\n                }\n            ]\n        },\n        {\n            \"id\": \"475860917690001\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/573490685470006/\",\n            \"purchase_order_id\": \"573490685470006\",\n            \"total_actual_price\": \"0.00\",\n            \"aggregated_delivered_packages\": [\n                {\n                    \"id\": \"376005633220008\",\n                    \"purchase_order_package\": \"174366197890004\",\n                    \"quantity_delivered\": \"0.00\",\n                    \"quantity_delivered_status\": \"NONE\",\n                    \"remarks\": null,\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": null\n                }\n            ],\n            \"delivery_closed\": false,\n            \"created_date\": \"2022-11-09T07:43:39.567023+01:00\",\n            \"modified_date\": \"2022-11-09T07:43:39.567046+01:00\",\n            \"next_delivery_date\": null,\n            \"received_deliveries_summary\": []\n        },\n        {\n            \"id\": \"175860796690009\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/173490035460009/\",\n            \"purchase_order_id\": \"173490035460009\",\n            \"total_actual_price\": \"28.40\",\n            \"aggregated_delivered_packages\": [\n                {\n                    \"id\": \"376005323270004\",\n                    \"purchase_order_package\": \"174366627850001\",\n                    \"quantity_delivered\": \"2.00\",\n                    \"quantity_delivered_status\": \"PARTIALLY\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"28.40\",\n                    \"intake_reason\": 0\n                }\n            ],\n            \"delivery_closed\": false,\n            \"created_date\": \"2022-11-08T14:33:23.379959+01:00\",\n            \"modified_date\": \"2022-11-08T14:34:05.849575+01:00\",\n            \"next_delivery_date\": \"2022-11-16T00:00:00\",\n            \"received_deliveries_summary\": [\n                {\n                    \"id\": \"977760484430004\",\n                    \"delivery_date\": \"2022-11-08T16:33:00\",\n                    \"actual_price\": \"14.20\",\n                    \"discount\": \"0.00\",\n                    \"returnables_in\": \"0.00\",\n                    \"returnables_out\": \"0.00\"\n                },\n                {\n                    \"id\": \"777760494410005\",\n                    \"delivery_date\": \"2022-11-08T16:34:00\",\n                    \"actual_price\": \"14.20\",\n                    \"discount\": \"0.00\",\n                    \"returnables_in\": \"0.00\",\n                    \"returnables_out\": \"0.00\"\n                }\n            ]\n        },\n        {\n            \"id\": \"575860686650005\",\n            \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/773490365470008/\",\n            \"purchase_order_id\": \"773490365470008\",\n            \"total_actual_price\": \"0.00\",\n            \"aggregated_delivered_packages\": [\n                {\n                    \"id\": \"176005703290002\",\n                    \"purchase_order_package\": \"474366867830009\",\n                    \"quantity_delivered\": \"0.00\",\n                    \"quantity_delivered_status\": \"NONE\",\n                    \"remarks\": null,\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": null\n                },\n                {\n                    \"id\": \"276005313260002\",\n                    \"purchase_order_package\": \"174366287870001\",\n                    \"quantity_delivered\": \"0.00\",\n                    \"quantity_delivered_status\": \"NONE\",\n                    \"remarks\": null,\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": null\n                }\n            ],\n            \"delivery_closed\": false,\n            \"created_date\": \"2022-11-08T13:45:07.107019+01:00\",\n            \"modified_date\": \"2022-11-08T13:45:07.107059+01:00\",\n            \"next_delivery_date\": null,\n            \"received_deliveries_summary\": []\n        }\n    ]\n}"}],"_postman_id":"cd88011f-a586-4a5f-b010-5630e5bff01c"},{"name":"Get aggregated supplier delivery detail","id":"2d5078ba-dd51-44b0-bedc-992a63b9d4dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/{{aggregatedSupplierDeliveryId}}/","description":"<p>Gets information about a single Aggregated Supplier Delivery</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["aggregated_supplier_deliveries","{{aggregatedSupplierDeliveryId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"89a6bf95-c217-4966-97e0-aaf01ac64e44","name":"Get a aggregated supplier delivery details","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/{{aggregatedSupplierDeliveryId}}/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"775860528690006\",\n    \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490200500004/\",\n    \"purchase_order_id\": \"373490200500004\",\n    \"total_actual_price\": \"70.46\",\n    \"aggregated_delivered_packages\": [\n        {\n            \"id\": \"476005347250003\",\n            \"purchase_order_package\": \"974466112050001\",\n            \"quantity_delivered\": \"1.00\",\n            \"quantity_delivered_status\": \"ALL\",\n            \"remarks\": \"\",\n            \"actual_price\": \"4.94\",\n            \"intake_reason\": 1\n        },\n        {\n            \"id\": \"976005437270007\",\n            \"purchase_order_package\": \"174466402030005\",\n            \"quantity_delivered\": \"1.00\",\n            \"quantity_delivered_status\": \"ALL\",\n            \"remarks\": \"\",\n            \"actual_price\": \"15.00\",\n            \"intake_reason\": 0\n        },\n        {\n            \"id\": \"976005257270001\",\n            \"purchase_order_package\": \"174466622020007\",\n            \"quantity_delivered\": \"1.00\",\n            \"quantity_delivered_status\": \"ALL\",\n            \"remarks\": \"\",\n            \"actual_price\": \"49.40\",\n            \"intake_reason\": 1\n        },\n        {\n            \"id\": \"576005567260007\",\n            \"purchase_order_package\": \"274466463050001\",\n            \"quantity_delivered\": \"1.00\",\n            \"quantity_delivered_status\": \"PARTIALLY\",\n            \"remarks\": \"\",\n            \"actual_price\": \"1.12\",\n            \"intake_reason\": 0\n        }\n    ],\n    \"delivery_closed\": true,\n    \"created_date\": \"2022-12-01T15:00:44.588028+01:00\",\n    \"modified_date\": \"2022-12-01T15:01:17.210052+01:00\",\n    \"next_delivery_date\": null,\n    \"received_deliveries\": [\n        {\n            \"id\": \"177760676470006\",\n            \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/177760676470006/\",\n            \"draft\": false,\n            \"received_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"delivery_date\": \"2022-12-01T16:09:00\",\n            \"update_stock\": true,\n            \"actual_price\": \"16.12\",\n            \"delivery_remarks\": \"\",\n            \"discount\": \"0.00\",\n            \"discount_remarks\": \"\",\n            \"returnables_in\": \"0.00\",\n            \"returnables_out\": \"0.00\",\n            \"returnables_remarks\": \"\",\n            \"delivered_packages\": [\n                {\n                    \"id\": \"978494754440008\",\n                    \"purchase_order_package\": {\n                        \"id\": \"174466402030005\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"976005437270007\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"15.00\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n                        \"id\": \"439435\"\n                    }\n                },\n                {\n                    \"id\": \"478494864450001\",\n                    \"purchase_order_package\": {\n                        \"id\": \"974466112050001\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"476005347250003\"\n                    },\n                    \"quantity_delivered\": \"0.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": 1,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                        \"id\": \"428119\"\n                    }\n                },\n                {\n                    \"id\": \"578494674490006\",\n                    \"purchase_order_package\": {\n                        \"id\": \"174466622020007\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"976005257270001\"\n                    },\n                    \"quantity_delivered\": \"0.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": 1,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428120/\",\n                        \"id\": \"428120\"\n                    }\n                },\n                {\n                    \"id\": \"678494484410007\",\n                    \"purchase_order_package\": {\n                        \"id\": \"274466463050001\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"576005567260007\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"1.12\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428121/\",\n                        \"id\": \"428121\"\n                    }\n                }\n            ],\n            \"delivery_notes\": [\n                {\n                    \"id\": \"380000709120005\",\n                    \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T140554Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=b77cb800355349cc749f0631ad4a893f9cde31dfe8c3bd2ff881b6b24581ef65\"\n                },\n                {\n                    \"id\": \"480000119100002\",\n                    \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T140554Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=2f7439a442a844b8f95cf43d06fdc633f1530a6193c4b16390bf6056906b8b80\"\n                }\n            ]\n        },\n        {\n            \"id\": \"377760986480007\",\n            \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/377760986480007/\",\n            \"draft\": false,\n            \"received_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"delivery_date\": \"2022-12-01T17:01:00\",\n            \"update_stock\": true,\n            \"actual_price\": \"54.34\",\n            \"delivery_remarks\": \"\",\n            \"discount\": \"0.00\",\n            \"discount_remarks\": \"\",\n            \"returnables_in\": \"0.00\",\n            \"returnables_out\": \"0.00\",\n            \"returnables_remarks\": \"\",\n            \"delivered_packages\": [\n                {\n                    \"id\": \"878494594460008\",\n                    \"purchase_order_package\": {\n                        \"id\": \"974466112050001\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"476005347250003\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"4.94\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                        \"id\": \"428119\"\n                    }\n                },\n                {\n                    \"id\": \"678494905470005\",\n                    \"purchase_order_package\": {\n                        \"id\": \"174466622020007\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"976005257270001\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"49.40\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428120/\",\n                        \"id\": \"428120\"\n                    }\n                }\n            ],\n            \"delivery_notes\": []\n        }\n    ]\n}"}],"_postman_id":"2d5078ba-dd51-44b0-bedc-992a63b9d4dd"},{"name":"Edit an aggregated supplier delivery","id":"3c4cccd5-87ca-4300-a042-7aca931a6cc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/{{aggregatedSupplierDeliveryId}}/","description":"<p>Edit an Aggregated Supplier Delivery</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>next_delivery_date</code></td>\n<td>string or null</td>\n<td>next expected delivery date for any other upcoming supplier delivery  <br />(format <code>YYYY-MM-DDThh:mm:ss</code>). <code>next_delivery_date</code> can be edited, when the order delivery is not closed</td>\n<td>N</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["aggregated_supplier_deliveries","{{aggregatedSupplierDeliveryId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"2c31ce87-667c-4ed9-9f90-5e81f78fb239","name":"Update a aggregated supplier delivery","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"next_delivery_date\": \"2022-12-05T15:00:00\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/{{aggregatedSupplierDeliveryId}}/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"875860838660003\",\n    \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/473490760510004/\",\n    \"purchase_order_id\": \"473490760510004\",\n    \"total_actual_price\": \"29.36\",\n    \"aggregated_delivered_packages\": [\n        {\n            \"id\": \"476005987290004\",\n            \"purchase_order_package\": \"474466083060002\",\n            \"quantity_delivered\": \"2.00\",\n            \"quantity_delivered_status\": \"PARTIALLY\",\n            \"remarks\": \"\",\n            \"actual_price\": \"9.88\",\n            \"intake_reason\": 0\n        },\n        {\n            \"id\": \"376005597280001\",\n            \"purchase_order_package\": \"474466493060003\",\n            \"quantity_delivered\": \"4.00\",\n            \"quantity_delivered_status\": \"ALL\",\n            \"remarks\": \"\",\n            \"actual_price\": \"4.48\",\n            \"intake_reason\": 0\n        },\n        {\n            \"id\": \"376005177290009\",\n            \"purchase_order_package\": \"274466273080006\",\n            \"quantity_delivered\": \"1.00\",\n            \"quantity_delivered_status\": \"ALL\",\n            \"remarks\": \"\",\n            \"actual_price\": \"15.00\",\n            \"intake_reason\": 0\n        }\n    ],\n    \"delivery_closed\": false,\n    \"created_date\": \"2022-12-01T15:09:32.596473+01:00\",\n    \"modified_date\": \"2022-12-01T15:09:32.899134+01:00\",\n    \"next_delivery_date\": \"2022-12-05T15:00:00\",\n    \"received_deliveries\": [\n        {\n            \"id\": \"477760996410007\",\n            \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/477760996410007/\",\n            \"draft\": false,\n            \"received_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"delivery_date\": \"2022-12-01T17:09:00\",\n            \"update_stock\": true,\n            \"actual_price\": \"29.36\",\n            \"delivery_remarks\": \"\",\n            \"discount\": \"0.00\",\n            \"discount_remarks\": \"\",\n            \"returnables_in\": \"0.00\",\n            \"returnables_out\": \"0.00\",\n            \"returnables_remarks\": \"\",\n            \"delivered_packages\": [\n                {\n                    \"id\": \"578494715400001\",\n                    \"purchase_order_package\": {\n                        \"id\": \"274466273080006\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"376005177290009\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"15.00\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n                        \"id\": \"439435\"\n                    }\n                },\n                {\n                    \"id\": \"578494325400001\",\n                    \"purchase_order_package\": {\n                        \"id\": \"474466083060002\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"476005987290004\"\n                    },\n                    \"quantity_delivered\": \"2.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"9.88\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                        \"id\": \"428119\"\n                    }\n                },\n                {\n                    \"id\": \"878494635410004\",\n                    \"purchase_order_package\": {\n                        \"id\": \"474466493060003\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"376005597280001\"\n                    },\n                    \"quantity_delivered\": \"4.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"4.48\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428121/\",\n                        \"id\": \"428121\"\n                    }\n                }\n            ],\n            \"delivery_notes\": []\n        }\n    ]\n}"}],"_postman_id":"3c4cccd5-87ca-4300-a042-7aca931a6cc1"},{"name":"Close delivery","id":"8bac0c71-1c10-4802-98c8-21eca088a3c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/{{aggregatedSupplierDeliveryId}}/submit/","description":"<p>Close delivery. Indicates that the delivery is complete or no more supplier deliveries are expected for the order.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["aggregated_supplier_deliveries","{{aggregatedSupplierDeliveryId}}","submit",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"589213eb-649e-45ed-8e0c-07a2528efe2d","name":"Close delivery","originalRequest":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/{{aggregatedSupplierDeliveryId}}/submit/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"775860528690006\",\n    \"purchase_order\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490200500004/\",\n    \"purchase_order_id\": \"373490200500004\",\n    \"total_actual_price\": \"70.46\",\n    \"aggregated_delivered_packages\": [\n        {\n            \"id\": \"476005347250003\",\n            \"purchase_order_package\": \"974466112050001\",\n            \"quantity_delivered\": \"1.00\",\n            \"quantity_delivered_status\": \"ALL\",\n            \"remarks\": \"\",\n            \"actual_price\": \"4.94\",\n            \"intake_reason\": 1\n        },\n        {\n            \"id\": \"976005437270007\",\n            \"purchase_order_package\": \"174466402030005\",\n            \"quantity_delivered\": \"1.00\",\n            \"quantity_delivered_status\": \"ALL\",\n            \"remarks\": \"\",\n            \"actual_price\": \"15.00\",\n            \"intake_reason\": 0\n        },\n        {\n            \"id\": \"976005257270001\",\n            \"purchase_order_package\": \"174466622020007\",\n            \"quantity_delivered\": \"1.00\",\n            \"quantity_delivered_status\": \"ALL\",\n            \"remarks\": \"\",\n            \"actual_price\": \"49.40\",\n            \"intake_reason\": 1\n        },\n        {\n            \"id\": \"576005567260007\",\n            \"purchase_order_package\": \"274466463050001\",\n            \"quantity_delivered\": \"1.00\",\n            \"quantity_delivered_status\": \"PARTIALLY\",\n            \"remarks\": \"\",\n            \"actual_price\": \"1.12\",\n            \"intake_reason\": 0\n        }\n    ],\n    \"delivery_closed\": true,\n    \"created_date\": \"2022-12-01T15:00:44.588028+01:00\",\n    \"modified_date\": \"2022-12-01T15:01:17.210052+01:00\",\n    \"next_delivery_date\": null,\n    \"received_deliveries\": [\n        {\n            \"id\": \"177760676470006\",\n            \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/177760676470006/\",\n            \"draft\": false,\n            \"received_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"delivery_date\": \"2022-12-01T16:09:00\",\n            \"update_stock\": true,\n            \"actual_price\": \"16.12\",\n            \"delivery_remarks\": \"\",\n            \"discount\": \"0.00\",\n            \"discount_remarks\": \"\",\n            \"returnables_in\": \"0.00\",\n            \"returnables_out\": \"0.00\",\n            \"returnables_remarks\": \"\",\n            \"delivered_packages\": [\n                {\n                    \"id\": \"978494754440008\",\n                    \"purchase_order_package\": {\n                        \"id\": \"174466402030005\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"976005437270007\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"15.00\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n                        \"id\": \"439435\"\n                    }\n                },\n                {\n                    \"id\": \"478494864450001\",\n                    \"purchase_order_package\": {\n                        \"id\": \"974466112050001\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"476005347250003\"\n                    },\n                    \"quantity_delivered\": \"0.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": 1,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                        \"id\": \"428119\"\n                    }\n                },\n                {\n                    \"id\": \"578494674490006\",\n                    \"purchase_order_package\": {\n                        \"id\": \"174466622020007\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"976005257270001\"\n                    },\n                    \"quantity_delivered\": \"0.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": 1,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428120/\",\n                        \"id\": \"428120\"\n                    }\n                },\n                {\n                    \"id\": \"678494484410007\",\n                    \"purchase_order_package\": {\n                        \"id\": \"274466463050001\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"576005567260007\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"1.12\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428121/\",\n                        \"id\": \"428121\"\n                    }\n                }\n            ],\n            \"delivery_notes\": [\n                {\n                    \"id\": \"380000709120005\",\n                    \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T140554Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=b77cb800355349cc749f0631ad4a893f9cde31dfe8c3bd2ff881b6b24581ef65\"\n                },\n                {\n                    \"id\": \"480000119100002\",\n                    \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T140554Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=2f7439a442a844b8f95cf43d06fdc633f1530a6193c4b16390bf6056906b8b80\"\n                }\n            ]\n        },\n        {\n            \"id\": \"377760986480007\",\n            \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/377760986480007/\",\n            \"draft\": false,\n            \"received_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n              },\n            \"delivery_date\": \"2022-12-01T17:01:00\",\n            \"update_stock\": true,\n            \"actual_price\": \"54.34\",\n            \"delivery_remarks\": \"\",\n            \"discount\": \"0.00\",\n            \"discount_remarks\": \"\",\n            \"returnables_in\": \"0.00\",\n            \"returnables_out\": \"0.00\",\n            \"returnables_remarks\": \"\",\n            \"delivered_packages\": [\n                {\n                    \"id\": \"878494594460008\",\n                    \"purchase_order_package\": {\n                        \"id\": \"974466112050001\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"476005347250003\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"4.94\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                        \"id\": \"428119\"\n                    }\n                },\n                {\n                    \"id\": \"678494905470005\",\n                    \"purchase_order_package\": {\n                        \"id\": \"174466622020007\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"976005257270001\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"49.40\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428120/\",\n                        \"id\": \"428120\"\n                    }\n                }\n            ],\n            \"delivery_notes\": []\n        }\n    ]\n}"}],"_postman_id":"8bac0c71-1c10-4802-98c8-21eca088a3c7"}],"id":"2fbb50ca-0920-4629-9472-fc48af2231af","description":"<p>A Purchase Order can have one and more supplier deliveries. The Aggregated Supplier Delivery of a purchase order contains all information about the total quantities delivered by the supplier in case of multiple deliveries for the same order.</p>\n<p>An Aggregated Supplier Delivery instance is created automatically when a first supplier delivery is created.</p>\n<p>The Aggregated Supplier Delivery has a boolean status <code>delivery_closed</code>. <code>delivery_closed=false</code> means that one or more deliveries are still expected for the order; <code>delivery_closed=true</code> means that delivery has been completed and no further deliveries will be received for the order.</p>\n<p>Specify a <code>purchase_order</code> value in the query in order to get delivery information for a known purchase order. Note that an instance of the Aggregated Supplier Delivery does not share the ID of the Purchase Order that generated it.</p>\n","_postman_id":"2fbb50ca-0920-4629-9472-fc48af2231af","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Supplier Deliveries","item":[{"name":"Delivered packages","item":[{"name":"Get delivered packages","id":"9ab1fee8-d8b1-440b-a257-8e78ebcd5146","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivered_packages/","description":"<p>Get list of delivered packages of supplier delivery</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}","delivered_packages",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"e9623f69-5ad0-4982-af5d-5bf7b11ee679","name":"Get delivered packages","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivered_packages/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"878494306410004\",\n        \"purchase_order_package\": {\n            \"id\": \"774466646220004\"\n        },\n        \"aggregated_delivery_package\": {\n            \"id\": \"776005708250003\"\n        },\n        \"quantity_delivered\": \"5.00\",\n        \"remarks\": \"\",\n        \"actual_price\": \"23.00\",\n        \"intake_reason\": null,\n        \"has_updated_price\": false,\n        \"supplier_package\": {\n            \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n            \"id\": \"428119\"\n        }\n    },\n    {\n        \"id\": \"678494795450002\",\n        \"purchase_order_package\": {\n            \"id\": \"174466836220001\"\n        },\n        \"aggregated_delivery_package\": {\n            \"id\": \"776005018200003\"\n        },\n        \"quantity_delivered\": \"3.00\",\n        \"remarks\": \"Remarks\",\n        \"actual_price\": \"22.00\",\n        \"intake_reason\": 0,\n        \"has_updated_price\": false,\n        \"supplier_package\": {\n            \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n            \"id\": \"439435\"\n        }\n    }\n]"}],"_postman_id":"9ab1fee8-d8b1-440b-a257-8e78ebcd5146"},{"name":"Add a delivery package","id":"6e156e7d-e0ff-4ffc-b284-16fa78023bd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivered_packages/","description":"<p>Add a delivery package to a draft supplier delivery</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>supplier_package</td>\n<td>string</td>\n<td>ID of supplier package</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>quantity_delivered</td>\n<td>decimal</td>\n<td>delivered quantity of a supplier package</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>actual_price</td>\n<td>decimal</td>\n<td>total actual price of a supplier package</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>remarks</td>\n<td>sting</td>\n<td>remarks</td>\n<td>N</td>\n<td>\"\"</td>\n</tr>\n<tr>\n<td>intake_reason</td>\n<td>int</td>\n<td>intake reason. You can get possible values in \"Get intake reason options\" endpoint</td>\n<td>N</td>\n<td>null, after delivery submission, it gets value 0 (Accepted) or 1 (Not delivered) depends on <code>quantity_delivered</code> equals 0</td>\n</tr>\n<tr>\n<td>has_updated_price</td>\n<td>boolean</td>\n<td>If true, when submitting the delivery, it updates the supplier package's price</td>\n<td>N</td>\n<td>false</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}","delivered_packages",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"a094b5b1-3058-4a2c-bca0-2cbc80d728ec","name":"Create a delivery package","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"supplier_package\": 439435,\n    \"quantity_delivered\": \"3.00\",\n    \"remarks\": \"Remarks\",\n    \"actual_price\": \"22.00\",\n    \"intake_reason\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivered_packages/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"678494216450005\",\n    \"purchase_order_package\": {\n        \"id\": \"174466836220001\"\n    },\n    \"aggregated_delivery_package\": {\n        \"id\": \"776005018200003\"\n    },\n    \"quantity_delivered\": \"3.00\",\n    \"remarks\": \"Remarks\",\n    \"actual_price\": \"22.00\",\n    \"intake_reason\": 0,\n    \"has_updated_price\": false,\n    \"supplier_package\": {\n        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n        \"id\": \"439435\"\n    }\n}"}],"_postman_id":"6e156e7d-e0ff-4ffc-b284-16fa78023bd1"},{"name":"Edit a delivery package","id":"3e4f1766-bf7f-430d-83da-9a92e0edf946","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivered_packages/{{deliveredPackageId}}/","description":"<p>Edit a delivery package of a draft supplier delivery</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>quantity_delivered</td>\n<td>decimal</td>\n<td>delivered quantity of a supplier package</td>\n<td>N</td>\n</tr>\n<tr>\n<td>actual_price</td>\n<td>decimal</td>\n<td>total actual price of a supplier package</td>\n<td>N</td>\n</tr>\n<tr>\n<td>remarks</td>\n<td>sting</td>\n<td>remarks</td>\n<td>N</td>\n</tr>\n<tr>\n<td>intake_reason</td>\n<td>int</td>\n<td>intake reason. You can get possible values in \"Get intake reason options\" endpoint</td>\n<td>N</td>\n</tr>\n<tr>\n<td>has_updated_price</td>\n<td>boolean</td>\n<td>If true, when submitting the delivery, it updates the supplier package's price</td>\n<td>N</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}","delivered_packages","{{deliveredPackageId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"1b2dd3be-5e9b-4bf3-a5b9-51f6a67ea7c8","name":"Update a delivery package","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"quantity_delivered\": \"3.00\",\n    \"remarks\": \"Remarks\",\n    \"actual_price\": \"22.00\",\n    \"intake_reason\": 0\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivered_packages/{{deliveredPackageId}}/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"678494216450005\",\n    \"purchase_order_package\": {\n        \"id\": \"174466836220001\"\n    },\n    \"aggregated_delivery_package\": {\n        \"id\": \"776005018200003\"\n    },\n    \"quantity_delivered\": \"3.00\",\n    \"remarks\": \"Remarks\",\n    \"actual_price\": \"22.00\",\n    \"intake_reason\": 0,\n    \"has_updated_price\": false,\n    \"supplier_package\": {\n        \"url\": \"https://staging.apicbase.com/api/v1/products/supplier_packages/439435/\",\n        \"id\": \"439435\"\n    }\n}"}],"_postman_id":"3e4f1766-bf7f-430d-83da-9a92e0edf946"},{"name":"Delete a delivery package","id":"572a3dc9-a9b3-44d1-a7d3-52ab15be7910","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivered_packages/{{deliveredPackageId}}/","description":"<p>Delete a delivery package of a draft supplier delivery</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}","delivered_packages","{{deliveredPackageId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"0ef9a335-0443-48f6-9021-216cafc52493","name":"Delete a delivery package","originalRequest":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivered_packages/{{deliveredPackageId}}/"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"572a3dc9-a9b3-44d1-a7d3-52ab15be7910"}],"id":"adf95adc-06d2-4604-a316-26d613475cae","description":"<p>This collection of endpoints is used to manage the delivered packages of a supplier delivery. Individual package data can be updated.</p>\n<p>You can also update the list with <em>\"Create a supplier delivery\"</em> and <em>\"Edit a supplier delivery\"</em> endpoints.</p>\n","_postman_id":"adf95adc-06d2-4604-a316-26d613475cae","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Get supplier deliveries","id":"a9a579e6-e681-44c4-a7e9-858b87829b5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/","description":"<p>Get list of supplier deliveries.</p>\n<p>Specify a <code>purchase_order</code> or <code>aggregated_supplier_delivery</code> value in the query to get delivery information for a known purchase order.</p>\n<p>Results are paginated, but more records can be requested per page by specifying a<code>page_size</code> value.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>The amount of records per page (max 200)</p>\n","type":"text/plain"},"key":"page_size","value":""},{"disabled":true,"description":{"content":"<p>The ID of the purchase order linked to this delivery</p>\n","type":"text/plain"},"key":"purchase_order_id","value":""},{"disabled":true,"description":{"content":"<p>The ID of the aggregated supplier delivery linked to this delivery</p>\n","type":"text/plain"},"key":"aggregated_supplier_delivery_id","value":""},{"disabled":true,"description":{"content":"<p>List of ID's of  aggregated supplier deliveries linked to this delivery (list separated by commas without spaces)</p>\n","type":"text/plain"},"key":"aggregated_supplier_delivery_id__in","value":""},{"disabled":true,"description":{"content":"<p>Filter draft or submitted deliveries (boolean)</p>\n","type":"text/plain"},"key":"draft","value":""},{"disabled":true,"description":{"content":"<p>The ID of the supplier linked to the purchase order of this delivery</p>\n","type":"text/plain"},"key":"supplier_id","value":""},{"disabled":true,"description":{"content":"<p>The ID of the outlet linked to the purchase order of this delivery</p>\n","type":"text/plain"},"key":"outlet_id","value":""},{"disabled":true,"description":{"content":"<p>The ID of the user, who created the purchase order of this delivery</p>\n","type":"text/plain"},"key":"owned_by_id","value":""},{"disabled":true,"description":{"content":"<p>The ID of the user, who received this delivery</p>\n","type":"text/plain"},"key":"received_by_id","value":""},{"disabled":true,"description":{"content":"<p>Filter on the order number of the purchase order linked to this delivery</p>\n","type":"text/plain"},"key":"order_number","value":""},{"disabled":true,"description":{"content":"<p>Filter on the order number of the purchase order linked to this delivery</p>\n","type":"text/plain"},"key":"invoice_number","value":""},{"disabled":true,"description":{"content":"<p>Filter on the order's invoice status (0 = not yet received; 1 = received; 2 = payable; 3 = paid)</p>\n","type":"text/plain"},"key":"invoice_status","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders sent on this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ordered_on","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders sent later than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ordered_on__gt","value":""},{"disabled":true,"description":{"content":"<p>Filter on orders sent earlier than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"ordered_on__lt","value":""},{"disabled":true,"description":{"content":"<p>Filter on delivery date on this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"delivery_date","value":""},{"disabled":true,"description":{"content":"<p>Filter on delivery date later than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"delivery_date__gt","value":""},{"disabled":true,"description":{"content":"<p>Filter on delivery date earlier than this date (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"delivery_date__lt","value":""}],"variable":[]}},"response":[{"id":"e5044339-a144-4081-bbc4-893c7ce7b289","name":"Get supplier deliveries","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"377760986480007\",\n            \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/377760986480007/\",\n            \"draft\": false,\n            \"received_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            },\n            \"delivery_date\": \"2022-12-01T17:01:00\",\n            \"update_stock\": true,\n            \"actual_price\": \"54.34\",\n            \"delivery_remarks\": \"\",\n            \"discount\": \"0.00\",\n            \"discount_remarks\": \"\",\n            \"returnables_in\": \"0.00\",\n            \"returnables_out\": \"0.00\",\n            \"returnables_remarks\": \"\",\n            \"delivered_packages\": [\n                {\n                    \"id\": \"878494594460008\",\n                    \"purchase_order_package\": {\n                        \"id\": \"974466112050001\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"476005347250003\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"4.94\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                        \"id\": \"428119\"\n                    }\n                },\n                {\n                    \"id\": \"678494905470005\",\n                    \"purchase_order_package\": {\n                        \"id\": \"174466622020007\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"976005257270001\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"49.40\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428120/\",\n                        \"id\": \"428120\"\n                    }\n                }\n            ],\n            \"delivery_notes\": [],\n            \"purchase_order\": {\n                \"id\": \"373490200500004\",\n                \"url\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490200500004/\",\n                \"order_number\": \"#20221130-1132-8\"\n            },\n            \"aggregated_supplier_delivery\": {\n                \"id\": \"775860528690006\",\n                \"url\": \"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/775860528690006/submit/\"\n            }\n        },\n        {\n            \"id\": \"177760676470006\",\n            \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/177760676470006/\",\n            \"draft\": false,\n            \"received_by\": {\n                \"id\": \"236300957450001\",\n                \"username\": \"john.doe@apicbase.com\",\n                \"first_name\": \"John\",\n                \"last_name\": \"Doe\",\n                \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n            },\n            \"delivery_date\": \"2022-12-01T16:09:00\",\n            \"update_stock\": true,\n            \"actual_price\": \"16.12\",\n            \"delivery_remarks\": \"\",\n            \"discount\": \"0.00\",\n            \"discount_remarks\": \"\",\n            \"returnables_in\": \"0.00\",\n            \"returnables_out\": \"0.00\",\n            \"returnables_remarks\": \"\",\n            \"delivered_packages\": [\n                {\n                    \"id\": \"978494754440008\",\n                    \"purchase_order_package\": {\n                        \"id\": \"174466402030005\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"976005437270007\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"15.00\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n                        \"id\": \"439435\"\n                    }\n                },\n                {\n                    \"id\": \"478494864450001\",\n                    \"purchase_order_package\": {\n                        \"id\": \"974466112050001\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"476005347250003\"\n                    },\n                    \"quantity_delivered\": \"0.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": 1,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                        \"id\": \"428119\"\n                    }\n                },\n                {\n                    \"id\": \"578494674490006\",\n                    \"purchase_order_package\": {\n                        \"id\": \"174466622020007\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"976005257270001\"\n                    },\n                    \"quantity_delivered\": \"0.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"0.00\",\n                    \"intake_reason\": 1,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428120/\",\n                        \"id\": \"428120\"\n                    }\n                },\n                {\n                    \"id\": \"678494484410007\",\n                    \"purchase_order_package\": {\n                        \"id\": \"274466463050001\"\n                    },\n                    \"aggregated_delivery_package\": {\n                        \"id\": \"576005567260007\"\n                    },\n                    \"quantity_delivered\": \"1.00\",\n                    \"remarks\": \"\",\n                    \"actual_price\": \"1.12\",\n                    \"intake_reason\": 0,\n                    \"has_updated_price\": true,\n                    \"supplier_package\": {\n                        \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428121/\",\n                        \"id\": \"428121\"\n                    }\n                }\n            ],\n            \"delivery_notes\": [\n                {\n                    \"id\": \"380000709120005\",\n                    \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T142217Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=87a6ec1198d47fb3bd6a48d467efe64977c973531f98342b4192a16c1ce5a7ab\"\n                },\n                {\n                    \"id\": \"480000119100002\",\n                    \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T142217Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=714f73859a998fe4583ee35dda1adfbb106efe6dc779e779a9a4a5540d298141\"\n                }\n            ],\n            \"purchase_order\": {\n                \"id\": \"373490200500004\",\n                \"url\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490200500004/\",\n                \"order_number\": \"#20221130-1132-8\"\n            },\n            \"aggregated_supplier_delivery\": {\n                \"id\": \"775860528690006\",\n                \"url\": \"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/775860528690006/submit/\"\n            }\n        }\n    ]\n}"}],"_postman_id":"a9a579e6-e681-44c4-a7e9-858b87829b5e"},{"name":"Get a supplier delivery detail","id":"ed1830ba-3a22-43a1-8c8f-ffa928ae9b76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/","description":"<p>Gets information about a single supplier delivery</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"638c722a-147d-49a9-a2d5-200c7f3b92b2","name":"Get a supplier delivery detail","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"177760676470006\",\n    \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/177760676470006/\",\n    \"draft\": false,\n    \"received_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"delivery_date\": \"2022-12-01T16:09:00\",\n    \"update_stock\": true,\n    \"actual_price\": \"16.12\",\n    \"delivery_remarks\": \"\",\n    \"discount\": \"0.00\",\n    \"discount_remarks\": \"\",\n    \"returnables_in\": \"0.00\",\n    \"returnables_out\": \"0.00\",\n    \"returnables_remarks\": \"\",\n    \"delivered_packages\": [\n        {\n            \"id\": \"978494754440008\",\n            \"purchase_order_package\": {\n                \"id\": \"174466402030005\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"976005437270007\"\n            },\n            \"quantity_delivered\": \"1.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"15.00\",\n            \"intake_reason\": 0,\n            \"has_updated_price\": true,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n                \"id\": \"439435\"\n            }\n        },\n        {\n            \"id\": \"478494864450001\",\n            \"purchase_order_package\": {\n                \"id\": \"974466112050001\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"476005347250003\"\n            },\n            \"quantity_delivered\": \"0.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"0.00\",\n            \"intake_reason\": 1,\n            \"has_updated_price\": true,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                \"id\": \"428119\"\n            }\n        },\n        {\n            \"id\": \"578494674490006\",\n            \"purchase_order_package\": {\n                \"id\": \"174466622020007\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"976005257270001\"\n            },\n            \"quantity_delivered\": \"0.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"0.00\",\n            \"intake_reason\": 1,\n            \"has_updated_price\": true,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428120/\",\n                \"id\": \"428120\"\n            }\n        },\n        {\n            \"id\": \"678494484410007\",\n            \"purchase_order_package\": {\n                \"id\": \"274466463050001\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"576005567260007\"\n            },\n            \"quantity_delivered\": \"1.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"1.12\",\n            \"intake_reason\": 0,\n            \"has_updated_price\": true,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428121/\",\n                \"id\": \"428121\"\n            }\n        }\n    ],\n    \"delivery_notes\": [\n        {\n            \"id\": \"380000709120005\",\n            \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T142307Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=30086bc00db1f8b7f9f9594afffa4365197754adc835e399413ac40ceb59bd7d\"\n        },\n        {\n            \"id\": \"480000119100002\",\n            \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKSR6CMXW%2F20221201%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221201T142307Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEHMaDGV1LWNlbnRyYWwtMSJGMEQCIDD2NMNKeSskeXyLXW3Xgd5W8xc01ooMZeUt1dhxWUu5AiAwTr5Sd%2BfpPXF4wIEzCpeZOu2gqsx5JPOru4c2QnPwXSrfBAiM%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDgwNjQ0MDk4MDY5NiIM1JgCgm1KHqveLY20KrMEhR%2FWMuUzsACxA3LfpTeZYzXcsqDxccOqwopnwkbFe%2FxY0%2FD9XPqo9J%2B03UMVWaNNaJQvKMGQrc%2FDg%2FT%2BTsqg%2BNZG4%2Bj86cDJH2WfHo9wwAXqGO978zIGBdEqPEjprq5OONvgK3C1j2ZWmpkrBZVde%2FpwXm7emP0BzIafVsLJn5Xj3FUy1w66zOwtREeGDQKXMCVX0SRFyUHYxwriXlE%2F9OAybH77AwbuAV3n%2FxVpYgYkDOQLqUiVyPif%2BMEsl5T96FOtlaSzk%2FIlkoyZ7MxQ%2BJgyyhyErgAoKNaPce3bvjQ6dE%2FvI9iEf50ayD4QLOCRv962NV5PBZgTGRydma%2BuL%2FwstzlT9r6RvCjTO%2Ff29dz3aYJCV8qITMC957VpR1EA8zCU435nklvtxl9G5LgPPXIAnZn8fZHs%2BwM8tyEC%2BKVQFlm2iCGhCP2hKZizkQpX9gGJZHDzr8pMi5cOgka4qkcZeIeXWPqEgYn1jkMYPP6Rmk3fGpi8CtEaE0dLO%2FiIDV5O3XbjkXCxmwb8H9aAyGnYgcduZUkWT7ANtzt3vqiChQKj3gyGOHeXLZX6RI4pDb7%2FRDSKRfBj10VcKYlkV66JxHQQa1X46SgK4hirVnq2IBDv15Al8TLnRsSoyxAwi7fyNHIsyaFv70IMjWzPB5mKuR6IqUQTxm0199EoxvqEz7BDnI3u2QuEkSYaxvvhAgkxrP2kPe4qSe4Psr8rqZoeSiQdh%2FQCpj%2Bhv8RVn%2FHACyswgominAY6qgGUud4Y0KVQHSHPpI0MLONwu7%2FE9bXXzo12BheI8FhpQorzjy8alspoFk4OLzpQLpzSsa%2BZCbuWSsxoa7rG6WR3B%2BNo4iWVGSm6rwThWdGKecxEx4MQqtlnBH9L6Duac5EfgaykidAIZo6hgHGM9fvako%2BHHr%2BOE8h7z%2BoQUE2EITGBgm4Ewd7pB%2B4duht1Ufs5DZpUFk2YI2Xoh9QFq7%2B%2BS%2B3XFtSMsd8NIw%3D%3D&X-Amz-Signature=3731549f8a15135470e3acf59c7b4064565c0e758e4463ee1ec547bbebfa4a19\"\n        }\n    ],\n    \"purchase_order\": {\n        \"id\": \"373490200500004\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490200500004/\",\n        \"order_number\": \"#20221130-1132-8\"\n    },\n    \"aggregated_supplier_delivery\": {\n        \"id\": \"775860528690006\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/775860528690006/submit/\"\n    }\n}"}],"_postman_id":"ed1830ba-3a22-43a1-8c8f-ffa928ae9b76"},{"name":"Create a supplier delivery","id":"cae36522-b877-449f-a213-aa32454d9bf4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/","description":"<p>Creates a draft supplier delivery. Also creates an aggregated supplier delivery related to the purchase order if it does not exist yet. A delivery can be created for purchase order with ORDERED and DELIVERED status and not closed delivery</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>purchase_order</td>\n<td>string</td>\n<td>The ID of the purchase order linked to this delivery</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>update_stock</td>\n<td>boolean</td>\n<td>if true, stock is updated</td>\n<td>N</td>\n<td>true</td>\n</tr>\n<tr>\n<td>delivered_packages</td>\n<td><code>DeliveredPackage</code> array</td>\n<td>Packages that were actually received in the delivery</td>\n<td>N</td>\n<td>empty array</td>\n</tr>\n<tr>\n<td>delivery_remarks</td>\n<td>string</td>\n<td>Delivery remarks</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>discount</td>\n<td>decimal</td>\n<td>Total Invoice Discount</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>discount_remarks</td>\n<td>string</td>\n<td>Discount remarks</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>returnables_in</td>\n<td>decimal</td>\n<td>Incoming Returnables</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>returnables_out</td>\n<td>decimal</td>\n<td>Outgoing Returnables</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>returnables_remarks</td>\n<td>string</td>\n<td>Returnables remarks</td>\n<td>N</td>\n<td>null</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"deliveredpackage\"><code>DeliveredPackage</code></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>supplier_package</td>\n<td>string</td>\n<td>ID of supplier package</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>quantity_delivered</td>\n<td>decimal</td>\n<td>delivered quantity of the package</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>actual_price</td>\n<td>decimal</td>\n<td>total actual price of the supplier package</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>remarks</td>\n<td>sting</td>\n<td>remarks</td>\n<td>N</td>\n<td>\"\"</td>\n</tr>\n<tr>\n<td>intake_reason</td>\n<td>int</td>\n<td>intake reason. You can get possible values in \"Get intake reason options\" endpoint</td>\n<td>N</td>\n<td>null, after delivery submission, it gets value 0 (Accepted) or 1 (Not delivered) depends on is quantity_delivered equals 0</td>\n</tr>\n<tr>\n<td>has_updated_price</td>\n<td>boolean</td>\n<td>If true, when submitting the delivery, it updates the supplier package's price</td>\n<td>N</td>\n<td>false</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"458f899c-6a10-4a8f-bf86-4a83550462f3","name":"Create a supplier delivery","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"purchase_order\": \"373490790520008\",\n    \"delivery_date\": \"2022-12-04T12:00:00\",\n    \"delivery_remarks\": \"Delivery remark\",\n    \"discount\": \"10.00\",\n    \"discount_remarks\": \"Discount remarks\",\n    \"returnables_in\": \"20.00\",\n    \"returnables_out\": \"30.00\",\n    \"returnables_remarks\": \"\",\n    \"update_stock\": true,\n\n    \"delivered_packages\": [\n        {\n            \"supplier_package\": 439435,\n            \"quantity_delivered\": \"3.00\",\n            \"remarks\": \"Remarks\",\n            \"actual_price\": \"22.00\",\n            \"intake_reason\": 0\n        },\n        {\n            \"supplier_package\": 428119,\n            \"quantity_delivered\": \"5.00\",\n            \"actual_price\": \"23.00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"477760107410006\",\n    \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/477760107410006/\",\n    \"draft\": true,\n    \"received_by\": null,\n    \"delivery_date\": \"2022-12-04T12:00:00\",\n    \"update_stock\": true,\n    \"actual_price\": \"45.00\",\n    \"delivery_remarks\": \"Delivery remark\",\n    \"discount\": \"10.00\",\n    \"discount_remarks\": \"Discount remarks\",\n    \"returnables_in\": \"20.00\",\n    \"returnables_out\": \"30.00\",\n    \"returnables_remarks\": \"\",\n    \"delivered_packages\": [\n        {\n            \"id\": \"678494745440001\",\n            \"purchase_order_package\": {\n                \"id\": \"174466836220001\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"776005018200003\"\n            },\n            \"quantity_delivered\": \"3.00\",\n            \"remarks\": \"Remarks\",\n            \"actual_price\": \"22.00\",\n            \"intake_reason\": 0,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n                \"id\": \"439435\"\n            }\n        },\n        {\n            \"id\": \"978494655450009\",\n            \"purchase_order_package\": {\n                \"id\": \"774466646220004\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"776005708250003\"\n            },\n            \"quantity_delivered\": \"5.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"23.00\",\n            \"intake_reason\": null,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                \"id\": \"428119\"\n            }\n        }\n    ],\n    \"delivery_notes\": [],\n    \"purchase_order\": {\n        \"id\": \"373490790520008\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490790520008/\",\n        \"order_number\": \"#20221202-419-60\"\n    },\n    \"aggregated_supplier_delivery\": {\n        \"id\": \"675860748690006\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/675860748690006/submit/\"\n    }\n}"}],"_postman_id":"cae36522-b877-449f-a213-aa32454d9bf4"},{"name":"Edit a supplier delivery","id":"d8f7f0c1-c27d-4718-b9b8-bc2835adc806","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"delivery_date\": null\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/","description":"<p>Edit a supplier delivery.<br />update_stocks and delivered_packages cannot be edited after submitting a delivery. The <code>delivery_date</code> can be edited after submitting a delivery, but with <em>Edit closed deliveries</em> permission. Otherwise, <code>delivery_date</code> field will be ignored during the update and no warning returned.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>delivery_date</td>\n<td>string or null</td>\n<td>Date and time when order was delivered. (format <code>YYYY-MM-DDThh:mmTZD</code> or <code>YYYY-MM-DDThh:mm</code>)</td>\n<td>N</td>\n</tr>\n<tr>\n<td>update_stock</td>\n<td>boolean</td>\n<td>if true, stock is updated</td>\n<td>N</td>\n</tr>\n<tr>\n<td>delivered_packages</td>\n<td><code>DeliveredPackage</code> array</td>\n<td>Actually received packages in the delivery</td>\n<td>N</td>\n</tr>\n<tr>\n<td>delivery_remarks</td>\n<td>string</td>\n<td>Delivery remarks</td>\n<td>N</td>\n</tr>\n<tr>\n<td>discount</td>\n<td>decimal</td>\n<td>Total Invoice Discount</td>\n<td>N</td>\n</tr>\n<tr>\n<td>discount_remarks</td>\n<td>string</td>\n<td>Discount remarks</td>\n<td>N</td>\n</tr>\n<tr>\n<td>returnables_in</td>\n<td>decimal</td>\n<td>Incoming Returnables</td>\n<td>N</td>\n</tr>\n<tr>\n<td>returnables_out</td>\n<td>decimal</td>\n<td>Outgoing Returnables</td>\n<td>N</td>\n</tr>\n<tr>\n<td>returnables_remarks</td>\n<td>string</td>\n<td>Returnables remarks</td>\n<td>N</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"deliveredpackage\"><code>DeliveredPackage</code></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>supplier_package</td>\n<td>string</td>\n<td>ID of supplier package</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>quantity_delivered</td>\n<td>decimal</td>\n<td>delivered quantity of the package</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>actual_price</td>\n<td>decimal</td>\n<td>total actual price of the supplier package</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>remarks</td>\n<td>sting</td>\n<td>remarks</td>\n<td>N</td>\n<td>\"\"</td>\n</tr>\n<tr>\n<td>intake_reason</td>\n<td>int</td>\n<td>intake reason. You can get possible values in \"Get intake reason options\" endpoint</td>\n<td>N</td>\n<td>null, after delivery submission, it gets value 0 (Accepted) or 1 (Not delivered) depends on is quantity_delivered equals 0</td>\n</tr>\n<tr>\n<td>has_updated_price</td>\n<td>boolean</td>\n<td>If true, when submitting the delivery, it updates the supplier package's price</td>\n<td>N</td>\n<td>false</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"afd8c7d6-31d1-45cf-b92e-1d40a4b7cc78","name":"Update a supplier delivery","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"delivery_date\": \"2022-12-04T12:00:00+0200\",\n    \"delivery_remarks\": \"Delivery remark\",\n    \"discount\": \"10.00\",\n    \"discount_remarks\": \"Discount remarks\",\n    \"returnables_in\": \"20.00\",\n    \"returnables_out\": \"30.00\",\n    \"returnables_remarks\": \"\",\n    \"update_stock\": true,\n\n    \"delivered_packages\": [\n        {\n            \"supplier_package\": 439435,\n            \"quantity_delivered\": \"3.00\",\n            \"remarks\": \"Remarks\",\n            \"actual_price\": \"22.00\",\n            \"intake_reason\": 0\n        },\n        {\n            \"supplier_package\": 428119,\n            \"quantity_delivered\": \"5.00\",\n            \"actual_price\": \"23.00\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"477760107410006\",\n    \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/477760107410006/\",\n    \"draft\": true,\n    \"received_by\": null,\n    \"delivery_date\": \"2022-12-04T12:00:00\",\n    \"update_stock\": true,\n    \"actual_price\": \"45.00\",\n    \"delivery_remarks\": \"Delivery remark\",\n    \"discount\": \"10.00\",\n    \"discount_remarks\": \"Discount remarks\",\n    \"returnables_in\": \"20.00\",\n    \"returnables_out\": \"30.00\",\n    \"returnables_remarks\": \"\",\n    \"delivered_packages\": [\n        {\n            \"id\": \"678494745440001\",\n            \"purchase_order_package\": {\n                \"id\": \"174466836220001\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"776005018200003\"\n            },\n            \"quantity_delivered\": \"3.00\",\n            \"remarks\": \"Remarks\",\n            \"actual_price\": \"22.00\",\n            \"intake_reason\": 0,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n                \"id\": \"439435\"\n            }\n        },\n        {\n            \"id\": \"978494655450009\",\n            \"purchase_order_package\": {\n                \"id\": \"774466646220004\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"776005708250003\"\n            },\n            \"quantity_delivered\": \"5.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"23.00\",\n            \"intake_reason\": null,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                \"id\": \"428119\"\n            }\n        }\n    ],\n    \"delivery_notes\": [],\n    \"purchase_order\": {\n        \"id\": \"373490790520008\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490790520008/\",\n        \"order_number\": \"#20221202-419-60\"\n    },\n    \"aggregated_supplier_delivery\": {\n        \"id\": \"675860748690006\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/675860748690006/submit/\"\n    }\n}"}],"_postman_id":"d8f7f0c1-c27d-4718-b9b8-bc2835adc806"},{"name":"Submit a draft supplier delivery","id":"a04d97e0-0534-42ac-83f4-668f62228dd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/submit/","description":"<p>Submit a draft supplier delivery.</p>\n<p>When submitted, the delivery will transition from <code>DRAFT</code> to <code>SUBMITTED</code> state.</p>\n<p>Submission updates stock and prices of packages if these options were set on the delivery.</p>\n<p><code>delivery_date</code>: can be submitted with or without timezone information. Input without timezone information will be saved in UTC+0. A submitted delivery without date time will automatically default to current date and time in UTC+0 timezone.<br />A delivery can be submitted only once.<br />General delivery information unrelated to packages, such as delivery comments, delivery note files and delivery date time, can be still edited after submission. (see <em>PATCH Edit a supplier delivery</em>)</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>delivery_date</td>\n<td>string or null</td>\n<td>Date and time when order was delivered. (format <code>YYYY-MM-DDThh:mmTZD</code> or <code>YYYY-MM-DDThh:mm</code>)</td>\n<td>N</td>\n<td><code>null</code> - Will resolve to current timestamp in UTC+0</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}","submit",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"6a366dab-5b67-4fcc-81d2-19737faef184","name":"Submit a draft supplier delivery with delivery date and timezone","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"delivery_date\": \"2022-12-04T12:00:00+0200\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/submit/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"477760107410006\",\n    \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/477760107410006/\",\n    \"draft\": false,\n    \"received_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"delivery_date\": \"2022-12-04T12:00:00\",\n    \"update_stock\": true,\n    \"actual_price\": \"45.00\",\n    \"delivery_remarks\": \"Delivery remark\",\n    \"discount\": \"10.00\",\n    \"discount_remarks\": \"Discount remarks\",\n    \"returnables_in\": \"20.00\",\n    \"returnables_out\": \"30.00\",\n    \"returnables_remarks\": \"\",\n    \"delivered_packages\": [\n        {\n            \"id\": \"678494745440001\",\n            \"purchase_order_package\": {\n                \"id\": \"174466836220001\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"776005018200003\"\n            },\n            \"quantity_delivered\": \"3.00\",\n            \"remarks\": \"Remarks\",\n            \"actual_price\": \"22.00\",\n            \"intake_reason\": 0,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n                \"id\": \"439435\"\n            }\n        },\n        {\n            \"id\": \"978494655450009\",\n            \"purchase_order_package\": {\n                \"id\": \"774466646220004\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"776005708250003\"\n            },\n            \"quantity_delivered\": \"5.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"23.00\",\n            \"intake_reason\": 0,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                \"id\": \"428119\"\n            }\n        },\n        {\n            \"id\": \"178494465420006\",\n            \"purchase_order_package\": {\n                \"id\": \"274466556230008\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"876005328290007\"\n            },\n            \"quantity_delivered\": \"0.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"0.00\",\n            \"intake_reason\": 1,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428120/\",\n                \"id\": \"428120\"\n            }\n        }\n    ],\n    \"delivery_notes\": [],\n    \"purchase_order\": {\n        \"id\": \"373490790520008\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490790520008/\",\n        \"order_number\": \"#20221202-419-60\"\n    },\n    \"aggregated_supplier_delivery\": {\n        \"id\": \"675860748690006\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/675860748690006/submit/\"\n    }\n}"},{"id":"0260a162-318f-421c-9447-8d30f3801fc5","name":"Submit a draft supplier delivery without delivery date","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/submit/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"477760107410006\",\n    \"url\": \"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/477760107410006/\",\n    \"draft\": false,\n    \"received_by\": {\n        \"id\": \"236300957450001\",\n        \"username\": \"john.doe@apicbase.com\",\n        \"first_name\": \"John\",\n        \"last_name\": \"Doe\",\n        \"url\": \"https://app.apicbase.com/api/v1/accounts/users/236300957450001/\"\n    },\n    \"delivery_date\": \"2022-12-04T12:00:00\",\n    \"update_stock\": true,\n    \"actual_price\": \"45.00\",\n    \"delivery_remarks\": \"Delivery remark\",\n    \"discount\": \"10.00\",\n    \"discount_remarks\": \"Discount remarks\",\n    \"returnables_in\": \"20.00\",\n    \"returnables_out\": \"30.00\",\n    \"returnables_remarks\": \"\",\n    \"delivered_packages\": [\n        {\n            \"id\": \"678494745440001\",\n            \"purchase_order_package\": {\n                \"id\": \"174466836220001\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"776005018200003\"\n            },\n            \"quantity_delivered\": \"3.00\",\n            \"remarks\": \"Remarks\",\n            \"actual_price\": \"22.00\",\n            \"intake_reason\": 0,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/439435/\",\n                \"id\": \"439435\"\n            }\n        },\n        {\n            \"id\": \"978494655450009\",\n            \"purchase_order_package\": {\n                \"id\": \"774466646220004\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"776005708250003\"\n            },\n            \"quantity_delivered\": \"5.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"23.00\",\n            \"intake_reason\": 0,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428119/\",\n                \"id\": \"428119\"\n            }\n        },\n        {\n            \"id\": \"178494465420006\",\n            \"purchase_order_package\": {\n                \"id\": \"274466556230008\"\n            },\n            \"aggregated_delivery_package\": {\n                \"id\": \"876005328290007\"\n            },\n            \"quantity_delivered\": \"0.00\",\n            \"remarks\": \"\",\n            \"actual_price\": \"0.00\",\n            \"intake_reason\": 1,\n            \"has_updated_price\": false,\n            \"supplier_package\": {\n                \"url\": \"https://app.apicbase.com/api/v1/products/supplier_packages/428120/\",\n                \"id\": \"428120\"\n            }\n        }\n    ],\n    \"delivery_notes\": [],\n    \"purchase_order\": {\n        \"id\": \"373490790520008\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/purchase_orders/373490790520008/\",\n        \"order_number\": \"#20221202-419-60\"\n    },\n    \"aggregated_supplier_delivery\": {\n        \"id\": \"675860748690006\",\n        \"url\": \"https://app.apicbase.com/api/v1/procurement/aggregated_supplier_deliveries/675860748690006/submit/\"\n    }\n}"}],"_postman_id":"a04d97e0-0534-42ac-83f4-668f62228dd3"},{"name":"Cancel draft supplier delivery","id":"4bb86f85-ab35-440f-846c-7efaabf03b10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/","description":"<p>Cancel a draft supplier delivery. Submitted delivery cannot be cancelled.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"d79e75d3-e11f-4038-adf5-cd631c674fef","name":"Cancel draft supplier delivery","originalRequest":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4bb86f85-ab35-440f-846c-7efaabf03b10"},{"name":"Get intake reason options","id":"f85f195b-4ee6-4d5e-924c-3d73a8097ddb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/intake_reasons/","description":"<p>Get list of all options for <code>intake_reason</code> field of a delivered package in a supplier delivery.</p>\n<p>'Accepted' intake reasons (<code>accepted=true</code>) can be used only with delivered packages (<code>quantity_delivered&gt;0</code>).</p>\n<p>'Not accepted' intake reasons (<code>accepted=false</code>) can be used only with undelivered packages (<code>quantity_delivered=0</code>).</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["intake_reasons",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"04a06e97-0e7d-43bc-951e-27968efa4625","name":"Get intake reason options","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/intake_reasons/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"value\": 0,\n            \"text\": \"Accepted\",\n            \"accepted\": true\n        },\n        {\n            \"value\": 1,\n            \"text\": \"Not delivered\",\n            \"accepted\": false\n        },\n        {\n            \"value\": 2,\n            \"text\": \"Canceled\",\n            \"accepted\": false\n        },\n        {\n            \"value\": 3,\n            \"text\": \"Damaged (returned)\",\n            \"accepted\": false\n        },\n        {\n            \"value\": 4,\n            \"text\": \"Quality issue (returned)\",\n            \"accepted\": false\n        },\n        {\n            \"value\": 5,\n            \"text\": \"Wrongly delivered (returned)\",\n            \"accepted\": false\n        },\n        {\n            \"value\": 6,\n            \"text\": \"Wrongly delivered (accepted)\",\n            \"accepted\": true\n        },\n        {\n            \"value\": 7,\n            \"text\": \"Wrongly ordered (returned)\",\n            \"accepted\": false\n        },\n        {\n            \"value\": 8,\n            \"text\": \"Wrongly ordered (accepted)\",\n            \"accepted\": true\n        },\n        {\n            \"value\": 9,\n            \"text\": \"Delivered too much (returned)\",\n            \"accepted\": false\n        },\n        {\n            \"value\": 10,\n            \"text\": \"Delivered too much (accepted)\",\n            \"accepted\": true\n        },\n        {\n            \"value\": 11,\n            \"text\": \"Late delivery (returned)\",\n            \"accepted\": false\n        },\n        {\n            \"value\": 12,\n            \"text\": \"Late delivery (accepted)\",\n            \"accepted\": true\n        },\n        {\n            \"value\": 13,\n            \"text\": \"Pricing issue (returned)\",\n            \"accepted\": false\n        },\n        {\n            \"value\": 14,\n            \"text\": \"Pricing issue (accepted)\",\n            \"accepted\": true\n        },\n        {\n            \"value\": 15,\n            \"text\": \"Under-delivered (returned)\",\n            \"accepted\": false\n        }\n    ]\n}"}],"_postman_id":"f85f195b-4ee6-4d5e-924c-3d73a8097ddb"}],"id":"96c06c99-ee22-4dba-9662-f6277f8ac9c5","description":"<p>A purchase order can have one and more supplier deliveries. A new supplier delivery will have status <code>draft</code>when it is created (<code>draft=true</code>), this means most data can still be edited; when submitting a supplier delivery, status <code>draft</code> is set to <code>false</code>,<br />Optionally, stock and prices can be updated for a supplier delivery. A purchase order can have only one draft supplier delivery at a time.</p>\n<p>Specify a <code>purchase_order</code> or <code>aggregated_supplier_delivery</code> value in the query to get delivery information for a known purchase order. Note that an instance of Delivered Purchase Order does not share the ID of the Purchase Order that generated it.</p>\n","_postman_id":"96c06c99-ee22-4dba-9662-f6277f8ac9c5","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Delivery Notes","item":[{"name":"Delivery notes","id":"b711451e-ac00-4216-a07c-d8640e036019","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivery_notes/","description":"<p>Gets a list of the delivery note files related to the supplier delivery</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}","delivery_notes",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"9ad7349b-833e-44fa-97f8-2c1e5f7e4d79","name":"Delivery notes","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivery_notes/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"480000629180007\",\n        \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes_LCTwvaR.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMCOYQYWQJ%2F20221202%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221202T111521Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEIr%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDGV1LWNlbnRyYWwtMSJHMEUCIQD1nAvUf629M6B%2FVMf1Ne9aVFAxe7sFrIfpV479fP58%2BgIgJTpd%2BXt3MZFCFMZRlKJ17FQfKoPYzY1aXWM31Zc5G4Iq3wQIo%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgw4MDY0NDA5ODA2OTYiDKf8HuBgIMWIu4%2BkKSqzBMuODAvzX7sIDIJ9Ur5qtTqoeKaoPvJR%2BLpHUWPk2QqMiBis1Yymf59m%2BZTdakcM7VCYMga6AabJJW09fhKBURoU1YsrxGuLmDE6x7ruXgHYW%2F6RtoBRhWM5nZCJJgK%2BFCIdMMbzvAXt9wJAuubAMSceR4jGIvXV621Vl1KRdEtmLMsGxDN3cEY4oE6Gsqb7ZxU5EpZ5HyZIrOzN%2FcN44qNBMwUFvW30FhbCIFD0hfKdRrE7%2BEld%2BU7eRQiSt%2F7LAnqravIPVT%2BTQLSmwT7yhgTMnLR9%2Fa%2FNrUC6lBJ8eAvjg7Hvh%2BA0bqTU9VSj4nxJpLfKxTbaE%2FPYqt3xR0jOb5mlJ3SB8t2ohmJcDoLJhLrBpQ759fmsHwsAFbzHCzA2kS0yrJWVS9uQFK8oRj6h7SCpVbukbN4SOauud8P%2B2tXgA0ie8vSuyoiZacni%2FygwluE%2Fb3LHD9AxdgB4HxfrXcsgjZhfWgAdlIHggdGCSCEdalb0MGDRsPLg2%2FxnAWv9KevXt89D9OExDQbkiFNxA93z5gaRD%2FSUmFc%2FYwnPsi%2BJnHEErKHtLYK8rLIGf7SNbOesXDDmKrk16%2FdwXNe%2Bbe8BYAy3vs6%2FEKeBTsIOXp05JqJpFRFoXeypGFiA2Iit5%2Brnrj14dlk0RZHWtVA3DevvaEndHLXBd2dNYuT6hVftzavQgOdLkBbR3Mhaz8lU2GdkS1v%2F3K4GxB67y9zeehKzNLpnbLzuDPOfTyumOPxpqhnWMKWTp5wGOqkBdbSGse5HUaqnsxfXku%2FIQ4iikrwbiLz8c1WXAJCdofZUbJT3v1VXbf%2BGXKTp6%2FtJmPbv9d2Mig1ojVQJRuepwvSijynalnuD2mCx2j4ezpouA79OkPYtYnyZtRVjPS8C%2BcauRA6jVQJnXzGJoAtEubZEXJZqIUgbOew2aR25wFgr1CdKIGuTTGMgiWH99Wz2eaItMFPVRX4AOD6V%2BZQqmXq%2BUwvBIPJu0g%3D%3D&X-Amz-Signature=4ecfde60a6687416f86f9bbefd9e11e4116c1aec913cbe0d1ec91ee13901c727\"\n    },\n    {\n        \"id\": \"880000839160008\",\n        \"file_url\": \"https://app-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes_PqL6p4W.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMCOYQYWQJ%2F20221202%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221202T111521Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEIr%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDGV1LWNlbnRyYWwtMSJHMEUCIQD1nAvUf629M6B%2FVMf1Ne9aVFAxe7sFrIfpV479fP58%2BgIgJTpd%2BXt3MZFCFMZRlKJ17FQfKoPYzY1aXWM31Zc5G4Iq3wQIo%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgw4MDY0NDA5ODA2OTYiDKf8HuBgIMWIu4%2BkKSqzBMuODAvzX7sIDIJ9Ur5qtTqoeKaoPvJR%2BLpHUWPk2QqMiBis1Yymf59m%2BZTdakcM7VCYMga6AabJJW09fhKBURoU1YsrxGuLmDE6x7ruXgHYW%2F6RtoBRhWM5nZCJJgK%2BFCIdMMbzvAXt9wJAuubAMSceR4jGIvXV621Vl1KRdEtmLMsGxDN3cEY4oE6Gsqb7ZxU5EpZ5HyZIrOzN%2FcN44qNBMwUFvW30FhbCIFD0hfKdRrE7%2BEld%2BU7eRQiSt%2F7LAnqravIPVT%2BTQLSmwT7yhgTMnLR9%2Fa%2FNrUC6lBJ8eAvjg7Hvh%2BA0bqTU9VSj4nxJpLfKxTbaE%2FPYqt3xR0jOb5mlJ3SB8t2ohmJcDoLJhLrBpQ759fmsHwsAFbzHCzA2kS0yrJWVS9uQFK8oRj6h7SCpVbukbN4SOauud8P%2B2tXgA0ie8vSuyoiZacni%2FygwluE%2Fb3LHD9AxdgB4HxfrXcsgjZhfWgAdlIHggdGCSCEdalb0MGDRsPLg2%2FxnAWv9KevXt89D9OExDQbkiFNxA93z5gaRD%2FSUmFc%2FYwnPsi%2BJnHEErKHtLYK8rLIGf7SNbOesXDDmKrk16%2FdwXNe%2Bbe8BYAy3vs6%2FEKeBTsIOXp05JqJpFRFoXeypGFiA2Iit5%2Brnrj14dlk0RZHWtVA3DevvaEndHLXBd2dNYuT6hVftzavQgOdLkBbR3Mhaz8lU2GdkS1v%2F3K4GxB67y9zeehKzNLpnbLzuDPOfTyumOPxpqhnWMKWTp5wGOqkBdbSGse5HUaqnsxfXku%2FIQ4iikrwbiLz8c1WXAJCdofZUbJT3v1VXbf%2BGXKTp6%2FtJmPbv9d2Mig1ojVQJRuepwvSijynalnuD2mCx2j4ezpouA79OkPYtYnyZtRVjPS8C%2BcauRA6jVQJnXzGJoAtEubZEXJZqIUgbOew2aR25wFgr1CdKIGuTTGMgiWH99Wz2eaItMFPVRX4AOD6V%2BZQqmXq%2BUwvBIPJu0g%3D%3D&X-Amz-Signature=2e5186ed20b3fb6d371f1ed9b62b1be9f903cff4effefc389dc1431d7309c895\"\n    }\n]"}],"_postman_id":"b711451e-ac00-4216-a07c-d8640e036019"},{"name":"Upload a delivery note","id":"d7925ccb-6627-4e15-a11c-78aeb19cf108","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"original_file","description":"<p>Uploading file</p>\n","type":"file","value":null}]},"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivery_notes/","description":"<p>Upload a delivery note file. One file can be uploaded per request. Uploading a file does not depend on the status of the order or delivery. A delivery can have up to 10 delivery note files attached. Uploading a file does not depend on the status of the order or delivery.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}","delivery_notes",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"210bcc12-52a0-4b2c-b144-905093a53b2b","name":"Upload a delivery note","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"original_file","type":"file","src":"4Vt1QAV-0/delivery notes.png"}]},"url":"app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivery_notes/"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"480000629180007\",\n    \"file_url\": \"https://staging-apicbasevault.s3.amazonaws.com/document_import_files/apicbase-home/delivery_notes_LCTwvaR.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIA3XQ5A2DMKDFFDCL4%2F20221202%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20221202T111416Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEIn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDGV1LWNlbnRyYWwtMSJHMEUCIQDV73wmIuFG45FgUPq75eLuzaRoluwMInAit4pFF%2BmWKQIgMxpOfyfBEUBG1SVSBDUXB3X3D2521t2xH2smzsbKs08q3wQIov%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgw4MDY0NDA5ODA2OTYiDOV8ebEO2wV%2FKVgm0CqzBAcTq20M%2BPLd8yW2URXxxTRU2qMGqz5x6rawxxuk68DJeCeetZ6%2FETcgyRJ%2Fs3%2Bt7Mt1UBxBSDxvWWavvwDvwjrxCH3BdwC%2FUURS5UBS6NWncoBinEIVSTlcN%2FIiuT7v6rLbrrBo6XGBwh2deqaKRSlVx0Wc5yZCtKtMNeNV42AqLECt4s78yeTR1%2FScBi7APQOBn12AgshRpP7D9qDtVKJngwk9t1EESarlKSb4c3fspPq2pzBX2n1cU2RTr7%2BM1zIYPZZxykCCaIkzL5IQac3fRox3lowquezEDxccJu08y8qsCScVO4A1VMjUl%2BTStcEwcfsKnHgJflD5xf%2BbE3LcgyoQgsJe94%2FFTL%2BChfkvDJh%2BNVsrlM%2F6NGN4nZQk%2BktlO24qBWA6FBmAP7zXu9EfBuE3CxShdjR0uZcIira4HB4OwQjRKeoBVKmScwSO0RCafwWZbKnO2mhnJGeb07bz9EFE69OmO01J89Xrr2xA9g2WI%2FUAuOwcQMymqhcSG5Oe2zNdH4IfpJY2NNyz%2Fw7zjU5zd2RMUcUVadEs9Wj%2BrHdGQsRqHVfQRlYYZZOkCyDidNHE49q7lKNzwk2FzJzV4NhvRZvpmY%2Bz562SgHpe2nkOK3Vk0eyFFpGiRemBQMdXcjYR556Nl%2FME9fhdHOXdhLMy2NR1T3poLfRvZnFADovdO8PI3nyd8LSxYs2KbL7y5bn%2F2hdZ1mcyHeXEUf8S0DFkXbVz11ssV1wqbrGEPYjXMPj1ppwGOqkBRO%2BtLV4isxQQaNS4db%2BKhkgur47l6vYXURTmJs4MreK8xB5rSmyMmCRouzXJZCOzACTsLaVdF0A3ECa3%2F%2FR45eT%2BEjA1ptu1p0GR8sa%2Fz5ThDPU6Ufsvucetmsxh1cFzkMEnCZmfqrSaFVGCmAcUGKWSFw%2BT2E33BCetI8g4GCR3Dr%2F8CiVfg3nIg53%2F6yIafbdW0i7WVbqNjW7j9K%2FPacOQf524EHF6Fw%3D%3D&X-Amz-Signature=9841cc3602b89b79f67bf9e89a8ec42c08b6fa41cc099742f519bec329b2d5d7\"\n}"}],"_postman_id":"d7925ccb-6627-4e15-a11c-78aeb19cf108"},{"name":"Delete delivery note","id":"f8558aa2-550e-4342-b416-fe3624deacb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivery_notes/{{deliveryNoteId}}/","description":"<p>Delete the delivery note file. Deleting a file does not depend on the status of the order or delivery.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["supplier_deliveries","{{supplierDeliveryId}}","delivery_notes","{{deliveryNoteId}}",""],"host":["https://app.apicbase.com/api/v1/procurement"],"query":[],"variable":[]}},"response":[{"id":"754da4d6-c8c3-4726-961d-3a4c81b058fb","name":"Delete delivery note","originalRequest":{"method":"DELETE","header":[],"url":"https://app.apicbase.com/api/v1/procurement/supplier_deliveries/{{supplierDeliveryId}}/delivery_notes/{{deliveryNoteId}}/"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f8558aa2-550e-4342-b416-fe3624deacb7"}],"id":"dcaa0c11-1767-49ee-883d-f9604b801a6f","description":"<p>A delivery can have up to 10 delivery note files attached. Delivery note files are common for a delivery (not order). PDF and images formats are supported.</p>\n","_postman_id":"dcaa0c11-1767-49ee-883d-f9604b801a6f","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}}],"id":"2f0bbd3f-cfdc-4697-8249-5875f489e326","_postman_id":"2f0bbd3f-cfdc-4697-8249-5875f489e326","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}}],"id":"36ed5b47-6d15-4644-b37f-15e861a7e1c2","description":"<p>This collection includes endpoints through which purchase orders and delivery details of orders made through Apicbase can be accessed.</p>\n","_postman_id":"36ed5b47-6d15-4644-b37f-15e861a7e1c2","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Sales","item":[{"name":"Generic POS API","item":[{"name":"Create POS items and categories","id":"47237a96-13af-4bfe-b3ca-e13971006171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"location_id\": \"POS_ANTWERPEN\",\n    \"groups\": [\n        {\n            \"pos_id\": \"BEV\",\n            \"name\": \"Beverages\",\n            \"items\": [\n                {\n                    \"plu\": \"UNC-BEV1\",\n                    \"name\": \"Hot Chocolate\",\n                    \"pos_id\": \"A0000000001\",\n                    \"sell_price\": 3.50,\n                    \"vat_percentage\": 12,\n                    \"is_modifier\": false,\n                    \"is_active\": true\n                },\n                {\n                    \"plu\": \"UNC-BEV2\",\n                    \"name\": \"Orange Juice\",\n                    \"pos_id\": \"A0000000002\",\n                    \"sell_price\": 2,\n                    \"vat_percentage\": 21,\n                    \"is_modifier\": false,\n                    \"is_active\": true\n                }\n            ],\n            \"subgroups\": [\n                {\n                    \"pos_id\": \"ALC\",\n                    \"name\": \"Alcoholic\",\n                    \"items\": []\n                }\n            ]\n        },\n        {\n            \"pos_id\": \"MOD\",\n            \"name\": \"Modifiers\",\n            \"items\": [\n                {\n                    \"plu\": \"MOD1\",\n                    \"name\": \"Extra Chocolatey\",\n                    \"pos_id\": \"MOD00001\",\n                    \"sell_price\": 1,\n                    \"vat_percentage\": 12,\n                    \"is_modifier\": true,\n                    \"is_active\": true\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/group_items/","description":"<p>This endpoint is used to upload the complete structure of a POS to Apicbase: groups, products and modifiers. Groups take on a tree-like structure: a group can have child items but at the same time it can also have subgroups with their own items and subgroups. Every item must belong to a group. An item cannot belong to more than one group.</p>\n<p>The state of the POS sent through this endpoint is final: any existing structures in the outlet will be replaced. Existing items that are not included in the data sent to this endpoint will be deactivated, and existing groups that are not found will be deleted.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>location_id</td>\n<td>string</td>\n<td>The location_id of the outlet the products will be created in.</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>groups</td>\n<td>Group[]</td>\n<td>A list of groups.</td>\n<td>Y</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The <code>location_id</code> is <strong>not</strong> the outlet's ID! It is an arbitrary value that both Apicbase and the third party connecting to Apicbase know and use to identify a location. This value is set under an outlet's integration settings. In the Apicbase manager interface, this value can be set under <strong>Settings &gt; Outlets &gt; Edit Outlet Settings &gt; Integrations</strong>.</li>\n</ul>\n<h3 id=\"objects\">Objects</h3>\n<h4 id=\"group\">Group</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>pos_id</td>\n<td>string</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>items</td>\n<td>Product[]</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>subgroups</td>\n<td>Group[]</td>\n<td>N</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The <code>pos_id</code> attribute, seen here and many time throughout the Generic POS API, is an entity's ID in the POS system. This value establishes a link between the entity created in Apicbase and the entity that exists in the system connecting to the outlet. Although always optional, it is recommended that this number be the same as the value used to identify the entity within the POS system.</li>\n</ul>\n<h4 id=\"product\">Product</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>plu</td>\n<td>string</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>pos_id</td>\n<td>string</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>sell_price</td>\n<td>decimal</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>vat_percentage</td>\n<td>decimal</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>N</td>\n<td>true</td>\n</tr>\n<tr>\n<td>is_modifier</td>\n<td>boolean</td>\n<td>N</td>\n<td>false</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The <code>plu</code> must be a unique value.</li>\n</ul>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["generic_pos","group_items",""],"host":["https://app.apicbase.com/api/v1/analytics"],"query":[],"variable":[]}},"response":[{"id":"6650038b-85f0-4dae-a5cb-7f753685c494","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"location_id\": \"POS_ANTWERPEN\",\n    \"groups\": [\n        {\n            \"pos_id\": \"BEV\",\n            \"name\": \"Beverages\",\n            \"items\": [\n                {\n                    \"pos_id\": \"A0000000001\",\n                    \"name\": \"Hot Chocolate\",\n                    \"plu\": \"UNC-BEV1\",\n                    \"sell_price\": 3.50,\n                    \"vat_percentage\": 12,\n                    \"is_modifier\": false,\n                    \"is_active\": true\n                },\n                {\n                    \"pos_id\": \"A0000000002\",\n                    \"name\": \"Orange Juice\",\n                    \"plu\": \"UNC-BEV2\",\n                    \"sell_price\": 2,\n                    \"vat_percentage\": 21,\n                    \"is_modifier\": false,\n                    \"is_active\": true\n                }\n            ],\n            \"subgroups\": [\n                {\n                    \"pos_id\": \"ALC\",\n                    \"name\": \"Alcoholic\",\n                    \"items\": []\n                }\n            ]\n        },\n        {\n            \"pos_id\": \"MOD\",\n            \"name\": \"Modifiers\",\n            \"items\": [\n                {\n                    \"pos_id\": \"MOD00001\",\n                    \"name\": \"Extra Chocolatey\",\n                    \"plu\": \"MOD1\",\n                    \"sell_price\": 1,\n                    \"vat_percentage\": 12,\n                    \"is_modifier\": true,\n                    \"is_active\": true\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/group_items/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"47237a96-13af-4bfe-b3ca-e13971006171"},{"name":"Create or update a single product","id":"0f5f4e11-a1bb-4722-938b-e0032ad68bdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"location_id\": \"POS_ANTWERPEN\",\n    \"plu\": \"ALCBEV1\",\n    \"name\": \"Beer\",\n    \"pos_id\": \"A0000000003\",\n    \"group_id\": \"ALC\",\n    \"sell_price\": 3.00,\n    \"vat_percentage\": 21,\n    \"is_modifier\": false,\n    \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/product/","description":"<p>This endpoint can be used to create or update a single POS product. This is for <em>minor</em> changes -- do <strong>NOT</strong> make multiple calls to this endpoint to upload the entire POS structure.</p>\n<p>Will try to look up an existing item by the given POS ID. If no item with a matching POS ID is found, tries to look up the PLU value. If an item still cannot be found, creates the product. POS ID takes precedence over the PLU when looking up a product, so this can be used to update a product's PLU.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>location_id</td>\n<td>string</td>\n<td>The location_id of the outlet the product will be created in</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>plu</td>\n<td>string</td>\n<td>The product's PLU</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>The product's name</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>pos_id</td>\n<td>string</td>\n<td>The product's POS ID</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>group_id</td>\n<td>string</td>\n<td>The pos_id value of the group the product will be grouped into</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>sell_price</td>\n<td>decimal</td>\n<td>The product's sell price</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>vat_percentage</td>\n<td>decimal</td>\n<td>The item's sales tax percentage</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>boolean</td>\n<td>Whether the item is active</td>\n<td>N</td>\n<td>true</td>\n</tr>\n<tr>\n<td>is_modifier</td>\n<td>boolean</td>\n<td>Whether the item is a modifier</td>\n<td>N</td>\n<td>false</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["generic_pos","product",""],"host":["https://app.apicbase.com/api/v1/analytics"],"query":[],"variable":[]}},"response":[{"id":"6b1335a0-f704-462f-8132-ce1b44914431","name":"Success response","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"location_id\": \"POS_ANTWERPEN\",\n    \"pos_id\": \"A0000000003\",\n    \"name\": \"Beer\",\n    \"plu\": \"ALCBEV1\",\n    \"group_id\": \"ALC\",\n    \"sell_price\": 3.00,\n    \"vat_percentage\": 21,\n    \"is_modifier\": false,\n    \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/product/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"0f5f4e11-a1bb-4722-938b-e0032ad68bdc"},{"name":"Update a single product","id":"5ac0feeb-b419-452f-90b5-dfbe5f223529","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"location_id\": \"POS_ANTWERPEN\",\n    \"plu\": \"ALCBEV1\",\n    \"name\": \"Special Beer\",\n    \"pos_id\": \"A0000000003\",\n    \"group_id\": \"ALC\",\n    \"sell_price\": 5.00,\n    \"vat_percentage\": 21,\n    \"is_modifier\": false,\n    \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/product/","description":"<p>Works the same, but will return an error if a matching product cannot be found.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["generic_pos","product",""],"host":["https://app.apicbase.com/api/v1/analytics"],"query":[],"variable":[]}},"response":[{"id":"a3c95987-6d5f-46ca-9dc4-83767d91ee65","name":"Success response","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"location_id\": \"POS_ANTWERPEN\",\n    \"plu\": \"ALCBEV1\",\n    \"name\": \"Special Beer\",\n    \"pos_id\": \"A0000000003\",\n    \"group_id\": \"ALC\",\n    \"sell_price\": 5.00,\n    \"vat_percentage\": 21,\n    \"is_modifier\": false,\n    \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/product/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{}"},{"id":"888f62e7-5897-43c5-a265-2d1f91750b49","name":"Success response","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"location_id\": \"POS_ANTWERPEN\",\n    \"pos_id\": \"A0000000003\",\n    \"name\": \"Beer\",\n    \"plu\": \"ALCBEV1\",\n    \"group_id\": \"ALC\",\n    \"sell_price\": 3.00,\n    \"vat_percentage\": 21,\n    \"is_modifier\": false,\n    \"is_active\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/product/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"5ac0feeb-b419-452f-90b5-dfbe5f223529"},{"name":"Upload sales data","id":"c1889154-c7f5-40af-8675-c95635dd9242","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tickets\": [\n        {\n            \"location_id\": \"POS_ANTWERPEN\",\n            \"pos_id\": \"TKT00001\",\n            \"created_on\": \"2020-06-01T12:30:00\",\n            \"closed_on\": \"2020-06-01T13:00:00\",\n            \"items\": [\n                {\n                    \"product_plu\": \"UNC-BEV1\",\n                    \"quantity\": 2,\n                    \"unit_price\": 3.50,\n                    \"vat_percentage\": 12,\n                    \"modifiers\": [\n                        {\n                            \"product_plu\": \"MOD1\",\n                            \"quantity\": 1,\n                            \"total_price\": 1\n                        }\n                    ]\n                },\n                {\n                    \"product_plu\": \"UNC-BEV2\",\n                    \"quantity\": 5,\n                    \"total_price\": 10,\n                    \"vat_percentage\": 12,\n                    \"total_discount\": 2\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/sales/","description":"<p>This endpoint is used to upload a list of sales tickets into Apicbase. Takes a list of tickets in the request body, which contain a list of ticket lines. A ticket line may also include modifiers.</p>\n<p>Tickets should be uploaded <strong>chronologically</strong>. An automatic routine goes through recent tickets every determined interval of time to update stock according to the items sold; this routine will not pick up tickets older than other tickets that were already processed.</p>\n<p>If a client uploads a ticket for Wednesday, every date before Wednesday at that outlet is assumed to be complete. If, after the ticket from Wednesday has been processed, the client uploads a ticket from Monday, the ticket from Monday will not be processed.</p>\n<p>The ticket from Monday can still be uploaded, but it will not trigger stock updates.</p>\n<p>There is a hard limit of 30 days in the past before which no tickets will be processed for stock.</p>\n<h3 id=\"body-params\">Body params</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Description</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tickets</td>\n<td>Ticket[]</td>\n<td>A list of tickets.</td>\n<td>Y</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"objects\">Objects</h3>\n<h4 id=\"ticket\">Ticket</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>location_id</td>\n<td>string</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>pos_id</td>\n<td>string</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>created_on</td>\n<td>datetime</td>\n<td>N</td>\n<td>null</td>\n</tr>\n<tr>\n<td>closed_on</td>\n<td>datetime</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>items</td>\n<td>TicketLine[]</td>\n<td>Y</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>The datetimes should conform to the ISO format (YYYY-mm-ddTHH:MM:SS), surrounded by double quotes, no milliseconds.</li>\n</ul>\n<h4 id=\"ticketline\">TicketLine</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>product_plu</td>\n<td>string</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>integer</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>total_price</td>\n<td>decimal</td>\n<td>N</td>\n<td><code>unit_price</code> * <code>quantity</code></td>\n</tr>\n<tr>\n<td>unit_price</td>\n<td>decimal</td>\n<td>N</td>\n<td><code>total_price</code> / <code>quantity</code></td>\n</tr>\n<tr>\n<td>vat_percentage</td>\n<td>decimal</td>\n<td>N</td>\n<td>The product's <code>vat_percentage</code></td>\n</tr>\n<tr>\n<td>total_discount</td>\n<td>decimal</td>\n<td>N</td>\n<td>0</td>\n</tr>\n<tr>\n<td>unit_price_without_vat</td>\n<td>decimal</td>\n<td>N</td>\n<td>Calculated if not given</td>\n</tr>\n<tr>\n<td>modifiers</td>\n<td>ModifierLine[]</td>\n<td>N</td>\n<td>[]</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li><code>unit_price</code> and <code>total_price</code> are both optional attributes. However, one of them must be given -- the other, if not given, will be calculated.</li>\n<li><code>unit_price</code> represents the price at which one unit of the product is sold, but <code>total_price</code> represents the total price of the line after having applied the modifiers, but before subtracting the discounts.</li>\n<li><code>total_discount</code> is a flat value that will be subtracted from the total price (not a percentage).</li>\n<li>The final price saved to the database will be the total price minus discounts.</li>\n</ul>\n<p>A practical example: selling two plates of spaghetti (5 EUR), one of which has extra sauce (1 EUR), but the client had a voucher for a 2 EUR discount. The price paid was 9 EUR (2*5 + 1 - 2)</p>\n<ul>\n<li>For the ticket line: unit price = 5, quantity = 2, discount = 2. For the modifier line: unit price = 1, quantity = 1.</li>\n<li>Another way of representing the same sale: total price = 11 EUR, quantity = 2, discount = 2. The modifier line remains the same.</li>\n</ul>\n<h4 id=\"modifierline\">ModifierLine</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Attribute</th>\n<th>Type</th>\n<th>Required?</th>\n<th>Default</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>product_plu</td>\n<td>string</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>quantity</td>\n<td>integer</td>\n<td>Y</td>\n<td></td>\n</tr>\n<tr>\n<td>total_price</td>\n<td>decimal</td>\n<td>Y</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["generic_pos","sales",""],"host":["https://app.apicbase.com/api/v1/analytics"],"query":[],"variable":[]}},"response":[{"id":"f47e1166-7621-454c-ab3b-1fdd1a23cbf1","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"tickets\": [\n        {\n            \"location_id\": \"POS_ANTWERPEN\",\n            \"pos_id\": \"TKT00001\",\n            \"created_on\": \"2020-06-01T12:30:00\",\n            \"closed_on\": \"2020-06-01T13:00:00\",\n            \"items\": [\n                {\n                    \"product_plu\": \"UNC-BEV1\",\n                    \"quantity\": 2,\n                    \"unit_price\": 3.50,\n                    \"vat_percentage\": 12,\n                    \"modifiers\": [\n                        {\n                            \"product_plu\": \"MOD1\",\n                            \"quantity\": 1,\n                            \"total_price\": 1\n                        }\n                    ]\n                },\n                {\n                    \"product_plu\": \"UNC-BEV2\",\n                    \"quantity\": 5,\n                    \"total_price\": 10,\n                    \"vat_percentage\": 12,\n                    \"total_discount\": 2\n                }\n            ]\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/sales/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{}"}],"_postman_id":"c1889154-c7f5-40af-8675-c95635dd9242"},{"name":"Get POS connection settings","id":"fe5f5fad-e84b-46d6-a36d-a6307b770b0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/pos_settings/{{outletId}}/","description":"<p>Retrieves the POS settings object for a given outlet.</p>\n<p>Will only return data for outlets whose selected POS system is \"Generic POS\".</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["generic_pos","pos_settings","{{outletId}}",""],"host":["https://app.apicbase.com/api/v1/analytics"],"query":[],"variable":[]}},"response":[{"id":"da31146d-7571-40ea-9281-a8f474311c8c","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/pos_settings/{{outletId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"location_id\": \"POS_ANTWERPEN\"\n}"}],"_postman_id":"fe5f5fad-e84b-46d6-a36d-a6307b770b0b"},{"name":"Set POS connection settings","id":"468cc2cc-ea26-46ea-918e-f765dab8ef68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"location_id\": \"POS_ANTWERPEN\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/pos_settings/{{outletId}}/","description":"<p>Defines POS connection settings for a given outlet. If the outlet does not have a selected POS system, a successful POST action will set it to \"Generic POS\".</p>\n<p>Will fail with status code 400 if the outlet has any POS system other than \"Generic POS\".</p>\n<h3 id=\"objects\">Objects</h3>\n<h4 id=\"possettings\">PosSettings</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Attribute</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required?</strong></th>\n<th><strong>Default</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>location_id</td>\n<td>string</td>\n<td>Y</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["generic_pos","pos_settings","{{outletId}}",""],"host":["https://app.apicbase.com/api/v1/analytics"],"query":[],"variable":[]}},"response":[{"id":"93ef9dbd-c51d-4fbc-b4c9-30f74a480ba1","name":"Set POS connection settings","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"location_id\": \"POS_ANTWERPEN\"\n}","options":{"raw":{"language":"json"}}},"url":"https://app.apicbase.com/api/v1/analytics/generic_pos/pos_settings/{{outletId}}/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"location_id\": \"POS_ANTWERPEN\"\n}"}],"_postman_id":"468cc2cc-ea26-46ea-918e-f765dab8ef68"}],"id":"d2c51410-f54f-43f9-9a75-13b9d0d5e999","description":"<p>This group of endpoints makes up the Generic POS API. Through these endpoints, third parties can interact with Apicbase and upload POS data to a final user's outlets. The outlet that the data will be sent to must be POS-enabled and the POS provider selected must be \"Generic POS\".</p>\n<p>An outlet can be configured for use with the Generic POS API via the <a href=\"https://api.apicbase.com/#5c265f49-4bdd-4110-bc03-ddff5574df4c\"><strong>Set POS connection settings</strong></a> POST action.</p>\n<p>Alternatively, from the user interface, navigate to <strong>Settings &gt; Outlets &gt; Edit Outlet Settings &gt; Integrations</strong>. Select \"Generic POS\" as the POS system, and give the outlet a location ID.</p>\n<p>Integrations built by partners must meet a set of requirements before they can be allowed to access customer data. These guidelines can be found in this support article: <a href=\"https://support.apicbase.com/help/minimum-requirements\"><strong>Implementation guidelines for the Generic POS API</strong></a>.</p>\n","_postman_id":"d2c51410-f54f-43f9-9a75-13b9d0d5e999","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Get aggregated daily sales data in outlet","id":"6196d132-ecea-46df-b6f1-125a5741b999","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/analytics/outlets/{{outletId}}/margin?date=","description":"<p>Get cached sales data for an outlet, for a given date.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","margin"],"host":["https://app.apicbase.com/api/v1/analytics"],"query":[{"description":{"content":"<p>The date being queried (YYYY-MM-DD)</p>\n","type":"text/plain"},"key":"date","value":""}],"variable":[]}},"response":[{"id":"8b8ba422-af9c-4d55-9bdd-8ddd8ba2f7df","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/analytics/outlets/229100415400002/margin?date=2020-06-01","host":["https://app.apicbase.com/api/v1/analytics"],"path":["outlets","229100415400002","margin"],"query":[{"key":"date","value":"2020-06-01"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"outlet\": \"229100415400002\",\n    \"date\": \"2020-06-01\",\n    \"products_sold\": 9,\n    \"revenue_including_vat\": \"47.00\",\n    \"revenue_excluding_vat\": \"41.96\",\n    \"prime_cost\": \"0.00\",\n    \"food_cost\": \"0.00\",\n    \"profit\": \"41.96\",\n    \"profit_food_cost\": \"41.96\",\n    \"profit_margin\": \"1.0000\",\n    \"profit_margin_food_cost\": \"1.0000\"\n}"}],"_postman_id":"6196d132-ecea-46df-b6f1-125a5741b999"},{"name":"Get product sales data in outlet","id":"ed6312a9-0b02-47ce-8e36-5e8f141d30b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/analytics/outlets/{{outletId}}/sales/","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","sales",""],"host":["https://app.apicbase.com/api/v1/analytics"],"query":[{"disabled":true,"description":{"content":"<p>Updated at (greater than) YYYY-MM-DD</p>\n","type":"text/plain"},"key":"updated_at__gt","value":""},{"disabled":true,"description":{"content":"<p>Updated at (less than) YYYY-MM-DD</p>\n","type":"text/plain"},"key":"updated_at__lt","value":""},{"disabled":true,"description":{"content":"<p>Sale date (exact) YYYY-MM-DD</p>\n","type":"text/plain"},"key":"sale_date","value":""},{"disabled":true,"description":{"content":"<p>Sale date (greater than) YYYY-MM-DD</p>\n","type":"text/plain"},"key":"sale_date__gt","value":""},{"disabled":true,"description":{"content":"<p>Sale date (lower than) YYYY-MM-DD</p>\n","type":"text/plain"},"key":"sale_date_lt","value":""},{"disabled":true,"description":{"content":"<p>Revenue (greater than)</p>\n","type":"text/plain"},"key":"revenue__gt","value":""},{"disabled":true,"description":{"content":"<p>Revenue (lower than)</p>\n","type":"text/plain"},"key":"revenue__lt","value":""},{"disabled":true,"description":{"content":"<p>POS item's category name</p>\n","type":"text/plain"},"key":"pos_item__category_name","value":null},{"disabled":true,"description":{"content":"<p>POS item's PLU</p>\n","type":"text/plain"},"key":"pos_item__plu","value":null},{"disabled":true,"description":{"content":"<p>POS item's POS ID</p>\n","type":"text/plain"},"key":"pos_item__pos_id","value":null},{"disabled":true,"description":{"content":"<p>Linked recipe's accounting category</p>\n","type":"text/plain"},"key":"recipe__account_category","value":null},{"disabled":true,"description":{"content":"<p>Linked recipe's category</p>\n","type":"text/plain"},"key":"recipe__category","value":null},{"disabled":true,"description":{"content":"<p>Linked recipe's accounting category</p>\n","type":"text/plain"},"key":"recipe__id","value":""}],"variable":[]}},"response":[{"id":"0f23f0ab-b448-462c-8130-9734ffb8bd96","name":"With optional params","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1/analytics/outlets/{{outletId}}/sales/?updated_at__gt=2022-02-30 11:10:09&updated_at__lt=2022-05-25 11:10:09&sale_date__gt=2022-01-01&sale_date_lt=2022-05-25&revenue__gt=400.5&revenue__lt=500&pos_item__category_name&pos_item__plu&pos_item__pos_id&recipe__account_category&recipe__category&recipe__id=","host":["https://app.apicbase.com/api/v1/analytics"],"path":["outlets","{{outletId}}","sales",""],"query":[{"key":"updated_at__gt","value":"2022-02-30 11:10:09"},{"key":"updated_at__lt","value":"2022-05-25 11:10:09"},{"key":"sale_date","value":"2022-05-20","disabled":true},{"key":"sale_date__gt","value":"2022-01-01"},{"key":"sale_date_lt","value":"2022-05-25"},{"key":"revenue__gt","value":"400.5"},{"key":"revenue__lt","value":"500"},{"key":"pos_item__category_name","value":null},{"key":"pos_item__plu","value":null},{"key":"pos_item__pos_id","value":null},{"key":"recipe__account_category","value":null},{"key":"recipe__category","value":null},{"key":"recipe__id","value":""}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"\"count\": 6759,\n    \"next\": \"http://app.apicbase.com/api/v1/analytics/outlets/4444/sales/?page=2\",\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"asd78s-d723-3286-9273-38e2064368df\",\n            \"sale_date\": \"2022-01-14\",\n            \"updated_at\": \"2022-02-30T14:34:07+0200\",\n            \"quantity_sold\": 5,\n            \"average_price\": \"6.49\",\n            \"average_price_without_vat\": \"5.85\",\n            \"revenue\": \"32.43\",\n            \"revenue_without_vat\": \"29.27\",\n            \"discount\": \"2.0700\",\n            \"food_cost\": \"7.98\",\n            \"prime_cost\": \"7.98\",\n            \"profit\": \"21.29\",\n            \"profit_margin\": \"72.7300\",\n            \"total_vat\": \"3.16\",\n            \"recipe\": {\n                \"id\": null,\n                \"name\": \"CHICKEN FINGERS\",\n                \"accounting_category\": \"\",\n                \"category\": \"\",\n                \"subcategory\": \"\"\n            },\n            \"pos_item\": {\n                \"pos_id\": \"PoSBrand-PPR-BI903\",\n                \"name\": \"CHICKEN FINGERS\",\n                \"plu\": \"PPR-BI903\",\n                \"category_name\": \"SNACK\",\n                \"pos_type\": \"brand-type\"\n            }\n        },\n        {\n            \"id\": \"298ds9q-b2a1-3a63-9b47-9d52be925dce\",\n            \"sale_date\": \"2022-02-14\",\n            \"updated_at\": \"2022-02-30T11:34:07+0200\",\n            \"quantity_sold\": 6,\n            \"average_price\": \"3.50\",\n            \"average_price_without_vat\": \"3.30\",\n            \"revenue\": \"21.00\",\n            \"revenue_without_vat\": \"19.80\",\n            \"discount\": \"0.0000\",\n            \"food_cost\": \"3.86\",\n            \"prime_cost\": \"3.86\",\n            \"profit\": \"15.94\",\n            \"profit_margin\": \"80.4900\",\n            \"total_vat\": \"1.20\",\n            \"recipe\": {\n                \"id\": null,\n                \"name\": \"APPLE SAUCE\",\n                \"accounting_category\": \"\",\n                \"category\": \"\",\n                \"subcategory\": \"\"\n            },\n            \"pos_item\": {\n                \"pos_id\": \"brand-PPR-DEL2512\",\n                \"name\": \"APPLE SAUCE\",\n                \"plu\": \"PPR-DEL2512\",\n                \"category_name\": \"FOOD\",\n                \"pos_type\": \"brand\"\n            }\n        },\n]"}],"_postman_id":"ed6312a9-0b02-47ce-8e36-5e8f141d30b5"},{"name":"Get POS items in outlet","id":"3633b15f-a7a4-49de-b07c-a8206499d3d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/analytics/outlets/{{outletId}}/pos_items/","description":"<p>Get active POS items in a given outlet.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["outlets","{{outletId}}","pos_items",""],"host":["https://app.apicbase.com/api/v1/analytics"],"query":[],"variable":[]}},"response":[{"id":"24eee354-9b73-47ab-80da-0cf6815744f4","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/analytics/outlets/229100415400002/pos_items/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 3,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"outlet\": \"229100415400002\",\n            \"pos_id\": \"MOD00001\",\n            \"name\": \"Extra Chocolatey\",\n            \"plu\": \"MOD1\",\n            \"sell_price\": \"1.00\",\n            \"vat_percentage\": \"12.00\",\n            \"is_modifier\": true,\n            \"is_active\": true,\n            \"linked_recipe\": null\n        },\n        {\n            \"outlet\": \"229100415400002\",\n            \"pos_id\": \"A0000000001\",\n            \"name\": \"Hot Chocolate\",\n            \"plu\": \"UNC-BEV1\",\n            \"sell_price\": \"3.50\",\n            \"vat_percentage\": \"12.00\",\n            \"is_modifier\": false,\n            \"is_active\": true,\n            \"linked_recipe\": \"449980552170001\"\n        },\n        {\n            \"outlet\": \"229100415400002\",\n            \"pos_id\": \"A0000000002\",\n            \"name\": \"Orange Juice\",\n            \"plu\": \"UNC-BEV2\",\n            \"sell_price\": \"2.00\",\n            \"vat_percentage\": \"21.00\",\n            \"is_modifier\": false,\n            \"is_active\": true,\n            \"linked_recipe\": \"749980262120005\"\n        }\n    ]\n}"}],"_postman_id":"3633b15f-a7a4-49de-b07c-a8206499d3d2"}],"id":"56be0248-e902-439e-a357-9655a83e1052","description":"<p>This collection includes endpoints to interact with sales data, upload POS data into Apicbase and view sales figures.</p>\n","_postman_id":"56be0248-e902-439e-a357-9655a83e1052","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Media","item":[{"name":"Get images","id":"3cb41c20-96fa-46af-98b8-648c8e48659b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/media/images/","description":"<p>Gets a list of menus in the library. Optional params can be used to filter and sort the results. Results are paginated, with 10 items being shown by page.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["images",""],"host":["https://app.apicbase.com/api/v1/media"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set.</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>Which field to use when ordering the results.</p>\n","type":"text/plain"},"key":"ordering","value":""},{"disabled":true,"description":{"content":"<p>A search term.</p>\n","type":"text/plain"},"key":"search","value":""}],"variable":[]}},"response":[{"id":"69d07c98-c8e6-435f-9231-d879999effff","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/media/images/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"url\": \"https://app.apicbase.com/api/v1/media/images/181566068410002/\",\n            \"id\": \"181566068410002\",\n            \"studio_login\": \"studio_account1@apicbase.com\",\n            \"full_image_url\": \"https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download_7MkdGJt.png?AWSAccessKeyId=AKIA3XQ5A2DMB6D7NGVP&Signature=wKm1De%2FbppyO%2FvlyfK515PAw4UQ%3D&Expires=1592415192\",\n            \"web_image_url\": \"https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download-webImage_large.png?AWSAccessKeyId=AKIA3XQ5A2DMB6D7NGVP&Signature=nP0A0884jH8f7V7KFWqlleC00eQ%3D&Expires=1592415192\",\n            \"thumb_image_url\": \"https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download-thumbImage.png?AWSAccessKeyId=AKIA3XQ5A2DMB6D7NGVP&Signature=FTgDhlPaipnsAeeSdLaCjvm%2FXRY%3D&Expires=1592415192\",\n            \"restaurant\": null,\n            \"description\": \"download\",\n            \"category\": \"recipe\",\n            \"uploaded_at\": \"2020-06-17T18:08:28.851366+02:00\",\n            \"picture_taken_date\": \"2020-06-17T18:08:28.861966+02:00\",\n            \"shared_on\": null,\n            \"modified_date\": \"2020-06-17T18:09:49.459202+02:00\",\n            \"uploaded_by\": \"studio_account1@apicbase.com\",\n            \"tags\": [\n                {\n                    \"id\": \"id-54-78\",\n                    \"top\": 78,\n                    \"left\": 54,\n                    \"text\": \"tag 1\"\n                },\n                {\n                    \"id\": \"id-65-43\",\n                    \"top\": 43,\n                    \"left\": 65,\n                    \"text\": \"tag 2\"\n                }\n            ],\n            \"public\": false,\n            \"external\": true\n        }\n    ]\n}"}],"_postman_id":"3cb41c20-96fa-46af-98b8-648c8e48659b"},{"name":"Get image details","id":"62d0f16d-0887-4fa0-bf98-a77048a69002","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/media/images/{{imageId}}/","description":"<p>Gets information about a specific image.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}},"urlObject":{"path":["images","{{imageId}}",""],"host":["https://app.apicbase.com/api/v1/media"],"query":[],"variable":[]}},"response":[{"id":"c5beed11-c105-4c11-bd66-d4870d1f3526","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/media/images/181566068410002/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","enabled":true}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://app.apicbase.com/api/v1/media/images/181566068410002/\",\n    \"id\": \"181566068410002\",\n    \"studio_login\": \"studio_account1@apicbase.com\",\n    \"full_image_url\": \"https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download_7MkdGJt.png?AWSAccessKeyId=AKIA3XQ5A2DMB6D7NGVP&Signature=ZDchxFK%2BacSXHHp6SRuQIyBo1Ag%3D&Expires=1592415280\",\n    \"web_image_url\": \"https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download-webImage_large.png?AWSAccessKeyId=AKIA3XQ5A2DMB6D7NGVP&Signature=MqruYdygeG73CmtGt7%2Fml2slc%2Bk%3D&Expires=1592415280\",\n    \"thumb_image_url\": \"https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download-thumbImage.png?AWSAccessKeyId=AKIA3XQ5A2DMB6D7NGVP&Signature=0GyifVrBJ5ctNx0xuZodQVSRdC4%3D&Expires=1592415280\",\n    \"restaurant\": null,\n    \"description\": \"download\",\n    \"category\": \"recipe\",\n    \"uploaded_at\": \"2020-06-17T18:08:28.851366+02:00\",\n    \"picture_taken_date\": \"2020-06-17T18:08:28.861966+02:00\",\n    \"shared_on\": null,\n    \"modified_date\": \"2020-06-17T18:09:49.459202+02:00\",\n    \"uploaded_by\": \"studio_account1@apicbase.com\",\n    \"tags\": [\n        {\n            \"id\": \"id-54-78\",\n            \"top\": 78,\n            \"left\": 54,\n            \"text\": \"tag 1\"\n        },\n        {\n            \"id\": \"id-65-43\",\n            \"top\": 43,\n            \"left\": 65,\n            \"text\": \"tag 2\"\n        }\n    ],\n    \"public\": false,\n    \"external\": true\n}"}],"_postman_id":"62d0f16d-0887-4fa0-bf98-a77048a69002"}],"id":"2919dbd7-d9b3-4eb1-a887-33b29e2602c3","description":"<p>This collection includes options to search and view images uploaded into Apicbase.</p>\n<p><strong>About image URLs:</strong> URLs generated on our S3 buckets, where images uploaded to Apicbase are stored, expire after 15 minutes. URLs are invalidated after this expiration time has elapsed.</p>\n<p>If you must save or link to images, your application should download those images from the URL returned by the Apicbase API to your local database. Image URLs include a filename (after the final forward slash and before the query params) that is persistent -- you can check against this filename to see if the image has changed and if it needs to be downloaded again. Do not continuously query the Apicbase API to obtain updated URLs for the same images.</p>\n<p>e.g.: in the URL <code>https://production-apicvault.s3.amazonaws.com/rooms/apic_user_3475/download_7MkdGJt.png?AWSAccessKeyId=AKIA3XQ5A2DMB6D7NGVP&amp;Signature=wKm1De%2FbppyO%2FvlyfK515PAw4UQ%3D&amp;Expires=1592415192</code>, the filename is <code>download_7MkdGJt.png</code>.</p>\n","_postman_id":"2919dbd7-d9b3-4eb1-a887-33b29e2602c3","auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]},"isInherited":true,"source":{"_postman_id":"dcadc288-9c6e-435c-8dc5-4758d245472f","id":"dcadc288-9c6e-435c-8dc5-4758d245472f","name":"Apicbase API","type":"collection"}}},{"name":"Generic Suppliers API","item":[{"name":"Files","item":[{"name":"Create a file","id":"afeaffeb-e6e5-49cc-b9b6-e6c0dd87fdb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>A file containing data from multiple assortments.</p>\n","type":"file","value":null},{"key":"customer_number","value":"","description":"<p>Please note that depending of your integration this field could be required.</p>\n","type":"text","disabled":true}]},"url":"https://app.apicbase.com/api/v1/integrations/suppliers/files/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}},"urlObject":{"path":["suppliers","files",""],"host":["https://app.apicbase.com/api/v1/integrations"],"query":[],"variable":[]}},"response":[{"id":"1910b627-ec47-4cd0-b98b-00e87f5b96a3","name":"Success response","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"A file containing data from multiple assortments.","type":"file","value":null},{"key":"customer_number","value":"23014","description":"Please note that depending of your integration this field could be required.","type":"text"}]},"url":"https://app.apicbase.com/api/v1//integrations/suppliers/files/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"apic_id\": \"466000210040001\"\n}"}],"_postman_id":"afeaffeb-e6e5-49cc-b9b6-e6c0dd87fdb8"},{"name":"List files details","id":"f09f0517-52f6-4775-859c-2fa340bbeccc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/integrations/suppliers/files/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}},"urlObject":{"path":["suppliers","files",""],"host":["https://app.apicbase.com/api/v1/integrations"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>The amount of records per page (max 200)</p>\n","type":"text/plain"},"key":"page_size","value":""},{"disabled":true,"description":{"content":"<p>Possible values: 1 (the file wasn't synced yet), 2 (the file was partially synced) or 3 (the file was fully synced)</p>\n","type":"text/plain"},"key":"synced","value":""},{"disabled":true,"description":{"content":"<p>Filter by creation date less or equal than</p>\n","type":"text/plain"},"key":"created_at__lte","value":null},{"disabled":true,"description":{"content":"<p>Filter by creation date greater or equal than</p>\n","type":"text/plain"},"key":"created_at__gte","value":null},{"disabled":true,"description":{"content":"<p>A customer number to query on</p>\n","type":"text/plain"},"key":"customer_number","value":""}],"variable":[]}},"response":[{"id":"f1cb17da-bd77-4fdf-adc1-5d21819ec774","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1//integrations/suppliers/files/","host":["https://app.apicbase.com/api/v1/"],"path":["integrations","suppliers","files",""],"query":[{"key":"page","value":null,"description":"A page number within the paginated result set","type":"text","disabled":true},{"key":"page_size","value":null,"description":"The amount of records per page (max 200)","type":"text","disabled":true},{"key":"synced","value":null,"description":"Possible values: 1 (the file wasn't synced yet), 2 (the file was partially synced) or 3 (the file was fully synced)","disabled":true},{"key":"created_at__lte","value":null,"description":"Filter by creation date less or equal than","type":"text","disabled":true},{"key":"created_at__gte","value":null,"description":"Filter by creation date greater or equal than","type":"text","disabled":true},{"key":"customer_number","value":null,"description":"A customer number to query on","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1, \n    \"next\": null, \n    \"previous\": null, \n    \"results\": [\n        {\n            \"apic_id\": \"466000210040001\", \n            \"created_at\": \"2022-05-10T02:00:00+02:00\",\n            \"customer_number\": \"23014\", \n            \"synced\": 1\n        }\n    ]\n}"}],"_postman_id":"f09f0517-52f6-4775-859c-2fa340bbeccc"},{"name":"Retrieve file details","id":"938c4a96-12a7-405a-a5da-7296abaa46b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/integrations/suppliers/files/{{apic_id}}/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}},"urlObject":{"path":["suppliers","files","{{apic_id}}",""],"host":["https://app.apicbase.com/api/v1/integrations"],"query":[],"variable":[]}},"response":[{"id":"f4d30313-8637-492b-9bdb-8f925738cb9a","name":"Success response","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1//integrations/suppliers/files/466000210040001/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\"apic_id\": \"466000210040001\", \"created_at\": \"2022-05-10T02:00:00+02:00\", \"customer_number\": \"23014\", \"synced\": 1}"}],"_postman_id":"938c4a96-12a7-405a-a5da-7296abaa46b6"}],"id":"5b29124e-cee8-4a17-82cb-fd557a89fc61","_postman_id":"5b29124e-cee8-4a17-82cb-fd557a89fc61","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}}},{"name":"Customers","item":[{"name":"List customers","id":"5f91194f-5d7e-4303-90a2-6494ad17ff2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/integrations/suppliers/customers/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}},"urlObject":{"path":["suppliers","customers",""],"host":["https://app.apicbase.com/api/v1/integrations"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":null},{"disabled":true,"description":{"content":"<p>The amount of records per page (max 200)</p>\n","type":"text/plain"},"key":"page_size","value":null}],"variable":[]}},"response":[{"id":"a8f94229-4e31-4de4-a508-3abd96da6222","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"","query":[{"key":"page","value":null,"description":"A page number within the paginated result set","type":"text","disabled":true},{"key":"page_size","value":null,"description":"The amount of records per page (max 200)","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\"customer_number\": \"456\", \"supplier_outlet_id\": null},\n        {\"customer_number\": \"123\", \"supplier_outlet_id\": \"666\"}\n    ]\n}"}],"_postman_id":"5f91194f-5d7e-4303-90a2-6494ad17ff2f"}],"id":"7d119bbc-8556-404d-b392-31d6dd75d349","_postman_id":"7d119bbc-8556-404d-b392-31d6dd75d349","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}}},{"name":"Customer Packages","item":[{"name":"Get customer packages","id":"593d6fe9-c713-45f2-81ad-9b2e927e04be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/integrations/suppliers/customers/{{customer_number}}/packages/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}},"urlObject":{"path":["suppliers","customers","{{customer_number}}","packages",""],"host":["https://app.apicbase.com/api/v1/integrations"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":null},{"disabled":true,"description":{"content":"<p>The amount of records per page (max 200)</p>\n","type":"text/plain"},"key":"package_size","value":null},{"disabled":true,"description":{"content":"<p>Supplier distribution center identifier associated with the customer</p>\n","type":"text/plain"},"key":"supplier_outlet_id","value":""},{"disabled":true,"description":{"content":"<p>Identifier shared between packages but unique for articles</p>\n","type":"text/plain"},"key":"shared_id","value":""},{"disabled":true,"description":{"content":"<p>Article's name</p>\n","type":"text/plain"},"key":"article_name","value":""},{"disabled":true,"description":{"content":"<p>Package's GTIN/EAN</p>\n","type":"text/plain"},"key":"package_gtin","value":""},{"disabled":true,"description":{"content":"<p>True to query orderable packages. False, otherwise.</p>\n","type":"text/plain"},"key":"package_is_orderable","value":""}],"variable":[]}},"response":[{"id":"a765e053-7e85-4f5a-b938-bf39d1720b1d","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1//integrations/suppliers/customers/123/packages","host":["https://app.apicbase.com/api/v1/"],"path":["integrations","suppliers","customers","123","packages"],"query":[{"key":"page","value":null,"description":"A page number within the paginated result set","type":"text","disabled":true},{"key":"page_size","value":null,"description":"The amount of records per page (max 200)","type":"text","disabled":true},{"key":"supplier_outlet_id","value":null,"description":"Supplier distribution center identifier associated with the customer","type":"text","disabled":true},{"key":"shared_id","value":null,"description":"Identifier shared between packages but unique for articles","type":"text","disabled":true},{"key":"article_name","value":null,"description":"Article's name","type":"text","disabled":true},{"key":"package_gtin","value":null,"description":"Package's GTIN/EAN","type":"text","disabled":true},{"key":"package_is_orderable","value":null,"description":"True to query orderable packages. False, otherwise.","type":"text","disabled":true}]}},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 2, \n    \"next\": null, \n    \"previous\": null, \n    \"results\": [\n        {\n            \"supplier_outlet_id\": null,\n            \"package\": {\n                \"article\": {\"shared_id\": \"123456\", \"name\": \"Article\", \"brand\": \"Brand\"},\n                \"third_party_id\": \"EA123456\",\n                \"name\": \"Package 2\",\n                \"gtin\": null,\n                \"price\": 12.0,\n                \"price_type_code\": 0,\n                \"package_type\": null,\n                \"package_description\": {\"quantity\": 1.0, \"unit_name\": \"kg\"},\n                \"orderable\": true\n            }\n        },\n        {\n            \"supplier_outlet_id\": null,\n            \"package\": {\n                \"article\": {\"shared_id\": \"123456\", \"name\": \"Article\", \"brand\": \"Brand\"},\n                \"third_party_id\": \"CS123456\",\n                \"name\": \"Package\",\n                \"gtin\": \"26989625952452\",\n                \"price\": 6.0,\n                \"price_type_code\": 0,\n                \"package_type\": null,\n                \"package_description\": {\n                    \"quantity\": 3.0,\n                    \"package\": {\"quantity\": 1.0, \"unit_name\": \"kg\"}\n                },\n                 \"orderable\": true\n            }\n        }\n    ]\n}"}],"_postman_id":"593d6fe9-c713-45f2-81ad-9b2e927e04be"},{"name":"Get customer package details","id":"8dfeec53-aa50-4fac-a93b-2d021ef5ea2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/integrations/suppliers/customers/{{customer_number}}/packages/{{third_party_id}}/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}},"urlObject":{"path":["suppliers","customers","{{customer_number}}","packages","{{third_party_id}}",""],"host":["https://app.apicbase.com/api/v1/integrations"],"query":[],"variable":[]}},"response":[{"id":"82d0058c-5208-4b2f-b40e-2cf78bdb93b6","name":"Get customer package details","originalRequest":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1//integrations/suppliers/customers/123/packages/CS123456"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"supplier_outlet_id\": null,\n    \"package\": {\n        \"article\": {\"shared_id\": \"123456\", \"name\": \"Article\", \"brand\": \"Brand\"},\n        \"third_party_id\": \"CS123456\",\n        \"name\": \"Package\",\n        \"gtin\": \"26989625952452\",\n        \"price\": 6.0,\n        \"price_type_code\": 0,\n        \"package_type\": null,\n        \"package_description\": {\n            \"quantity\": 3.0,\n            \"package\": {\"quantity\": 1.0, \"unit_name\": \"kg\"}\n        },\n        \"orderable\": true\n    }\n}"}],"_postman_id":"8dfeec53-aa50-4fac-a93b-2d021ef5ea2f"}],"id":"8ecb4bf7-8c4b-432e-bd70-7b913dc4227a","_postman_id":"8ecb4bf7-8c4b-432e-bd70-7b913dc4227a","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}}},{"name":"Events","item":[{"name":"Get events","id":"7ad229ba-54d7-493e-8421-4dbe04aabcd2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://app.apicbase.com/api/v1/integrations/suppliers/events/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}},"urlObject":{"path":["suppliers","events",""],"host":["https://app.apicbase.com/api/v1/integrations"],"query":[{"disabled":true,"description":{"content":"<p>A page number within the paginated result set</p>\n","type":"text/plain"},"key":"page","value":""},{"disabled":true,"description":{"content":"<p>The amount of records per page (max 200)</p>\n","type":"text/plain"},"key":"page_size","value":""},{"disabled":true,"description":{"content":"<p>Filter by package's unique identifier</p>\n","type":"text/plain"},"key":"third_party_id","value":""},{"disabled":true,"description":{"content":"<p>Filter by customer's unique number</p>\n","type":"text/plain"},"key":"customer_number","value":""},{"disabled":true,"description":{"content":"<p>A message to query on</p>\n","type":"text/plain"},"key":"message","value":""},{"disabled":true,"description":{"content":"<p>Possible values: CRITICAL, ERROR, WARNING and INFO</p>\n","type":"text/plain"},"key":"event_type","value":""},{"disabled":true,"description":{"content":"<p>Filter by creation date less or equal than</p>\n","type":"text/plain"},"key":"created_at__lte","value":""},{"disabled":true,"description":{"content":"<p>Filter by creation date greater or equal than</p>\n","type":"text/plain"},"key":"created_at__gte","value":""}],"variable":[]}},"response":[{"id":"32fbdc48-a488-43e2-91ed-0967a1d1a523","name":"Success response","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://app.apicbase.com/api/v1//integrations/suppliers/events/","host":["https://app.apicbase.com/api/v1/"],"path":["integrations","suppliers","events",""],"query":[{"key":"page","value":null,"description":"A page number within the paginated result set","type":"text","disabled":true},{"key":"page_size","value":null,"description":"The amount of records per page (max 200)","type":"text","disabled":true},{"key":"third_party_id","value":null,"description":"Filter by package's unique identifier","type":"text","disabled":true},{"key":"customer_number","value":null,"description":"Filter by customer's unique number","type":"text","disabled":true},{"key":"message","value":null,"description":"A message to query on","type":"text","disabled":true},{"key":"event_type","value":null,"description":"Possible values: CRITICAL, ERROR, WARNING and INFO","type":"text","disabled":true},{"key":"created_at__lte","value":null,"description":"Filter by creation date less or equal than","type":"text","disabled":true},{"key":"created_at__gte","value":null,"description":"Filter by creation date greater or equal than","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"count\": 1,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"message\": \"An error message\", \n            \"created_at\": \"2022-05-10T02:00:00+02:00\", \n            \"event_type\": \"ERROR\", \n            \"customer_number\": null, \n            \"third_party_id\": \"456\", \n            \"extra_data\": null\n        }\n    ]\n}"}],"_postman_id":"7ad229ba-54d7-493e-8421-4dbe04aabcd2"}],"id":"c1464867-42a2-4bf4-a35f-6c96b3d32277","_postman_id":"c1464867-42a2-4bf4-a35f-6c96b3d32277","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}}},{"name":"Order Responses","item":[{"name":"Create order response","id":"1230235d-c997-484e-b61d-d8b3e1c04ad8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/xml","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://app.apicbase.com/api/v1/integrations/suppliers/purchase_orders/responses/","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}},"urlObject":{"path":["suppliers","purchase_orders","responses",""],"host":["https://app.apicbase.com/api/v1/integrations"],"query":[],"variable":[]}},"response":[],"_postman_id":"1230235d-c997-484e-b61d-d8b3e1c04ad8"}],"id":"fc6b4954-915a-467f-a465-368e0a1a8a1e","_postman_id":"fc6b4954-915a-467f-a465-368e0a1a8a1e","description":"","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":true,"source":{"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","name":"Generic Suppliers API","type":"folder"}}}],"id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd","description":"<p>Please read this article to learn more about authenticating &amp; getting approved as an external supplier:</p>\n<p><a href=\"https://support.apicbase.com/help/generic-suppliers-api-authentication\">https://support.apicbase.com/help/generic-suppliers-api-authentication</a></p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"{{clientSecret}}"},{"key":"clientId","value":"{{clientID}}"},{"key":"tokenName","value":"<token-name>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"scope","value":"<scope>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c9fa37d0-5e27-4690-b517-10c33353fb28","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a927249f-a372-4c02-921f-3d28579e91bb","type":"text/javascript","exec":[""]}}],"_postman_id":"2fd7ce6e-eaa6-4e7d-978c-bbfcbc8444fd"}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[{"key":"accessToken","value":"{{accessToken}}"}],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"scope","value":"<scope>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"grant_type","value":"<grant_type>"},{"key":"authUrl","value":"<auth-url>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"}]}},"event":[{"listen":"prerequest","script":{"id":"46ed96d9-74d7-45a2-87b5-6af183e36c99","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d38c2988-db34-4ecf-8431-7edb77ec2f16","type":"text/javascript","exec":[""]}}],"variable":[{"key":"apiUrl","value":"https://app.apicbase.com/api/v1/"}]}