{"info":{"_postman_id":"d408da39-4353-4b40-84f3-63c55ebcbe1f","name":"Loylap API v2","description":"<html><head></head><body><p>RESTful API Documentation for LoyLap and Facilipay Gift Card, Loyalty, Ordering and Kiosk services</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16062323","collectionId":"d408da39-4353-4b40-84f3-63c55ebcbe1f","publishedId":"2sAXxY5V2T","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-22T16:08:12.000Z"},"item":[{"name":"auth","item":[{"name":"refresh","item":[{"name":"Renews auth token","id":"f344b9ec-0f1a-4adb-9c89-9099c9e0c515","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>(Required) Refresh token issued at previous login</p>\n","key":"refresh_token","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/refresh","urlObject":{"path":["auth","refresh"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"5196051e-56de-4a58-8bda-9cf8eab8bbd9","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) Refresh token issued at previous login","key":"refresh_token","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/refresh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"access_token\": \"<string>\",\n  \"refresh_token\": \"<string>\"\n}"},{"id":"8a5c9bde-42aa-4366-8a89-4cc0bbb8a680","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) Refresh token issued at previous login","key":"refresh_token","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/refresh"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"3f2eb449-0edc-46b0-9f64-e7142a3ac492","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) Refresh token issued at previous login","key":"refresh_token","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/refresh"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"f344b9ec-0f1a-4adb-9c89-9099c9e0c515"}],"id":"85283cc3-ca13-4734-bd18-fe22dd91f3ab","_postman_id":"85283cc3-ca13-4734-bd18-fe22dd91f3ab","description":""},{"name":"login","item":[{"name":"email","item":[{"name":"v2","item":[{"name":"Email login & authentication","id":"76cb9fd0-1973-4a68-a5a9-6638f5fee3eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>(Required) Member's email</p>\n","key":"email","value":"<string>"},{"description":"<p>(Required) Member's password</p>\n","key":"password","value":"<string>"},{"description":"<p>(Optional) Google recaptcha code</p>\n","key":"captcha_code","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/login/email/v2","urlObject":{"path":["auth","login","email","v2"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"2490e529-e53e-4182-a32c-8a79eea2eab0","name":"User logged in successfully","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"email","value":"<string>"},{"description":"(Required) ","key":"password","value":"<string>"},{"description":"Google recaptcha code","key":"captcha_code","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/login/email/v2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"user\": {\n    \"id\": \"<long>\",\n    \"name\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"email\": \"<string>\",\n    \"username\": \"<string>\",\n    \"account_number\": \"<string>\",\n    \"photo\": \"<string>\",\n    \"phone_number\": \"<string>\",\n    \"gender\": \"<string>\",\n    \"language\": \"<string>\",\n    \"date_birth\": \"<date>\",\n    \"date_add\": \"<long>\",\n    \"date_edit\": \"<long>\",\n    \"last_group_id\": \"<long>\",\n    \"last_branch_id\": \"<long>\",\n    \"has_facebook\": \"<boolean>\",\n    \"has_pin\": \"<boolean>\",\n    \"card_codes\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"payment_cards\": {\n      \"token\": \"<string>\",\n      \"card_type\": \"<string>\",\n      \"expiry_date\": \"<string>\",\n      \"save_card\": \"<boolean>\"\n    },\n    \"status\": \"<integer>\",\n    \"onboarding_type\": \"<string>\",\n    \"save_card\": \"<boolean>\"\n  },\n  \"merchant\": {\n    \"id\": \"<long>\",\n    \"name\": \"<string>\",\n    \"employee\": {\n      \"id\": \"<long>\",\n      \"permissions\": \"<string>\"\n    },\n    \"branch\": {\n      \"id\": \"<long>\"\n    }\n  },\n  \"tokens\": {\n    \"access_token\": \"<string>\",\n    \"refresh_token\": \"<string>\"\n  }\n}"},{"id":"908509c9-8ac1-4f33-b69c-34cf40496852","name":"Invalid Credentials","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"email","value":"<string>"},{"description":"(Required) ","key":"password","value":"<string>"},{"description":"Google recaptcha code","key":"captcha_code","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/login/email/v2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"5775eb41-bd59-4dbb-89ac-cba38d921764","name":"Blocked Attempts","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"email","value":"<string>"},{"description":"(Required) ","key":"password","value":"<string>"},{"description":"Google recaptcha code","key":"captcha_code","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/login/email/v2"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"9e79e75b-d7ea-4a5d-b856-e1e5dcca8f17","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"email","value":"<string>"},{"description":"(Required) ","key":"password","value":"<string>"},{"description":"Google recaptcha code","key":"captcha_code","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/login/email/v2"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"76cb9fd0-1973-4a68-a5a9-6638f5fee3eb"}],"id":"15bb59e2-7f5e-4d03-8b7e-4aa065196f6f","_postman_id":"15bb59e2-7f5e-4d03-8b7e-4aa065196f6f","description":""}],"id":"1f7210ca-57b4-4489-8c50-78eeb5a3718b","_postman_id":"1f7210ca-57b4-4489-8c50-78eeb5a3718b","description":""}],"id":"1d37a6ad-28f2-4bda-8ca5-285d11af2f87","_postman_id":"1d37a6ad-28f2-4bda-8ca5-285d11af2f87","description":""},{"name":"forgot","item":[{"name":"init","item":[{"name":"email","item":[{"name":"Starts recovering a forgotten password by email","id":"f67f47e0-9262-44ea-a8e6-377cbec50a18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>(Required) Email of user</p>\n","key":"email","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/forgot/init/email","urlObject":{"path":["auth","forgot","init","email"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"2b3c03af-e327-44f0-aa7a-45e1f0134efd","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) Email of user","key":"email","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/forgot/init/email"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"234b31cb-6eac-4944-9e66-6251cc7076c5","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) Email of user","key":"email","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/forgot/init/email"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"576dda4c-6025-4b85-8c86-2cbaf6b72659","name":"Email not found","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) Email of user","key":"email","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/forgot/init/email"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b061967c-17e4-459a-b175-ce9b03753440","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) Email of user","key":"email","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/forgot/init/email"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"f67f47e0-9262-44ea-a8e6-377cbec50a18"}],"id":"3249e12e-f1c8-4fd5-b739-0b181ba4ed28","_postman_id":"3249e12e-f1c8-4fd5-b739-0b181ba4ed28","description":""}],"id":"94c39587-6b79-43b6-b9db-65a018eeb768","_postman_id":"94c39587-6b79-43b6-b9db-65a018eeb768","description":""}],"id":"78e978e5-ca53-4ee3-85df-2d9724d1ea15","_postman_id":"78e978e5-ca53-4ee3-85df-2d9724d1ea15","description":""},{"name":"register","item":[{"name":"merchant","item":[{"name":"Register a new merchant","id":"bc1d34c9-e646-493d-a274-4b59933806f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>(Required) </p>\n","key":"owner_email","value":"<string>"},{"key":"email","value":"<string>"},{"key":"password","value":"<string>"},{"key":"first_name","value":"<string>"},{"key":"last_name","value":"<string>"},{"key":"receive_updates","value":"<boolean>"},{"description":"<p>USER: 1, MERCHANT: 2</p>\n","key":"onboarding_type","value":"1"},{"key":"website","value":"<string>"},{"key":"platform_base_url","value":"<string>"},{"description":"<p>Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover</p>\n","key":"merchant_id","value":"<long>"},{"description":"<p>Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover</p>\n","key":"platform_token","value":"<string>"},{"key":"platform_device","value":"<string>"},{"key":"platform_app","value":"<string>"},{"key":"business_name","value":"<string>"},{"key":"products","value":"<string>"},{"key":"products","value":"<string>"},{"key":"category","value":"<string>"},{"key":"nutshell_link","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/merchant","urlObject":{"path":["auth","register","merchant"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"11a73de6-9a86-4b1b-9107-7a1fd2d1726a","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"owner_email","value":"<string>"},{"key":"email","value":"<string>"},{"key":"password","value":"<string>"},{"key":"first_name","value":"<string>"},{"key":"last_name","value":"<string>"},{"key":"receive_updates","value":"<boolean>"},{"description":"USER: 1, MERCHANT: 2","key":"onboarding_type","value":"1"},{"key":"website","value":"<string>"},{"key":"platform_base_url","value":"<string>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"merchant_id","value":"<long>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"platform_token","value":"<string>"},{"key":"platform_device","value":"<string>"},{"key":"platform_app","value":"<string>"},{"key":"business_name","value":"<string>"},{"key":"products","value":"<string>"},{"key":"products","value":"<string>"},{"key":"category","value":"<string>"},{"key":"nutshell_link","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/merchant"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"<string>\",\n  \"user\": {\n    \"id\": \"<long>\",\n    \"name\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"email\": \"<string>\",\n    \"username\": \"<string>\",\n    \"account_number\": \"<string>\",\n    \"photo\": \"<string>\",\n    \"phone_number\": \"<string>\",\n    \"gender\": \"<string>\",\n    \"language\": \"<string>\",\n    \"date_birth\": \"<date>\",\n    \"date_add\": \"<long>\",\n    \"date_edit\": \"<long>\",\n    \"last_group_id\": \"<long>\",\n    \"last_branch_id\": \"<long>\",\n    \"has_facebook\": \"<boolean>\",\n    \"has_pin\": \"<boolean>\",\n    \"card_codes\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"payment_cards\": {\n      \"token\": \"<string>\",\n      \"card_type\": \"<string>\",\n      \"expiry_date\": \"<string>\",\n      \"save_card\": \"<boolean>\"\n    },\n    \"status\": \"<integer>\",\n    \"onboarding_type\": \"<string>\",\n    \"save_card\": \"<boolean>\"\n  },\n  \"merchant\": {\n    \"id\": \"<long>\",\n    \"name\": \"<string>\",\n    \"employee\": {\n      \"id\": \"<long>\",\n      \"permissions\": \"<string>\"\n    },\n    \"branch\": {\n      \"id\": \"<long>\"\n    }\n  },\n  \"tokens\": {\n    \"access_token\": \"<string>\",\n    \"refresh_token\": \"<string>\"\n  }\n}"},{"id":"81f6cd0f-51c2-406a-b89c-90d56bb6cfc1","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"owner_email","value":"<string>"},{"key":"email","value":"<string>"},{"key":"password","value":"<string>"},{"key":"first_name","value":"<string>"},{"key":"last_name","value":"<string>"},{"key":"receive_updates","value":"<boolean>"},{"description":"USER: 1, MERCHANT: 2","key":"onboarding_type","value":"1"},{"key":"website","value":"<string>"},{"key":"platform_base_url","value":"<string>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"merchant_id","value":"<long>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"platform_token","value":"<string>"},{"key":"platform_device","value":"<string>"},{"key":"platform_app","value":"<string>"},{"key":"business_name","value":"<string>"},{"key":"products","value":"<string>"},{"key":"products","value":"<string>"},{"key":"category","value":"<string>"},{"key":"nutshell_link","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/merchant"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"5c8320db-141e-4c4c-8d95-02e08db6c856","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"owner_email","value":"<string>"},{"key":"email","value":"<string>"},{"key":"password","value":"<string>"},{"key":"first_name","value":"<string>"},{"key":"last_name","value":"<string>"},{"key":"receive_updates","value":"<boolean>"},{"description":"USER: 1, MERCHANT: 2","key":"onboarding_type","value":"1"},{"key":"website","value":"<string>"},{"key":"platform_base_url","value":"<string>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"merchant_id","value":"<long>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"platform_token","value":"<string>"},{"key":"platform_device","value":"<string>"},{"key":"platform_app","value":"<string>"},{"key":"business_name","value":"<string>"},{"key":"products","value":"<string>"},{"key":"products","value":"<string>"},{"key":"category","value":"<string>"},{"key":"nutshell_link","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/merchant"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"560d9b36-f914-4317-ae22-97e818e3786f","name":"Not acceptable","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"owner_email","value":"<string>"},{"key":"email","value":"<string>"},{"key":"password","value":"<string>"},{"key":"first_name","value":"<string>"},{"key":"last_name","value":"<string>"},{"key":"receive_updates","value":"<boolean>"},{"description":"USER: 1, MERCHANT: 2","key":"onboarding_type","value":"1"},{"key":"website","value":"<string>"},{"key":"platform_base_url","value":"<string>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"merchant_id","value":"<long>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"platform_token","value":"<string>"},{"key":"platform_device","value":"<string>"},{"key":"platform_app","value":"<string>"},{"key":"business_name","value":"<string>"},{"key":"products","value":"<string>"},{"key":"products","value":"<string>"},{"key":"category","value":"<string>"},{"key":"nutshell_link","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/merchant"},"status":"Not Acceptable","code":406,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"98e77491-d296-41ce-8e57-26d8b30c2adc","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"owner_email","value":"<string>"},{"key":"email","value":"<string>"},{"key":"password","value":"<string>"},{"key":"first_name","value":"<string>"},{"key":"last_name","value":"<string>"},{"key":"receive_updates","value":"<boolean>"},{"description":"USER: 1, MERCHANT: 2","key":"onboarding_type","value":"1"},{"key":"website","value":"<string>"},{"key":"platform_base_url","value":"<string>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"merchant_id","value":"<long>"},{"description":"Also should be required if onboarding_type == 2 (MERCHANT), i.e. creating merchant and user from clover","key":"platform_token","value":"<string>"},{"key":"platform_device","value":"<string>"},{"key":"platform_app","value":"<string>"},{"key":"business_name","value":"<string>"},{"key":"products","value":"<string>"},{"key":"products","value":"<string>"},{"key":"category","value":"<string>"},{"key":"nutshell_link","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/merchant"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"bc1d34c9-e646-493d-a274-4b59933806f3"}],"id":"068f26a0-8239-40d9-a555-e87547ec893c","_postman_id":"068f26a0-8239-40d9-a555-e87547ec893c","description":""},{"name":"member","item":[{"name":"Register a new member","id":"a5985f3a-5e3d-4d61-8999-5a7ae881e96d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>(Required) </p>\n","key":"name","value":"<string>"},{"description":"<p>(Required) </p>\n","key":"email","value":"<string>"},{"description":"<p>(Required) </p>\n","key":"password","value":"<string>"},{"key":"date_of_birth","value":"<date>"},{"key":"gender","value":"other"},{"key":"fb_token","value":"<string>"},{"key":"fb_id","value":"<number>"},{"key":"card_number","value":"<string>"},{"key":"phone_number","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/member","urlObject":{"path":["auth","register","member"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"08c51b01-6215-4e57-a964-086fc99d1fda","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"name","value":"<string>"},{"description":"(Required) ","key":"email","value":"<string>"},{"description":"(Required) ","key":"password","value":"<string>"},{"key":"date_of_birth","value":"<date>"},{"key":"gender","value":"other"},{"key":"fb_token","value":"<string>"},{"key":"fb_id","value":"<number>"},{"key":"card_number","value":"<string>"},{"key":"phone_number","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/member"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"user\": {\n    \"id\": \"<long>\",\n    \"name\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"email\": \"<string>\",\n    \"username\": \"<string>\",\n    \"account_number\": \"<string>\",\n    \"photo\": \"<string>\",\n    \"phone_number\": \"<string>\",\n    \"gender\": \"<string>\",\n    \"language\": \"<string>\",\n    \"date_birth\": \"<date>\",\n    \"date_add\": \"<long>\",\n    \"date_edit\": \"<long>\",\n    \"last_group_id\": \"<long>\",\n    \"last_branch_id\": \"<long>\",\n    \"has_facebook\": \"<boolean>\",\n    \"has_pin\": \"<boolean>\",\n    \"card_codes\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"payment_cards\": {\n      \"token\": \"<string>\",\n      \"card_type\": \"<string>\",\n      \"expiry_date\": \"<string>\",\n      \"save_card\": \"<boolean>\"\n    },\n    \"status\": \"<integer>\",\n    \"onboarding_type\": \"<string>\",\n    \"save_card\": \"<boolean>\"\n  },\n  \"tokens\": {\n    \"access_token\": \"<string>\",\n    \"refresh_token\": \"<string>\"\n  }\n}"},{"id":"0bec7473-8429-42b6-b5ab-0c32b95c3577","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"name","value":"<string>"},{"description":"(Required) ","key":"email","value":"<string>"},{"description":"(Required) ","key":"password","value":"<string>"},{"key":"date_of_birth","value":"<date>"},{"key":"gender","value":"other"},{"key":"fb_token","value":"<string>"},{"key":"fb_id","value":"<number>"},{"key":"card_number","value":"<string>"},{"key":"phone_number","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/member"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"7381552c-bc51-468e-8db2-3970a674e6e0","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"name","value":"<string>"},{"description":"(Required) ","key":"email","value":"<string>"},{"description":"(Required) ","key":"password","value":"<string>"},{"key":"date_of_birth","value":"<date>"},{"key":"gender","value":"other"},{"key":"fb_token","value":"<string>"},{"key":"fb_id","value":"<number>"},{"key":"card_number","value":"<string>"},{"key":"phone_number","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/member"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"496e7887-75eb-4fb1-9945-3da8ed4967b6","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"name","value":"<string>"},{"description":"(Required) ","key":"email","value":"<string>"},{"description":"(Required) ","key":"password","value":"<string>"},{"key":"date_of_birth","value":"<date>"},{"key":"gender","value":"other"},{"key":"fb_token","value":"<string>"},{"key":"fb_id","value":"<number>"},{"key":"card_number","value":"<string>"},{"key":"phone_number","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/auth/register/member"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"a5985f3a-5e3d-4d61-8999-5a7ae881e96d"}],"id":"430a0ecf-2312-4057-a1e3-f4f52522cb6f","_postman_id":"430a0ecf-2312-4057-a1e3-f4f52522cb6f","description":""}],"id":"d3f9fcd8-3e61-434a-ba35-879bb1b73f56","_postman_id":"d3f9fcd8-3e61-434a-ba35-879bb1b73f56","description":""}],"id":"bb4e8be6-140a-4d23-8a16-0334ebcadb23","_postman_id":"bb4e8be6-140a-4d23-8a16-0334ebcadb23","description":""},{"name":"member","item":[{"name":"account","item":[{"name":"{accountId}","item":[{"name":"Gets a member's account","id":"e0bdc96a-565a-481b-8364-77927a262ff3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/member/account/:accountId","urlObject":{"path":["member","account",":accountId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"description":{"content":"<p>(Required) Member account ID or card number</p>\n","type":"text/plain"},"type":"any","value":"<integer>","key":"accountId"}]}},"response":[{"id":"03d72f6b-4649-4d43-ac40-b07a4c22ad6e","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/member/account/:accountId","host":["https://api-staging.loylap.com/v2"],"path":["member","account",":accountId"],"variable":[{"key":"accountId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"user\": {\n    \"id\": \"<long>\",\n    \"name\": \"<string>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"email\": \"<string>\",\n    \"username\": \"<string>\",\n    \"account_number\": \"<string>\",\n    \"photo\": \"<string>\",\n    \"phone_number\": \"<string>\",\n    \"gender\": \"<string>\",\n    \"language\": \"<string>\",\n    \"date_birth\": \"<date>\",\n    \"date_add\": \"<long>\",\n    \"date_edit\": \"<long>\",\n    \"last_group_id\": \"<long>\",\n    \"last_branch_id\": \"<long>\",\n    \"has_facebook\": \"<boolean>\",\n    \"has_pin\": \"<boolean>\",\n    \"card_codes\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"payment_cards\": {\n      \"token\": \"<string>\",\n      \"card_type\": \"<string>\",\n      \"expiry_date\": \"<string>\",\n      \"save_card\": \"<boolean>\"\n    },\n    \"status\": \"<integer>\",\n    \"onboarding_type\": \"<string>\",\n    \"save_card\": \"<boolean>\"\n  },\n  \"campaigns\": [\n    {\n      \"id\": \"<long>\",\n      \"status\": \"<string>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\",\n      \"terms\": \"<string>\",\n      \"picture\": \"<string>\",\n      \"schedule_period_start\": null,\n      \"schedule_period_end\": null,\n      \"limits_budget\": null,\n      \"limits_coupons\": null,\n      \"limits_coupons_user\": null,\n      \"limits_coupons_user_type\": null,\n      \"limits_value_user\": null,\n      \"limits_value_user_type\": null,\n      \"limits_budget_email\": \"<boolean>\",\n      \"limits_coupons_email\": \"<boolean>\",\n      \"highlight\": \"<boolean>\",\n      \"advertising\": \"<boolean>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"transactions\": [\n        {\n          \"rewards_value\": \"<long>\",\n          \"coupons_quantity\": \"<long>\"\n        },\n        {\n          \"rewards_value\": \"<long>\",\n          \"coupons_quantity\": \"<long>\"\n        }\n      ],\n      \"rewards\": [\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"type\": \"<string>\",\n          \"value_type\": \"<string>\",\n          \"value\": \"<long>\",\n          \"sales_value\": 0,\n          \"amount\": 0,\n          \"products_selection\": \"<string>\",\n          \"item_limit\": \"<long>\"\n        },\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"type\": \"<string>\",\n          \"value_type\": \"<string>\",\n          \"value\": \"<long>\",\n          \"sales_value\": 0,\n          \"amount\": 0,\n          \"products_selection\": \"<string>\",\n          \"item_limit\": \"<long>\"\n        }\n      ],\n      \"schedule_days\": [\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"day\": \"<string>\"\n        },\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"day\": \"<string>\"\n        }\n      ],\n      \"schedule_periods\": [\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"period\": \"<string>\"\n        },\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"period\": \"<string>\"\n        }\n      ]\n    },\n    {\n      \"id\": \"<long>\",\n      \"status\": \"<string>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\",\n      \"terms\": \"<string>\",\n      \"picture\": \"<string>\",\n      \"schedule_period_start\": null,\n      \"schedule_period_end\": null,\n      \"limits_budget\": null,\n      \"limits_coupons\": null,\n      \"limits_coupons_user\": null,\n      \"limits_coupons_user_type\": null,\n      \"limits_value_user\": null,\n      \"limits_value_user_type\": null,\n      \"limits_budget_email\": \"<boolean>\",\n      \"limits_coupons_email\": \"<boolean>\",\n      \"highlight\": \"<boolean>\",\n      \"advertising\": \"<boolean>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"transactions\": [\n        {\n          \"rewards_value\": \"<long>\",\n          \"coupons_quantity\": \"<long>\"\n        },\n        {\n          \"rewards_value\": \"<long>\",\n          \"coupons_quantity\": \"<long>\"\n        }\n      ],\n      \"rewards\": [\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"type\": \"<string>\",\n          \"value_type\": \"<string>\",\n          \"value\": \"<long>\",\n          \"sales_value\": 0,\n          \"amount\": 0,\n          \"products_selection\": \"<string>\",\n          \"item_limit\": \"<long>\"\n        },\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"type\": \"<string>\",\n          \"value_type\": \"<string>\",\n          \"value\": \"<long>\",\n          \"sales_value\": 0,\n          \"amount\": 0,\n          \"products_selection\": \"<string>\",\n          \"item_limit\": \"<long>\"\n        }\n      ],\n      \"schedule_days\": [\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"day\": \"<string>\"\n        },\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"day\": \"<string>\"\n        }\n      ],\n      \"schedule_periods\": [\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"period\": \"<string>\"\n        },\n        {\n          \"id\": \"<long>\",\n          \"campaign_id\": \"<long>\",\n          \"period\": \"<string>\"\n        }\n      ]\n    }\n  ],\n  \"balance\": {\n    \"cash\": 0,\n    \"stamps\": 0,\n    \"maxStamps\": 0,\n    \"creditAllowed\": \"<boolean>\"\n  }\n}"},{"id":"fd4b4b71-e57b-4f61-bf04-5a9f08dbfa5e","name":"Bad request","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/member/account/:accountId","host":["https://api-staging.loylap.com/v2"],"path":["member","account",":accountId"],"variable":[{"key":"accountId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"76c86d37-79bd-4ede-a488-8a80e22393c9","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/member/account/:accountId","host":["https://api-staging.loylap.com/v2"],"path":["member","account",":accountId"],"variable":[{"key":"accountId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"e0bdc96a-565a-481b-8364-77927a262ff3"}],"id":"da090414-fdd9-4069-b221-554012eea033","_postman_id":"da090414-fdd9-4069-b221-554012eea033","description":""}],"id":"42b4c630-1367-4d26-a53e-98fa3ed6879e","_postman_id":"42b4c630-1367-4d26-a53e-98fa3ed6879e","description":""}],"id":"abeee212-3f91-4585-b18f-5ab82115fa6f","_postman_id":"abeee212-3f91-4585-b18f-5ab82115fa6f","description":""},{"name":"merchants","item":[{"name":"{merchantId}","item":[{"name":"transactions","item":[{"name":"v2","item":[{"name":"List merchant transaction","id":"51340b70-df41-4163-9dc6-0624cb7f7629","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/transactions/v2?exports_to=csv&offset=0&limit=10&order=id&view_all=true&qfields=payment_type&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>","description":"<p>Filters list of merchant's transaction use for Pagination</p>\n","urlObject":{"path":["merchants",":merchantId","transactions","v2"],"host":["https://api-staging.loylap.com/v2"],"query":[{"description":{"content":"<p>The flag used to export the list as CSV</p>\n","type":"text/plain"},"key":"exports_to","value":"csv"},{"description":{"content":"<p>The number of merchant transaction to skip before starting to collect the list of merchant transaction</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>The numbers of transaction to return in a list of merchant transaction</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>The sorting key to return the list of merchant transaction</p>\n","type":"text/plain"},"key":"order","value":"id"},{"description":{"content":"<p>Get list of all customers</p>\n","type":"text/plain"},"key":"view_all","value":"true"},{"description":{"content":"<p>Select the fields to return in the list</p>\n","type":"text/plain"},"key":"qfields","value":"payment_type"},{"description":{"content":"<p>Global Search for advanced filter, read more about in <a href=\"https://github.com/conorot/api-service/wiki/Global-Search\">https://github.com/conorot/api-service/wiki/Global-Search</a></p>\n","type":"text/plain"},"key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":{"content":"<p>Global Search for advanced filter, read more about in <a href=\"https://github.com/conorot/api-service/wiki/Global-Search\">https://github.com/conorot/api-service/wiki/Global-Search</a></p>\n","type":"text/plain"},"key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"}],"variable":[{"id":"fa717822-5768-43ae-83a9-d4a6f61981c2","description":{"content":"<p>(Required) Numeric ID of merchant to get all transaction</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"b1e4cf05-716c-40ed-b2d3-5a18e895c590","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/transactions/v2?exports_to=csv&offset=0&limit=10&order=id&view_all=true&qfields=payment_type&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","transactions","v2"],"query":[{"description":"The flag used to export the list as CSV","key":"exports_to","value":"csv"},{"description":"The number of merchant transaction to skip before starting to collect the list of merchant transaction","key":"offset","value":"0"},{"description":"The numbers of transaction to return in a list of merchant transaction","key":"limit","value":"10"},{"description":"The sorting key to return the list of merchant transaction","key":"order","value":"id"},{"description":"Get list of all customers","key":"view_all","value":"true"},{"description":"Select the fields to return in the list","key":"qfields","value":"payment_type"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"}],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"total\": \"<integer>\",\n  \"data\": [\n    {\n      \"customer\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\",\n        \"card_codes\": [\n          \"<string>\",\n          \"<string>\"\n        ]\n      },\n      \"merchant\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"branch\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"employee\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"payment_type\": \"<string>\",\n      \"transaction_type\": \"<string>\",\n      \"sale_total\": \"<number>\",\n      \"amount\": \"<number>\",\n      \"refunded\": \"<boolean>\",\n      \"voided\": \"<boolean>\",\n      \"details\": {\n        \"transaction\": {\n          \"uid\": \"<string>\",\n          \"amount\": \"<number>\",\n          \"insertion_time\": \"<integer>\",\n          \"transaction_type\": \"<string>\",\n          \"order_id\": \"<string>\",\n          \"order_access_time\": 0,\n          \"order_total\": 0,\n          \"order_line_items\": \"None\",\n          \"customer_id\": \"<string>\",\n          \"customer_balance\": \"<number>\",\n          \"customer_personal_reward\": \"<integer>\",\n          \"cashback_rewards\": \"<string>\",\n          \"note\": \"<string>\",\n          \"attempts\": \"<integer>\"\n        },\n        \"device\": {\n          \"employee\": \"<string>\",\n          \"package\": \"<string>\",\n          \"version\": \"<integer>\",\n          \"model\": \"<string>\",\n          \"serial\": \"<string>\"\n        }\n      },\n      \"unique_identifier\": \"<string>\",\n      \"account_id\": \"<string>\",\n      \"time\": \"<dateTime>\",\n      \"timestamp\": \"<integer>\"\n    },\n    {\n      \"customer\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\",\n        \"card_codes\": [\n          \"<string>\",\n          \"<string>\"\n        ]\n      },\n      \"merchant\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"branch\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"employee\": {\n        \"id\": \"<integer>\",\n        \"name\": \"<string>\"\n      },\n      \"payment_type\": \"<string>\",\n      \"transaction_type\": \"<string>\",\n      \"sale_total\": \"<number>\",\n      \"amount\": \"<number>\",\n      \"refunded\": \"<boolean>\",\n      \"voided\": \"<boolean>\",\n      \"details\": {\n        \"transaction\": {\n          \"uid\": \"<string>\",\n          \"amount\": \"<number>\",\n          \"insertion_time\": \"<integer>\",\n          \"transaction_type\": \"<string>\",\n          \"order_id\": \"<string>\",\n          \"order_access_time\": 0,\n          \"order_total\": 0,\n          \"order_line_items\": \"None\",\n          \"customer_id\": \"<string>\",\n          \"customer_balance\": \"<number>\",\n          \"customer_personal_reward\": \"<integer>\",\n          \"cashback_rewards\": \"<string>\",\n          \"note\": \"<string>\",\n          \"attempts\": \"<integer>\"\n        },\n        \"device\": {\n          \"employee\": \"<string>\",\n          \"package\": \"<string>\",\n          \"version\": \"<integer>\",\n          \"model\": \"<string>\",\n          \"serial\": \"<string>\"\n        }\n      },\n      \"unique_identifier\": \"<string>\",\n      \"account_id\": \"<string>\",\n      \"time\": \"<dateTime>\",\n      \"timestamp\": \"<integer>\"\n    }\n  ]\n}"},{"id":"29479487-0243-4380-8a51-03a3ccad8165","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/transactions/v2?exports_to=csv&offset=0&limit=10&order=id&view_all=true&qfields=payment_type&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","transactions","v2"],"query":[{"description":"The flag used to export the list as CSV","key":"exports_to","value":"csv"},{"description":"The number of merchant transaction to skip before starting to collect the list of merchant transaction","key":"offset","value":"0"},{"description":"The numbers of transaction to return in a list of merchant transaction","key":"limit","value":"10"},{"description":"The sorting key to return the list of merchant transaction","key":"order","value":"id"},{"description":"Get list of all customers","key":"view_all","value":"true"},{"description":"Select the fields to return in the list","key":"qfields","value":"payment_type"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"}],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"caeee2b0-f573-44cd-ad45-96dce99e9ef2","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/transactions/v2?exports_to=csv&offset=0&limit=10&order=id&view_all=true&qfields=payment_type&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","transactions","v2"],"query":[{"description":"The flag used to export the list as CSV","key":"exports_to","value":"csv"},{"description":"The number of merchant transaction to skip before starting to collect the list of merchant transaction","key":"offset","value":"0"},{"description":"The numbers of transaction to return in a list of merchant transaction","key":"limit","value":"10"},{"description":"The sorting key to return the list of merchant transaction","key":"order","value":"id"},{"description":"Get list of all customers","key":"view_all","value":"true"},{"description":"Select the fields to return in the list","key":"qfields","value":"payment_type"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"}],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"04317bd3-31c6-4ed4-b488-e50446fb83c2","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/transactions/v2?exports_to=csv&offset=0&limit=10&order=id&view_all=true&qfields=payment_type&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","transactions","v2"],"query":[{"description":"The flag used to export the list as CSV","key":"exports_to","value":"csv"},{"description":"The number of merchant transaction to skip before starting to collect the list of merchant transaction","key":"offset","value":"0"},{"description":"The numbers of transaction to return in a list of merchant transaction","key":"limit","value":"10"},{"description":"The sorting key to return the list of merchant transaction","key":"order","value":"id"},{"description":"Get list of all customers","key":"view_all","value":"true"},{"description":"Select the fields to return in the list","key":"qfields","value":"payment_type"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"}],"variable":[{"key":"merchantId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"51340b70-df41-4163-9dc6-0624cb7f7629"}],"id":"aa154075-0c5c-4b13-987b-255a3d4b8bf0","_postman_id":"aa154075-0c5c-4b13-987b-255a3d4b8bf0","description":""}],"id":"514a0652-f1a7-4e78-a96c-95201dc0d713","_postman_id":"514a0652-f1a7-4e78-a96c-95201dc0d713","description":""},{"name":"customers","item":[{"name":"v2","item":[{"name":"list customers","id":"2ad896c7-b6b1-499b-ad9a-746434345e6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/v2?exports_to=csv&offset=0&limit=10&order=id&direction=asc&q=<string>&qfields=card_number&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>&view_all=true","description":"<p>Filters list of merchant's customers use for Pagination</p>\n","urlObject":{"path":["merchants",":merchantId","customers","v2"],"host":["https://api-staging.loylap.com/v2"],"query":[{"description":{"content":"<p>The flag used to export the list as CSV</p>\n","type":"text/plain"},"key":"exports_to","value":"csv"},{"description":{"content":"<p>The number of customers to skip before starting to collect the list of customers</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>The numbers of customers to return in a list of customers</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>The sorting key to return the list of customers</p>\n","type":"text/plain"},"key":"order","value":"id"},{"description":{"content":"<p>The sorting direction to return the list of customers</p>\n","type":"text/plain"},"key":"direction","value":"asc"},{"description":{"content":"<p>The filtering text to return the list of customers</p>\n","type":"text/plain"},"key":"q","value":"<string>"},{"description":{"content":"<p>Select the fields to return in the list</p>\n","type":"text/plain"},"key":"qfields","value":"card_number"},{"description":{"content":"<p>Global Search for advanced filter, read more about in <a href=\"https://github.com/conorot/api-service/wiki/Global-Search\">https://github.com/conorot/api-service/wiki/Global-Search</a></p>\n","type":"text/plain"},"key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":{"content":"<p>Global Search for advanced filter, read more about in <a href=\"https://github.com/conorot/api-service/wiki/Global-Search\">https://github.com/conorot/api-service/wiki/Global-Search</a></p>\n","type":"text/plain"},"key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"},{"description":{"content":"<p>Get list of all customers</p>\n","type":"text/plain"},"key":"view_all","value":"true"}],"variable":[{"id":"97201b66-8704-4f74-b246-e2727648e1c7","description":{"content":"<p>(Required) Numeric ID of the merchant to get all customers</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"46af9992-0542-4a62-8b00-7934b60e2a56","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/v2?exports_to=csv&offset=0&limit=10&order=id&direction=asc&q=<string>&qfields=card_number&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>&view_all=true","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","v2"],"query":[{"description":"The flag used to export the list as CSV","key":"exports_to","value":"csv"},{"description":"The number of customers to skip before starting to collect the list of customers","key":"offset","value":"0"},{"description":"The numbers of customers to return in a list of customers","key":"limit","value":"10"},{"description":"The sorting key to return the list of customers","key":"order","value":"id"},{"description":"The sorting direction to return the list of customers","key":"direction","value":"asc"},{"description":"The filtering text to return the list of customers","key":"q","value":"<string>"},{"description":"Select the fields to return in the list","key":"qfields","value":"card_number"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"},{"description":"Get list of all customers","key":"view_all","value":"true"}],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"total\": \"<integer>\",\n  \"data\": [\n    {\n      \"status\": \"<string>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"email\": \"<string>\",\n      \"username\": \"<string>\",\n      \"nickname\": \"<string>\",\n      \"account_number\": \"<string>\",\n      \"photo\": \"<string>\",\n      \"phone_number\": \"<string>\",\n      \"gender\": \"<string>\",\n      \"language\": \"<string>\",\n      \"date_birth\": \"<string>\",\n      \"age\": \"<long>\",\n      \"customer_since\": \"<string>\",\n      \"visits\": \"<long>\",\n      \"last_visit\": \"<string>\",\n      \"has_facebook\": \"<boolean>\",\n      \"has_pin\": \"<boolean>\",\n      \"card_codes\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"payment_cards\": {\n        \"card_type\": \"<string>\",\n        \"expiry_date\": \"<string>\",\n        \"save_card\": \"<boolean>\"\n      },\n      \"modifiers\": {\n        \"personal_reward\": \"<integer>\",\n        \"credit_allowed\": \"<boolean>\",\n        \"customer_note\": \"<string>\",\n        \"role\": null\n      },\n      \"loyalty\": {\n        \"merchant_id\": \"<integer>\",\n        \"expiry_days\": \"<string>\",\n        \"date_edit\": \"<date>\"\n      },\n      \"balance\": {\n        \"cash\": 0,\n        \"stamp\": 0,\n        \"expiry_date\": \"\"\n      },\n      \"spending\": {\n        \"credit\": {\n          \"earned\": 0,\n          \"redeemed\": 0\n        },\n        \"stamp\": {\n          \"earned\": 0,\n          \"redeemed\": 0\n        },\n        \"topups\": {\n          \"gift\": 0,\n          \"cashless\": 0,\n          \"upfront\": 0\n        },\n        \"stats\": {\n          \"total\": 0,\n          \"trend\": 0,\n          \"average\": 0\n        }\n      }\n    },\n    {\n      \"status\": \"<string>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"email\": \"<string>\",\n      \"username\": \"<string>\",\n      \"nickname\": \"<string>\",\n      \"account_number\": \"<string>\",\n      \"photo\": \"<string>\",\n      \"phone_number\": \"<string>\",\n      \"gender\": \"<string>\",\n      \"language\": \"<string>\",\n      \"date_birth\": \"<string>\",\n      \"age\": \"<long>\",\n      \"customer_since\": \"<string>\",\n      \"visits\": \"<long>\",\n      \"last_visit\": \"<string>\",\n      \"has_facebook\": \"<boolean>\",\n      \"has_pin\": \"<boolean>\",\n      \"card_codes\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"payment_cards\": {\n        \"card_type\": \"<string>\",\n        \"expiry_date\": \"<string>\",\n        \"save_card\": \"<boolean>\"\n      },\n      \"modifiers\": {\n        \"personal_reward\": \"<integer>\",\n        \"credit_allowed\": \"<boolean>\",\n        \"customer_note\": \"<string>\",\n        \"role\": null\n      },\n      \"loyalty\": {\n        \"merchant_id\": \"<integer>\",\n        \"expiry_days\": \"<string>\",\n        \"date_edit\": \"<date>\"\n      },\n      \"balance\": {\n        \"cash\": 0,\n        \"stamp\": 0,\n        \"expiry_date\": \"\"\n      },\n      \"spending\": {\n        \"credit\": {\n          \"earned\": 0,\n          \"redeemed\": 0\n        },\n        \"stamp\": {\n          \"earned\": 0,\n          \"redeemed\": 0\n        },\n        \"topups\": {\n          \"gift\": 0,\n          \"cashless\": 0,\n          \"upfront\": 0\n        },\n        \"stats\": {\n          \"total\": 0,\n          \"trend\": 0,\n          \"average\": 0\n        }\n      }\n    }\n  ]\n}"},{"id":"43bc7ad1-40f8-487b-958a-0501512cf67e","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/v2?exports_to=csv&offset=0&limit=10&order=id&direction=asc&q=<string>&qfields=card_number&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>&view_all=true","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","v2"],"query":[{"description":"The flag used to export the list as CSV","key":"exports_to","value":"csv"},{"description":"The number of customers to skip before starting to collect the list of customers","key":"offset","value":"0"},{"description":"The numbers of customers to return in a list of customers","key":"limit","value":"10"},{"description":"The sorting key to return the list of customers","key":"order","value":"id"},{"description":"The sorting direction to return the list of customers","key":"direction","value":"asc"},{"description":"The filtering text to return the list of customers","key":"q","value":"<string>"},{"description":"Select the fields to return in the list","key":"qfields","value":"card_number"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"},{"description":"Get list of all customers","key":"view_all","value":"true"}],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"c1f283cd-de6e-4414-9c70-d15d13272d2f","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/v2?exports_to=csv&offset=0&limit=10&order=id&direction=asc&q=<string>&qfields=card_number&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>&view_all=true","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","v2"],"query":[{"description":"The flag used to export the list as CSV","key":"exports_to","value":"csv"},{"description":"The number of customers to skip before starting to collect the list of customers","key":"offset","value":"0"},{"description":"The numbers of customers to return in a list of customers","key":"limit","value":"10"},{"description":"The sorting key to return the list of customers","key":"order","value":"id"},{"description":"The sorting direction to return the list of customers","key":"direction","value":"asc"},{"description":"The filtering text to return the list of customers","key":"q","value":"<string>"},{"description":"Select the fields to return in the list","key":"qfields","value":"card_number"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"},{"description":"Get list of all customers","key":"view_all","value":"true"}],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"8a101399-9ad1-425e-8806-f85bb6bbcfd3","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/v2?exports_to=csv&offset=0&limit=10&order=id&direction=asc&q=<string>&qfields=card_number&gq[NextArrayIndex][AnyFieldName][eq][0]=<boolean>&gq[NextArrayIndex][AnyFieldName][eq][1]=<boolean>&view_all=true","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","v2"],"query":[{"description":"The flag used to export the list as CSV","key":"exports_to","value":"csv"},{"description":"The number of customers to skip before starting to collect the list of customers","key":"offset","value":"0"},{"description":"The numbers of customers to return in a list of customers","key":"limit","value":"10"},{"description":"The sorting key to return the list of customers","key":"order","value":"id"},{"description":"The sorting direction to return the list of customers","key":"direction","value":"asc"},{"description":"The filtering text to return the list of customers","key":"q","value":"<string>"},{"description":"Select the fields to return in the list","key":"qfields","value":"card_number"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][0]","value":"<boolean>"},{"description":"Global Search for advanced filter, read more about in https://github.com/conorot/api-service/wiki/Global-Search","key":"gq[NextArrayIndex][AnyFieldName][eq][1]","value":"<boolean>"},{"description":"Get list of all customers","key":"view_all","value":"true"}],"variable":[{"key":"merchantId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"2ad896c7-b6b1-499b-ad9a-746434345e6d"}],"id":"03720d02-47d5-4529-a420-01135cbbf54d","_postman_id":"03720d02-47d5-4529-a420-01135cbbf54d","description":""},{"name":"account","item":[{"name":"{accountId}","item":[{"name":"get customer user by account","id":"87361332-3f37-42eb-88f3-7a60916a2c4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/account/:accountId","description":"<p>Gets the customer user details</p>\n","urlObject":{"path":["merchants",":merchantId","customers","account",":accountId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"fff063f5-d10a-4360-b90f-0a19fd74a873","description":{"content":"<p>(Required) Numeric ID of the merchant to get all customers</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"ad534d16-a7d7-45e6-927d-5a143d258747","description":{"content":"<p>(Required) The Loyalty id for the customer user</p>\n","type":"text/plain"},"type":"any","value":"<string>","key":"accountId"}]}},"response":[{"id":"ce1e664a-63b3-43da-8e20-df2093b19e8a","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/account/:accountId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","account",":accountId"],"variable":[{"key":"merchantId"},{"key":"accountId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": false,\n  \"balance\": {\n    \"id\": \"<number>\",\n    \"cash_balance\": 0,\n    \"stamp_balance\": 0,\n    \"date_edit\": \"<number>\",\n    \"customer_note\": \"<string>\",\n    \"credit_allowed\": \"<number>\",\n    \"personal_reward\": \"<number>\",\n    \"surcharge\": \"<number>\",\n    \"auto_topup\": \"<number>\",\n    \"role\": \"<string>\",\n    \"tiers\": {\n      \"customer_levels\": \"<integer>\",\n      \"user_tier\": \"<integer>\"\n    }\n  },\n  \"cardStatus\": 0,\n  \"details\": {\n    \"id\": \"<long>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"nickname\": \"<string>\",\n    \"photo\": \"<string>\",\n    \"email\": \"<string>\",\n    \"phone_number\": \"<string>\",\n    \"username\": \"<string>\",\n    \"account_number\": \"<string>\",\n    \"account_id\": \"<string>\",\n    \"cvv\": \"<string>\",\n    \"card_codes\": \"<string>\",\n    \"status\": \"<number>\",\n    \"date_register\": \"<number>\",\n    \"date_birth\": \"<date>\",\n    \"activation_code\": \"<string>\",\n    \"new_password\": \"<string>\",\n    \"new_password_code\": \"<string>\",\n    \"fb_id\": \"<string>\",\n    \"popdeem_rewards\": \"<number>\",\n    \"payeezy_token\": \"<string>\",\n    \"expiry_date\": \"<string>\",\n    \"card_type\": \"<string>\",\n    \"scheme_transaction_id\": \"<string>\",\n    \"save_payment_details\": \"<string>\",\n    \"stripe_user_token\": \"<string>\",\n    \"stripe_customer_id\": \"<string>\",\n    \"stripe_subscription_id\": \"<string>\",\n    \"gocardless_customer_id\": \"<string>\",\n    \"gocardless_mandate_id\": \"<string>\",\n    \"gocardless_subscription_id\": \"<string>\",\n    \"date_add\": \"<number>\",\n    \"device_token\": \"<string>\",\n    \"gcm_id\": \"<string>\",\n    \"apn_id\": \"<string>\",\n    \"gender\": \"<integer>\",\n    \"last_group_id\": \"<long>\",\n    \"last_branch_id\": \"<long>\",\n    \"employee\": \"<integer>\",\n    \"owner\": \"<integer>\",\n    \"lang\": \"<string>\"\n  },\n  \"campaigns\": {\n    \"error\": \"<string>\"\n  }\n}"},{"id":"042a54e3-dbe5-41c4-8942-f43676ca9dab","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/account/:accountId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","account",":accountId"],"variable":[{"key":"merchantId"},{"key":"accountId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"696d10e2-0ff9-4aad-b4e5-2d59ee88ed5c","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/account/:accountId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","account",":accountId"],"variable":[{"key":"merchantId"},{"key":"accountId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"41303d18-9e13-4191-8491-17c57231aa08","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/account/:accountId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","account",":accountId"],"variable":[{"key":"merchantId"},{"key":"accountId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"87361332-3f37-42eb-88f3-7a60916a2c4c"}],"id":"70aa6ca9-3248-4f0b-986b-7177bcffd2fc","_postman_id":"70aa6ca9-3248-4f0b-986b-7177bcffd2fc","description":""}],"id":"a1de54ab-b7d9-462d-9b6d-17f7469e3783","_postman_id":"a1de54ab-b7d9-462d-9b6d-17f7469e3783","description":""},{"name":"cards","item":[{"name":"Register a card","id":"12659f7e-3c5e-4e0a-a2a0-a701aa6691f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"male\",\n  \"card_number\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/cards","description":"<p>Registers a new card OR updates existing card</p>\n","urlObject":{"path":["merchants",":merchantId","customers","cards"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"e86d5adb-086c-4dfb-a776-3d305fe1f812","type":"any","key":"merchantId"}]}},"response":[{"id":"3dd77e89-f923-430a-981e-6089bbe9ece6","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"male\",\n  \"card_number\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/cards","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","cards"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"account_number\": \"<string>\",\n  \"error\": \"<boolean>\",\n  \"balance\": {\n    \"id\": \"<number>\",\n    \"cash_balance\": 0,\n    \"stamp_balance\": 0,\n    \"date_edit\": \"<number>\",\n    \"customer_note\": \"<string>\",\n    \"credit_allowed\": \"<number>\",\n    \"personal_reward\": \"<number>\",\n    \"surcharge\": \"<number>\",\n    \"auto_topup\": \"<number>\",\n    \"role\": \"<string>\"\n  },\n  \"cardStatus\": \"<number>\",\n  \"details\": {\n    \"id\": \"<long>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"nickname\": \"<string>\",\n    \"photo\": \"<string>\",\n    \"email\": \"<string>\",\n    \"phone_number\": \"<string>\",\n    \"username\": \"<string>\",\n    \"account_number\": \"<string>\",\n    \"account_id\": \"<string>\",\n    \"cvv\": \"<string>\",\n    \"card_codes\": \"<string>\",\n    \"status\": \"<number>\",\n    \"date_register\": \"<number>\",\n    \"date_birth\": \"<date>\",\n    \"activation_code\": \"<string>\",\n    \"new_password\": \"<string>\",\n    \"new_password_code\": \"<string>\",\n    \"fb_id\": \"<string>\",\n    \"popdeem_rewards\": \"<number>\",\n    \"payeezy_token\": \"<string>\",\n    \"expiry_date\": \"<string>\",\n    \"card_type\": \"<string>\",\n    \"scheme_transaction_id\": \"<string>\",\n    \"save_payment_details\": \"<string>\",\n    \"stripe_user_token\": \"<string>\",\n    \"stripe_customer_id\": \"<string>\",\n    \"stripe_subscription_id\": \"<string>\",\n    \"gocardless_customer_id\": \"<string>\",\n    \"gocardless_mandate_id\": \"<string>\",\n    \"gocardless_subscription_id\": \"<string>\",\n    \"date_add\": \"<number>\",\n    \"device_token\": \"<string>\",\n    \"gcm_id\": \"<string>\",\n    \"apn_id\": \"<string>\",\n    \"gender\": \"<integer>\",\n    \"last_group_id\": \"<long>\",\n    \"last_branch_id\": \"<long>\",\n    \"employee\": \"<integer>\",\n    \"owner\": \"<integer>\",\n    \"lang\": \"<string>\"\n  },\n  \"historyOverview\": {\n    \"total_visits\": \"<number>\",\n    \"period_visits\": \"<number>\",\n    \"period\": \"<number>\",\n    \"total_spend\": \"<string>\",\n    \"period_spend\": \"<string>\",\n    \"silver_reward\": \"<string>\",\n    \"gold_reward\": \"<number>\",\n    \"platinum_reward\": \"<number>\",\n    \"number_redeems\": \"<number>\",\n    \"amount_redeems\": \"<string>\",\n    \"monthly_visits\": \"<number>\",\n    \"monthly_spend\": \"<string>\",\n    \"monthly_rank\": \"<number>\",\n    \"reward_tier_1\": \"<number>\",\n    \"reward_tier_2\": \"<number>\",\n    \"reward_tier_3\": \"<number>\",\n    \"reward_tier_4\": \"<number>\"\n  }\n}"},{"id":"577eaf53-b1f2-4b24-a998-6f82c893b375","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"male\",\n  \"card_number\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/cards","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","cards"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"019176a5-830d-426e-989e-18e45a09933a","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"male\",\n  \"card_number\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/cards","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","cards"],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"3e23bb85-8965-4c7c-a64f-8fb231132303","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"male\",\n  \"card_number\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/cards","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","cards"],"variable":[{"key":"merchantId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"12659f7e-3c5e-4e0a-a2a0-a701aa6691f0"}],"id":"03cd510d-e505-4550-91d0-9f199bbe0d26","_postman_id":"03cd510d-e505-4550-91d0-9f199bbe0d26","description":""},{"name":"activate-account","item":[{"name":"Activate Account","id":"b8be6828-7e3b-4df7-999e-305c24a6dbe7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"full_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"other\",\n  \"loyalty_id\": \"<string>\",\n  \"password\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/activate-account","description":"<p>activate account OR updates existing account</p>\n","urlObject":{"path":["merchants",":merchantId","customers","activate-account"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"77ab1493-61a0-4ec1-9b75-63b225732b42","type":"any","key":"merchantId"}]}},"response":[{"id":"59b0c1a1-531c-4358-a845-691f60bed695","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"full_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"other\",\n  \"loyalty_id\": \"<string>\",\n  \"password\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/activate-account","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","activate-account"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"<boolean>\",\n  \"balance\": {\n    \"id\": \"<number>\",\n    \"cash_balance\": 0,\n    \"stamp_balance\": 0,\n    \"date_edit\": \"<number>\",\n    \"customer_note\": \"<string>\",\n    \"credit_allowed\": \"<number>\",\n    \"personal_reward\": \"<number>\",\n    \"surcharge\": \"<number>\",\n    \"auto_topup\": \"<number>\",\n    \"role\": \"<string>\"\n  },\n  \"cardStatus\": \"<number>\",\n  \"details\": {\n    \"id\": \"<long>\",\n    \"first_name\": \"<string>\",\n    \"last_name\": \"<string>\",\n    \"nickname\": \"<string>\",\n    \"photo\": \"<string>\",\n    \"email\": \"<string>\",\n    \"phone_number\": \"<string>\",\n    \"username\": \"<string>\",\n    \"account_number\": \"<string>\",\n    \"account_id\": \"<string>\",\n    \"cvv\": \"<string>\",\n    \"card_codes\": \"<string>\",\n    \"status\": \"<number>\",\n    \"date_register\": \"<number>\",\n    \"date_birth\": \"<date>\",\n    \"activation_code\": \"<string>\",\n    \"new_password\": \"<string>\",\n    \"new_password_code\": \"<string>\",\n    \"fb_id\": \"<string>\",\n    \"popdeem_rewards\": \"<number>\",\n    \"payeezy_token\": \"<string>\",\n    \"expiry_date\": \"<string>\",\n    \"card_type\": \"<string>\",\n    \"scheme_transaction_id\": \"<string>\",\n    \"save_payment_details\": \"<string>\",\n    \"stripe_user_token\": \"<string>\",\n    \"stripe_customer_id\": \"<string>\",\n    \"stripe_subscription_id\": \"<string>\",\n    \"gocardless_customer_id\": \"<string>\",\n    \"gocardless_mandate_id\": \"<string>\",\n    \"gocardless_subscription_id\": \"<string>\",\n    \"date_add\": \"<number>\",\n    \"device_token\": \"<string>\",\n    \"gcm_id\": \"<string>\",\n    \"apn_id\": \"<string>\",\n    \"gender\": \"<integer>\",\n    \"last_group_id\": \"<long>\",\n    \"last_branch_id\": \"<long>\",\n    \"employee\": \"<integer>\",\n    \"owner\": \"<integer>\",\n    \"lang\": \"<string>\"\n  },\n  \"historyOverview\": {\n    \"total_visits\": \"<number>\",\n    \"period_visits\": \"<number>\",\n    \"period\": \"<number>\",\n    \"total_spend\": \"<string>\",\n    \"period_spend\": \"<string>\",\n    \"silver_reward\": \"<string>\",\n    \"gold_reward\": \"<number>\",\n    \"platinum_reward\": \"<number>\",\n    \"number_redeems\": \"<number>\",\n    \"amount_redeems\": \"<string>\",\n    \"monthly_visits\": \"<number>\",\n    \"monthly_spend\": \"<string>\",\n    \"monthly_rank\": \"<number>\",\n    \"reward_tier_1\": \"<number>\",\n    \"reward_tier_2\": \"<number>\",\n    \"reward_tier_3\": \"<number>\",\n    \"reward_tier_4\": \"<number>\"\n  },\n  \"history\": {\n    \"id_customer\": \"<number>\",\n    \"id_business\": \"<number>\",\n    \"amount\": \"<number>\",\n    \"time\": \"<dateTime>\",\n    \"timestamp\": \"<integer>\",\n    \"transaction_type\": \"<string>\",\n    \"id_group\": \"<number>\",\n    \"group_name\": \"<string>\",\n    \"loyaltyType\": \"<string>\",\n    \"short_name\": \"<string>\",\n    \"branch_name\": \"<string>\",\n    \"unique_identifier\": \"<string>\"\n  }\n}"},{"id":"55c33749-5ca4-4b4e-9b52-3fd8374a80c2","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"full_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"other\",\n  \"loyalty_id\": \"<string>\",\n  \"password\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/activate-account","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","activate-account"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"1b6b9973-8e4a-4c61-ac29-c1fad8139ed7","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"full_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"other\",\n  \"loyalty_id\": \"<string>\",\n  \"password\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/activate-account","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","activate-account"],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"b959023a-5a42-4543-8366-f654df9ebcdb","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"full_name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"date_of_birth\": \"<date>\",\n  \"gender\": \"other\",\n  \"loyalty_id\": \"<string>\",\n  \"password\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/activate-account","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers","activate-account"],"variable":[{"key":"merchantId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"b8be6828-7e3b-4df7-999e-305c24a6dbe7"}],"id":"12e49f2f-e8a6-4720-ba34-2a3061494135","_postman_id":"12e49f2f-e8a6-4720-ba34-2a3061494135","description":""},{"name":"{customerId}","item":[{"name":"Returns a customer details","id":"feada3e9-2ffd-4128-abd5-777f0ced34b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/:customerId","description":"<p>Returns a specific customer details at a merchant</p>\n","urlObject":{"path":["merchants",":merchantId","customers",":customerId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"6f2db7ad-3135-4118-afd5-aaee8bc949b4","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"221954a7-987b-4b2a-a665-a12d2df99ffc","description":{"content":"<p>(Required) ID of customer</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"customerId"}]}},"response":[{"id":"06edee77-f2f5-4645-960e-bfa4aec0b489","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/:customerId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers",":customerId"],"variable":[{"key":"merchantId"},{"key":"customerId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": \"<string>\",\n  \"id\": \"<long>\",\n  \"name\": \"<string>\",\n  \"email\": \"<string>\",\n  \"username\": \"<string>\",\n  \"nickname\": \"<string>\",\n  \"account_number\": \"<string>\",\n  \"photo\": \"<string>\",\n  \"phone_number\": \"<string>\",\n  \"gender\": \"<string>\",\n  \"language\": \"<string>\",\n  \"date_birth\": \"<string>\",\n  \"age\": \"<long>\",\n  \"customer_since\": \"<string>\",\n  \"visits\": \"<long>\",\n  \"last_visit\": \"<string>\",\n  \"has_facebook\": \"<boolean>\",\n  \"has_pin\": \"<boolean>\",\n  \"card_codes\": [\n    \"<string>\",\n    \"<string>\"\n  ],\n  \"payment_cards\": {\n    \"card_type\": \"<string>\",\n    \"expiry_date\": \"<string>\",\n    \"save_card\": \"<boolean>\"\n  },\n  \"modifiers\": {\n    \"personal_reward\": \"<integer>\",\n    \"credit_allowed\": \"<boolean>\",\n    \"customer_note\": \"<string>\",\n    \"role\": null\n  },\n  \"loyalty\": {\n    \"merchant_id\": \"<integer>\",\n    \"expiry_days\": \"<string>\",\n    \"date_edit\": \"<date>\"\n  },\n  \"balance\": {\n    \"cash\": 0,\n    \"stamp\": 0,\n    \"expiry_date\": \"\"\n  },\n  \"spending\": {\n    \"credit\": {\n      \"earned\": 0,\n      \"redeemed\": 0\n    },\n    \"stamp\": {\n      \"earned\": 0,\n      \"redeemed\": 0\n    },\n    \"topups\": {\n      \"gift\": 0,\n      \"cashless\": 0,\n      \"upfront\": 0\n    },\n    \"stats\": {\n      \"total\": 0,\n      \"trend\": 0,\n      \"average\": 0\n    }\n  }\n}"},{"id":"44363f40-7dca-433f-94e0-97ffee4f6bad","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/:customerId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers",":customerId"],"variable":[{"key":"merchantId"},{"key":"customerId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"1f5daafa-85ff-4637-9daf-e9a982020a1e","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/:customerId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers",":customerId"],"variable":[{"key":"merchantId"},{"key":"customerId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"20ae1c98-ac1a-4fee-9cc4-1ec734a4e442","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/:customerId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","customers",":customerId"],"variable":[{"key":"merchantId"},{"key":"customerId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"feada3e9-2ffd-4128-abd5-777f0ced34b0"}],"id":"aa6194f5-248e-4da3-b347-9ffa7116ec4a","_postman_id":"aa6194f5-248e-4da3-b347-9ffa7116ec4a","description":""},{"name":"New Request","id":"a80f607a-272b-4997-b267-a9731130c5fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/customers/cards","urlObject":{"path":["merchants",":merchantId","customers","cards"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"type":"any","value":"108","key":"merchantId"}]}},"response":[],"_postman_id":"a80f607a-272b-4997-b267-a9731130c5fb"}],"id":"5377346e-22cf-43c4-aca2-15e6457544fc","_postman_id":"5377346e-22cf-43c4-aca2-15e6457544fc","description":""},{"name":"inventory","item":[{"name":"products","item":[{"name":"{productId}","item":[{"name":"image","item":[{"name":"Update image of a product","id":"a0c6f24a-7c63-4e46-8450-2bda82856918","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","description":"<p>Updates image on a specific product</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","products",":productId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"795c2824-4ea3-4536-85f1-c470e4715aee","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"54f45771-61d0-4bfe-85b9-117eedfb78df","type":"any","key":"productId"},{"id":"77f80164-3116-40fc-923d-f0693afc0f27","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"ac47cf4d-f23a-414a-8b4c-4f2dffbd712e","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId","image"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"10408e42-79a8-4bcf-9b06-91088baddcf5","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId","image"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"08cb3cc3-df63-49a1-b590-227d8fae1d30","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId","image"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"871b30a7-d917-4c95-aa60-7d1b13efa3ed","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId","image"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"a0c6f24a-7c63-4e46-8450-2bda82856918"},{"name":"Deletes image of a category","id":"7e36aaf0-5ac9-44dd-ad5b-69de1089c6fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"text"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","description":"<p>Deletes image on a specific category</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","products",":productId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"ef30707a-1933-40c6-916e-f079bdbef28b","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"cc8d7acf-f7bd-420f-b1eb-8655a166d3ce","type":"any","key":"productId"},{"id":"b1e59260-39e8-465f-bfbb-b21bef681036","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"24121583-80d8-484e-a0ca-fdf03e0e8a15","name":"Successful operation","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId","image"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"ae26386a-4121-4d26-9b43-d2dcb0004d3c","name":"Invalid merchant id","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId","image"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"9d6861c7-9f27-4a00-904c-81e73db9300e","name":"Invalid authentication","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId","image"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b120cb69-e8c5-413c-8dad-b2082a432156","name":"Merchant not found","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId","image"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"7e36aaf0-5ac9-44dd-ad5b-69de1089c6fd"}],"id":"a209cc7c-b150-4bcd-bc95-62f6ba723a34","_postman_id":"a209cc7c-b150-4bcd-bc95-62f6ba723a34","description":""},{"name":"Returns a product details","id":"b1e3a7b8-d642-4c67-8458-922b43171a68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","description":"<p>Returns a specific product details</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","products",":productId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"8182421c-9d06-441f-a067-cc52773a5402","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"fa1b9764-193a-4038-9a62-1fad2df4d51c","description":{"content":"<p>(Required) ID of product</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"productId"}]}},"response":[{"id":"56b1660e-c565-4339-8a01-ba07723ef6fa","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"name\": \"<string>\",\n      \"image\": null,\n      \"base_price\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"stamp_reward\": \"<number>\",\n      \"reward\": null,\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<boolean>\",\n      \"collection\": \"<boolean>\",\n      \"fixed_delivery\": \"<boolean>\",\n      \"delivery\": \"<boolean>\",\n      \"allergens\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"categories_ids\": [\n        \"<number>\",\n        \"<number>\"\n      ],\n      \"categories\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        }\n      ],\n      \"modifier_groups\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        }\n      ]\n    },\n    {\n      \"id\": \"<number>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"name\": \"<string>\",\n      \"image\": null,\n      \"base_price\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"stamp_reward\": \"<number>\",\n      \"reward\": null,\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<boolean>\",\n      \"collection\": \"<boolean>\",\n      \"fixed_delivery\": \"<boolean>\",\n      \"delivery\": \"<boolean>\",\n      \"allergens\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"categories_ids\": [\n        \"<number>\",\n        \"<number>\"\n      ],\n      \"categories\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        }\n      ],\n      \"modifier_groups\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        }\n      ]\n    }\n  ],\n  \"total\": \"<number>\"\n}"},{"id":"a6a5f945-2a9b-4ec9-93be-cabf1813478e","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"6c1dd16b-6995-4ab4-b7ce-8454ee74346f","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"fd6c052f-0125-4825-b23a-7aa88b9135d1","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"b1e3a7b8-d642-4c67-8458-922b43171a68"},{"name":"Updates a product","id":"9686ced4-4276-48bd-a528-30357dab438d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","urlObject":{"path":["merchants",":merchantId","inventory","products",":productId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"9cab0f6a-63c2-4a99-94e5-c20561b3b5f3","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"954efaa8-26f5-4f6a-bb7f-c5833da0233f","description":{"content":"<p>(Required) ID of product</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"productId"}]}},"response":[{"id":"7570fb0c-f3aa-416a-9fc1-95ece99a7dc7","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"0c512e63-5b7a-43c9-a746-69f160fd0b50","name":"Bad request","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"25abfd4f-5c96-4b35-bf48-0cbb1bcb2cbb","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"fc68bd53-5154-46f4-8b14-fd1c3a9f56e0","name":"Internal Server Error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products",":productId"],"variable":[{"key":"merchantId"},{"key":"productId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"9686ced4-4276-48bd-a528-30357dab438d"}],"id":"e6e09c45-e159-46fd-8485-a71639f703e2","_postman_id":"e6e09c45-e159-46fd-8485-a71639f703e2","description":""},{"name":"Returns a list of Merchant's Inventory Products","id":"5ae26433-7950-4d6c-a74c-8ddad99064ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products","urlObject":{"path":["merchants",":merchantId","inventory","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"979eb843-8df5-4127-a3c8-5d508fc0b024","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"11e6c404-4777-43d8-a6a2-5a46516f560e","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"total\": \"<number>\",\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"name\": \"<string>\",\n      \"image\": null,\n      \"base_price\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"stamp_reward\": \"<number>\",\n      \"reward\": null,\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<boolean>\",\n      \"collection\": \"<boolean>\",\n      \"fixed_delivery\": \"<boolean>\",\n      \"delivery\": \"<boolean>\",\n      \"allergens\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"categories_ids\": [\n        \"<number>\",\n        \"<number>\"\n      ],\n      \"categories\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        }\n      ],\n      \"modifier_groups\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        }\n      ]\n    },\n    {\n      \"id\": \"<number>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"name\": \"<string>\",\n      \"image\": null,\n      \"base_price\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"stamp_reward\": \"<number>\",\n      \"reward\": null,\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<boolean>\",\n      \"collection\": \"<boolean>\",\n      \"fixed_delivery\": \"<boolean>\",\n      \"delivery\": \"<boolean>\",\n      \"allergens\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"categories_ids\": [\n        \"<number>\",\n        \"<number>\"\n      ],\n      \"categories\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        }\n      ],\n      \"modifier_groups\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}"},{"id":"f5b1c8a3-d206-4c98-8be9-917ca1d6f8dd","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"739ca0eb-eac4-4fd8-8319-0c949ff13fe2","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products"],"variable":[{"key":"merchantId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"5ae26433-7950-4d6c-a74c-8ddad99064ad"},{"name":"Creates an inventory product","id":"172dc92c-6e59-4b63-901f-901a424a2363","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products","urlObject":{"path":["merchants",":merchantId","inventory","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"38cea767-ebc1-40a5-b9d8-1dc9ba3d5b4c","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"fbd78adc-410f-45b7-9837-8b4a1abcaad7","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<number>\",\n  \"name\": \"<string>\",\n  \"description\": \"<string>\",\n  \"base_price\": \"<number>\",\n  \"unavailable_for_order_ahead\": \"<boolean>\",\n  \"unavailable_for_self_checkout\": \"<boolean>\",\n  \"reward\": \"<number>\",\n  \"stamp_reward\": \"<number>\",\n  \"group_id\": \"<string>\",\n  \"branch_id\": \"<number>\",\n  \"stock_count\": \"<number>\",\n  \"status\": 1,\n  \"updatedAt\": \"<date>\",\n  \"createdAt\": \"<date>\"\n}"},{"id":"dd8597a3-97a0-4e8e-98e6-53d34dd77dc2","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"2a05141e-a8c9-48a4-ac7c-c8362d82422f","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products"],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"958bc6ef-7dc9-467b-afe1-1b7ecfe2e20c","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","products"],"variable":[{"key":"merchantId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"172dc92c-6e59-4b63-901f-901a424a2363"}],"id":"aa7c5325-fadf-4e9a-a003-b5585bd5c6cb","_postman_id":"aa7c5325-fadf-4e9a-a003-b5585bd5c6cb","description":""},{"name":"categories","item":[{"name":"{categoryId}","item":[{"name":"image","item":[{"name":"Update image of a category","id":"c0c357b1-2944-480d-8729-ff104a8bf433","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","description":"<p>Updates image on a specific category</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"5d685ac9-da4e-45cf-a258-0816081d30a5","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"e327ee7f-60a0-47a4-91db-d8fc127dd546","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"e269b4b5-1a75-404f-985a-451771a07cbe","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"cbda319d-1475-4917-b41b-e100ef715d5e","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"cb2d8aae-a092-4ff4-ae7a-9b195c9938a2","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b92fc5d1-83ba-499e-a54e-09cfb5ef1a9c","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"c0c357b1-2944-480d-8729-ff104a8bf433"},{"name":"Deletes image of a category","id":"aad5b40c-3554-48cf-b7c5-3c8fb1491da6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"text"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","description":"<p>Deletes image on a specific category</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"2f89d8ed-f2c7-4d3a-9381-86f6c3460994","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"ccc0b0a3-91ad-4351-a748-1d0fc7cae8a6","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"ea41f8c7-8999-4e5e-adc3-7be16ff1942d","name":"Successful operation","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"b8848b1e-df3c-459c-9ac5-e831ff5234f3","name":"Invalid merchant id","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"84258262-20f5-4cfd-9b8d-99e72a82444d","name":"Invalid authentication","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"2dce25cb-d0e5-4df3-ac64-e9391122e6f7","name":"Merchant not found","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","image"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"aad5b40c-3554-48cf-b7c5-3c8fb1491da6"}],"id":"2353b923-3264-4eee-8848-e1ee0b7dd5fe","_postman_id":"2353b923-3264-4eee-8848-e1ee0b7dd5fe","description":""},{"name":"products","item":[{"name":"Returns products from a category","id":"a75b0021-c63b-4a59-a9ec-57cf92a644f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","description":"<p>Returns a list o products related to a specific category</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"3910adc8-8db3-4f47-8d8e-d20796e044c5","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"4c25163b-4055-44dd-84d2-b7d74217fb0c","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"282ea2a8-4541-41e2-8f04-c79fbabe073a","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<integer>\",\n  \"name\": \"<string>\",\n  \"inventory_products\": [\n    {\n      \"id\": \"<number>\",\n      \"base_price\": \"<number>\",\n      \"name\": \"<string>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"inventory_categories_products\": {\n        \"category_id\": \"<long>\",\n        \"id\": \"<long>\",\n        \"product_id\": \"<long>\",\n        \"unavailable_for_order_ahead\": \"<boolean>\"\n      }\n    },\n    {\n      \"id\": \"<number>\",\n      \"base_price\": \"<number>\",\n      \"name\": \"<string>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"inventory_categories_products\": {\n        \"category_id\": \"<long>\",\n        \"id\": \"<long>\",\n        \"product_id\": \"<long>\",\n        \"unavailable_for_order_ahead\": \"<boolean>\"\n      }\n    }\n  ]\n}"},{"id":"91448fe4-dbef-46e4-be57-ba8eb48f0668","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"1bede700-dbf1-4c9a-b751-0e25a73c8c79","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"e9b67a1f-f6f5-49c0-81fc-1dbd071b663c","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"a75b0021-c63b-4a59-a9ec-57cf92a644f6"},{"name":"Update products from a category","id":"b8713518-92ae-4398-9afa-c92f148f3d24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","description":"<p>Updates products on a specific category</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"e82c0f4a-c139-48d1-b5a7-e66e616aacb7","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"f8dbb1a5-2cb2-4305-a560-196e48406fa6","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"c885a394-4d5f-4d48-9ecb-ca4f52262870","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"b502d1b2-a245-4072-b7ba-3c6671fba7a8","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"e8c64657-d428-49a0-8a6b-aea3d7cb91ab","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"68126b3e-b309-4ec6-8212-08c2e982312c","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId","products"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"b8713518-92ae-4398-9afa-c92f148f3d24"}],"id":"ffe52b82-9f80-41bc-92f6-1c5ed9c36a63","_postman_id":"ffe52b82-9f80-41bc-92f6-1c5ed9c36a63","description":""},{"name":"Returns a Categoty details","id":"1af22bb6-8888-41ba-be8c-8c3020b230a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","description":"<p>Returns a specific category details</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","categories",":categoryId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"17d42117-5c53-43d9-a41e-1eb8cbcab4e2","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"d034e695-ec51-43d9-b374-03fd6f2b8c55","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"9374632a-eed2-49a9-ad09-2e9d94c9c141","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<number>\",\n  \"name\": \"<string>\",\n  \"description\": null,\n  \"created_at\": \"<date>\",\n  \"updated_at\": \"<date>\",\n  \"branch_id\": null,\n  \"image\": null,\n  \"order\": \"<number>\",\n  \"status\": \"<boolean>\",\n  \"unavailable_for_order_ahead\": \"<boolean>\",\n  \"unavailable_for_self_checkout\": \"<boolean>\",\n  \"availability\": [\n    {\n      \"day\": \"<string>\",\n      \"from\": \"<string>\",\n      \"to\": \"<string>\",\n      \"isOpen\": \"<boolean>\"\n    },\n    {\n      \"day\": \"<string>\",\n      \"from\": \"<string>\",\n      \"to\": \"<string>\",\n      \"isOpen\": \"<boolean>\"\n    }\n  ],\n  \"products_total\": \"<number>\"\n}"},{"id":"a0a0757f-4018-4fb8-ae99-e42cabae80c3","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"5102a14a-a35f-4695-8aea-8e303d3626fb","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"96e5c23a-46bc-4662-a8fb-52b26696c076","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"1af22bb6-8888-41ba-be8c-8c3020b230a4"},{"name":"Updates a category","id":"de2cc69e-de9f-4978-b35b-2646043e1447","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","urlObject":{"path":["merchants",":merchantId","inventory","categories",":categoryId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"62a2d7be-294c-49e3-abbb-52bfb9f98c0c","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"509d05c8-a1cf-45e1-9314-1ed3e5a225be","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"ea22e423-3284-4bca-add8-81537b634370","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"ad57209c-94de-4127-956c-2a078f0b0090","name":"Bad request","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"bd6d47fe-766b-4f83-98a5-92d17d3bdf32","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"2cf00717-00b7-4926-a006-a0237aa856f4","name":"Internal Server Error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories",":categoryId"],"variable":[{"key":"merchantId"},{"key":"categoryId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"de2cc69e-de9f-4978-b35b-2646043e1447"}],"id":"62dead34-2bb7-4955-9119-c505fd67c277","_postman_id":"62dead34-2bb7-4955-9119-c505fd67c277","description":""},{"name":"Returns a list of Merchant's Inventory Categories","id":"47320c0a-47f0-4237-bb47-5296bec8dda8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories","urlObject":{"path":["merchants",":merchantId","inventory","categories"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"0aa83210-d62c-48cc-8fd2-06dafcdf12bb","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"c4f17bb3-2cbe-4c7a-92b4-9da2e11400f4","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"total\": \"<number>\",\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"branch_id\": null,\n      \"image\": null,\n      \"order\": \"<number>\",\n      \"status\": \"<boolean>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"availability\": [\n        {\n          \"day\": \"<string>\",\n          \"from\": \"<string>\",\n          \"to\": \"<string>\",\n          \"isOpen\": \"<boolean>\"\n        },\n        {\n          \"day\": \"<string>\",\n          \"from\": \"<string>\",\n          \"to\": \"<string>\",\n          \"isOpen\": \"<boolean>\"\n        }\n      ],\n      \"products_total\": \"<number>\"\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"branch_id\": null,\n      \"image\": null,\n      \"order\": \"<number>\",\n      \"status\": \"<boolean>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"availability\": [\n        {\n          \"day\": \"<string>\",\n          \"from\": \"<string>\",\n          \"to\": \"<string>\",\n          \"isOpen\": \"<boolean>\"\n        },\n        {\n          \"day\": \"<string>\",\n          \"from\": \"<string>\",\n          \"to\": \"<string>\",\n          \"isOpen\": \"<boolean>\"\n        }\n      ],\n      \"products_total\": \"<number>\"\n    }\n  ]\n}"},{"id":"65cd5daa-13e3-426c-a2e1-457e05505114","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"702daca7-fdc2-49eb-b08c-1bc42608d145","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories"],"variable":[{"key":"merchantId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"47320c0a-47f0-4237-bb47-5296bec8dda8"},{"name":"Updates a category","id":"5de312de-b477-4bc6-8b69-7ded4fe756d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories","urlObject":{"path":["merchants",":merchantId","inventory","categories"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"4added86-c5ba-4ebe-974c-f29f6b96bdb0","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"9f644f33-dd60-4713-afc6-dce83c86eea0","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"27d4688c-5d95-4073-bb0a-aa266a16c8c9","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"fc9b157e-43bb-4d0d-9cf3-d3166d0b9bb2","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories"],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"609ce52c-0ced-497f-b930-7b28311a5453","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/categories","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","categories"],"variable":[{"key":"merchantId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"5de312de-b477-4bc6-8b69-7ded4fe756d5"}],"id":"b03ab38a-2a59-44f1-b2f9-87b7e579850c","_postman_id":"b03ab38a-2a59-44f1-b2f9-87b7e579850c","description":""},{"name":"modifiers-groups","item":[{"name":"{modifiersGroupId}","item":[{"name":"image","item":[{"name":"Updates a modifier group image","id":"783507e5-9c1b-4b62-985a-482de7033ce0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","urlObject":{"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"2687391b-7b63-4da4-a3d5-568c437746d9","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"e2d9a45b-4741-49e9-b940-471aa3f5e833","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"4e0c93ee-5615-4ed7-bdd0-5af699b1cb85","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"0b1d342d-20ef-4670-b789-65ddc07eeabf","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"8efd5844-b422-413c-a695-258d4674c7a8","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"8440b2a0-9c16-4a4b-a840-db7e69c88854","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"783507e5-9c1b-4b62-985a-482de7033ce0"},{"name":"Deletes a modifier group image","id":"4e0eb095-d276-4d38-a9d1-8530ccad0a16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"text"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","urlObject":{"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"fce74514-d6ca-449a-a177-7228fb0c877e","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"08bf2e4c-cfc4-4d23-b4eb-0928764e9a52","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"60b48107-7e03-4962-948c-8f199e13e4ca","name":"Successful operation","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"0b4e3c92-6a83-41f4-9c3a-946379ded99f","name":"Invalid merchant id","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"a9f80802-2d61-486a-a0f7-d8972e18ba22","name":"Invalid authentication","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"17a50e48-1d51-454b-8cdb-167d72cdd4d1","name":"Merchant not found","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"4e0eb095-d276-4d38-a9d1-8530ccad0a16"}],"id":"915f6544-4147-474a-bec9-b41e3a507dcd","_postman_id":"915f6544-4147-474a-bec9-b41e3a507dcd","description":""},{"name":"products","item":[{"name":"Returns a modifier group with its associated products","id":"2d4bf221-ca12-4c80-9c78-29ab39777dde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","urlObject":{"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"1c31d40e-48e3-4d85-833b-99eee26bd59c","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"2674251e-4f7e-4872-b2f1-fc542fddccf2","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"67cd9aa3-20d3-4196-adaf-6df98bc51a8d","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"branch_id\": \"<number>\",\n  \"group_id\": \"<number>\",\n  \"id\": \"<number>\",\n  \"name\": \"<string>\",\n  \"inventory_products\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"base_price\": \"<number>\",\n      \"tax_included\": 0,\n      \"image\": \"<string>\",\n      \"status\": \"1\",\n      \"description\": \"<string>\",\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"group_id\": \"<number>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": 0,\n      \"unavailable_for_self_checkout\": 0,\n      \"stamp_reward\": \"<number>\",\n      \"reward\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<number>\",\n      \"delivery\": 1,\n      \"fixed_delivery\": 1,\n      \"collection\": 0,\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.id\": \"<number>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.modifier_group_id\": \"<number>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.product_id\": \"<number>\"\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"base_price\": \"<number>\",\n      \"tax_included\": 0,\n      \"image\": \"<string>\",\n      \"status\": \"1\",\n      \"description\": \"<string>\",\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"group_id\": \"<number>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": 1,\n      \"unavailable_for_self_checkout\": 0,\n      \"stamp_reward\": \"<number>\",\n      \"reward\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<number>\",\n      \"delivery\": 1,\n      \"fixed_delivery\": 0,\n      \"collection\": 0,\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.id\": \"<number>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.modifier_group_id\": \"<number>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.product_id\": \"<number>\"\n    }\n  ]\n}"},{"id":"c524ee9a-50ce-4cd2-a038-989dd7b327bb","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"32d5fc46-5db9-4606-8e77-8e28f21d69d2","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"5d7b8614-6b53-4651-89aa-6148fb57b01e","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"2d4bf221-ca12-4c80-9c78-29ab39777dde"},{"name":"Returns a modifier group with its associated products","id":"a2d5db00-8d4c-478b-a307-8f49ffce192d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","urlObject":{"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"b279c470-086e-453e-ac8a-0c1468e5e697","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"8fa12975-d365-4e54-9b19-76fc47ba0c72","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"c5bfab2e-de7a-446c-b881-11bf37df0d00","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"b7fd717e-7d0c-422c-830e-1dbb5fd7d97b","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"7e46fa31-3415-4b24-bf02-0ae0c28b94cf","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"0df3251a-6f2e-4249-a489-5b3cf60d1881","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"a2d5db00-8d4c-478b-a307-8f49ffce192d"}],"id":"884b91ef-f5ae-4ab2-8322-8434125803a5","_postman_id":"884b91ef-f5ae-4ab2-8322-8434125803a5","description":""},{"name":"Returns a modifier group","id":"cbe698df-5c6a-4266-b583-351a5b59c04e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","description":"<p>Returns a specific modifier group</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"23d8e53f-d2c0-4e0c-a797-f99ef8909f51","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"15772f24-7f2d-49bd-b9a4-78e252773007","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"69d77623-4804-4c45-b400-572afff8d248","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"branch_id\": \"<number>\",\n  \"updatedAt\": \"<date>\",\n  \"createdAt\": \"<date>\",\n  \"external_id\": \"<string>\",\n  \"group_id\": \"<number>\",\n  \"id\": \"<number>\",\n  \"image\": \"<string>\",\n  \"max_allowed\": \"<string>\",\n  \"min_required\": \"<string>\",\n  \"name\": \"<string>\",\n  \"order\": \"<number>\",\n  \"status\": \"<string>\",\n  \"modifiers\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"price\": \"<number>\",\n      \"image\": null,\n      \"status\": \"0\",\n      \"description\": null,\n      \"external_id\": \"<string>\",\n      \"modifier_group_id\": \"<number>\",\n      \"order\": \"<number>\",\n      \"hidden\": \"<boolean>\",\n      \"group_id\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\"\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"price\": \"<number>\",\n      \"image\": null,\n      \"status\": \"1\",\n      \"description\": null,\n      \"external_id\": \"<string>\",\n      \"modifier_group_id\": \"<number>\",\n      \"order\": \"<number>\",\n      \"hidden\": \"<boolean>\",\n      \"group_id\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\"\n    }\n  ]\n}"},{"id":"2ae47deb-9451-4cf9-8de3-fb6020203495","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"e695e52b-de1c-43a2-9739-2eb9714c0848","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"79a1bb13-c72b-4f52-8768-14c663caf7cc","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"cbe698df-5c6a-4266-b583-351a5b59c04e"},{"name":"Updates a modifier group","id":"f7bd835c-f38b-424c-8536-e0ee653932a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","urlObject":{"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"ba9e73cd-9933-49ca-a8c8-2ac5e26b7fb4","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"},{"id":"fe8fac43-1e09-4be4-b58d-bfdb78b8bbb0","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"1c721827-d558-4d5e-8670-fc1e7854ef1b","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"1e724cf6-c026-4a03-8fab-a89f6b545eb3","name":"Bad request","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"c11b72ba-992f-4819-a5d9-38ecbbff12e5","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"410b0951-b521-428d-9891-23f8e5c8a3f1","name":"Internal Server Error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"merchantId"},{"key":"modifiersGroupId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"f7bd835c-f38b-424c-8536-e0ee653932a9"}],"id":"6d38f6b4-5b08-433c-a41d-c50348ab5614","_postman_id":"6d38f6b4-5b08-433c-a41d-c50348ab5614","description":""},{"name":"Returns modifier groups","id":"00d8791c-d0b6-412c-bec9-c42d0d659346","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","description":"<p>Returns a list of modifier groups</p>\n","urlObject":{"path":["merchants",":merchantId","inventory","modifiers-groups"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"aa00ebe4-12b7-40d0-b576-41495aa8fcbf","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"9e6bf68a-81c4-4459-aa1f-382f3e265503","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"external_id\": \"<string>\",\n      \"group_id\": \"<number>\",\n      \"status\": \"1\",\n      \"max_allowed\": \"<number>\",\n      \"min_required\": \"<number>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"modifiers\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"price\": \"<number>\",\n          \"image\": null,\n          \"status\": \"1\",\n          \"description\": null,\n          \"external_id\": \"<string>\",\n          \"modifier_group_id\": \"<number>\",\n          \"order\": \"<number>\",\n          \"hidden\": \"<boolean>\",\n          \"group_id\": \"<number>\",\n          \"branch_id\": \"<number>\",\n          \"createdAt\": \"<date>\",\n          \"updatedAt\": \"<date>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"price\": \"<number>\",\n          \"image\": null,\n          \"status\": \"0\",\n          \"description\": null,\n          \"external_id\": \"<string>\",\n          \"modifier_group_id\": \"<number>\",\n          \"order\": \"<number>\",\n          \"hidden\": \"<boolean>\",\n          \"group_id\": \"<number>\",\n          \"branch_id\": \"<number>\",\n          \"createdAt\": \"<date>\",\n          \"updatedAt\": \"<date>\"\n        }\n      ]\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"external_id\": \"<string>\",\n      \"group_id\": \"<number>\",\n      \"status\": \"1\",\n      \"max_allowed\": \"<number>\",\n      \"min_required\": \"<number>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"modifiers\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"price\": \"<number>\",\n          \"image\": null,\n          \"status\": \"1\",\n          \"description\": null,\n          \"external_id\": \"<string>\",\n          \"modifier_group_id\": \"<number>\",\n          \"order\": \"<number>\",\n          \"hidden\": \"<boolean>\",\n          \"group_id\": \"<number>\",\n          \"branch_id\": \"<number>\",\n          \"createdAt\": \"<date>\",\n          \"updatedAt\": \"<date>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"price\": \"<number>\",\n          \"image\": null,\n          \"status\": \"0\",\n          \"description\": null,\n          \"external_id\": \"<string>\",\n          \"modifier_group_id\": \"<number>\",\n          \"order\": \"<number>\",\n          \"hidden\": \"<boolean>\",\n          \"group_id\": \"<number>\",\n          \"branch_id\": \"<number>\",\n          \"createdAt\": \"<date>\",\n          \"updatedAt\": \"<date>\"\n        }\n      ]\n    }\n  ],\n  \"total\": \"<number>\"\n}"},{"id":"abed933d-8f72-4c15-bc68-0071a4eec38f","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"09121aea-0cc0-4969-ad6d-6a13e0352b1c","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups"],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"ab423295-d9ae-4f53-a87f-cd2fffee5faa","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups"],"variable":[{"key":"merchantId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"00d8791c-d0b6-412c-bec9-c42d0d659346"},{"name":"creates a new modifier group","id":"5345f93d-aa30-46f8-a3f5-8a08989178c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","urlObject":{"path":["merchants",":merchantId","inventory","modifiers-groups"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"ff08e40a-eaa7-4e76-99b7-81cfa0af624d","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"0372ba9e-f730-4d54-ad11-a17560cb8584","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<number>\",\n  \"name\": \"<string>\",\n  \"max_allowed\": \"<number>\",\n  \"min_required\": \"<number>\",\n  \"order\": \"<number>\",\n  \"branch_id\": \"<number>\",\n  \"status\": 0,\n  \"group_id\": \"<string>\",\n  \"updatedAt\": \"<string>\",\n  \"createdAt\": \"<date>\"\n}"},{"id":"a187ea8a-93de-4f2e-8628-b7e46cecaa75","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"f85c1a63-b3ae-4b33-a2dc-dc947072bcf0","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups"],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"db1031fa-add8-4864-a71c-8e63d8e3e279","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/inventory/modifiers-groups","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","inventory","modifiers-groups"],"variable":[{"key":"merchantId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"5345f93d-aa30-46f8-a3f5-8a08989178c9"}],"id":"ad1e99c3-3cac-4ba9-bfaf-3076fd6452d0","_postman_id":"ad1e99c3-3cac-4ba9-bfaf-3076fd6452d0","description":""}],"id":"ee5a1a08-c49a-4e15-b4a0-59f1c2019f32","_postman_id":"ee5a1a08-c49a-4e15-b4a0-59f1c2019f32","description":""},{"name":"orders","item":[{"name":"v2","item":[{"name":"Returns Merchant Orders","id":"c60fd123-0ddc-490b-abdf-30ba1d53c325","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/v2","urlObject":{"path":["merchants",":merchantId","orders","v2"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"4e2d8253-947c-48a1-b27a-da0f33afddd8","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"8ff35e03-0909-482e-9364-921c654cc51c","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/v2","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders","v2"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"total\": \"<number>\",\n  \"summary\": {\n    \"avg_amount\": \"<number>\",\n    \"total_amount\": \"<number>\",\n    \"total_count\": \"<number>\"\n  },\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"uuid\": \"<string>\",\n      \"created_at\": \"<date>\",\n      \"due_date\": \"<date>\",\n      \"end_date\": \"<date>\",\n      \"type\": \"collection\",\n      \"note\": \"<string>\",\n      \"delivery_address\": \"<string>\",\n      \"home_delivery_address\": \"<string>\",\n      \"status\": \"complete\",\n      \"basket\": {\n        \"id\": \"<number>\",\n        \"delivery_fee\": \"<number>\",\n        \"service_charge\": \"<number>\",\n        \"tax\": \"<number>\",\n        \"tip\": \"<number>\",\n        \"total\": \"<number>\",\n        \"items\": [\n          {\n            \"id\": \"<number>\",\n            \"quantity\": \"<number>\",\n            \"categories_ids\": [\n              \"<string>\",\n              \"<string>\"\n            ],\n            \"details\": {\n              \"category\": \"<string>\",\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"priceType\": \"FIXED\",\n              \"prirewardce\": \"<number>\",\n              \"stampReward\": \"<number>\",\n              \"taxRateValue\": \"<number>\",\n              \"totalPrice\": \"<number>\",\n              \"taxRates\": {\n                \"elements\": [\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  },\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  }\n                ]\n              },\n              \"modifiers\": [\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ],\n              \"discounts\": [\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ]\n            }\n          },\n          {\n            \"id\": \"<number>\",\n            \"quantity\": \"<number>\",\n            \"categories_ids\": [\n              \"<string>\",\n              \"<string>\"\n            ],\n            \"details\": {\n              \"category\": \"<string>\",\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"priceType\": \"VARIABLE\",\n              \"prirewardce\": \"<number>\",\n              \"stampReward\": \"<number>\",\n              \"taxRateValue\": \"<number>\",\n              \"totalPrice\": \"<number>\",\n              \"taxRates\": {\n                \"elements\": [\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  },\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  }\n                ]\n              },\n              \"modifiers\": [\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ],\n              \"discounts\": [\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ]\n            }\n          }\n        ]\n      },\n      \"branch\": {\n        \"id\": \"<number>\",\n        \"name\": \"<string>\"\n      },\n      \"clover\": {\n        \"order_id\": \"<string>\"\n      },\n      \"customer\": {\n        \"email\": \"<string>\",\n        \"id\": \"<number>\",\n        \"name\": \"<string>\",\n        \"phone\": \"<string>\"\n      },\n      \"merchant\": {\n        \"id\": \"<number>\",\n        \"group_photo\": \"<string>\",\n        \"name\": \"<string>\"\n      }\n    },\n    {\n      \"id\": \"<number>\",\n      \"uuid\": \"<string>\",\n      \"created_at\": \"<date>\",\n      \"due_date\": \"<date>\",\n      \"end_date\": \"<date>\",\n      \"type\": \"fixed-delivery\",\n      \"note\": \"<string>\",\n      \"delivery_address\": \"<string>\",\n      \"home_delivery_address\": \"<string>\",\n      \"status\": \"ready\",\n      \"basket\": {\n        \"id\": \"<number>\",\n        \"delivery_fee\": \"<number>\",\n        \"service_charge\": \"<number>\",\n        \"tax\": \"<number>\",\n        \"tip\": \"<number>\",\n        \"total\": \"<number>\",\n        \"items\": [\n          {\n            \"id\": \"<number>\",\n            \"quantity\": \"<number>\",\n            \"categories_ids\": [\n              \"<string>\",\n              \"<string>\"\n            ],\n            \"details\": {\n              \"category\": \"<string>\",\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"priceType\": \"VARIABLE\",\n              \"prirewardce\": \"<number>\",\n              \"stampReward\": \"<number>\",\n              \"taxRateValue\": \"<number>\",\n              \"totalPrice\": \"<number>\",\n              \"taxRates\": {\n                \"elements\": [\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  },\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  }\n                ]\n              },\n              \"modifiers\": [\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ],\n              \"discounts\": [\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ]\n            }\n          },\n          {\n            \"id\": \"<number>\",\n            \"quantity\": \"<number>\",\n            \"categories_ids\": [\n              \"<string>\",\n              \"<string>\"\n            ],\n            \"details\": {\n              \"category\": \"<string>\",\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"priceType\": \"VARIABLE\",\n              \"prirewardce\": \"<number>\",\n              \"stampReward\": \"<number>\",\n              \"taxRateValue\": \"<number>\",\n              \"totalPrice\": \"<number>\",\n              \"taxRates\": {\n                \"elements\": [\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  },\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  }\n                ]\n              },\n              \"modifiers\": [\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ],\n              \"discounts\": [\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ]\n            }\n          }\n        ]\n      },\n      \"branch\": {\n        \"id\": \"<number>\",\n        \"name\": \"<string>\"\n      },\n      \"clover\": {\n        \"order_id\": \"<string>\"\n      },\n      \"customer\": {\n        \"email\": \"<string>\",\n        \"id\": \"<number>\",\n        \"name\": \"<string>\",\n        \"phone\": \"<string>\"\n      },\n      \"merchant\": {\n        \"id\": \"<number>\",\n        \"group_photo\": \"<string>\",\n        \"name\": \"<string>\"\n      }\n    }\n  ]\n}"},{"id":"6cfbcce3-38be-4cfe-b661-c3ecd89803fe","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/v2","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders","v2"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"d73f493a-d531-4b3a-b81b-857fe975269a","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/v2","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders","v2"],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"29265dfd-8347-4380-b18c-106ee91dd65e","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/v2","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders","v2"],"variable":[{"key":"merchantId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"c60fd123-0ddc-490b-abdf-30ba1d53c325"}],"id":"3847897a-e9b3-450c-a5b1-ac552cb1fda9","_postman_id":"3847897a-e9b3-450c-a5b1-ac552cb1fda9","description":""},{"name":"products","item":[{"name":"Returns merchant order products","id":"8da37723-c0f9-45dc-9dbb-32455ff217e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/products","urlObject":{"path":["merchants",":merchantId","orders","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"8cffe092-a18f-4ce9-85d9-c27a3ea89d1f","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"48d54d3c-9f67-4fd4-bc7a-dc6eea960d3d","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders","products"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"price\": \"<number>\",\n      \"priceType\": \"FIXED\",\n      \"quantity\": \"<number>\",\n      \"reward\": \"<number>\",\n      \"stampReward\": \"<number>\",\n      \"taxRateValue\": \"<number>\",\n      \"taxRates\": {\n        \"elements\": [\n          {\n            \"id\": \"<number>\",\n            \"lineItemRef\": \"<string>\",\n            \"name\": \"<string>\",\n            \"rate\": \"<number>\"\n          },\n          {\n            \"id\": \"<number>\",\n            \"lineItemRef\": \"<string>\",\n            \"name\": \"<string>\",\n            \"rate\": \"<number>\"\n          }\n        ]\n      }\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"price\": \"<number>\",\n      \"priceType\": \"variable\",\n      \"quantity\": \"<number>\",\n      \"reward\": \"<number>\",\n      \"stampReward\": \"<number>\",\n      \"taxRateValue\": \"<number>\",\n      \"taxRates\": {\n        \"elements\": [\n          {\n            \"id\": \"<number>\",\n            \"lineItemRef\": \"<string>\",\n            \"name\": \"<string>\",\n            \"rate\": \"<number>\"\n          },\n          {\n            \"id\": \"<number>\",\n            \"lineItemRef\": \"<string>\",\n            \"name\": \"<string>\",\n            \"rate\": \"<number>\"\n          }\n        ]\n      }\n    }\n  ]\n}"},{"id":"5a3fb074-28a3-43a8-a9c0-e1d477a40776","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders","products"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"aa426311-7585-4abb-9679-cdd582850734","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders","products"],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"120d531e-c920-4912-a105-2bf641155735","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders/products","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders","products"],"variable":[{"key":"merchantId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"8da37723-c0f9-45dc-9dbb-32455ff217e1"}],"id":"a7b858f1-a395-47aa-8e85-47004f904ee8","_postman_id":"a7b858f1-a395-47aa-8e85-47004f904ee8","description":""},{"name":"Returns merchant orders","id":"ca748deb-8fe8-4971-ad4f-90eebb97e999","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders","urlObject":{"path":["merchants",":merchantId","orders"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"07de43d0-5b70-4a5f-9807-01498cf420ab","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"d6fd21ae-de8f-4369-8d70-6d27c626ad80","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"total\": \"<number>\",\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"uuid\": \"<string>\",\n      \"created_at\": \"<date>\",\n      \"due_date\": \"<date>\",\n      \"end_date\": \"<date>\",\n      \"type\": \"collection\",\n      \"note\": \"<string>\",\n      \"delivery_address\": \"<string>\",\n      \"home_delivery_address\": \"<string>\",\n      \"status\": \"declibed\",\n      \"basket\": {\n        \"id\": \"<number>\",\n        \"delivery_fee\": \"<number>\",\n        \"service_charge\": \"<number>\",\n        \"tax\": \"<number>\",\n        \"tip\": \"<number>\",\n        \"total\": \"<number>\",\n        \"items\": [\n          {\n            \"id\": \"<number>\",\n            \"quantity\": \"<number>\",\n            \"categories_ids\": [\n              \"<string>\",\n              \"<string>\"\n            ],\n            \"details\": {\n              \"category\": \"<string>\",\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"priceType\": \"FIXED\",\n              \"prirewardce\": \"<number>\",\n              \"stampReward\": \"<number>\",\n              \"taxRateValue\": \"<number>\",\n              \"totalPrice\": \"<number>\",\n              \"taxRates\": {\n                \"elements\": [\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  },\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  }\n                ]\n              },\n              \"modifiers\": [\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ],\n              \"discounts\": [\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ]\n            }\n          },\n          {\n            \"id\": \"<number>\",\n            \"quantity\": \"<number>\",\n            \"categories_ids\": [\n              \"<string>\",\n              \"<string>\"\n            ],\n            \"details\": {\n              \"category\": \"<string>\",\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"priceType\": \"VARIABLE\",\n              \"prirewardce\": \"<number>\",\n              \"stampReward\": \"<number>\",\n              \"taxRateValue\": \"<number>\",\n              \"totalPrice\": \"<number>\",\n              \"taxRates\": {\n                \"elements\": [\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  },\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  }\n                ]\n              },\n              \"modifiers\": [\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ],\n              \"discounts\": [\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ]\n            }\n          }\n        ]\n      },\n      \"branch\": {\n        \"id\": \"<number>\",\n        \"name\": \"<string>\"\n      },\n      \"clover\": {\n        \"order_id\": \"<string>\"\n      },\n      \"customer\": {\n        \"email\": \"<string>\",\n        \"id\": \"<number>\",\n        \"name\": \"<string>\",\n        \"phone\": \"<string>\"\n      },\n      \"merchant\": {\n        \"id\": \"<number>\",\n        \"group_photo\": \"<string>\",\n        \"name\": \"<string>\"\n      }\n    },\n    {\n      \"id\": \"<number>\",\n      \"uuid\": \"<string>\",\n      \"created_at\": \"<date>\",\n      \"due_date\": \"<date>\",\n      \"end_date\": \"<date>\",\n      \"type\": \"delivery\",\n      \"note\": \"<string>\",\n      \"delivery_address\": \"<string>\",\n      \"home_delivery_address\": \"<string>\",\n      \"status\": \"preparing\",\n      \"basket\": {\n        \"id\": \"<number>\",\n        \"delivery_fee\": \"<number>\",\n        \"service_charge\": \"<number>\",\n        \"tax\": \"<number>\",\n        \"tip\": \"<number>\",\n        \"total\": \"<number>\",\n        \"items\": [\n          {\n            \"id\": \"<number>\",\n            \"quantity\": \"<number>\",\n            \"categories_ids\": [\n              \"<string>\",\n              \"<string>\"\n            ],\n            \"details\": {\n              \"category\": \"<string>\",\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"priceType\": \"VARIABLE\",\n              \"prirewardce\": \"<number>\",\n              \"stampReward\": \"<number>\",\n              \"taxRateValue\": \"<number>\",\n              \"totalPrice\": \"<number>\",\n              \"taxRates\": {\n                \"elements\": [\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  },\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  }\n                ]\n              },\n              \"modifiers\": [\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ],\n              \"discounts\": [\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ]\n            }\n          },\n          {\n            \"id\": \"<number>\",\n            \"quantity\": \"<number>\",\n            \"categories_ids\": [\n              \"<string>\",\n              \"<string>\"\n            ],\n            \"details\": {\n              \"category\": \"<string>\",\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"priceType\": \"VARIABLE\",\n              \"prirewardce\": \"<number>\",\n              \"stampReward\": \"<number>\",\n              \"taxRateValue\": \"<number>\",\n              \"totalPrice\": \"<number>\",\n              \"taxRates\": {\n                \"elements\": [\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  },\n                  {\n                    \"id\": \"<number>\",\n                    \"lineItemRef\": \"<string>\",\n                    \"name\": \"<string>\",\n                    \"rate\": \"<number>\",\n                    \"value\": \"<number>\"\n                  }\n                ]\n              },\n              \"modifiers\": [\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"id\": \"<number>\",\n                  \"price\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ],\n              \"discounts\": [\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                },\n                {\n                  \"amount\": \"<number>\",\n                  \"name\": \"<string>\"\n                }\n              ]\n            }\n          }\n        ]\n      },\n      \"branch\": {\n        \"id\": \"<number>\",\n        \"name\": \"<string>\"\n      },\n      \"clover\": {\n        \"order_id\": \"<string>\"\n      },\n      \"customer\": {\n        \"email\": \"<string>\",\n        \"id\": \"<number>\",\n        \"name\": \"<string>\",\n        \"phone\": \"<string>\"\n      },\n      \"merchant\": {\n        \"id\": \"<number>\",\n        \"group_photo\": \"<string>\",\n        \"name\": \"<string>\"\n      }\n    }\n  ]\n}"},{"id":"bdde72ca-c425-4b7f-9a08-74c63556007d","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"691b7282-e8ff-47bf-8109-e88cfd0be72a","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders"],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"3003e05e-253c-4565-89a1-b6749fb0fea5","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/orders","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","orders"],"variable":[{"key":"merchantId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"ca748deb-8fe8-4971-ad4f-90eebb97e999"}],"id":"887ba62e-f72d-43e6-9531-56e1168f8a04","_postman_id":"887ba62e-f72d-43e6-9531-56e1168f8a04","description":""},{"name":"reports","item":[{"name":"gift-cards","item":[{"name":"liability","item":[{"name":"kpis","item":[{"name":"Returns KPI data for gift cards liability report","id":"7a6611f6-d705-4f19-9831-bffa64ccbd94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability/kpis?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>","urlObject":{"path":["merchants",":merchantId","reports","gift-cards","liability","kpis"],"host":["https://api-staging.loylap.com/v2"],"query":[{"description":{"content":"<p>Filter by Franchise</p>\n","type":"text/plain"},"key":"franchise_id","value":"<integer>"},{"description":{"content":"<p>Filter by date greater or equals than. In ISO 8601 format</p>\n","type":"text/plain"},"key":"start_date","value":"<dateTime>"},{"description":{"content":"<p>Filter by date smaller or equals than. In ISO 8601 format</p>\n","type":"text/plain"},"key":"end_date","value":"<dateTime>"}],"variable":[{"id":"3be48f18-6cd2-41f5-a083-bffb15ff3868","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"d316fcb0-7f6b-4095-975b-d2adedecd9a9","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability/kpis?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","reports","gift-cards","liability","kpis"],"query":[{"description":"Filter by Franchise","key":"franchise_id","value":"<integer>"},{"description":"Filter by date greater or equals than. In ISO 8601 format","key":"start_date","value":"<dateTime>"},{"description":"Filter by date smaller or equals than. In ISO 8601 format","key":"end_date","value":"<dateTime>"}],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"summary\": {\n    \"credited\": {\n      \"total\": \"<integer>\",\n      \"volume\": \"<integer>\"\n    },\n    \"debited\": {\n      \"total\": \"<integer>\",\n      \"volume\": \"<integer>\"\n    },\n    \"expired\": {\n      \"total\": \"<integer>\",\n      \"volume\": \"<integer>\"\n    },\n    \"balance\": {\n      \"total\": \"<integer>\",\n      \"volume\": \"<integer>\"\n    }\n  }\n}"},{"id":"6857f0a2-b1ae-45a9-bfc3-ac4d14b426aa","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability/kpis?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","reports","gift-cards","liability","kpis"],"query":[{"description":"Filter by Franchise","key":"franchise_id","value":"<integer>"},{"description":"Filter by date greater or equals than. In ISO 8601 format","key":"start_date","value":"<dateTime>"},{"description":"Filter by date smaller or equals than. In ISO 8601 format","key":"end_date","value":"<dateTime>"}],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"c5effa21-e203-44aa-9a36-7a4cfac80769","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability/kpis?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","reports","gift-cards","liability","kpis"],"query":[{"description":"Filter by Franchise","key":"franchise_id","value":"<integer>"},{"description":"Filter by date greater or equals than. In ISO 8601 format","key":"start_date","value":"<dateTime>"},{"description":"Filter by date smaller or equals than. In ISO 8601 format","key":"end_date","value":"<dateTime>"}],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"040b7ac9-b570-4f16-af86-ea6403cf6c6f","name":"Internal Server Error","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability/kpis?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","reports","gift-cards","liability","kpis"],"query":[{"description":"Filter by Franchise","key":"franchise_id","value":"<integer>"},{"description":"Filter by date greater or equals than. In ISO 8601 format","key":"start_date","value":"<dateTime>"},{"description":"Filter by date smaller or equals than. In ISO 8601 format","key":"end_date","value":"<dateTime>"}],"variable":[{"key":"merchantId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"7a6611f6-d705-4f19-9831-bffa64ccbd94"}],"id":"725d5c5c-29c2-4372-8be7-2d5b06038a99","_postman_id":"725d5c5c-29c2-4372-8be7-2d5b06038a99","description":""},{"name":"Returns merchant gift cards liability report data","id":"ef0cfada-0a17-4bb3-a095-9d66624c9558","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>&order=voucherType&direction=desc&exports_to=csv","urlObject":{"path":["merchants",":merchantId","reports","gift-cards","liability"],"host":["https://api-staging.loylap.com/v2"],"query":[{"description":{"content":"<p>Filter by Franchise</p>\n","type":"text/plain"},"key":"franchise_id","value":"<integer>"},{"description":{"content":"<p>Filter by date greater or equals than. In ISO 8601 format</p>\n","type":"text/plain"},"key":"start_date","value":"<dateTime>"},{"description":{"content":"<p>Filter by date smaller or equals than. In ISO 8601 format</p>\n","type":"text/plain"},"key":"end_date","value":"<dateTime>"},{"description":{"content":"<p>Field to be used for sorting the list</p>\n","type":"text/plain"},"key":"order","value":"voucherType"},{"description":{"content":"<p>Sorting direction</p>\n","type":"text/plain"},"key":"direction","value":"desc"},{"description":{"content":"<p>Inform the format to export the data</p>\n","type":"text/plain"},"key":"exports_to","value":"csv"}],"variable":[{"id":"c76e7928-7bd1-4840-a847-0d6b8a3445b9","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"405dd8f9-ee8b-4de8-99ac-3a21df7130c0","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>&order=voucherType&direction=desc&exports_to=csv","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","reports","gift-cards","liability"],"query":[{"description":"Filter by Franchise","key":"franchise_id","value":"<integer>"},{"description":"Filter by date greater or equals than. In ISO 8601 format","key":"start_date","value":"<dateTime>"},{"description":"Filter by date smaller or equals than. In ISO 8601 format","key":"end_date","value":"<dateTime>"},{"description":"Field to be used for sorting the list","key":"order","value":"voucherType"},{"description":"Sorting direction","key":"direction","value":"desc"},{"description":"Inform the format to export the data","key":"exports_to","value":"csv"}],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"userId\": \"<integer>\",\n      \"voucherType\": \"physical\",\n      \"creditedBalance\": \"<integer>\",\n      \"creditedAt\": \"<dateTime>\",\n      \"creditedBranch\": \"<string>\",\n      \"debitedBalance\": \"<integer>\",\n      \"debitedAt\": \"<dateTime>\",\n      \"debitedBranch\": \"<string>\",\n      \"expiryDate\": \"<dateTime>\",\n      \"balance\": \"<integer>\"\n    },\n    {\n      \"userId\": \"<integer>\",\n      \"voucherType\": \"physical\",\n      \"creditedBalance\": \"<integer>\",\n      \"creditedAt\": \"<dateTime>\",\n      \"creditedBranch\": \"<string>\",\n      \"debitedBalance\": \"<integer>\",\n      \"debitedAt\": \"<dateTime>\",\n      \"debitedBranch\": \"<string>\",\n      \"expiryDate\": \"<dateTime>\",\n      \"balance\": \"<integer>\"\n    }\n  ],\n  \"total\": \"<integer>\",\n  \"totalPages\": \"<integer>\",\n  \"currentPage\": \"<integer>\",\n  \"perPage\": \"<integer>\"\n}"},{"id":"9fb5a92d-562d-4638-834c-c0a7853a245e","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>&order=voucherType&direction=desc&exports_to=csv","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","reports","gift-cards","liability"],"query":[{"description":"Filter by Franchise","key":"franchise_id","value":"<integer>"},{"description":"Filter by date greater or equals than. In ISO 8601 format","key":"start_date","value":"<dateTime>"},{"description":"Filter by date smaller or equals than. In ISO 8601 format","key":"end_date","value":"<dateTime>"},{"description":"Field to be used for sorting the list","key":"order","value":"voucherType"},{"description":"Sorting direction","key":"direction","value":"desc"},{"description":"Inform the format to export the data","key":"exports_to","value":"csv"}],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"9a1e8cbd-19c1-4c1d-b62e-18db1e2c5cc6","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>&order=voucherType&direction=desc&exports_to=csv","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","reports","gift-cards","liability"],"query":[{"description":"Filter by Franchise","key":"franchise_id","value":"<integer>"},{"description":"Filter by date greater or equals than. In ISO 8601 format","key":"start_date","value":"<dateTime>"},{"description":"Filter by date smaller or equals than. In ISO 8601 format","key":"end_date","value":"<dateTime>"},{"description":"Field to be used for sorting the list","key":"order","value":"voucherType"},{"description":"Sorting direction","key":"direction","value":"desc"},{"description":"Inform the format to export the data","key":"exports_to","value":"csv"}],"variable":[{"key":"merchantId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"06614cb3-40c1-4238-9f4a-afe1f71318cf","name":"Internal Server Error","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId/reports/gift-cards/liability?franchise_id=<integer>&start_date=<dateTime>&end_date=<dateTime>&order=voucherType&direction=desc&exports_to=csv","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId","reports","gift-cards","liability"],"query":[{"description":"Filter by Franchise","key":"franchise_id","value":"<integer>"},{"description":"Filter by date greater or equals than. In ISO 8601 format","key":"start_date","value":"<dateTime>"},{"description":"Filter by date smaller or equals than. In ISO 8601 format","key":"end_date","value":"<dateTime>"},{"description":"Field to be used for sorting the list","key":"order","value":"voucherType"},{"description":"Sorting direction","key":"direction","value":"desc"},{"description":"Inform the format to export the data","key":"exports_to","value":"csv"}],"variable":[{"key":"merchantId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"ef0cfada-0a17-4bb3-a095-9d66624c9558"}],"id":"16c0d3eb-d1ae-403e-b822-de02646efaee","_postman_id":"16c0d3eb-d1ae-403e-b822-de02646efaee","description":""}],"id":"0858c7cd-9b3e-4343-9c0c-8e765813ef6e","_postman_id":"0858c7cd-9b3e-4343-9c0c-8e765813ef6e","description":""}],"id":"c81078c0-2089-4abd-895d-2aafd9b89a32","_postman_id":"c81078c0-2089-4abd-895d-2aafd9b89a32","description":""},{"name":"Returns merchant details","id":"3f731dbc-fc43-404e-a7c6-271fef1f001b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/merchants/:merchantId","urlObject":{"path":["merchants",":merchantId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"04bc40a5-14ea-4b9b-ba0e-f7409dea65f8","description":{"content":"<p>(Required) ID of merchant</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"merchantId"}]}},"response":[{"id":"4bbd11fc-eb89-42c7-92c8-44de4fd45aef","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId"],"variable":[{"key":"merchantId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n  {\n    \"id\": \"<long>\",\n    \"name\": \"<string>\",\n    \"caterer\": \"<boolean>\",\n    \"group_admin_email\": \"<string>\",\n    \"short_name\": \"<string>\",\n    \"email\": \"<string>\",\n    \"phone\": \"<string>\",\n    \"website\": \"<string>\",\n    \"url\": \"<string>\",\n    \"slug\": \"<string>\",\n    \"category\": \"<long>\",\n    \"category_name\": \"<string>\",\n    \"visible\": 1,\n    \"status\": 1,\n    \"access_level\": 0,\n    \"established\": \"<dateTime>\",\n    \"location\": {\n      \"address\": \"<string>\",\n      \"lat\": \"<string>\",\n      \"lng\": \"<string>\",\n      \"country\": \"<string>\",\n      \"zip\": \"<string>\",\n      \"city\": \"<string>\"\n    },\n    \"isEnrolled\": \"<boolean>\",\n    \"isParent\": \"<boolean>\",\n    \"features\": {\n      \"topup\": \"<boolean>\",\n      \"integrations\": {\n        \"aibms\": \"<boolean>\",\n        \"aibms_id\": \"<string>\",\n        \"stripe\": \"<boolean>\",\n        \"stripe_id\": \"<string>\",\n        \"judopay\": \"<boolean>\",\n        \"judopay_id\": \"<string>\",\n        \"clover_ecomm\": \"<boolean>\",\n        \"clover_ecomm_id\": \"<string>\"\n      }\n    },\n    \"photos\": {\n      \"group_photo\": \"<string>\",\n      \"img1\": \"<string>\",\n      \"img2\": \"<string>\",\n      \"img3\": \"<string>\",\n      \"img4\": \"<string>\"\n    },\n    \"branches\": [\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\",\n        \"address\": \"<string>\",\n        \"lat\": \"<string>\",\n        \"lng\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"opening_hours\": \"<string>\",\n        \"delivery_type\": null,\n        \"external_merchant_id\": \"<string>\",\n        \"estimated_delivery\": null,\n        \"estimated_collection\": null,\n        \"group_id\": \"<long>\",\n        \"status\": 1,\n        \"is_phone_number_required_for_ordering\": false,\n        \"fixed_delivery_name\": \"<string>\",\n        \"max_delivery_distance\": 0,\n        \"delivery\": false,\n        \"tip\": false,\n        \"hide_calendar\": false,\n        \"ordering\": 0,\n        \"prep_time\": \"<number>\",\n        \"add_utensils\": 0,\n        \"delivery_time\": 0,\n        \"fixed_delivery_time\": 0,\n        \"delivery_addresses\": [\n          {\n            \"id\": \"<long>\",\n            \"user_id\": null,\n            \"group_id\": \"<long>\",\n            \"branch_id\": \"<long>\",\n            \"is_primary\": \"<boolean>\",\n            \"country\": null,\n            \"postal_code\": null,\n            \"region\": null,\n            \"city\": null,\n            \"locality\": null,\n            \"line_1\": null,\n            \"line_2\": null,\n            \"line_3\": null\n          },\n          {\n            \"id\": \"<long>\",\n            \"user_id\": null,\n            \"group_id\": \"<long>\",\n            \"branch_id\": \"<long>\",\n            \"is_primary\": \"<boolean>\",\n            \"country\": null,\n            \"postal_code\": null,\n            \"region\": null,\n            \"city\": null,\n            \"locality\": null,\n            \"line_1\": null,\n            \"line_2\": null,\n            \"line_3\": null\n          }\n        ],\n        \"delivery_fee\": 0,\n        \"fixed_delivery_fee\": null,\n        \"waive_fixed_delivery_fee\": null,\n        \"waive_delivery_fee\": null,\n        \"minimum_order_collection\": 0,\n        \"minimum_order_delivery\": 0,\n        \"minimum_order_fixed_delivery\": 0,\n        \"ordering_unavailable_until\": null,\n        \"hide_dispatch_time\": false,\n        \"ordering_welcome_message\": null,\n        \"modifierGroupsScroll\": false,\n        \"autoAcceptOrders\": false,\n        \"collection\": {\n          \"dispatch_slots\": false\n        },\n        \"Delivery\": {\n          \"dispatch_slots\": false\n        },\n        \"fixed-delivery\": {\n          \"dispatch_slots\": false\n        }\n      },\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\",\n        \"address\": \"<string>\",\n        \"lat\": \"<string>\",\n        \"lng\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"opening_hours\": \"<string>\",\n        \"delivery_type\": null,\n        \"external_merchant_id\": \"<string>\",\n        \"estimated_delivery\": null,\n        \"estimated_collection\": null,\n        \"group_id\": \"<long>\",\n        \"status\": 1,\n        \"is_phone_number_required_for_ordering\": false,\n        \"fixed_delivery_name\": \"<string>\",\n        \"max_delivery_distance\": 0,\n        \"delivery\": false,\n        \"tip\": false,\n        \"hide_calendar\": false,\n        \"ordering\": 0,\n        \"prep_time\": \"<number>\",\n        \"add_utensils\": 0,\n        \"delivery_time\": 0,\n        \"fixed_delivery_time\": 0,\n        \"delivery_addresses\": [\n          {\n            \"id\": \"<long>\",\n            \"user_id\": null,\n            \"group_id\": \"<long>\",\n            \"branch_id\": \"<long>\",\n            \"is_primary\": \"<boolean>\",\n            \"country\": null,\n            \"postal_code\": null,\n            \"region\": null,\n            \"city\": null,\n            \"locality\": null,\n            \"line_1\": null,\n            \"line_2\": null,\n            \"line_3\": null\n          },\n          {\n            \"id\": \"<long>\",\n            \"user_id\": null,\n            \"group_id\": \"<long>\",\n            \"branch_id\": \"<long>\",\n            \"is_primary\": \"<boolean>\",\n            \"country\": null,\n            \"postal_code\": null,\n            \"region\": null,\n            \"city\": null,\n            \"locality\": null,\n            \"line_1\": null,\n            \"line_2\": null,\n            \"line_3\": null\n          }\n        ],\n        \"delivery_fee\": 0,\n        \"fixed_delivery_fee\": null,\n        \"waive_fixed_delivery_fee\": null,\n        \"waive_delivery_fee\": null,\n        \"minimum_order_collection\": 0,\n        \"minimum_order_delivery\": 0,\n        \"minimum_order_fixed_delivery\": 0,\n        \"ordering_unavailable_until\": null,\n        \"hide_dispatch_time\": false,\n        \"ordering_welcome_message\": null,\n        \"modifierGroupsScroll\": false,\n        \"autoAcceptOrders\": false,\n        \"collection\": {\n          \"dispatch_slots\": false\n        },\n        \"Delivery\": {\n          \"dispatch_slots\": false\n        },\n        \"fixed-delivery\": {\n          \"dispatch_slots\": false\n        }\n      }\n    ],\n    \"employees\": [\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\",\n        \"firstName\": \"<string>\",\n        \"lastName\": \"<string>\",\n        \"status\": \"disabled\",\n        \"permissions\": \"admin\",\n        \"role\": \"admin\",\n        \"branch\": {\n          \"name\": \"<string>\"\n        }\n      },\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\",\n        \"firstName\": \"<string>\",\n        \"lastName\": \"<string>\",\n        \"status\": \"enabled\",\n        \"permissions\": \"admin\",\n        \"role\": \"admin\",\n        \"branch\": {\n          \"name\": \"<string>\"\n        }\n      }\n    ],\n    \"franchise\": [\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\"\n      },\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\"\n      }\n    ],\n    \"roles\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"loyaltyRoles\": [\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\"\n      },\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\"\n      }\n    ],\n    \"settings\": [\n      {\n        \"id\": \"<long>\",\n        \"group_id\": \"<long>\",\n        \"branch_id\": null,\n        \"value\": \"<string>\",\n        \"data_type\": \"array\",\n        \"setting_type\": \"<string>\",\n        \"name\": \"<string>\"\n      },\n      {\n        \"id\": \"<long>\",\n        \"group_id\": \"<long>\",\n        \"branch_id\": null,\n        \"value\": \"<string>\",\n        \"data_type\": \"boolean\",\n        \"setting_type\": \"<string>\",\n        \"name\": \"<string>\"\n      }\n    ],\n    \"plan\": {\n      \"id\": \"<long>\",\n      \"is_active\": \"<integer>\",\n      \"group_id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\",\n      \"type\": \"<string>\",\n      \"loylap_plan\": \"<string>\",\n      \"extend_plan\": \"<string>\",\n      \"country\": \"<string>\",\n      \"subscription_fee\": \"<number>\",\n      \"transaction_fee_gift\": \"<number>\",\n      \"transaction_fee_upfront\": \"<number>\",\n      \"transaction_charge_gift\": \"<number>\",\n      \"transaction_charge_upfront\": \"<number>\",\n      \"ordering_fee\": \"<number>\",\n      \"branch_charge\": \"<number>\",\n      \"device_charge\": \"<number>\",\n      \"free_transaction_value\": \"<number>\",\n      \"trial_days\": \"<integer>\",\n      \"remaining_trial_days\": \"<integer>\",\n      \"last_billed\": null,\n      \"next_bill_date_to_charge\": \"<date>\",\n      \"acquirer\": null,\n      \"gateway\": null,\n      \"is_direct_debit\": 0,\n      \"is_invoiced_manually\": null,\n      \"is_best_investment\": 0,\n      \"start_date\": \"<date>\",\n      \"end_date\": null,\n      \"is_free\": 1\n    },\n    \"cardDetails\": null,\n    \"loyalty\": {\n      \"loyalty_type\": \"cash\",\n      \"maximum_reward_value\": \"<integer>\",\n      \"stamp_number\": \"<integer>\",\n      \"base_reward\": \"<number>\",\n      \"maximum_credit_allowance\": \"<number>\",\n      \"terms_and_conditions\": \"<string>\",\n      \"tier_type\": \"spend\",\n      \"expiry_days\": \"<integer>\",\n      \"preauthorised\": \"<boolean>\",\n      \"tiers\": {\n        \"stamp\": [\n          {\n            \"amount\": \"<integer>\",\n            \"reward\": \"\"\n          },\n          {\n            \"amount\": \"<integer>\",\n            \"reward\": \"\"\n          }\n        ],\n        \"credit\": [\n          {\n            \"amount\": \"<integer>\",\n            \"reward\": \"<integer>\"\n          },\n          {\n            \"amount\": \"<integer>\",\n            \"reward\": \"<integer>\"\n          }\n        ],\n        \"upfront\": [\n          {\n            \"amount\": \"\",\n            \"reward\": \"<integer>\"\n          },\n          {\n            \"amount\": \"\",\n            \"reward\": \"<integer>\"\n          }\n        ]\n      }\n    },\n    \"balance\": {\n      \"cash\": 0,\n      \"stamps\": 0,\n      \"maxStamps\": 0,\n      \"creditAllowed\": \"<boolean>\"\n    },\n    \"topup\": {\n      \"auto\": \"<boolean>\",\n      \"value\": \"<integer>\"\n    },\n    \"paymentAccounts\": [\n      {\n        \"type\": \"<string>\",\n        \"account_number\": \"<string>\",\n        \"secret\": \"<string>\"\n      },\n      {\n        \"type\": \"<string>\",\n        \"account_number\": \"<string>\",\n        \"secret\": \"<string>\"\n      }\n    ],\n    \"posTokens\": {\n      \"clover\": {\n        \"hasSelfCheckoutAccessToken\": \"<boolean>\"\n      }\n    }\n  },\n  {\n    \"id\": \"<long>\",\n    \"name\": \"<string>\",\n    \"caterer\": \"<boolean>\",\n    \"group_admin_email\": \"<string>\",\n    \"short_name\": \"<string>\",\n    \"email\": \"<string>\",\n    \"phone\": \"<string>\",\n    \"website\": \"<string>\",\n    \"url\": \"<string>\",\n    \"slug\": \"<string>\",\n    \"category\": \"<long>\",\n    \"category_name\": \"<string>\",\n    \"visible\": 1,\n    \"status\": 1,\n    \"access_level\": 0,\n    \"established\": \"<dateTime>\",\n    \"location\": {\n      \"address\": \"<string>\",\n      \"lat\": \"<string>\",\n      \"lng\": \"<string>\",\n      \"country\": \"<string>\",\n      \"zip\": \"<string>\",\n      \"city\": \"<string>\"\n    },\n    \"isEnrolled\": \"<boolean>\",\n    \"isParent\": \"<boolean>\",\n    \"features\": {\n      \"topup\": \"<boolean>\",\n      \"integrations\": {\n        \"aibms\": \"<boolean>\",\n        \"aibms_id\": \"<string>\",\n        \"stripe\": \"<boolean>\",\n        \"stripe_id\": \"<string>\",\n        \"judopay\": \"<boolean>\",\n        \"judopay_id\": \"<string>\",\n        \"clover_ecomm\": \"<boolean>\",\n        \"clover_ecomm_id\": \"<string>\"\n      }\n    },\n    \"photos\": {\n      \"group_photo\": \"<string>\",\n      \"img1\": \"<string>\",\n      \"img2\": \"<string>\",\n      \"img3\": \"<string>\",\n      \"img4\": \"<string>\"\n    },\n    \"branches\": [\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\",\n        \"address\": \"<string>\",\n        \"lat\": \"<string>\",\n        \"lng\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"opening_hours\": \"<string>\",\n        \"delivery_type\": null,\n        \"external_merchant_id\": \"<string>\",\n        \"estimated_delivery\": null,\n        \"estimated_collection\": null,\n        \"group_id\": \"<long>\",\n        \"status\": 1,\n        \"is_phone_number_required_for_ordering\": false,\n        \"fixed_delivery_name\": \"<string>\",\n        \"max_delivery_distance\": 0,\n        \"delivery\": false,\n        \"tip\": false,\n        \"hide_calendar\": false,\n        \"ordering\": 1,\n        \"prep_time\": \"<number>\",\n        \"add_utensils\": 0,\n        \"delivery_time\": 0,\n        \"fixed_delivery_time\": 0,\n        \"delivery_addresses\": [\n          {\n            \"id\": \"<long>\",\n            \"user_id\": null,\n            \"group_id\": \"<long>\",\n            \"branch_id\": \"<long>\",\n            \"is_primary\": \"<boolean>\",\n            \"country\": null,\n            \"postal_code\": null,\n            \"region\": null,\n            \"city\": null,\n            \"locality\": null,\n            \"line_1\": null,\n            \"line_2\": null,\n            \"line_3\": null\n          },\n          {\n            \"id\": \"<long>\",\n            \"user_id\": null,\n            \"group_id\": \"<long>\",\n            \"branch_id\": \"<long>\",\n            \"is_primary\": \"<boolean>\",\n            \"country\": null,\n            \"postal_code\": null,\n            \"region\": null,\n            \"city\": null,\n            \"locality\": null,\n            \"line_1\": null,\n            \"line_2\": null,\n            \"line_3\": null\n          }\n        ],\n        \"delivery_fee\": 0,\n        \"fixed_delivery_fee\": null,\n        \"waive_fixed_delivery_fee\": null,\n        \"waive_delivery_fee\": null,\n        \"minimum_order_collection\": 0,\n        \"minimum_order_delivery\": 0,\n        \"minimum_order_fixed_delivery\": 0,\n        \"ordering_unavailable_until\": null,\n        \"hide_dispatch_time\": false,\n        \"ordering_welcome_message\": null,\n        \"modifierGroupsScroll\": false,\n        \"autoAcceptOrders\": false,\n        \"collection\": {\n          \"dispatch_slots\": false\n        },\n        \"Delivery\": {\n          \"dispatch_slots\": false\n        },\n        \"fixed-delivery\": {\n          \"dispatch_slots\": false\n        }\n      },\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\",\n        \"address\": \"<string>\",\n        \"lat\": \"<string>\",\n        \"lng\": \"<string>\",\n        \"phone\": \"<string>\",\n        \"opening_hours\": \"<string>\",\n        \"delivery_type\": null,\n        \"external_merchant_id\": \"<string>\",\n        \"estimated_delivery\": null,\n        \"estimated_collection\": null,\n        \"group_id\": \"<long>\",\n        \"status\": 1,\n        \"is_phone_number_required_for_ordering\": false,\n        \"fixed_delivery_name\": \"<string>\",\n        \"max_delivery_distance\": 0,\n        \"delivery\": false,\n        \"tip\": false,\n        \"hide_calendar\": false,\n        \"ordering\": 1,\n        \"prep_time\": \"<number>\",\n        \"add_utensils\": 0,\n        \"delivery_time\": 0,\n        \"fixed_delivery_time\": 0,\n        \"delivery_addresses\": [\n          {\n            \"id\": \"<long>\",\n            \"user_id\": null,\n            \"group_id\": \"<long>\",\n            \"branch_id\": \"<long>\",\n            \"is_primary\": \"<boolean>\",\n            \"country\": null,\n            \"postal_code\": null,\n            \"region\": null,\n            \"city\": null,\n            \"locality\": null,\n            \"line_1\": null,\n            \"line_2\": null,\n            \"line_3\": null\n          },\n          {\n            \"id\": \"<long>\",\n            \"user_id\": null,\n            \"group_id\": \"<long>\",\n            \"branch_id\": \"<long>\",\n            \"is_primary\": \"<boolean>\",\n            \"country\": null,\n            \"postal_code\": null,\n            \"region\": null,\n            \"city\": null,\n            \"locality\": null,\n            \"line_1\": null,\n            \"line_2\": null,\n            \"line_3\": null\n          }\n        ],\n        \"delivery_fee\": 0,\n        \"fixed_delivery_fee\": null,\n        \"waive_fixed_delivery_fee\": null,\n        \"waive_delivery_fee\": null,\n        \"minimum_order_collection\": 0,\n        \"minimum_order_delivery\": 0,\n        \"minimum_order_fixed_delivery\": 0,\n        \"ordering_unavailable_until\": null,\n        \"hide_dispatch_time\": false,\n        \"ordering_welcome_message\": null,\n        \"modifierGroupsScroll\": false,\n        \"autoAcceptOrders\": false,\n        \"collection\": {\n          \"dispatch_slots\": false\n        },\n        \"Delivery\": {\n          \"dispatch_slots\": false\n        },\n        \"fixed-delivery\": {\n          \"dispatch_slots\": false\n        }\n      }\n    ],\n    \"employees\": [\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\",\n        \"firstName\": \"<string>\",\n        \"lastName\": \"<string>\",\n        \"status\": \"enabled\",\n        \"permissions\": \"basic\",\n        \"role\": \"admin\",\n        \"branch\": {\n          \"name\": \"<string>\"\n        }\n      },\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\",\n        \"firstName\": \"<string>\",\n        \"lastName\": \"<string>\",\n        \"status\": \"disabled\",\n        \"permissions\": \"basic\",\n        \"role\": \"manager\",\n        \"branch\": {\n          \"name\": \"<string>\"\n        }\n      }\n    ],\n    \"franchise\": [\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\"\n      },\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\"\n      }\n    ],\n    \"roles\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"loyaltyRoles\": [\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\"\n      },\n      {\n        \"id\": \"<long>\",\n        \"name\": \"<string>\"\n      }\n    ],\n    \"settings\": [\n      {\n        \"id\": \"<long>\",\n        \"group_id\": \"<long>\",\n        \"branch_id\": null,\n        \"value\": \"<string>\",\n        \"data_type\": \"boolean\",\n        \"setting_type\": \"<string>\",\n        \"name\": \"<string>\"\n      },\n      {\n        \"id\": \"<long>\",\n        \"group_id\": \"<long>\",\n        \"branch_id\": null,\n        \"value\": \"<string>\",\n        \"data_type\": \"enum\",\n        \"setting_type\": \"<string>\",\n        \"name\": \"<string>\"\n      }\n    ],\n    \"plan\": {\n      \"id\": \"<long>\",\n      \"is_active\": \"<integer>\",\n      \"group_id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"description\": \"<string>\",\n      \"type\": \"<string>\",\n      \"loylap_plan\": \"<string>\",\n      \"extend_plan\": \"<string>\",\n      \"country\": \"<string>\",\n      \"subscription_fee\": \"<number>\",\n      \"transaction_fee_gift\": \"<number>\",\n      \"transaction_fee_upfront\": \"<number>\",\n      \"transaction_charge_gift\": \"<number>\",\n      \"transaction_charge_upfront\": \"<number>\",\n      \"ordering_fee\": \"<number>\",\n      \"branch_charge\": \"<number>\",\n      \"device_charge\": \"<number>\",\n      \"free_transaction_value\": \"<number>\",\n      \"trial_days\": \"<integer>\",\n      \"remaining_trial_days\": \"<integer>\",\n      \"last_billed\": null,\n      \"next_bill_date_to_charge\": \"<date>\",\n      \"acquirer\": null,\n      \"gateway\": null,\n      \"is_direct_debit\": 0,\n      \"is_invoiced_manually\": null,\n      \"is_best_investment\": 1,\n      \"start_date\": \"<date>\",\n      \"end_date\": null,\n      \"is_free\": 1\n    },\n    \"cardDetails\": null,\n    \"loyalty\": {\n      \"loyalty_type\": \"stamp\",\n      \"maximum_reward_value\": \"<integer>\",\n      \"stamp_number\": \"<integer>\",\n      \"base_reward\": \"<number>\",\n      \"maximum_credit_allowance\": \"<number>\",\n      \"terms_and_conditions\": \"<string>\",\n      \"tier_type\": \"spend\",\n      \"expiry_days\": \"<integer>\",\n      \"preauthorised\": \"<boolean>\",\n      \"tiers\": {\n        \"stamp\": [\n          {\n            \"amount\": \"<integer>\",\n            \"reward\": \"\"\n          },\n          {\n            \"amount\": \"<integer>\",\n            \"reward\": \"\"\n          }\n        ],\n        \"credit\": [\n          {\n            \"amount\": \"<integer>\",\n            \"reward\": \"<integer>\"\n          },\n          {\n            \"amount\": \"<integer>\",\n            \"reward\": \"<integer>\"\n          }\n        ],\n        \"upfront\": [\n          {\n            \"amount\": \"\",\n            \"reward\": \"<integer>\"\n          },\n          {\n            \"amount\": \"\",\n            \"reward\": \"<integer>\"\n          }\n        ]\n      }\n    },\n    \"balance\": {\n      \"cash\": 0,\n      \"stamps\": 0,\n      \"maxStamps\": 0,\n      \"creditAllowed\": \"<boolean>\"\n    },\n    \"topup\": {\n      \"auto\": \"<boolean>\",\n      \"value\": \"<integer>\"\n    },\n    \"paymentAccounts\": [\n      {\n        \"type\": \"<string>\",\n        \"account_number\": \"<string>\",\n        \"secret\": \"<string>\"\n      },\n      {\n        \"type\": \"<string>\",\n        \"account_number\": \"<string>\",\n        \"secret\": \"<string>\"\n      }\n    ],\n    \"posTokens\": {\n      \"clover\": {\n        \"hasSelfCheckoutAccessToken\": \"<boolean>\"\n      }\n    }\n  }\n]"},{"id":"d34151e7-e504-46b5-ab7f-4f786b825c57","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId"],"variable":[{"key":"merchantId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"699f82f7-40c4-4491-8811-cd8e1316f9c2","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":{"raw":"https://api-staging.loylap.com/v2/merchants/:merchantId","host":["https://api-staging.loylap.com/v2"],"path":["merchants",":merchantId"],"variable":[{"key":"merchantId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"3f731dbc-fc43-404e-a7c6-271fef1f001b"}],"id":"89f3f4ac-ca89-48e2-a82c-41476c89868d","_postman_id":"89f3f4ac-ca89-48e2-a82c-41476c89868d","description":""}],"id":"852e5e2b-5040-487c-b5b4-c42905c5431d","_postman_id":"852e5e2b-5040-487c-b5b4-c42905c5431d","description":""},{"name":"inventory","item":[{"name":"products","item":[{"name":"{productId}","item":[{"name":"image","item":[{"name":"Update image of a product","id":"ddff5685-767e-4fb2-843e-ec54197194be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","description":"<p>Updates image on a specific product</p>\n","urlObject":{"path":["inventory","products",":productId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"f210bf64-e1ee-4c8a-bae5-bd7afd527128","description":{"content":"<p>(Required) ID of product</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"productId"}]}},"response":[{"id":"836f5106-0597-46bd-a002-607b8c88af76","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId","image"],"variable":[{"key":"productId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"d072ca3e-4932-4c51-a20f-baaaf2aa211b","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId","image"],"variable":[{"key":"productId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"44e1d1c1-d833-439d-9486-5eab7c2d423c","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId","image"],"variable":[{"key":"productId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"e0a66e35-adbb-4cce-bd24-3b3eb98023a4","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId","image"],"variable":[{"key":"productId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"ddff5685-767e-4fb2-843e-ec54197194be"},{"name":"Deletes image of a category","id":"1990123d-b153-4f6f-a22c-72a4a4ed09a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"text"}],"url":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","description":"<p>Deletes image on a specific category</p>\n","urlObject":{"path":["inventory","products",":productId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"9f3f0a63-0729-4939-ad8f-e1b0b2c4b8a7","description":{"content":"<p>(Required) ID of product</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"productId"}]}},"response":[{"id":"b767326b-7e7e-4252-b920-640ac12946c7","name":"Successful operation","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId","image"],"variable":[{"key":"productId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"16adca8a-6d18-48ff-9c5b-644a00422c67","name":"Invalid merchant id","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId","image"],"variable":[{"key":"productId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"9a983211-22d8-4c76-a54c-b28963fb5b9f","name":"Invalid authentication","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId","image"],"variable":[{"key":"productId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"78ee5dfd-e88d-41be-a6d9-dc7ef99ed516","name":"Merchant not found","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId","image"],"variable":[{"key":"productId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"1990123d-b153-4f6f-a22c-72a4a4ed09a5"}],"id":"37211adc-6b20-48f0-a848-e13fbbc250dc","_postman_id":"37211adc-6b20-48f0-a848-e13fbbc250dc","description":""},{"name":"Returns a product details","id":"7ffe8541-3a2c-4150-9e10-f221ccbf261a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"secret","value":"<secret>"},{"key":"payload","value":"<payload>"},{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"},{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjM3MDQyNDgsInBlcm1pc3Npb25zIjpbeyJuYW1lIjoibWVtYmVyIiwiaWQiOjIzNzA0MjQ4fSx7Im5hbWUiOiJtZXJjaGFudCIsImlkIjoxMDgsImlzX3ByZWZlcnJlZF9tZXJjaGFudCI6dHJ1ZX0seyJuYW1lIjoibWVyY2hhbnQiLCJpZCI6MTk0NjYxLCJpc19wcmVmZXJyZWRfbWVyY2hhbnQiOmZhbHNlfSx7Im5hbWUiOiJlbXBsb3llZSIsImlkIjoxOTYxMTMsImlzX3ByZWZlcnJlZF9tZXJjaGFudCI6ZmFsc2V9LHsibmFtZSI6ImVtcGxveWVlIiwiaWQiOjE5NjI3OCwiaXNfcHJlZmVycmVkX21lcmNoYW50IjpmYWxzZX1dLCJvcmlnaW4iOiJlbWFpbC5jb250cm9sbGVyIiwiaXNNYWdpY0xpbmsiOmZhbHNlLCJpYXQiOjE3NDcyMjc2NzgsImV4cCI6MTc0NzIzMTI3OH0.kPTC6IIkRDWNrZhblK2wf4sWlvazvctkGNdrQIp_5s4","type":"text"}],"url":"http://localhost:4040/api/v2/inventory/products/59904022/preview?to=Testy%20McTestface&from=Mark%20Tester&message=asdasdasdasdasd","description":"<p>Returns a specific product details</p>\n","urlObject":{"protocol":"http","port":"4040","path":["api","v2","inventory","products","59904022","preview"],"host":["localhost"],"query":[{"key":"to","value":"Testy%20McTestface"},{"key":"from","value":"Mark%20Tester"},{"key":"message","value":"asdasdasdasdasd"}],"variable":[]}},"response":[{"id":"a9089adc-5f93-411f-b805-c9f504dd9ba0","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId"],"variable":[{"key":"productId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"name\": \"<string>\",\n      \"image\": null,\n      \"base_price\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"stamp_reward\": \"<number>\",\n      \"reward\": null,\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<boolean>\",\n      \"collection\": \"<boolean>\",\n      \"fixed_delivery\": \"<boolean>\",\n      \"delivery\": \"<boolean>\",\n      \"allergens\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"categories_ids\": [\n        \"<number>\",\n        \"<number>\"\n      ],\n      \"categories\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        }\n      ],\n      \"modifier_groups\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        }\n      ]\n    },\n    {\n      \"id\": \"<number>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"name\": \"<string>\",\n      \"image\": null,\n      \"base_price\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"stamp_reward\": \"<number>\",\n      \"reward\": null,\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<boolean>\",\n      \"collection\": \"<boolean>\",\n      \"fixed_delivery\": \"<boolean>\",\n      \"delivery\": \"<boolean>\",\n      \"allergens\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"categories_ids\": [\n        \"<number>\",\n        \"<number>\"\n      ],\n      \"categories\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        }\n      ],\n      \"modifier_groups\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"1\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        }\n      ]\n    }\n  ],\n  \"total\": \"<number>\"\n}"},{"id":"84af0836-2e66-43d5-a5a3-66063ee789e2","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId"],"variable":[{"key":"productId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"089ad9dd-b451-4282-b91f-6f023d67e6a5","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId"],"variable":[{"key":"productId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"d31d0c22-88bc-403d-87b9-5cfce833b9a2","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId"],"variable":[{"key":"productId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"7ffe8541-3a2c-4150-9e10-f221ccbf261a"},{"name":"Updates a product","id":"644a175a-a6ef-4b54-85b5-7776305749df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/inventory/products/:productId","urlObject":{"path":["inventory","products",":productId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"1e7eb263-b222-45b1-94d1-1cd100c380c7","description":{"content":"<p>(Required) ID of product</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"productId"}]}},"response":[{"id":"dfb08a75-10bd-4580-b586-b29f49f36692","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId"],"variable":[{"key":"productId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"ea968cbd-6713-4a58-8150-e10941efc4cc","name":"Bad request","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId"],"variable":[{"key":"productId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"578b270d-27b4-4c94-871a-6a7e859731f6","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId"],"variable":[{"key":"productId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"4f894194-ca40-4847-9aed-727bccec7ec9","name":"Internal Server Error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/products/:productId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","products",":productId"],"variable":[{"key":"productId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"644a175a-a6ef-4b54-85b5-7776305749df"}],"id":"c0b96b0f-53bf-4aa7-b61c-332ba351afc8","_postman_id":"c0b96b0f-53bf-4aa7-b61c-332ba351afc8","description":""},{"name":"Returns a list of Merchant's Inventory Products","id":"242afad1-4652-4b4f-aed8-56ca88f95883","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/inventory/products","urlObject":{"path":["inventory","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"ef626e4d-85ce-4d15-a3dd-a634274dede2","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"total\": \"<number>\",\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"name\": \"<string>\",\n      \"image\": null,\n      \"base_price\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"stamp_reward\": \"<number>\",\n      \"reward\": null,\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<boolean>\",\n      \"collection\": \"<boolean>\",\n      \"fixed_delivery\": \"<boolean>\",\n      \"delivery\": \"<boolean>\",\n      \"allergens\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"categories_ids\": [\n        \"<number>\",\n        \"<number>\"\n      ],\n      \"categories\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        }\n      ],\n      \"modifier_groups\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        }\n      ]\n    },\n    {\n      \"id\": \"<number>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"name\": \"<string>\",\n      \"image\": null,\n      \"base_price\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"stamp_reward\": \"<number>\",\n      \"reward\": null,\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<boolean>\",\n      \"collection\": \"<boolean>\",\n      \"fixed_delivery\": \"<boolean>\",\n      \"delivery\": \"<boolean>\",\n      \"allergens\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"categories_ids\": [\n        \"<number>\",\n        \"<number>\"\n      ],\n      \"categories\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null\n        }\n      ],\n      \"modifier_groups\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"image\": null,\n          \"max_allowed\": \"<number>\",\n          \"min_required\": \"<number>\",\n          \"external_id\": \"<string>\",\n          \"order\": \"<number>\",\n          \"modifiers\": [\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"0\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"name\": \"<string>\",\n              \"price\": \"<number>\",\n              \"image\": null,\n              \"status\": \"1\",\n              \"description\": null,\n              \"external_id\": \"<string>\",\n              \"modifier_group_id\": \"<number>\",\n              \"order\": \"<number>\",\n              \"hidden\": \"<boolean>\",\n              \"group_id\": \"<number>\",\n              \"branch_id\": \"<number>\",\n              \"createdAt\": \"<date>\",\n              \"updatedAt\": \"<date>\"\n            }\n          ],\n          \"tax_rates\": [\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            },\n            {\n              \"id\": \"<number>\",\n              \"external_id\": \"<string>\",\n              \"name\": \"<string>\",\n              \"is_default\": \"0\",\n              \"rate\": \"<number>\"\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}"},{"id":"3e4e85e7-f72e-4f83-9a61-115895833922","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"6595884c-61bf-47c7-9f69-520acb50ba08","name":"Unauthorized","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/products"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"8d192823-2f65-4010-8ddb-0fbc1a2e762b","name":"not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/products"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"242afad1-4652-4b4f-aed8-56ca88f95883"},{"name":"Creates an inventory product","id":"572c46a5-acfb-4ec5-9567-d84ba3ad03ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/inventory/products","urlObject":{"path":["inventory","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"882ea355-16bc-4604-b990-1a10702b7c5d","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/inventory/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<number>\",\n  \"name\": \"<string>\",\n  \"description\": \"<string>\",\n  \"base_price\": \"<number>\",\n  \"unavailable_for_order_ahead\": \"<boolean>\",\n  \"unavailable_for_self_checkout\": \"<boolean>\",\n  \"reward\": \"<number>\",\n  \"stamp_reward\": \"<number>\",\n  \"group_id\": \"<string>\",\n  \"branch_id\": \"<number>\",\n  \"stock_count\": \"<number>\",\n  \"status\": 1,\n  \"updatedAt\": \"<date>\",\n  \"createdAt\": \"<date>\"\n}"},{"id":"09b69b8d-50c5-4253-8616-69c29cd6caaf","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/inventory/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"0239a294-7c65-42c5-92d8-29672a7b1f52","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/inventory/products"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"957e43ba-b6f7-43aa-9a46-7f716a31f37e","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"description","value":"<string>"},{"key":"base_price","value":"<number>"},{"key":"categories_ids","value":"<number>,<number>"},{"key":"availability","value":"[object Object]"},{"key":"allergens","value":"<number>,<number>"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"},{"key":"stamp_reward","value":"<number>"},{"key":"reward","value":"<number>"},{"key":"stock_count","value":"<number>"},{"key":"limit_stock_value","value":"<number>"},{"key":"limit_stock","value":"<boolean>"},{"key":"collection","value":"<boolean>"},{"key":"fixed_delivery","value":"<boolean>"},{"key":"delivery","value":"<boolean>"},{"key":"tax_rates","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/inventory/products"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"572c46a5-acfb-4ec5-9567-d84ba3ad03ff"}],"id":"f988a2ac-ca82-48b3-a467-cf91e162e674","_postman_id":"f988a2ac-ca82-48b3-a467-cf91e162e674","description":""},{"name":"categories","item":[{"name":"{categoryId}","item":[{"name":"image","item":[{"name":"Update image of a category","id":"9cd40e8e-5ea9-49ca-a196-0f3303be7e15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","description":"<p>Updates image on a specific category</p>\n","urlObject":{"path":["inventory","categories",":categoryId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"3ef98231-b71f-466e-ba9d-3b8aaee4a8e6","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"d66d315b-a7c4-4904-a556-fbabfaa1c50f","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","image"],"variable":[{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"d06da11a-a2f7-4e92-9997-7ada883ec943","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","image"],"variable":[{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"4c0061b2-747b-4887-a223-483575fd95eb","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","image"],"variable":[{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"9baa4269-8c49-4469-aa60-81f25fef93a3","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","image"],"variable":[{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"9cd40e8e-5ea9-49ca-a196-0f3303be7e15"},{"name":"Deletes image of a category","id":"8b0510f3-a1a8-45f5-ae1d-f26daf6b3721","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"text"}],"url":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","description":"<p>Deletes image on a specific category</p>\n","urlObject":{"path":["inventory","categories",":categoryId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"ddf2321b-0201-4756-a829-4bd17e20b96d","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"8d4d50c2-1c06-4784-b446-e9bf2cde1c73","name":"Successful operation","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","image"],"variable":[{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"3e9738f1-bd7e-468a-be28-638f961c944d","name":"Invalid merchant id","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","image"],"variable":[{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"cbc1a319-3df6-4ffd-91b9-30e84c2c7552","name":"Invalid authentication","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","image"],"variable":[{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"78936c20-7c1a-403f-a720-777cf3807efa","name":"Merchant not found","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","image"],"variable":[{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"8b0510f3-a1a8-45f5-ae1d-f26daf6b3721"}],"id":"57e566ee-68a5-4cbc-b199-0ec970a026b1","_postman_id":"57e566ee-68a5-4cbc-b199-0ec970a026b1","description":""},{"name":"products","item":[{"name":"Returns products from a category","id":"cb73e028-be73-4cba-b171-10013b7c322f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","description":"<p>Returns a list o products related to a specific category</p>\n","urlObject":{"path":["inventory","categories",":categoryId","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"ec1102c5-540f-4cd3-84de-586cb5022a01","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"88656609-fe24-448f-8956-00ee20fe74d3","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","products"],"variable":[{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<integer>\",\n  \"name\": \"<string>\",\n  \"inventory_products\": [\n    {\n      \"id\": \"<number>\",\n      \"base_price\": \"<number>\",\n      \"name\": \"<string>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"inventory_categories_products\": {\n        \"category_id\": \"<long>\",\n        \"id\": \"<long>\",\n        \"product_id\": \"<long>\",\n        \"unavailable_for_order_ahead\": \"<boolean>\"\n      }\n    },\n    {\n      \"id\": \"<number>\",\n      \"base_price\": \"<number>\",\n      \"name\": \"<string>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"inventory_categories_products\": {\n        \"category_id\": \"<long>\",\n        \"id\": \"<long>\",\n        \"product_id\": \"<long>\",\n        \"unavailable_for_order_ahead\": \"<boolean>\"\n      }\n    }\n  ]\n}"},{"id":"280cc7a2-cfba-42a7-a367-22115c14b621","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","products"],"variable":[{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"63f4f847-c0aa-4662-ab29-1433b69227ba","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","products"],"variable":[{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"c793e23f-3bdb-4026-b5ba-d79bb17391df","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","products"],"variable":[{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"cb73e028-be73-4cba-b171-10013b7c322f"},{"name":"Update products from a category","id":"b05accab-6e6a-4d86-8748-1c1201b8359b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","description":"<p>Updates products on a specific category</p>\n","urlObject":{"path":["inventory","categories",":categoryId","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"47d9d663-2675-4e98-9b1f-77253159337b","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"bfc29cb7-2239-47cf-b4b1-7d4880e2da38","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","products"],"variable":[{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"1846627c-7cb8-46cf-9cf8-c814278218be","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","products"],"variable":[{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"20e1c774-6555-49f9-9117-a342048124f3","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","products"],"variable":[{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b65876bf-648c-4515-bebe-6b61d33c3392","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ordering","value":"<number>"},{"key":"ordering","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId","products"],"variable":[{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"b05accab-6e6a-4d86-8748-1c1201b8359b"}],"id":"7682a848-3de9-4f3b-9f67-1a8d50ab5e07","_postman_id":"7682a848-3de9-4f3b-9f67-1a8d50ab5e07","description":""},{"name":"Returns a categoty details","id":"f634241d-f8b2-4150-aeee-c6f790940fa8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","description":"<p>Returns a specific category details</p>\n","urlObject":{"path":["inventory","categories",":categoryId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"7eaf65ee-950a-43d1-b779-eda001710972","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"4b9b1dfd-3900-4827-aff5-19b55b1b0688","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId"],"variable":[{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<number>\",\n  \"name\": \"<string>\",\n  \"description\": null,\n  \"created_at\": \"<date>\",\n  \"updated_at\": \"<date>\",\n  \"branch_id\": null,\n  \"image\": null,\n  \"order\": \"<number>\",\n  \"status\": \"<boolean>\",\n  \"unavailable_for_order_ahead\": \"<boolean>\",\n  \"unavailable_for_self_checkout\": \"<boolean>\",\n  \"availability\": [\n    {\n      \"day\": \"<string>\",\n      \"from\": \"<string>\",\n      \"to\": \"<string>\",\n      \"isOpen\": \"<boolean>\"\n    },\n    {\n      \"day\": \"<string>\",\n      \"from\": \"<string>\",\n      \"to\": \"<string>\",\n      \"isOpen\": \"<boolean>\"\n    }\n  ],\n  \"products_total\": \"<number>\"\n}"},{"id":"dab4f019-077b-4a4c-a264-f0c0a8996fa0","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId"],"variable":[{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"dffac2fc-7e1b-4341-9603-f1eb572c4eb8","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId"],"variable":[{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"470ac2ac-bedb-4041-943e-ddb018039cb3","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId"],"variable":[{"key":"categoryId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"f634241d-f8b2-4150-aeee-c6f790940fa8"},{"name":"Updates a category","id":"59e6c61b-1a55-49d8-bf8f-6f88ecef1c5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","urlObject":{"path":["inventory","categories",":categoryId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"b9b8fb75-fa7a-478f-88fc-030714ea20c8","description":{"content":"<p>(Required) ID of category</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"categoryId"}]}},"response":[{"id":"febe5d6a-7b41-419d-948f-c913f85840e4","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId"],"variable":[{"key":"categoryId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"5f97a085-a927-4854-a52c-a5eaf6b05e6c","name":"Bad request","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId"],"variable":[{"key":"categoryId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"4b2fc892-1c02-4401-900e-159910b9655c","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId"],"variable":[{"key":"categoryId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"90dad020-6768-46df-b01b-635e6ae44eb7","name":"Internal Server Error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/categories/:categoryId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","categories",":categoryId"],"variable":[{"key":"categoryId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"59e6c61b-1a55-49d8-bf8f-6f88ecef1c5b"}],"id":"1aaf3a1e-f8b5-41aa-bfca-0c039562a702","_postman_id":"1aaf3a1e-f8b5-41aa-bfca-0c039562a702","description":""},{"name":"Returns a list of Merchant's Inventory Categories","id":"47993753-a89a-48b8-999f-7c690d1f7c41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/inventory/categories","urlObject":{"path":["inventory","categories"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"c0383b47-3309-45d1-b41e-7ff55d0b16ce","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"total\": \"<number>\",\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"branch_id\": null,\n      \"image\": null,\n      \"order\": \"<number>\",\n      \"status\": \"<boolean>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"availability\": [\n        {\n          \"day\": \"<string>\",\n          \"from\": \"<string>\",\n          \"to\": \"<string>\",\n          \"isOpen\": \"<boolean>\"\n        },\n        {\n          \"day\": \"<string>\",\n          \"from\": \"<string>\",\n          \"to\": \"<string>\",\n          \"isOpen\": \"<boolean>\"\n        }\n      ],\n      \"products_total\": \"<number>\"\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"description\": null,\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"branch_id\": null,\n      \"image\": null,\n      \"order\": \"<number>\",\n      \"status\": \"<boolean>\",\n      \"unavailable_for_order_ahead\": \"<boolean>\",\n      \"unavailable_for_self_checkout\": \"<boolean>\",\n      \"availability\": [\n        {\n          \"day\": \"<string>\",\n          \"from\": \"<string>\",\n          \"to\": \"<string>\",\n          \"isOpen\": \"<boolean>\"\n        },\n        {\n          \"day\": \"<string>\",\n          \"from\": \"<string>\",\n          \"to\": \"<string>\",\n          \"isOpen\": \"<boolean>\"\n        }\n      ],\n      \"products_total\": \"<number>\"\n    }\n  ]\n}"},{"id":"e5c45c06-9664-496a-973f-e03d042ca8c4","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"2707ea81-576c-4a0d-b662-1dfb74b5b9b4","name":"Unauthorized","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/categories"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b004b1e2-34fc-4963-aaae-db01ab5b0854","name":"not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/categories"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"47993753-a89a-48b8-999f-7c690d1f7c41"},{"name":"Updates a category","id":"4b33d6f6-3ba3-4807-83e4-0143fbb71040","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":"https://api-staging.loylap.com/v2/inventory/categories","urlObject":{"path":["inventory","categories"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"81215b54-79b5-430b-a08b-1270e37b1017","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":"https://api-staging.loylap.com/v2/inventory/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"ef65fa99-dae0-49f8-830e-ac95247756a2","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":"https://api-staging.loylap.com/v2/inventory/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"dee59969-4480-495f-a12d-d643989205ab","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":"https://api-staging.loylap.com/v2/inventory/categories"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"0869b739-92e3-4bd2-a537-ca4c7a3d891c","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"branch_id","value":"<long>"},{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"availability","value":"[object Object]"},{"key":"unavailable_for_order_ahead","value":"<boolean>"},{"key":"unavailable_for_self_checkout","value":"<boolean>"}]},"url":"https://api-staging.loylap.com/v2/inventory/categories"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"4b33d6f6-3ba3-4807-83e4-0143fbb71040"}],"id":"ea1258d2-b710-4eb4-99f5-c020da951e40","_postman_id":"ea1258d2-b710-4eb4-99f5-c020da951e40","description":""},{"name":"modifiers-groups","item":[{"name":"{modifiersGroupId}","item":[{"name":"image","item":[{"name":"Updates a modifier group image","id":"45a1be62-cdf9-47a1-b66f-16f6951c80c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","urlObject":{"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"c66d6c29-4f09-4788-987e-4b75d95adcd0","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"63031fe6-5df1-46bd-8397-f10dd16862c0","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"c9e3374d-34f1-4f6b-8549-636f5663cd1f","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"9ba3905d-a4f5-456f-a939-e37274f2927d","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"95767eb1-ff8a-48b9-acb2-be8a6d44b8df","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"image","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"45a1be62-cdf9-47a1-b66f-16f6951c80c1"},{"name":"Deletes a modifier group image","id":"91bec226-262d-4100-859b-3de784e67d15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"text"}],"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","urlObject":{"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"e821d31b-606f-4e48-bacd-1b03a6f39728","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"c65f6ec4-a0ee-49fc-9ba7-0ac69cbcbfd4","name":"Successful operation","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"text"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"example\": \"OK\"\n}"},{"id":"bf454e25-3945-40de-a563-1b948304f54d","name":"Invalid merchant id","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"4e232ba7-3197-47bd-9363-a1cc2c74957f","name":"Invalid authentication","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"298e319e-0619-4e2c-acc5-4d5142de9710","name":"Merchant not found","originalRequest":{"method":"DELETE","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/image","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","image"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"91bec226-262d-4100-859b-3de784e67d15"}],"id":"8b45a520-13a0-4773-96ea-65f2f3ed2937","_postman_id":"8b45a520-13a0-4773-96ea-65f2f3ed2937","description":""},{"name":"products","item":[{"name":"Returns a modifier group with its associated products","id":"fc492f8c-4143-4670-a90c-2a03d8e2b5e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","urlObject":{"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"8c3068bd-8d8f-41ab-acbc-38f8bf5ced52","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"6d0a74c3-1b49-4ee5-b709-7ba6ae865940","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"branch_id\": \"<number>\",\n  \"group_id\": \"<number>\",\n  \"id\": \"<number>\",\n  \"name\": \"<string>\",\n  \"inventory_products\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"base_price\": \"<number>\",\n      \"tax_included\": 0,\n      \"image\": \"<string>\",\n      \"status\": \"1\",\n      \"description\": \"<string>\",\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"group_id\": \"<number>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": 0,\n      \"unavailable_for_self_checkout\": 0,\n      \"stamp_reward\": \"<number>\",\n      \"reward\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<number>\",\n      \"delivery\": 1,\n      \"fixed_delivery\": 1,\n      \"collection\": 0,\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.id\": \"<number>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.modifier_group_id\": \"<number>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.product_id\": \"<number>\"\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"base_price\": \"<number>\",\n      \"tax_included\": 0,\n      \"image\": \"<string>\",\n      \"status\": \"1\",\n      \"description\": \"<string>\",\n      \"price_type\": \"<string>\",\n      \"unit_name\": \"<string>\",\n      \"external_id\": \"<string>\",\n      \"external_code\": \"<string>\",\n      \"stock_count\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"group_id\": \"<number>\",\n      \"order\": \"<number>\",\n      \"unavailable_for_order_ahead\": 1,\n      \"unavailable_for_self_checkout\": 0,\n      \"stamp_reward\": \"<number>\",\n      \"reward\": \"<number>\",\n      \"limit_stock_value\": \"<number>\",\n      \"limit_stock\": \"<number>\",\n      \"delivery\": 1,\n      \"fixed_delivery\": 0,\n      \"collection\": 0,\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.id\": \"<number>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.modifier_group_id\": \"<number>\",\n      \"inventory_modifiers_groups.inventory_products_modifiers_groups.product_id\": \"<number>\"\n    }\n  ]\n}"},{"id":"16ef318a-560b-410d-a12f-4c5875baea6c","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"02a01a51-5cac-43bd-82e9-3756b07658f6","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"250679fc-02a0-4750-b591-586832247233","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"fc492f8c-4143-4670-a90c-2a03d8e2b5e2"},{"name":"Returns a modifier group with its associated products","id":"186e1ef5-6dbc-4951-9183-165212470e14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","urlObject":{"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"70b54a94-7939-40b0-a1af-5f77bc0975bc","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"8cfb3ddf-e9ab-489d-b707-c04ab73d5a06","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"07f6fb94-fc2c-4836-8d69-8786bfe1e86f","name":"Invalid merchant id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"db81ef7d-8808-4298-9bdd-72f283c3a42c","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"4151b273-19f6-4862-9d35-ab69009f8a1f","name":"Merchant not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"products","value":"<number>"},{"key":"products","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId/products","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId","products"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"186e1ef5-6dbc-4951-9183-165212470e14"}],"id":"b99fb9f6-83af-485e-848c-851534ad4d78","_postman_id":"b99fb9f6-83af-485e-848c-851534ad4d78","description":""},{"name":"Returns a modifier group","id":"02259345-f8e6-4bf4-85c0-66ca83c37620","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","description":"<p>Returns a specific modifier group</p>\n","urlObject":{"path":["inventory","modifiers-groups",":modifiersGroupId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"5230b36a-0d30-4001-8d42-b8505e84e509","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"6b23b7bc-4e7a-4a49-aebb-d062253feea0","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"branch_id\": \"<number>\",\n  \"updatedAt\": \"<date>\",\n  \"createdAt\": \"<date>\",\n  \"external_id\": \"<string>\",\n  \"group_id\": \"<number>\",\n  \"id\": \"<number>\",\n  \"image\": \"<string>\",\n  \"max_allowed\": \"<string>\",\n  \"min_required\": \"<string>\",\n  \"name\": \"<string>\",\n  \"order\": \"<number>\",\n  \"status\": \"<string>\",\n  \"modifiers\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"price\": \"<number>\",\n      \"image\": null,\n      \"status\": \"0\",\n      \"description\": null,\n      \"external_id\": \"<string>\",\n      \"modifier_group_id\": \"<number>\",\n      \"order\": \"<number>\",\n      \"hidden\": \"<boolean>\",\n      \"group_id\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\"\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"price\": \"<number>\",\n      \"image\": null,\n      \"status\": \"1\",\n      \"description\": null,\n      \"external_id\": \"<string>\",\n      \"modifier_group_id\": \"<number>\",\n      \"order\": \"<number>\",\n      \"hidden\": \"<boolean>\",\n      \"group_id\": \"<number>\",\n      \"branch_id\": \"<number>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\"\n    }\n  ]\n}"},{"id":"d454a92d-e7c2-4ecf-8bea-86be5ac9744c","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"49fc5bb4-9f36-43a6-9939-5028cc1b6506","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b78862ac-5609-4efb-98cc-d6ef8f9aef0a","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"02259345-f8e6-4bf4-85c0-66ca83c37620"},{"name":"Updates a modifier group","id":"a0c0f9bb-f99b-4eb8-9abc-928d032b72fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","urlObject":{"path":["inventory","modifiers-groups",":modifiersGroupId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"aa35fb68-61bd-4276-a8d6-00df9391afea","description":{"content":"<p>(Required) ID of modifier group</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"modifiersGroupId"}]}},"response":[{"id":"8cce6a62-e54f-4f75-bbdb-8f874aae22ad","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"modifiersGroupId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"result\": \"<string>\"\n}"},{"id":"3fce22e7-3d2b-4e3e-a8ae-29b8ec88d3ad","name":"Bad request","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"800e6e9c-c041-4327-9ceb-c11145a22ce6","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"7fb3894f-00d5-4540-a9fe-6ddce593bbdf","name":"Internal Server Error","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"<string>"},{"key":"order","value":"<number>"},{"key":"max_allowed","value":"<number>"},{"key":"min_required","value":"<number>"},{"key":"modifiers","value":"[object Object]"},{"key":"modifiers","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/inventory/modifiers-groups/:modifiersGroupId","host":["https://api-staging.loylap.com/v2"],"path":["inventory","modifiers-groups",":modifiersGroupId"],"variable":[{"key":"modifiersGroupId"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"a0c0f9bb-f99b-4eb8-9abc-928d032b72fb"}],"id":"78ffe825-1861-4cd5-a11d-fd118b8d1983","_postman_id":"78ffe825-1861-4cd5-a11d-fd118b8d1983","description":""},{"name":"Returns modifier groups","id":"ead3f60d-448a-4250-8c11-f6a454e17c7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups","description":"<p>Returns a list of modifier groups</p>\n","urlObject":{"path":["inventory","modifiers-groups"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"22c0377c-7b09-42a8-8be4-6cfe5371b1f0","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"external_id\": \"<string>\",\n      \"group_id\": \"<number>\",\n      \"status\": \"1\",\n      \"max_allowed\": \"<number>\",\n      \"min_required\": \"<number>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"modifiers\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"price\": \"<number>\",\n          \"image\": null,\n          \"status\": \"1\",\n          \"description\": null,\n          \"external_id\": \"<string>\",\n          \"modifier_group_id\": \"<number>\",\n          \"order\": \"<number>\",\n          \"hidden\": \"<boolean>\",\n          \"group_id\": \"<number>\",\n          \"branch_id\": \"<number>\",\n          \"createdAt\": \"<date>\",\n          \"updatedAt\": \"<date>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"price\": \"<number>\",\n          \"image\": null,\n          \"status\": \"0\",\n          \"description\": null,\n          \"external_id\": \"<string>\",\n          \"modifier_group_id\": \"<number>\",\n          \"order\": \"<number>\",\n          \"hidden\": \"<boolean>\",\n          \"group_id\": \"<number>\",\n          \"branch_id\": \"<number>\",\n          \"createdAt\": \"<date>\",\n          \"updatedAt\": \"<date>\"\n        }\n      ]\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"external_id\": \"<string>\",\n      \"group_id\": \"<number>\",\n      \"status\": \"1\",\n      \"max_allowed\": \"<number>\",\n      \"min_required\": \"<number>\",\n      \"createdAt\": \"<date>\",\n      \"updatedAt\": \"<date>\",\n      \"modifiers\": [\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"price\": \"<number>\",\n          \"image\": null,\n          \"status\": \"1\",\n          \"description\": null,\n          \"external_id\": \"<string>\",\n          \"modifier_group_id\": \"<number>\",\n          \"order\": \"<number>\",\n          \"hidden\": \"<boolean>\",\n          \"group_id\": \"<number>\",\n          \"branch_id\": \"<number>\",\n          \"createdAt\": \"<date>\",\n          \"updatedAt\": \"<date>\"\n        },\n        {\n          \"id\": \"<number>\",\n          \"name\": \"<string>\",\n          \"price\": \"<number>\",\n          \"image\": null,\n          \"status\": \"0\",\n          \"description\": null,\n          \"external_id\": \"<string>\",\n          \"modifier_group_id\": \"<number>\",\n          \"order\": \"<number>\",\n          \"hidden\": \"<boolean>\",\n          \"group_id\": \"<number>\",\n          \"branch_id\": \"<number>\",\n          \"createdAt\": \"<date>\",\n          \"updatedAt\": \"<date>\"\n        }\n      ]\n    }\n  ],\n  \"total\": \"<number>\"\n}"},{"id":"dac387a9-8a43-42eb-a4df-4c64f8261eee","name":"Invalid merchant id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"031f715f-b919-47a9-ba2d-deffa24d122c","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"2f390cc7-7e37-41db-bc94-84b6a2ef7003","name":"Merchant not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"ead3f60d-448a-4250-8c11-f6a454e17c7e"},{"name":"creates a new modifier group","id":"93fb586d-43ec-4a4b-a7bb-ae0ef90abc55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups","urlObject":{"path":["inventory","modifiers-groups"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"1db0a8ac-5024-43ed-a52b-c5c20d73639f","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<number>\",\n  \"name\": \"<string>\",\n  \"max_allowed\": \"<number>\",\n  \"min_required\": \"<number>\",\n  \"order\": \"<number>\",\n  \"branch_id\": \"<number>\",\n  \"status\": 0,\n  \"group_id\": \"<string>\",\n  \"updatedAt\": \"<string>\",\n  \"createdAt\": \"<date>\"\n}"},{"id":"9a6d6008-8e86-43a5-8c5a-57a5881c7460","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"de73d6ff-56c9-48de-a9a3-6f8f703217d1","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"e76dfce1-928b-415b-8fe5-ad7c7d0889d8","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"<string>\",\n  \"branch_id\": \"<long>\",\n  \"order\": \"<number>\",\n  \"max_allowed\": null,\n  \"min_required\": null,\n  \"modifiers\": [\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 0\n    },\n    {\n      \"external_id\": null,\n      \"hidden\": \"<boolean>\",\n      \"id\": \"<long>\",\n      \"name\": \"<string>\",\n      \"oder\": \"<number>\",\n      \"price\": \"<number>\",\n      \"status\": 1\n    }\n  ]\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/inventory/modifiers-groups"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"93fb586d-43ec-4a4b-a7bb-ae0ef90abc55"}],"id":"11b0ce90-b858-4aa1-934b-24b3c110ae89","_postman_id":"11b0ce90-b858-4aa1-934b-24b3c110ae89","description":""}],"id":"94effb57-69d1-4689-ad23-e389c52ff3e1","_postman_id":"94effb57-69d1-4689-ad23-e389c52ff3e1","description":""},{"name":"campaigns","item":[{"name":"{campaignId}","item":[{"name":"notifications","item":[{"name":"Updates a campaign notification","id":"1b40290f-e35b-4b11-a138-7ff7bc24792f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"enabled","value":"<boolean>"},{"key":"general_message","value":"<string>"},{"key":"general_message_date","value":"<date>"},{"key":"general_message_enabled","value":"<boolean>"},{"key":"general_title","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/notifications","urlObject":{"path":["campaigns",":campaignId","notifications"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"c2577ded-9c3c-406b-8869-89f078866a40","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"b3785f06-f5ba-46d2-b1e7-b2e0429b0e0e","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"enabled","value":"<boolean>"},{"key":"general_message","value":"<string>"},{"key":"general_message_date","value":"<date>"},{"key":"general_message_enabled","value":"<boolean>"},{"key":"general_title","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/notifications","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","notifications"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"36513375-605a-4720-9f0f-df46efa3c319","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"enabled","value":"<boolean>"},{"key":"general_message","value":"<string>"},{"key":"general_message_date","value":"<date>"},{"key":"general_message_enabled","value":"<boolean>"},{"key":"general_title","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/notifications","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","notifications"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"7072b72f-f564-4794-acda-c7d1d0437c29","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"enabled","value":"<boolean>"},{"key":"general_message","value":"<string>"},{"key":"general_message_date","value":"<date>"},{"key":"general_message_enabled","value":"<boolean>"},{"key":"general_title","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/notifications","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","notifications"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"ebba17fc-00e4-444d-b812-7581b09259c0","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"enabled","value":"<boolean>"},{"key":"general_message","value":"<string>"},{"key":"general_message_date","value":"<date>"},{"key":"general_message_enabled","value":"<boolean>"},{"key":"general_title","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/notifications","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","notifications"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"1b40290f-e35b-4b11-a138-7ff7bc24792f"}],"id":"1ad1936f-b9be-4672-a7cc-f99eb640d3fa","_postman_id":"1ad1936f-b9be-4672-a7cc-f99eb640d3fa","description":""},{"name":"highlight","item":[{"name":"Updates a campaign highlight","id":"0bd79031-397a-4490-aaf5-f2f1876077ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/highlight","urlObject":{"path":["campaigns",":campaignId","highlight"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"7d88cd46-84cb-455f-9af8-b29bb14a1352","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"d1550ee5-bdd6-4503-9f15-365268f81a21","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/highlight","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","highlight"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"ebea3e3b-bf2f-4166-9d20-62fdf9b0c3d5","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/highlight","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","highlight"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b8d7cbdd-c23f-48ea-8e93-942b8e9cca85","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/highlight","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","highlight"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"246af6c9-523d-4f82-9d9a-5e276cf8d57e","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/highlight","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","highlight"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"0bd79031-397a-4490-aaf5-f2f1876077ff"}],"id":"3789a83a-2318-41c4-aa43-899b71b0852e","_postman_id":"3789a83a-2318-41c4-aa43-899b71b0852e","description":""},{"name":"status","item":[{"name":"Updates a campaign status","id":"dd5fbd0e-d458-41bc-95ef-f4636b66902c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"status","value":"ended"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/status","urlObject":{"path":["campaigns",":campaignId","status"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"df50a2c9-cd1d-46b3-bf8f-d6cd8007d734","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"cd1e0a80-8c20-459b-a1a3-166cad50d586","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"status","value":"ended"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/status","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","status"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"ec9f3605-9f3c-41d5-95cd-30e827baf1b9","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"status","value":"ended"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/status","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","status"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"305f45dc-9c59-425f-8ac1-02e7e2364832","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"status","value":"ended"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/status","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","status"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"139bb2a7-7bca-4bc2-acb0-7dc92187efb7","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"status","value":"ended"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/status","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","status"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"dd5fbd0e-d458-41bc-95ef-f4636b66902c"}],"id":"b904f9af-4a32-4b70-ba00-778ef7463d46","_postman_id":"b904f9af-4a32-4b70-ba00-778ef7463d46","description":""},{"name":"basic","item":[{"name":"Updates a campaign","id":"475db7aa-ce7b-4eb3-a201-428aebea9021","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"advertising","value":"<boolean>"},{"key":"description","value":"<string>"},{"key":"name","value":"<string>"},{"key":"picture_url","value":"<string>"},{"key":"terms_and_conditions","value":"<string>"},{"key":"custom_daily_period","value":"<string>,<string>"},{"key":"daily_period","value":"night,evening"},{"key":"days_of_week","value":"friday,thursday"},{"key":"period_date","value":"[object Object]"},{"key":"budget","value":"<number>"},{"key":"budget_email","value":"<boolean>"},{"key":"max_coupons","value":"<number>"},{"key":"max_coupons_email","value":"<boolean>"},{"key":"max_coupons_per_user","value":"<number>"},{"key":"max_coupons_per_user_period","value":"yearly"},{"key":"max_value_per_user","value":"<number>"},{"key":"max_value_per_user_period","value":"daily"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/basic","urlObject":{"path":["campaigns",":campaignId","basic"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"5b7c40dd-6edf-4a70-af43-a396d8ed161a","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"37412169-72e2-4ad2-8a3c-9229db3c400c","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"advertising","value":"<boolean>"},{"key":"description","value":"<string>"},{"key":"name","value":"<string>"},{"key":"picture_url","value":"<string>"},{"key":"terms_and_conditions","value":"<string>"},{"key":"custom_daily_period","value":"<string>,<string>"},{"key":"daily_period","value":"night,evening"},{"key":"days_of_week","value":"friday,thursday"},{"key":"period_date","value":"[object Object]"},{"key":"budget","value":"<number>"},{"key":"budget_email","value":"<boolean>"},{"key":"max_coupons","value":"<number>"},{"key":"max_coupons_email","value":"<boolean>"},{"key":"max_coupons_per_user","value":"<number>"},{"key":"max_coupons_per_user_period","value":"yearly"},{"key":"max_value_per_user","value":"<number>"},{"key":"max_value_per_user_period","value":"daily"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/basic","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","basic"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b96f0762-3440-477e-8c2a-0ae16d7aba9e","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"advertising","value":"<boolean>"},{"key":"description","value":"<string>"},{"key":"name","value":"<string>"},{"key":"picture_url","value":"<string>"},{"key":"terms_and_conditions","value":"<string>"},{"key":"custom_daily_period","value":"<string>,<string>"},{"key":"daily_period","value":"night,evening"},{"key":"days_of_week","value":"friday,thursday"},{"key":"period_date","value":"[object Object]"},{"key":"budget","value":"<number>"},{"key":"budget_email","value":"<boolean>"},{"key":"max_coupons","value":"<number>"},{"key":"max_coupons_email","value":"<boolean>"},{"key":"max_coupons_per_user","value":"<number>"},{"key":"max_coupons_per_user_period","value":"yearly"},{"key":"max_value_per_user","value":"<number>"},{"key":"max_value_per_user_period","value":"daily"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/basic","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","basic"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"bf1d2a55-c1e7-42a5-ab25-b9ae1e345320","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"advertising","value":"<boolean>"},{"key":"description","value":"<string>"},{"key":"name","value":"<string>"},{"key":"picture_url","value":"<string>"},{"key":"terms_and_conditions","value":"<string>"},{"key":"custom_daily_period","value":"<string>,<string>"},{"key":"daily_period","value":"night,evening"},{"key":"days_of_week","value":"friday,thursday"},{"key":"period_date","value":"[object Object]"},{"key":"budget","value":"<number>"},{"key":"budget_email","value":"<boolean>"},{"key":"max_coupons","value":"<number>"},{"key":"max_coupons_email","value":"<boolean>"},{"key":"max_coupons_per_user","value":"<number>"},{"key":"max_coupons_per_user_period","value":"yearly"},{"key":"max_value_per_user","value":"<number>"},{"key":"max_value_per_user_period","value":"daily"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/basic","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","basic"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"7aaf0254-3036-4322-9912-ce072e1761dd","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"advertising","value":"<boolean>"},{"key":"description","value":"<string>"},{"key":"name","value":"<string>"},{"key":"picture_url","value":"<string>"},{"key":"terms_and_conditions","value":"<string>"},{"key":"custom_daily_period","value":"<string>,<string>"},{"key":"daily_period","value":"night,evening"},{"key":"days_of_week","value":"friday,thursday"},{"key":"period_date","value":"[object Object]"},{"key":"budget","value":"<number>"},{"key":"budget_email","value":"<boolean>"},{"key":"max_coupons","value":"<number>"},{"key":"max_coupons_email","value":"<boolean>"},{"key":"max_coupons_per_user","value":"<number>"},{"key":"max_coupons_per_user_period","value":"yearly"},{"key":"max_value_per_user","value":"<number>"},{"key":"max_value_per_user_period","value":"daily"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/basic","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","basic"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"475db7aa-ce7b-4eb3-a201-428aebea9021"}],"id":"f3b3b756-a094-4484-b8b7-ca1f0b939539","_postman_id":"f3b3b756-a094-4484-b8b7-ca1f0b939539","description":""},{"name":"transactions","item":[{"name":"Returns a campaign transactions","id":"e2913af9-600d-448c-b2de-040be359f7f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/transactions","urlObject":{"path":["campaigns",":campaignId","transactions"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"76fc88fc-765a-4b4b-9534-2dfc82b52cee","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"f9205a73-150f-4df4-b122-4fcd78f21a85","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/transactions","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","transactions"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"total\": \"<number>\",\n  \"data\": [\n    {\n      \"user_name\": \"<string>\",\n      \"user_id\": \"<number>\",\n      \"total\": \"<number>\",\n      \"reward_type\": \"cashback\",\n      \"created_at\": \"<date>\"\n    },\n    {\n      \"user_name\": \"<string>\",\n      \"user_id\": \"<number>\",\n      \"total\": \"<number>\",\n      \"reward_type\": \"topup\",\n      \"created_at\": \"<date>\"\n    }\n  ]\n}"},{"id":"2c05e71d-189b-4f2e-8d5e-c3d17b993cf3","name":"Invalid campaign id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/transactions","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","transactions"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"d616edc9-59b0-4023-9ebe-bc953442420c","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/transactions","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","transactions"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b77af032-0921-4f33-a047-010e014d3d34","name":"Campaign not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/transactions","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","transactions"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"e2913af9-600d-448c-b2de-040be359f7f0"}],"id":"bd5faa8a-97ef-4d39-bc3e-184e9b5d0e58","_postman_id":"bd5faa8a-97ef-4d39-bc3e-184e9b5d0e58","description":""},{"name":"stats","item":[{"name":"Returns a campaign stats","id":"ac3a01ac-2a9e-4ae5-92b1-8ad78f89a2c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/stats","urlObject":{"path":["campaigns",":campaignId","stats"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"0ee1582c-6170-4c80-a00e-c1763d9f2744","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"15432fce-25cb-4702-b237-c9499c22a70e","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/stats","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","stats"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"has_some_transaction\": \"<boolean>\",\n  \"charts\": {\n    \"coupons_and_rewards_stats\": {\n      \"type\": \"days\",\n      \"data\": [\n        {\n          \"data\": {\n            \"total_rewards_value\": \"<number>\",\n            \"used_coupons\": \"<number>\"\n          },\n          \"interval_dates\": [\n            \"<date>\",\n            \"<date>\"\n          ]\n        },\n        {\n          \"data\": {\n            \"total_rewards_value\": \"<number>\",\n            \"used_coupons\": \"<number>\"\n          },\n          \"interval_dates\": [\n            \"<date>\",\n            \"<date>\"\n          ]\n        }\n      ]\n    }\n  },\n  \"general\": {\n    \"impacted_customers\": \"<number>\",\n    \"remaining_budget_percentage\": \"<number>\",\n    \"remaining_coupons_percentage\": \"<number>\",\n    \"spent_budget\": \"<number>\",\n    \"spent_coupons\": \"<number>\"\n  }\n}"},{"id":"d57eff05-2a1c-4864-b8ae-a0d0abd78101","name":"Invalid campaign id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/stats","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","stats"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"701f6abe-e62c-421b-b207-a274f8d73be3","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/stats","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","stats"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"6757043b-46f0-4b21-bdb4-71c593533ab1","name":"Campaign not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/stats","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","stats"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"ac3a01ac-2a9e-4ae5-92b1-8ad78f89a2c3"}],"id":"5df31b60-fefb-4a55-964a-ac20db173d3c","_postman_id":"5df31b60-fefb-4a55-964a-ac20db173d3c","description":""},{"name":"rules","item":[{"name":"gender","item":[{"name":"Updates a campaign gender rule","id":"0b1a5500-4fdd-4644-9f9d-78a34e5e4d5a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"female"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/gender","urlObject":{"path":["campaigns",":campaignId","rules","gender"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"2e9f8f63-3822-4461-9e4f-0fed55a97820","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"fa9977be-2408-4639-ac63-57676bd36356","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"female"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/gender","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","gender"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"654c7d43-416c-4720-bdf4-df82466c7bbb","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"female"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/gender","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","gender"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"64abf6b6-c9d1-43b9-9138-281cd4930726","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"female"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/gender","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","gender"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"abe978f2-2b59-4906-9e1a-98497d292df6","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"female"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/gender","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","gender"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"0b1a5500-4fdd-4644-9f9d-78a34e5e4d5a"}],"id":"1e105b91-67e6-4856-9e0d-28fed2bd5dc4","_postman_id":"1e105b91-67e6-4856-9e0d-28fed2bd5dc4","description":""},{"name":"age","item":[{"name":"Updates a campaign age rule","id":"233e510e-3f37-48a4-8f12-75bc546d08c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"[object Object]"},{"key":"values","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/age","urlObject":{"path":["campaigns",":campaignId","rules","age"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"268d0b4e-d78f-4952-854c-1b0a1f4a95a6","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"e722ea07-d9ba-4f6f-920d-06b83b714fa8","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"[object Object]"},{"key":"values","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/age","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","age"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"fd19ca71-59b0-4b0e-b929-f4416f46e51b","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"[object Object]"},{"key":"values","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/age","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","age"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"29b5ca82-6851-4001-9518-cc83cff12a00","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"[object Object]"},{"key":"values","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/age","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","age"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"ff1eda3c-4546-48ee-8ccd-c96ca303285d","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"[object Object]"},{"key":"values","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/age","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","age"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"233e510e-3f37-48a4-8f12-75bc546d08c0"}],"id":"7899a469-60fa-409f-b675-839f9643d9a2","_postman_id":"7899a469-60fa-409f-b675-839f9643d9a2","description":""},{"name":"customer_domains","item":[{"name":"Updates a campaign customer domains rule","id":"25c2140b-1638-49d4-9f88-b313b512c36d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"<string>"},{"key":"values","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customer_domains","urlObject":{"path":["campaigns",":campaignId","rules","customer_domains"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"17b42125-7bad-45aa-8ac0-2f2c2a2c808e","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"0e712ca1-bd04-475f-8077-8cfe70ee40f8","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"<string>"},{"key":"values","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customer_domains","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","customer_domains"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"68329224-a043-4a3b-9498-16b52fb2f307","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"<string>"},{"key":"values","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customer_domains","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","customer_domains"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"d16573de-3b4f-4533-86ff-6b5a18ad11b5","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"<string>"},{"key":"values","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customer_domains","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","customer_domains"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"eedb530f-2d8a-4230-9a6f-6f8b3e4f7d0a","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"values","value":"<string>"},{"key":"values","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customer_domains","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","customer_domains"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"25c2140b-1638-49d4-9f88-b313b512c36d"}],"id":"3fc21b79-84a2-4788-ba29-5bafbee3c19b","_postman_id":"3fc21b79-84a2-4788-ba29-5bafbee3c19b","description":""},{"name":"birthday","item":[{"name":"Updates a campaign birthday rule","id":"73343a4a-ea85-4425-8aed-183df701e550","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"month_of_birthday"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/birthday","urlObject":{"path":["campaigns",":campaignId","rules","birthday"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"9a3dbb41-9f63-416f-aa5c-9c29868478de","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"3668638e-a345-40fa-aeaf-544bf34bbe0f","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"month_of_birthday"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/birthday","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","birthday"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"951a80e0-7f21-4cb3-adef-ff6293e8532a","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"month_of_birthday"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/birthday","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","birthday"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"4da97e15-b64a-4c5b-ad69-0f5063fbde8a","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"month_of_birthday"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/birthday","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","birthday"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"e2d95931-9d61-42f0-98b9-8c85ecd77de1","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"month_of_birthday"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/birthday","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","birthday"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"73343a4a-ea85-4425-8aed-183df701e550"}],"id":"9782e24c-6ea6-43ef-b31e-048644ff9b7a","_postman_id":"9782e24c-6ea6-43ef-b31e-048644ff9b7a","description":""},{"name":"lapsed_customers","item":[{"name":"Updates a campaign lapsed customers rule","id":"1c48addb-9479-4f6b-91e7-5fc97f5f93f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"period","value":"day"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/lapsed_customers","urlObject":{"path":["campaigns",":campaignId","rules","lapsed_customers"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"0e56d010-8882-4615-a38e-b3b8bc67a19c","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"042f6a36-2751-407b-8089-9a4a82146ca7","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"period","value":"day"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/lapsed_customers","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","lapsed_customers"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"a47ee2e0-546a-4cda-98f4-2f5047e9df73","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"period","value":"day"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/lapsed_customers","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","lapsed_customers"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"56362e0a-f842-4cff-bb30-8465ea37083a","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"period","value":"day"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/lapsed_customers","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","lapsed_customers"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"3d9816d5-04a9-4e4a-804b-220a07da1c8a","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"period","value":"day"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/lapsed_customers","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","lapsed_customers"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"1c48addb-9479-4f6b-91e7-5fc97f5f93f8"}],"id":"2085ed4f-f9ca-4276-b584-c62fc9eff2ed","_postman_id":"2085ed4f-f9ca-4276-b584-c62fc9eff2ed","description":""},{"name":"cake_day","item":[{"name":"Updates a campaign cake day rule","id":"7a6abedf-811e-4c11-a963-04205b71c872","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period","value":"month"},{"key":"value","value":"<number>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/cake_day","urlObject":{"path":["campaigns",":campaignId","rules","cake_day"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"e1c68f1c-0463-4ce7-93d1-660ea80d7857","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"0c15a7d1-0cd2-458b-8035-a6c475a7fb86","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period","value":"month"},{"key":"value","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/cake_day","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","cake_day"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b13c01bc-12f9-4407-9673-95f1123fc9b9","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period","value":"month"},{"key":"value","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/cake_day","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","cake_day"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"2b3a7153-e5ed-4dee-9a5e-48a80f1d8876","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period","value":"month"},{"key":"value","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/cake_day","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","cake_day"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"ae98b17a-653e-40d0-910c-cb6258fa6d05","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period","value":"month"},{"key":"value","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/cake_day","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","cake_day"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"7a6abedf-811e-4c11-a963-04205b71c872"}],"id":"99327997-e99d-4338-b4d3-33db720fe65e","_postman_id":"99327997-e99d-4338-b4d3-33db720fe65e","description":""},{"name":"visits","item":[{"name":"Updates a campaign visits rule","id":"53bcf732-6061-4d89-a8fe-b67c09f4e3b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_type","value":"month"},{"key":"period_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"recurring_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/visits","urlObject":{"path":["campaigns",":campaignId","rules","visits"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"be7ebe8b-cccc-4f47-9ea1-dbb681e5d779","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"5146bd3e-e947-4203-a708-cb5fd64b54cc","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_type","value":"month"},{"key":"period_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"recurring_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/visits","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","visits"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"2a651701-4325-4b76-a00d-257a16673757","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_type","value":"month"},{"key":"period_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"recurring_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/visits","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","visits"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"633b9a16-73bf-41d3-90eb-d76680d703cb","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_type","value":"month"},{"key":"period_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"recurring_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/visits","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","visits"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"4b1cc114-3629-4cdc-9c3b-c10138ce500b","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_type","value":"month"},{"key":"period_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"recurring_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/visits","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","visits"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"53bcf732-6061-4d89-a8fe-b67c09f4e3b7"}],"id":"3e17d033-26e4-478d-95bb-0bbcaa60307d","_postman_id":"3e17d033-26e4-478d-95bb-0bbcaa60307d","description":""},{"name":"spent","item":[{"name":"Updates a campaign spent rule","id":"ef5a10e2-5ca6-4234-afbb-94c38b53c100","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"recurring_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/spent","urlObject":{"path":["campaigns",":campaignId","rules","spent"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"c755ef05-7b14-4d64-b5ef-4f2ba3fdb29f","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"7acb743f-a652-4212-83c7-b8378f3c934f","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"recurring_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/spent","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","spent"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"fdd65ccf-feef-4c07-a1a6-677a59f84b07","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"recurring_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/spent","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","spent"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"5773b376-d723-450d-9fe7-00001151d3e7","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"recurring_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/spent","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","spent"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"bd578fb2-7ceb-4b90-a4ee-0e1e7f2fffc4","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"value","value":"<number>"},{"key":"recurring_value","value":"<number>"},{"key":"recurring_type","value":"<string>"},{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/spent","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","spent"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"ef5a10e2-5ca6-4234-afbb-94c38b53c100"}],"id":"7192a3ea-e7ab-4229-b228-cebc97a2c714","_postman_id":"7192a3ea-e7ab-4229-b228-cebc97a2c714","description":""},{"name":"products","item":[{"name":"Updates a campaign products rule","id":"53d30453-0cc9-46de-81c6-0eea3b208ec8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<string>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<number>"},{"key":"selector","value":"[object Object]"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/products","urlObject":{"path":["campaigns",":campaignId","rules","products"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"12742066-75f6-4e53-bb2e-53c2dc7ef7d7","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"e1efe691-3486-4dc4-a600-e3e8ca2b2521","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<string>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<number>"},{"key":"selector","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/products","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","products"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"9c0eda88-608c-40cf-8a14-33367a542086","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<string>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<number>"},{"key":"selector","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/products","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","products"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"d20b4b8d-ff13-4bdf-8cfd-e979498fd0e3","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<string>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<number>"},{"key":"selector","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/products","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","products"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"8b554ec2-2e2a-4600-afa9-1dd766df5219","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<string>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<number>"},{"key":"selector","value":"[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/products","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","products"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"53d30453-0cc9-46de-81c6-0eea3b208ec8"}],"id":"ee92c6c1-6cbe-4141-8fe5-d01b5dfef228","_postman_id":"ee92c6c1-6cbe-4141-8fe5-d01b5dfef228","description":""},{"name":"top_visitors","item":[{"name":"Updates a campaign top visitors rule","id":"f00adf3b-e163-4e92-9282-55ef3096a200","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_visitors","urlObject":{"path":["campaigns",":campaignId","rules","top_visitors"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"abc24586-1831-40d3-9bb2-c30a7479ed80","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"16a4fd1d-fe2d-400b-a932-76e890115fda","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_visitors","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","top_visitors"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"10480892-0cca-4df6-9219-d089b19304c3","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_visitors","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","top_visitors"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"d5a0e7b6-9852-4b3e-82a6-fa4a99ea94cf","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_visitors","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","top_visitors"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"bb973672-9efb-4d0b-96ae-d71a66c88004","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_visitors","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","top_visitors"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"f00adf3b-e163-4e92-9282-55ef3096a200"}],"id":"f378a353-10d7-40ed-b334-7ac8e45d9ae3","_postman_id":"f378a353-10d7-40ed-b334-7ac8e45d9ae3","description":""},{"name":"top_spenders","item":[{"name":"Updates a campaign top spenders rule","id":"33a2d5f5-b1ad-4522-99a7-dca8398dafb6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_spenders","urlObject":{"path":["campaigns",":campaignId","rules","top_spenders"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"1947a0b9-f5a4-4ab4-886b-410482913ffe","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"dffb5d40-4686-48cf-a5f3-a61453d18406","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_spenders","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","top_spenders"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"48cd2ac0-ee09-42dd-9987-583ae3055fcc","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_spenders","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","top_spenders"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"5936cfbb-0880-45f7-b351-ae72dcdf5a3a","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_spenders","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","top_spenders"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"02ce893e-1e96-4b1e-b3fe-f519b8b94d56","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"period_value","value":"<number>"},{"key":"period_type","value":"month"},{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/top_spenders","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","top_spenders"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"33a2d5f5-b1ad-4522-99a7-dca8398dafb6"}],"id":"61ef9596-b049-43f3-825b-3c75175b9713","_postman_id":"61ef9596-b049-43f3-825b-3c75175b9713","description":""},{"name":"role","item":[{"name":"Updates a campaign role rule","id":"207fb41f-3a3c-4cf9-83f8-93cbb4bd86d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/role","urlObject":{"path":["campaigns",":campaignId","rules","role"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"87b1cebe-fa19-4931-930d-9dd459b19efe","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"d764eb41-7b42-4365-aa76-bcf392e4c127","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/role","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","role"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"f255fd5a-e694-47f6-857b-195cbda3ae4e","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/role","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","role"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"f4a0935b-311c-43f0-91f4-f8ee4ef50e86","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/role","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","role"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"7e585a07-461c-4213-b6e2-4fe23f03d729","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/role","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","role"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"207fb41f-3a3c-4cf9-83f8-93cbb4bd86d1"}],"id":"3d69f755-c08c-42f4-aad8-d1aa12ceecd0","_postman_id":"3d69f755-c08c-42f4-aad8-d1aa12ceecd0","description":""},{"name":"branches","item":[{"name":"Updates a campaign branches rule","id":"6e82b1b2-87f8-4ca8-ae94-d6a34f4e9830","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/branches","urlObject":{"path":["campaigns",":campaignId","rules","branches"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"59a33b93-b233-4eb5-ad7b-7988c060e686","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"8d6658a1-178c-404c-897e-dfb6c55f98df","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/branches","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","branches"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"04de5eb9-d673-4f4c-bb82-1aef98d73a0e","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/branches","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","branches"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"95599279-c4eb-4e10-a043-ff06c67c27de","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/branches","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","branches"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"75b54252-ad16-499c-a216-a54f7a2cfb65","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/branches","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","branches"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"6e82b1b2-87f8-4ca8-ae94-d6a34f4e9830"}],"id":"70f1b88b-6beb-4a3d-8649-970a2bb30ec9","_postman_id":"70f1b88b-6beb-4a3d-8649-970a2bb30ec9","description":""},{"name":"customers","item":[{"name":"Updates a campaign customers rule","id":"7ef3d489-d94c-41e3-a6dd-13bca46662a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customers","urlObject":{"path":["campaigns",":campaignId","rules","customers"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"7ab17c5d-f765-4d25-8df4-e73a6e58ee98","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"7a01763b-eacd-4b5f-b427-3fb74a8acdbc","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customers","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","customers"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"533fcbc0-52c7-482d-b161-7247451f45ea","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customers","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","customers"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"41dbde12-d4a2-4c3e-8bfc-ae55b7eff129","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customers","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","customers"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"57fd7b54-704d-4e9d-b8d2-8c4ca2daa548","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"ids","value":"<string>"},{"key":"ids","value":"<string>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/customers","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","customers"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"7ef3d489-d94c-41e3-a6dd-13bca46662a7"}],"id":"307df349-8379-4b80-9050-cc287c9b7fc9","_postman_id":"307df349-8379-4b80-9050-cc287c9b7fc9","description":""},{"name":"transaction_types","item":[{"name":"Updates a campaign transaction types rule","id":"2736db59-6f4e-429d-93ed-c7a22baa6f83","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<string>"},{"key":"types","value":"cashless"},{"key":"types","value":"gift"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/transaction_types","urlObject":{"path":["campaigns",":campaignId","rules","transaction_types"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"a42c571a-28a3-4391-928e-d9376b4c8059","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"77ef57ae-e658-4343-be8e-268ac81ed81a","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<string>"},{"key":"types","value":"cashless"},{"key":"types","value":"gift"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/transaction_types","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","transaction_types"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"3bb2aab5-476f-485c-be6a-2546b4f20677","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<string>"},{"key":"types","value":"cashless"},{"key":"types","value":"gift"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/transaction_types","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","transaction_types"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"667be7a5-ec3c-4d1f-86ff-b62986a23a64","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<string>"},{"key":"types","value":"cashless"},{"key":"types","value":"gift"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/transaction_types","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","transaction_types"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"c2bdfd54-e98e-4334-a1ee-6cce142e9b86","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"},{"key":"period_type","value":"day"},{"key":"period_value","value":"<string>"},{"key":"types","value":"cashless"},{"key":"types","value":"gift"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rules/transaction_types","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rules","transaction_types"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"2736db59-6f4e-429d-93ed-c7a22baa6f83"}],"id":"766090a0-9f26-468e-8318-9af047d888f6","_postman_id":"766090a0-9f26-468e-8318-9af047d888f6","description":""}],"id":"0e924fb2-636d-4282-8b6a-925a2571858f","_postman_id":"0e924fb2-636d-4282-8b6a-925a2571858f","description":""},{"name":"rewards","item":[{"name":"discount","item":[{"name":"Updates a campaign discount reward","id":"14c48bd9-80aa-4bdd-a389-433712084d09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount","urlObject":{"path":["campaigns",":campaignId","rewards","discount"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"dc1e9509-7b80-4b86-9bab-000f8bb845c8","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"aefeda14-4676-44c5-bf04-d798c6211f77","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","discount"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"824aa10b-47a4-4e58-8b2f-9489b9b1744f","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","discount"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"e5841c2c-fc40-48d5-b2b7-26006a2ab9e4","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","discount"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"24d1ee9b-dc72-44b2-9ef1-fc0768e973f5","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","discount"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"14c48bd9-80aa-4bdd-a389-433712084d09"}],"id":"fe65b298-1a12-45d7-9660-3db38cff89b5","_postman_id":"fe65b298-1a12-45d7-9660-3db38cff89b5","description":""},{"name":"discount_product","item":[{"name":"Updates a campaign discount_product reward","id":"ae6d577d-224a-47bf-8f99-a0d3c22d19fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"item_limit","value":"<string>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"},{"key":"productsSelection","value":"[object Object],[object Object]"},{"key":"categoriesSelection","value":"[object Object],[object Object]"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount_product","urlObject":{"path":["campaigns",":campaignId","rewards","discount_product"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"21130b7e-29a9-4f56-8a94-93ed7a9c1090","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"3a43f69b-c46b-45b0-8538-2f3db004bcf4","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"item_limit","value":"<string>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"},{"key":"productsSelection","value":"[object Object],[object Object]"},{"key":"categoriesSelection","value":"[object Object],[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount_product","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","discount_product"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"e27da0cb-f04d-4a5c-8f20-542740f443d4","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"item_limit","value":"<string>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"},{"key":"productsSelection","value":"[object Object],[object Object]"},{"key":"categoriesSelection","value":"[object Object],[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount_product","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","discount_product"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"d543b11a-b787-44be-afbf-729110c95778","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"item_limit","value":"<string>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"},{"key":"productsSelection","value":"[object Object],[object Object]"},{"key":"categoriesSelection","value":"[object Object],[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount_product","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","discount_product"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"b66fd8de-4e44-4ef5-9dab-3c3cc40eeee7","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"item_limit","value":"<string>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"},{"key":"productsSelection","value":"[object Object],[object Object]"},{"key":"categoriesSelection","value":"[object Object],[object Object]"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/discount_product","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","discount_product"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"ae6d577d-224a-47bf-8f99-a0d3c22d19fa"}],"id":"dbecf5af-8ead-42de-b6d1-80594707312b","_postman_id":"dbecf5af-8ead-42de-b6d1-80594707312b","description":""},{"name":"cashback","item":[{"name":"Updates a campaign cashback reward","id":"9f89ca25-1b0e-41b5-94f4-ad934fa80def","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/cashback","urlObject":{"path":["campaigns",":campaignId","rewards","cashback"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"e0031461-cfc7-4067-a290-8d85fd598332","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"e93e3387-a269-4c4e-bb47-dbb47c823150","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/cashback","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","cashback"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"bb1204d0-f9d4-4a5d-a74f-f98b7c551373","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/cashback","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","cashback"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"8b980819-fd77-48e8-ab49-0a1aeec53909","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/cashback","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","cashback"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"6f765f45-bc6c-4e46-8cba-6c16b273e3fb","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"sales_value","value":"<number>"},{"key":"value","value":"<number>"},{"key":"value_type","value":"money"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/cashback","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","cashback"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"9f89ca25-1b0e-41b5-94f4-ad934fa80def"}],"id":"82c8ad03-7a51-4bcb-9c71-fdad166ad477","_postman_id":"82c8ad03-7a51-4bcb-9c71-fdad166ad477","description":""},{"name":"voucher","item":[{"name":"Updates a campaign voucher reward","id":"a5dfd820-0bc9-473d-bd93-891ce9b84204","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"}]},"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/voucher","urlObject":{"path":["campaigns",":campaignId","rewards","voucher"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"5b2bca0c-5aca-4360-a94a-c439103eae90","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"cdbcf313-6147-4b55-87df-cf6685a17668","name":"Successful operation","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/voucher","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","voucher"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"2741e31a-976e-4438-b311-54ab2f7e8299","name":"Invalid campaign id","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/voucher","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","voucher"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"76c93807-8f1e-4c84-a62b-5af9f48bfa1f","name":"Invalid authentication","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/voucher","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","voucher"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"eb9edfaf-a03e-4a72-9f56-d19a4ae6fdcc","name":"Campaign not found","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"<number>"}]},"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId/rewards/voucher","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId","rewards","voucher"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"a5dfd820-0bc9-473d-bd93-891ce9b84204"}],"id":"b0a80bc8-6fbd-40e4-83c1-28da48a69ef8","_postman_id":"b0a80bc8-6fbd-40e4-83c1-28da48a69ef8","description":""}],"id":"545ba12b-21d1-4d3d-a9d5-bdb7cf7a659a","_postman_id":"545ba12b-21d1-4d3d-a9d5-bdb7cf7a659a","description":""},{"name":"Returns a campaign","id":"8ecc8d48-b630-47d9-800f-8fbf87c17ae3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/campaigns/:campaignId","urlObject":{"path":["campaigns",":campaignId"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"9631445b-762e-4c4e-9cec-fafd5fbf63b1","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"8b89ca90-0378-4309-a38c-c313d164a8fe","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId"],"variable":[{"key":"campaignId"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"id\": \"<number>\",\n  \"name\": \"<string>\",\n  \"picture_url\": \"<string>\",\n  \"advertising\": \"<boolean>\",\n  \"coupons_quantity\": \"<number>\",\n  \"created_at\": \"<date>\",\n  \"updated_at\": \"<date>\",\n  \"description\": \"<string>\",\n  \"highlight\": \"<boolean>\",\n  \"status\": \"draft\",\n  \"terms_and_conditions\": \"<string>\",\n  \"schedules\": {\n    \"custom_daily_period\": [\n      \"<string>\",\n      \"<string>\"\n    ],\n    \"daily_period\": [\n      \"evening\",\n      \"morning\"\n    ],\n    \"days_of_week\": [\n      \"monday\",\n      \"monday\"\n    ],\n    \"period_date\": {\n      \"start\": \"<date>\",\n      \"end\": \"<date>\"\n    }\n  },\n  \"rewards\": {\n    \"discount_product\": {\n      \"item_limit\": \"<number>\",\n      \"value\": \"<number>\",\n      \"value_type\": \"money\",\n      \"selector\": {\n        \"date\": \"<date>\",\n        \"productsSelection\": [\n          {\n            \"productId\": \"<string>\",\n            \"modifiersIdsExclusionList\": [\n              \"<string>\",\n              \"<string>\"\n            ]\n          },\n          {\n            \"productId\": \"<string>\",\n            \"modifiersIdsExclusionList\": [\n              \"<string>\",\n              \"<string>\"\n            ]\n          }\n        ],\n        \"categoriesSelection\": [\n          {\n            \"categoryId\": \"<string>\",\n            \"productsIdsExclusionList\": [\n              \"<string>\",\n              \"<string>\"\n            ]\n          },\n          {\n            \"categoryId\": \"<string>\",\n            \"productsIdsExclusionList\": [\n              \"<string>\",\n              \"<string>\"\n            ]\n          }\n        ]\n      }\n    }\n  },\n  \"rules\": {\n    \"products\": {\n      \"values\": [\n        {\n          \"amount\": \"<string>\",\n          \"period_type\": \"day\",\n          \"period_value\": \"<number>\",\n          \"selector\": {\n            \"productsSelection\": [\n              {\n                \"productId\": \"<string>\",\n                \"modifiersIdsExclusionList\": [\n                  \"<string>\",\n                  \"<string>\"\n                ]\n              },\n              {\n                \"productId\": \"<string>\",\n                \"modifiersIdsExclusionList\": [\n                  \"<string>\",\n                  \"<string>\"\n                ]\n              }\n            ],\n            \"categoriesSelection\": [\n              {\n                \"categoryId\": \"<string>\",\n                \"productsIdsExclusionList\": [\n                  \"<string>\",\n                  \"<string>\"\n                ]\n              },\n              {\n                \"categoryId\": \"<string>\",\n                \"productsIdsExclusionList\": [\n                  \"<string>\",\n                  \"<string>\"\n                ]\n              }\n            ]\n          }\n        },\n        {\n          \"amount\": \"<string>\",\n          \"period_type\": \"week\",\n          \"period_value\": \"<number>\",\n          \"selector\": {\n            \"productsSelection\": [\n              {\n                \"productId\": \"<string>\",\n                \"modifiersIdsExclusionList\": [\n                  \"<string>\",\n                  \"<string>\"\n                ]\n              },\n              {\n                \"productId\": \"<string>\",\n                \"modifiersIdsExclusionList\": [\n                  \"<string>\",\n                  \"<string>\"\n                ]\n              }\n            ],\n            \"categoriesSelection\": [\n              {\n                \"categoryId\": \"<string>\",\n                \"productsIdsExclusionList\": [\n                  \"<string>\",\n                  \"<string>\"\n                ]\n              },\n              {\n                \"categoryId\": \"<string>\",\n                \"productsIdsExclusionList\": [\n                  \"<string>\",\n                  \"<string>\"\n                ]\n              }\n            ]\n          }\n        }\n      ]\n    },\n    \"gender\": {\n      \"values\": [\n        \"unknown\",\n        \"male\"\n      ]\n    },\n    \"age\": {\n      \"values\": [\n        {\n          \"start\": \"<string>\",\n          \"end\": \"<string>\"\n        },\n        {\n          \"start\": \"<string>\",\n          \"end\": \"<string>\"\n        }\n      ]\n    },\n    \"customer_domains\": {\n      \"values\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"birthday\": {\n      \"value\": \"month_of_birthday\"\n    },\n    \"lapsed_customers\": {\n      \"value\": {\n        \"period\": \"day\",\n        \"value\": \"<number>\"\n      }\n    },\n    \"cake_day\": {\n      \"value\": {\n        \"period\": \"week\",\n        \"value\": \"<number>\"\n      }\n    },\n    \"visits\": {\n      \"values\": [\n        {\n          \"period_type\": \"week\",\n          \"period_value\": \"<number>\",\n          \"recurring_type\": \"<string>\",\n          \"recurring_value\": \"<number>\",\n          \"value\": \"<string>\",\n          \"value_type\": \"<string>\"\n        },\n        {\n          \"period_type\": \"year\",\n          \"period_value\": \"<number>\",\n          \"recurring_type\": \"<string>\",\n          \"recurring_value\": \"<number>\",\n          \"value\": \"<string>\",\n          \"value_type\": \"<string>\"\n        }\n      ]\n    },\n    \"transaction_types\": {\n      \"values\": {\n        \"amount\": \"<number>\",\n        \"period_type\": \"day\",\n        \"period_value\": \"<number>\",\n        \"types\": [\n          \"upfront\",\n          \"gift\"\n        ]\n      }\n    },\n    \"spent\": {\n      \"values\": [\n        {\n          \"period_type\": \"year\",\n          \"period_value\": \"<number>\",\n          \"recurring_type\": \"<string>\",\n          \"recurring_value\": \"<number>\",\n          \"value\": \"<string>\"\n        },\n        {\n          \"period_type\": \"year\",\n          \"period_value\": \"<number>\",\n          \"recurring_type\": \"<string>\",\n          \"recurring_value\": \"<number>\",\n          \"value\": \"<string>\"\n        }\n      ]\n    },\n    \"top_visitors\": {\n      \"values\": [\n        {\n          \"period_value\": \"<number>\",\n          \"period_type\": \"day\",\n          \"amount\": \"<number>\"\n        },\n        {\n          \"period_value\": \"<number>\",\n          \"period_type\": \"week\",\n          \"amount\": \"<number>\"\n        }\n      ]\n    },\n    \"top_spenders\": {\n      \"values\": [\n        {\n          \"period_value\": \"<number>\",\n          \"period_type\": \"week\",\n          \"amount\": \"<number>\"\n        },\n        {\n          \"period_value\": \"<number>\",\n          \"period_type\": \"month\",\n          \"amount\": \"<number>\"\n        }\n      ]\n    },\n    \"role\": {\n      \"ids\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"branches\": {\n      \"ids\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    \"customers\": {\n      \"ids\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    }\n  },\n  \"rewards_value\": \"<number>\",\n  \"notification\": {\n    \"id\": \"<number>\",\n    \"campaign_id\": \"<number>\",\n    \"picture_url\": \"<string>\",\n    \"enabled\": \"<boolean>\",\n    \"general_message\": \"<string>\",\n    \"general_message_date\": \"<date>\",\n    \"general_message_enabled\": \"<boolean>\",\n    \"general_title\": \"<string>\",\n    \"applicable_customers_message\": \"<string>\",\n    \"applicable_customers_message_enabled\": \"<boolean>\",\n    \"applicable_customers_title\": \"<string>\",\n    \"applicable_customers_notification_event\": \"once_applicable\"\n  },\n  \"limits\": {\n    \"budget\": \"<number>\",\n    \"budget_email\": \"<boolean>\",\n    \"max_coupons\": \"<number>\",\n    \"max_coupons_email\": \"<boolean>\",\n    \"max_coupons_per_user\": \"<number>\",\n    \"max_coupons_per_user_period\": \"fortnightly\",\n    \"max_value_per_user\": \"<number>\",\n    \"max_value_per_user_period\": \"monthly\"\n  }\n}"},{"id":"3fd02b3a-0d2f-46e6-a586-0216d5a390ee","name":"Invalid campaign id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId"],"variable":[{"key":"campaignId"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"794fc92e-f6a5-43d3-b09c-f74da8249f11","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId"],"variable":[{"key":"campaignId"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"2edcbf08-67bd-4798-bb73-3fb37f6b2256","name":"Campaign not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":{"raw":"https://api-staging.loylap.com/v2/campaigns/:campaignId","host":["https://api-staging.loylap.com/v2"],"path":["campaigns",":campaignId"],"variable":[{"key":"campaignId"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"8ecc8d48-b630-47d9-800f-8fbf87c17ae3"}],"id":"2a1e5943-e7cd-4f30-a73a-d8fce4da6be8","_postman_id":"2a1e5943-e7cd-4f30-a73a-d8fce4da6be8","description":""},{"name":"Returns a list of campaigns","id":"346dbbb1-834e-43c5-85c2-239bc86bb5a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json"}],"url":"https://api-staging.loylap.com/v2/campaigns","urlObject":{"path":["campaigns"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[{"id":"bee51ca4-def2-4f9b-b9b0-c0f152cbad19","description":{"content":"<p>(Required) ID of campaign</p>\n","type":"text/plain"},"type":"any","value":"<long>","key":"campaignId"}]}},"response":[{"id":"b954c5d5-97ea-4444-9fb9-666b9b09c406","name":"Successful operation","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/campaigns"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"pagination\": {\n    \"has_more_pages\": \"<boolean>\",\n    \"items_per_page\": \"<number>\",\n    \"page\": \"<number>\",\n    \"total_items\": \"<number>\"\n  },\n  \"list\": [\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"picture_url\": \"<string>\",\n      \"advertising\": \"<boolean>\",\n      \"coupons_quantity\": \"<number>\",\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"description\": \"<string>\",\n      \"highlight\": \"<boolean>\",\n      \"status\": \"running\",\n      \"terms_and_conditions\": \"<string>\",\n      \"schedules\": {\n        \"custom_daily_period\": [\n          \"<string>\",\n          \"<string>\"\n        ],\n        \"daily_period\": [\n          \"evening\",\n          \"morning\"\n        ],\n        \"days_of_week\": [\n          \"tuesday\",\n          \"sunday\"\n        ],\n        \"period_date\": {\n          \"start\": \"<date>\",\n          \"end\": \"<date>\"\n        }\n      },\n      \"rewards_value\": \"<number>\",\n      \"limits\": {\n        \"budget\": \"<number>\",\n        \"budget_email\": \"<boolean>\",\n        \"max_coupons\": \"<number>\",\n        \"max_coupons_email\": \"<boolean>\",\n        \"max_coupons_per_user\": \"<number>\",\n        \"max_coupons_per_user_period\": \"monthly\",\n        \"max_value_per_user\": \"<number>\",\n        \"max_value_per_user_period\": \"yearly\"\n      }\n    },\n    {\n      \"id\": \"<number>\",\n      \"name\": \"<string>\",\n      \"picture_url\": \"<string>\",\n      \"advertising\": \"<boolean>\",\n      \"coupons_quantity\": \"<number>\",\n      \"created_at\": \"<date>\",\n      \"updated_at\": \"<date>\",\n      \"description\": \"<string>\",\n      \"highlight\": \"<boolean>\",\n      \"status\": \"paused\",\n      \"terms_and_conditions\": \"<string>\",\n      \"schedules\": {\n        \"custom_daily_period\": [\n          \"<string>\",\n          \"<string>\"\n        ],\n        \"daily_period\": [\n          \"evening\",\n          \"morning\"\n        ],\n        \"days_of_week\": [\n          \"tuesday\",\n          \"wednesday\"\n        ],\n        \"period_date\": {\n          \"start\": \"<date>\",\n          \"end\": \"<date>\"\n        }\n      },\n      \"rewards_value\": \"<number>\",\n      \"limits\": {\n        \"budget\": \"<number>\",\n        \"budget_email\": \"<boolean>\",\n        \"max_coupons\": \"<number>\",\n        \"max_coupons_email\": \"<boolean>\",\n        \"max_coupons_per_user\": \"<number>\",\n        \"max_coupons_per_user_period\": \"all\",\n        \"max_value_per_user\": \"<number>\",\n        \"max_value_per_user_period\": \"weekly\"\n      }\n    }\n  ]\n}"},{"id":"ea9084b5-9a23-4f73-89ce-ad5b52dff434","name":"Invalid campaign id","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/campaigns"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"69d6baa9-866f-4f68-bfc4-0ac05a565205","name":"Invalid authentication","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/campaigns"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"77dd9c92-035d-46d3-82a6-1353c33c6237","name":"Campaign not found","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"url":"https://api-staging.loylap.com/v2/campaigns"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"346dbbb1-834e-43c5-85c2-239bc86bb5a3"}],"id":"3b158fd1-c2c5-4a64-9d86-e1ae16c40011","_postman_id":"3b158fd1-c2c5-4a64-9d86-e1ae16c40011","description":""},{"name":"payments","item":[{"name":"Process a payment","id":"9a1eaffd-6230-4c47-80bf-75f2bc6911c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"key":"authorization","value":"{{apiKey}}","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"<p>(Required) gift/ refund/ cashless/ cash/ stamp</p>\n","key":"payment_type","value":"gift"},{"description":"<p>(Required) The customer's physucal or digital card number</p>\n","key":"customer_id","value":"<long>"},{"description":"<p>(Required) Amount in cents. e.g. €100.00 = 10000 cents. Positive number loads a value, negative number removes value from a closed loop account.</p>\n","key":"amount","value":"<long>"},{"key":"merchant_id","value":"<long>","description":"<p>(Optional) MID for submerchant in a franchise set up (must be configured before use)</p>\n"},{"key":"identifier","value":"<string>","description":"<p>(Optional) A pipe separate identifier that allows for cross sustem compatibility. Recommended format: <code>${uuid} | Transaction Type: Gift Redeem | Platform: yourPlatform| Employee: John Doe | Time: 5100000000000 | Customer ID: 1234567890123456</code></p>\n"},{"key":"product_data","value":"<string>","description":"<p>(Optional) json data containing basket data</p>\n"},{"key":"skip_cashback","value":"<boolean>","description":"<p>(Optional) true/false</p>\n"},{"key":"cashback_rewards","value":"<string>","description":"<p>(Optional)</p>\n"},{"key":"terminal_id","value":"<string>","description":"<p>(Optional) Terminal ID</p>\n","type":"text","uuid":"a75de10e-c4c3-4d09-83b0-d09a6c6ba991"}]},"url":"https://api-staging.loylap.com/v2/payments","urlObject":{"path":["payments"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"13b7931a-de4f-4f5d-988c-e7be992b600e","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"payment_type","value":"gift"},{"description":"(Required) ","key":"customer_id","value":"<long>"},{"description":"(Required) Amount in cents. e.g. €100.00 = 10000 cents","key":"amount","value":"<long>"},{"key":"merchant_id","value":"<long>"},{"key":"description","value":"<string>"},{"key":"product_data","value":"<string>"},{"key":"skip_cashback","value":"<boolean>"},{"key":"cashback_rewards","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"<boolean>\",\n  \"message\": \"<string>\",\n  \"group_id\": \"<long>\"\n}"},{"id":"e42ab07a-1e85-42ca-a8bf-4aaba3726b89","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"payment_type","value":"gift"},{"description":"(Required) ","key":"customer_id","value":"<long>"},{"description":"(Required) Amount in cents. e.g. €100.00 = 10000 cents","key":"amount","value":"<long>"},{"key":"merchant_id","value":"<long>"},{"key":"description","value":"<string>"},{"key":"product_data","value":"<string>"},{"key":"skip_cashback","value":"<boolean>"},{"key":"cashback_rewards","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/payments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"<boolean>\",\n  \"message\": \"<string>\"\n}"},{"id":"493059bd-3f0d-4008-869a-f452c9e195cf","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"urlencoded","urlencoded":[{"description":"(Required) ","key":"payment_type","value":"gift"},{"description":"(Required) ","key":"customer_id","value":"<long>"},{"description":"(Required) Amount in cents. e.g. €100.00 = 10000 cents","key":"amount","value":"<long>"},{"key":"merchant_id","value":"<long>"},{"key":"description","value":"<string>"},{"key":"product_data","value":"<string>"},{"key":"skip_cashback","value":"<boolean>"},{"key":"cashback_rewards","value":"<string>"}]},"url":"https://api-staging.loylap.com/v2/payments"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"<boolean>\",\n  \"message\": \"<string>\"\n}"}],"_postman_id":"9a1eaffd-6230-4c47-80bf-75f2bc6911c5"}],"id":"7503d857-e91a-42fa-a09c-210a9111cd20","_postman_id":"7503d857-e91a-42fa-a09c-210a9111cd20","description":""},{"name":"gift-card","item":[{"name":"digital","item":[{"name":"send","item":[{"name":"Send digital giftcard","id":"90b1288a-86d1-4819-a1d8-171f131d001b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"authorization"},{"key":"value","value":"{{apiKey}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"loyalty_type\": \"<string>\",\n  \"sender_name\": \"<string>\",\n  \"employee_email\": \"<string>\",\n  \"recipient_email\": \"<string>\",\n  \"recipient_name\": \"<string>\",\n  \"merchant_id\": \"<long>\",\n  \"card_number\": \"<string>\",\n  \"identifier\": \"<string>\",\n  \"product_data\": \"<string>\",\n  \"message\": \"<string>\",\n  \"sender_email\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/gift-card/digital/send","description":"<p>Sends an electronic gift card to a user email from the merchant</p>\n","urlObject":{"path":["gift-card","digital","send"],"host":["https://api-staging.loylap.com/v2"],"query":[],"variable":[]}},"response":[{"id":"7f8a7d4d-015b-40f7-b368-f85ad6599de5","name":"Successful operation","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"loyalty_type\": \"<string>\",\n  \"sender_name\": \"<string>\",\n  \"employee_email\": \"<string>\",\n  \"recipient_email\": \"<string>\",\n  \"recipient_name\": \"<string>\",\n  \"merchant_id\": \"<long>\",\n  \"card_number\": \"<string>\",\n  \"identifier\": \"<string>\",\n  \"product_data\": \"<string>\",\n  \"message\": \"<string>\",\n  \"sender_email\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/gift-card/digital/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"error\": \"<boolean>\",\n  \"message\": \"<string>\"\n}"},{"id":"172a494a-5c5a-4201-adbe-c6546cf6306f","name":"Bad request","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"loyalty_type\": \"<string>\",\n  \"sender_name\": \"<string>\",\n  \"employee_email\": \"<string>\",\n  \"recipient_email\": \"<string>\",\n  \"recipient_name\": \"<string>\",\n  \"merchant_id\": \"<long>\",\n  \"card_number\": \"<string>\",\n  \"identifier\": \"<string>\",\n  \"product_data\": \"<string>\",\n  \"message\": \"<string>\",\n  \"sender_email\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/gift-card/digital/send"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"},{"id":"9d96e971-ef4c-46d9-8e96-1311525dc84a","name":"Invalid authentication","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"loyalty_type\": \"<string>\",\n  \"sender_name\": \"<string>\",\n  \"employee_email\": \"<string>\",\n  \"recipient_email\": \"<string>\",\n  \"recipient_name\": \"<string>\",\n  \"merchant_id\": \"<long>\",\n  \"card_number\": \"<string>\",\n  \"identifier\": \"<string>\",\n  \"product_data\": \"<string>\",\n  \"message\": \"<string>\",\n  \"sender_email\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/gift-card/digital/send"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"d3f081aa-85d5-4ade-890d-ea51f95d0401","name":"Internal Server Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"},{"description":"Added as a part of security scheme: apikey","key":"authorization","value":"<API Key>"}],"body":{"mode":"raw","raw":"{\n  \"loyalty_type\": \"<string>\",\n  \"sender_name\": \"<string>\",\n  \"employee_email\": \"<string>\",\n  \"recipient_email\": \"<string>\",\n  \"recipient_name\": \"<string>\",\n  \"merchant_id\": \"<long>\",\n  \"card_number\": \"<string>\",\n  \"identifier\": \"<string>\",\n  \"product_data\": \"<string>\",\n  \"message\": \"<string>\",\n  \"sender_email\": \"<string>\"\n}","options":{"raw":{"headerFamily":"json","language":"json"}}},"url":"https://api-staging.loylap.com/v2/gift-card/digital/send"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"message\": \"<string>\"\n}"}],"_postman_id":"90b1288a-86d1-4819-a1d8-171f131d001b"}],"id":"7e05ec60-f06a-4f6b-92c5-e80dccd275e2","_postman_id":"7e05ec60-f06a-4f6b-92c5-e80dccd275e2","description":""}],"id":"17f53175-679e-4beb-9cc0-8e8bdebb18d8","_postman_id":"17f53175-679e-4beb-9cc0-8e8bdebb18d8","description":""}],"id":"d5cfe866-1ddd-4f7e-bce0-2f160f9faf19","_postman_id":"d5cfe866-1ddd-4f7e-bce0-2f160f9faf19","description":""}],"variable":[{"key":"baseUrl","value":"https://api-staging.loylap.com/v2"}]}