{"info":{"name":"BudSense Partner API Docs - prod","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.partner.mybudsense.com/oauth2/token","protocol":"https","host":["auth","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":"https://partner.mybudsense.com/v1/:companyId/location/:locationId","protocol":"https","host":["partner","mybudsense","com"],"path":["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":"https://partner.mybudsense.com/v1/partner","protocol":"https","host":["partner","mybudsense","com"],"path":["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":"https://partner.mybudsense.com/v1/partner","protocol":"https","host":["partner","mybudsense","com"],"path":["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":"https://partner.mybudsense.com/v1/partner/enabled-shared-customer","protocol":"https","host":["partner","mybudsense","com"],"path":["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\": \"DutchieRec\",\n  \"providerId\": \"596870\"\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":"https://partner.mybudsense.com/v1/service/health","protocol":"https","host":["partner","mybudsense","com"],"path":["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":"https://partner.mybudsense.com/v1/:companyId/variants/batch-get","protocol":"https","host":["partner","mybudsense","com"],"path":["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\": 592502,\n  \"barcodes\": [\n    \"e9b770b6-5778-470a-afc5-e97e46df2f93\",\n    \"5ffcac14-00be-4af8-a44e-e5c38d7e891c\"\n  ],\n  \"skus\": [\n    \"2023ffc9-7c53-48c4-8df1-ea243863e0c2\",\n    \"0274daff-f3c4-4fca-9a7e-78fff2cabf8e\"\n  ],\n  \"stateCode\": \"ON\"\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}]}
