{"info":{"name":"BudSense Partner API Docs - staging","description":"API functions for BudSense Partner Integrations.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Authentication","description":{"content":"Authentication endpoints for BudSense Partner API."},"item":[{"name":"Get OAuth2 Token","event":[{"listen":"test","script":{"type":"text/javascript","exec":["// This script automatically sets the PartnerToken collection variable","// to the access_token value from the response, so that it can be used in subsequent API requests.","var jsonData = pm.response.json();","if (jsonData.access_token) {","    pm.collectionVariables.set(\"PartnerToken\", jsonData.access_token);","    console.log('PartnerToken has been updated');","}"]}}],"request":{"url":{"raw":"https://auth-staging.partner.mybudsense.com/oauth2/token","protocol":"https","host":["auth-staging","partner","mybudsense","com"],"path":["oauth2","token"]},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"client_credentials"},{"key":"client_id","value":"{{client_id}}"},{"key":"client_secret","value":"{{client_secret}}","type":"secret"},{"key":"scope","value":"budsense/read"}]},"description":"Use this endpoint to obtain an access token for the BudSense Partner API. Response will include an access_token, token_type, and expires_in time in seconds."}}]},{"name":"Locations","item":[{"name":"Get Location Config","request":{"url":{"raw":"/v1/:companyId/location/:locationId"},"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{PartnerToken}}","description":"Authentication token from Cognito"},{"key":"Accept","value":"application/json"}],"description":"Retrieves the configuration settings for a specific location within a company."}}],"_postman_isSubFolder":true},{"name":"Partner","item":[{"name":"Get Partner Configuration","request":{"url":{"raw":"/v1/partner"},"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{PartnerToken}}","description":"Authentication token from Cognito"},{"key":"Accept","value":"application/json"}],"description":"Retrieves the your partner configuration, including a list of companies and respective  locations you have access to."}},{"name":"Update Partner Config","request":{"url":{"raw":"/v1/partner"},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{PartnerToken}}","description":"Authentication token from Cognito"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"description":"Retrieves the your partner configuration, including a list of companies and respective  locations you have access to."}},{"name":"Enable Shared Customer","request":{"url":{"raw":"/v1/partner/enabled-shared-customer"},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{PartnerToken}}","description":"Authentication token from Cognito"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"provider\": \"Dutchie\",\n  \"providerId\": \"399683\"\n}"},"description":"Enable partner api access for a shared customer. With the given POS Provider and POS  Provider Company ID, the shared customer will be added to the partner's allowed customers list. Allowed  Providers: `Cova`, `Greenline`"}}],"_postman_isSubFolder":true},{"name":"Service","item":[{"name":"Health check endpoint","request":{"url":{"raw":"/v1/service/health"},"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{PartnerToken}}","description":"Authentication token from Cognito"},{"key":"Accept","value":"application/json"}],"description":"This endpoint is used to verify that the service is up and running."}}],"_postman_isSubFolder":true},{"name":"Variants","item":[{"name":"Batch Get Variants","request":{"url":{"raw":"/v1/:companyId/variants/batch-get"},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{PartnerToken}}","description":"Authentication token from Cognito"},{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"locationId\": 678478,\n  \"barcodes\": [\n    \"c43f7a43-920f-48ad-a9af-4f4957a8e494\",\n    \"d2fe9ac9-6162-436b-b6b5-e78190e93430\"\n  ],\n  \"skus\": [\n    \"f5001caf-aa87-4271-9a2d-203476bdc55f\",\n    \"4eefeaea-b263-474e-8c83-4a7389d21946\"\n  ],\n  \"stateCode\": \"MB\"\n}"},"description":"Retrieves a batch of product variants for a specified company and location. You can look up variants using a list of barcodes, a list of SKUs, or a combination of both."}}],"_postman_isSubFolder":true},{"name":"budsense-partner-api","description":{"content":"BudSense Partner API","type":"text/plain"},"_postman_isSubFolder":true}]}
