{"info":{"_postman_id":"9b2e08b5-0b16-4432-b6ee-3e6e7a9335ea","name":"Veevart API","description":"<html><head></head><body><p>Provides management of data in your Salesforce organization with AuctiferaDX installed.</p>\n<h4 id=\"see\">See:</h4>\n<blockquote>\n<p><a href=\"https://veevart.s3.amazonaws.com/Docs/Veevart+Integration.pdf\">Veevart Integration Docs</a></p>\n</blockquote>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13187547","collectionId":"9b2e08b5-0b16-4432-b6ee-3e6e7a9335ea","publishedId":"TVYDeKN7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"03A1DE"},"publishDate":"2020-10-22T21:48:22.000Z"},"item":[{"name":"Contact Management","item":[{"name":"Update a Contact","id":"fbb5a628-b506-44ce-bc93-825cb64c3e89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"PUT","header":[],"url":"https://{salesforceinstance}.my.salesforce.com/services/apexrest/Auctifera/pos/v1/contact?action={string}&contactId={id}","description":"<p>Update a contact in your organization.</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","pos","v1","contact"],"host":["{salesforceinstance}","my","salesforce","com"],"query":[{"description":{"content":"<p>When it is \"create_square_customer\" will create the square contact customer.</p>\n","type":"text/plain"},"key":"action","value":"{string}"},{"description":{"content":"<p>Id of the contact to edit</p>\n","type":"text/plain"},"key":"contactId","value":"{id}"}],"variable":[]}},"response":[{"id":"e694a67f-03ef-4f96-8abc-4dcbc34e7619","name":"Edit a contact","originalRequest":{"method":"PUT","header":[],"url":{"raw":"https://instance-example.my.salesforce.com/services/apexrest/Auctifera/pos/v1/contact?action=create_square_customer&contactId=0033b00002aT7JrAAK","protocol":"https","host":["instance-example","my","salesforce","com"],"path":["services","apexrest","Auctifera","pos","v1","contact"],"query":[{"key":"action","value":"create_square_customer","description":"When it is \"create_square_customer\" will create the square contact customer."},{"key":"contactId","value":"0033b00002aT7JrAAK","description":"Id of the contact to edit"}]}},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"status\": \"success\",\n    \"message\": \"contact updated\",\n    \"contact\": {\n        \"attributes\": {\n            \"type\": \"Contact\",\n            \"url\": \"/services/data/v42.0/sobjects/Contact/0012400001CvW2WAAV\"\n        },\n        \"Id\": \"0012400001CvW2WAAV\",\n        \"FirstName\": \"Pepito\",\n        \"LastName\": \"Perez\"\n    }\n}"}],"_postman_id":"fbb5a628-b506-44ce-bc93-825cb64c3e89"},{"name":"Create a Contact","id":"537b63b0-a10a-4252-87af-9962493a1cef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"useBrowser","value":"<use-browser>"},{"key":"grant_type","value":"<grant_type>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenName","value":"<token-name>"},{"key":"password","value":"<password>"},{"key":"username","value":"<username>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"https://{salesforceinstance}.my.salesforce.com/services/apexrest/Auctifera/pos/v1/contact?preventDuplicates={boolean}&source={string}","description":"<p>Create a new contact in your organization. <strong>To subscribe a contact to the newsletter</strong> you will need to send the <em>Auctifera__Subscribed_to_Newsletter__c</em> and <em>Auctifera__TECH_Subscribe_To_Newsletter__c</em> as true; also the <em>LeadSource</em> as \"Web\" is needed (see example: <em>Create and Subscribe to Newsletter</em>).</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","pos","v1","contact"],"host":["{salesforceinstance}","my","salesforce","com"],"query":[{"description":{"content":"<p>Denotes if duplicates contacts be allowed on the insertion. A duplicate contact is a contact with same: </p>\n<ul>\n<li>email address (Email)</li>\n</ul>\n","type":"text/plain"},"key":"preventDuplicates","value":"{boolean}"},{"description":{"content":"<p>When it is \"online tickets\" will upsert the Contact. If not specified will upsert the Contact by default behavior</p>\n","type":"text/plain"},"key":"source","value":"{string}"}],"variable":[]}},"response":[{"id":"93dcd1c2-020c-4659-ba92-d82826a4f46c","name":"Create and Subscribe to Newsletter","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"FirstName\": \"Pepito\",\n    \"LastName\": \"Perez\",\n    \"Email\": \"pepito@veevart.com\",\n    \"Auctifera__Subscribed_to_Newsletter__c\": true,\n    \"Auctifera__TECH_Subscribe_To_Newsletter__c\": true,\n    \"LeadSource\": \"Web\"\n}"},"url":{"raw":"https://{salesforceinstance}.my.salesforce.com/services/apexrest/Auctifera/pos/v1/contact?preventDuplicates=true","protocol":"https","host":["{salesforceinstance}","my","salesforce","com"],"path":["services","apexrest","Auctifera","pos","v1","contact"],"query":[{"key":"preventDuplicates","value":"true","description":"Denotes if duplicates contacts be allowed on the insertion. A duplicate contact is a contact with same: \n- email address (Email)"},{"key":"source","value":"{string}","description":"When it is \"online tickets\" will upsert the Contact. If not specified will upsert the Contact by default behavior","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"status\": \"success\",\n    \"message\": \"contact created\",\n    \"contact\": {\n        \"attributes\": {\n            \"type\": \"contact\",\n            \"url\": \"/services/data/v42.0/sobjects/Contact/0012400001CvWXXXX\"\n        },\n        \"Id\": \"0012400001CvWXXXX\",\n        \"FirstName\": \"Pepito\",\n        \"LastName\": \"Perez\",\n        \"Email\": \"pepito@veevart.com\",\n        \"Auctifera__Subscribed_to_Newsletter__c\": true,\n        \"Auctifera__TECH_Subscribe_To_Newsletter__c\": true,\n        \"LeadSource\": \"Web\"\n    }\n}"},{"id":"abfb6314-308e-4e6c-9c90-7ec1ac2ba248","name":"Create a contact","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"FirstName\": \"Pepito\",\n    \"LastName\": \"Perez\",\n    \"Email\": \"pepito@veevart.com\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://instance-example.my.salesforce.com/services/apexrest/Auctifera/pos/v1/contact?preventDuplicates=true","protocol":"https","host":["instance-example","my","salesforce","com"],"path":["services","apexrest","Auctifera","pos","v1","contact"],"query":[{"key":"preventDuplicates","value":"true","description":"Denotes if in the insertion the duplicates Contacts (the ones with same email) will return or not error."},{"key":"source","value":"<string>","description":"When it is \"online tickets\" will upsert the Contact. If not specified will upsert the Contact by default behavior","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"status\": \"success\",\n    \"message\": \"contact created\",\n    \"contact\": {\n        \"attributes\": {\n            \"type\": \"contact\",\n            \"url\": \"/services/data/v42.0/sobjects/Contact/0012400001CvW2WAAV\"\n        },\n        \"Id\": \"0012400001CvW2WAAV\",\n        \"FirstName\": \"Pepito\",\n        \"LastName\": \"Perez\",\n        \"Email\": \"pepito@veevart.com\"\n    }\n}"}],"_postman_id":"537b63b0-a10a-4252-87af-9962493a1cef"},{"name":"Get Contacts","id":"d3c804de-355f-4a4a-8307-ab4523dd7673","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"accept":true,"accept-encoding":true,"connection":true,"host":true,"user-agent":true}},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"useBrowser","value":"<use-browser>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{salesforceinstance}.my.salesforce.com/services/apexrest/Auctifera/pos/v1/contact?searchString={string}","description":"<p>retrieve a list of contact matching the search parameter.</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","pos","v1","contact"],"host":["{salesforceinstance}","my","salesforce","com"],"query":[{"description":{"content":"<p>String to search by the following Contact fields: Name, FirstName, LastName, Email, Phone, Membership_Id__c and Account.Membership_ID__c.</p>\n","type":"text/plain"},"key":"searchString","value":"{string}"}],"variable":[]}},"response":[{"id":"1c4490e5-ada3-4abb-bb7b-e4f838ff32b5","name":"Search for \"li\"","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://instance-example.my.salesforce.com/services/apexrest/Auctifera/pos/v1/contact?searchString=li","protocol":"https","host":["instance-example","my","salesforce","com"],"path":["services","apexrest","Auctifera","pos","v1","contact"],"query":[{"key":"searchString","value":"li","description":"String to search by the following Contact fields: Name, FirstName, LastName, Email, Phone, Membership_Id__c and Account.Membership_ID__c."},{"key":null,"value":"li","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"attributes\": {\n            \"type\": \"contact\",\n            \"url\": \"/services/data/v42.0/sobjects/contact/0012400001CvW2WAAV\"\n        },\n        \"Id\": \"0012400001CvW2WAAV\",\n        \"FirstName\": \"Lionel\",\n        \"LastName\": \"Perez\"\n    },\n    {\n        \"attributes\": {\n            \"type\": \"contact\",\n            \"url\": \"/services/data/v42.0/sobjects/contact/0012400001CvW2WAAV\"\n        },\n        \"Id\": \"0012400001CvW2WAAV\",\n        \"FirstName\": \"Li\",\n        \"LastName\": \"Xang\"\n    }\n]"}],"_postman_id":"d3c804de-355f-4a4a-8307-ab4523dd7673"}],"id":"7e62049c-fa1c-445d-afe5-3268c2028e42","description":"\n\n<p>Provides Contact management (query, creation and edition) </p>\n\n\n<h4 id=\"see\">See:</h4>\n<blockquote>\n<p><a href=\"https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contact.htm\">Salesforce: Contact Standard Object</a></p>\n</blockquote>\n","event":[{"listen":"prerequest","script":{"id":"cb06f3bf-1b16-4fdc-a66b-cc8206f10930","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1dd37650-628a-48f2-9c13-8297a42dd6e4","type":"text/javascript","exec":[""]}}],"_postman_id":"7e62049c-fa1c-445d-afe5-3268c2028e42"},{"name":"Membership","item":[{"name":"Get Active Memberships","id":"56949606-09df-45d4-85de-ebd7289409df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/membership?generalAccess={boolean}&onlyAvailableForSalePOS={boolean}&allMembershipPrograms={boolean}","description":"<p>Return the list of all active memberships.</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","pos","v1","membership"],"host":["{salesforceinstance}","salesforce","com"],"query":[{"description":{"content":"<p>Bring the guest memberships.</p>\n","type":"text/plain"},"key":"generalAccess","value":"{boolean}"},{"description":{"content":"<p>Bring the memberships available for sale.</p>\n","type":"text/plain"},"key":"onlyAvailableForSalePOS","value":"{boolean}"},{"description":{"content":"<p>Retrieve all POS Available for Sale and General Access memberships.</p>\n","type":"text/plain"},"key":"allMembershipPrograms","value":"{boolean}"}],"variable":[]}},"response":[{"id":"7f6c5d66-dafd-48c2-afd4-43265dc70ee3","name":"Get Active Memberships","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/membership?generalAccess=true&onlyAvailableForSalePOS=true","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","pos","v1","membership"],"query":[{"key":"generalAccess","value":"true"},{"key":"onlyAvailableForSalePOS","value":"true"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"Id\": \"a142a0000015WGaAAM\",\n        \"Name\": \"Gold\",\n        \"Auctifera__Is_General_Access__c\": false,\n        \"Auctifera__Available_for_Sale_POS__c\": true,\n        \"Auctifera__Minimum_Donation_Value__c\": 50,\n        \"Auctifera__Tax_Model__c\": \"Tax included in the price\",\n        \"Auctifera__Price_After_Tax__c\": 50,\n        \"Auctifera__Price_Without_Tax__c\": 45.45,\n        \"Auctifera__Tax__c\": 10,\n        \"Auctifera__Tax_Amount__c\": 4.55,\n        \"Auctifera__Hierarchy__c\": 1\n    },\n    {\n        \"Id\": \"a142a0000015WGVAA2\",\n        \"Name\": \"Guest Membership\",\n        \"Auctifera__Is_General_Access__c\": true,\n        \"Auctifera__Available_for_Sale_POS__c\": true,\n        \"Auctifera__Minimum_Donation_Value__c\": 0,\n        \"Auctifera__Tax_Model__c\": \"Tax included in the price\",\n        \"Auctifera__Price_After_Tax__c\": 0,\n        \"Auctifera__Price_Without_Tax__c\": 0,\n        \"Auctifera__Tax__c\": 0,\n        \"Auctifera__Tax_Amount__c\": 0,\n        \"Auctifera__Hierarchy__c\": 100\n    }\n]"}],"_postman_id":"56949606-09df-45d4-85de-ebd7289409df"}],"id":"7a828144-f4f5-42db-9eca-a17437c355c1","description":"\n\n<p>Provides the list of all active memberships (except open donations) of your Salesforce organization with AuctiferaDX installed.</p>\n","event":[{"listen":"prerequest","script":{"id":"0151d8f7-5f49-4491-8db2-8d02f5329e55","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"36c4074d-2cca-4424-9c7f-f15978067b41","type":"text/javascript","exec":[""]}}],"_postman_id":"7a828144-f4f5-42db-9eca-a17437c355c1"},{"name":"POS Purchases","item":[{"name":"Get POS Purchases","id":"49891650-c27a-4e44-96dd-0850f2361420","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/purchase?searchString={string}&posPurchaseId={string}&app={string}","description":"<p>Retrieve the POS Purchases that match with the criteria.</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","pos","v1","purchase"],"host":["{salesforceinstance}","salesforce","com"],"query":[{"description":{"content":"<p>Text to match with the following POS Purchase fields: Reservation_Name__c, Client_purchase_name__c, Client__r.Name, Client__r.FirstName, Client__r.LastName, Client__r.Email and Client__r.Phone.</p>\n","type":"text/plain"},"key":"searchString","value":"{string}"},{"description":{"content":"<p>Id of the POS Purchase record to get. If given, searchString is ignored.</p>\n","type":"text/plain"},"key":"posPurchaseId","value":"{string}"},{"description":{"content":"<p>The App (POS Mobile, Online App, etc.) version issuing this request, it's save in the \"Auctifera__POS_Purchase__c.Auctifera__App_Version__c\" field.</p>\n","type":"text/plain"},"key":"app","value":"{string}"},{"disabled":true,"description":{"content":"<p>Version of the app if <em>app</em> given.</p>\n","type":"text/plain"},"key":"appVersion","value":"{string}"}],"variable":[]}},"response":[{"id":"be2b4d66-5924-4046-9c43-72562c90bd7b","name":"Get POS Purchases","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/purchase?searchString=2524","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","pos","v1","purchase"],"query":[{"key":"searchString","value":"2524","description":"Text to match with Reservation_Name__c, Client_purchase_name__c, Client__r.Name, Client__r.FirstName, Client__r.LastName, Client__r.Email and Client__r.Phone."},{"key":"posPurchaseId","value":"{string}","description":"Id of the POS Purchase record to get. If given, searchString is ignored.","disabled":true},{"key":"app","value":"{string}","description":"The App (POS Mobile, Online App, etc.) version issuing this request, it's save in the \"Auctifera__POS_Purchase__c.Auctifera__App_Version__c\" field","disabled":true},{"key":"appVersion","value":"{string}","description":"Version of the app if *app* given.","disabled":true}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"sale\": null,\n    \"reservation\": {\n      \"attributes\": {\n        \"type\": \"Group_Reservation__c\",\n        \"url\": \"/services/data/v42.0/sobjects/Group_Reservation__c/a0R1o00000GAda7EAD\"\n      },\n      \"Id\": \"a0R1o00000GAda7EAD\",\n      \"Name\": \"R-2524\",\n      \"Total_Taxes__c\": 2,\n      \"Total_Amount__c\": 61,\n      \"Subtotal__c\": 59,\n      \"Contact_Requesting_the_Visit__c\": \"0031o00001VaN7qAAF\",\n      \"Status__c\": \"Sold\",\n      \"Payment_Status__c\": \"No Payment\",\n      \"Paid_Value1__c\": 0,\n      \"Refunded_Value__c\": 0,\n      \"Date__c\": \"2018-05-09\",\n      \"Total_Visitors__c\": 8,\n      \"POS_Purchase__c\": \"a1s1o000002dzcTAAQ\",\n      \"Museum_Offer_Items__r\": {\n        \"totalSize\": 9,\n        \"done\": true,\n        \"records\": [\n          {\n            \"attributes\": {\n              \"type\": \"Museum_Offer_Item__c\",\n              \"url\": \"/services/data/v42.0/sobjects/Museum_Offer_Item__c/a1P1o000002jUELEA2\"\n            },\n            \"Group_Reservation__c\": \"a0R1o00000GAda7EAD\",\n            \"Id\": \"a1P1o000002jUELEA2\",\n            \"Name\": \"MOF-3804\",\n            \"Museum_Offer__c\": \"a0s1o000007mYJaAAM\",\n            \"Number_of_Items__c\": 1,\n            \"Subtotal_amount__c\": 0,\n            \"Total_Amount__c\": 0,\n            \"Status__c\": \"Sold\",\n            \"Exhibition__c\": \"a002400000oKBDqAAO\",\n            \"Museum_Offer__r\": {\n              \"attributes\": {\n                \"type\": \"Museum_Offer__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s1o000007mYJaAAM\"\n              },\n              \"Id\": \"a0s1o000007mYJaAAM\",\n              \"Exposition__c\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Adult 4\"\n            },\n            \"Exhibition__r\": {\n              \"attributes\": {\n                \"type\": \"Inventory_Service__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqAAO\"\n              },\n              \"Id\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Permanent Collection\",\n              \"RecordTypeId\": \"01224000000D87CAAS\"\n            }\n          },\n          {\n            \"attributes\": {\n              \"type\": \"Museum_Offer_Item__c\",\n              \"url\": \"/services/data/v42.0/sobjects/Museum_Offer_Item__c/a1P1o000002jUENEA2\"\n            },\n            \"Group_Reservation__c\": \"a0R1o00000GAda7EAD\",\n            \"Id\": \"a1P1o000002jUENEA2\",\n            \"Name\": \"MOF-3806\",\n            \"Museum_Offer__c\": \"a0s1o000007mYJsAAM\",\n            \"Number_of_Items__c\": 1,\n            \"Subtotal_amount__c\": 0,\n            \"Total_Amount__c\": 0,\n            \"Status__c\": \"Sold\",\n            \"Exhibition__c\": \"a002400000oKBDqAAO\",\n            \"Museum_Offer__r\": {\n              \"attributes\": {\n                \"type\": \"Museum_Offer__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s1o000007mYJsAAM\"\n              },\n              \"Id\": \"a0s1o000007mYJsAAM\",\n              \"Exposition__c\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Adult 7\"\n            },\n            \"Exhibition__r\": {\n              \"attributes\": {\n                \"type\": \"Inventory_Service__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqAAO\"\n              },\n              \"Id\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Permanent Collection\",\n              \"RecordTypeId\": \"01224000000D87CAAS\"\n            }\n          }\n        ]\n      },\n      \"Contact_Requesting_the_Visit__r\": {\n        \"attributes\": {\n          \"type\": \"Contact\",\n          \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n        },\n        \"Id\": \"0031o00001VaN7qAAF\",\n        \"Name\": \"Mock Contact\"\n      }\n    },\n    \"posPurchase\": {\n      \"attributes\": {\n        \"type\": \"POS_Purchase__c\",\n        \"url\": \"/services/data/v42.0/sobjects/POS_Purchase__c/a1s1o000002dzcTAAQ\"\n      },\n      \"Id\": \"a1s1o000002dzcTAAQ\",\n      \"Name\": \"POS-0680\",\n      \"Reservation_Name__c\": \"R-2524\",\n      \"Client__c\": \"0031o00001VaN7qAAF\",\n      \"Status__c\": \"Sold\",\n      \"Total__c\": 61,\n      \"Subtotal__c\": 59,\n      \"Taxes__c\": 2,\n      \"Sold_Date__c\": \"2018-05-09\",\n      \"Items__c\": 8,\n      \"Payment_Status__c\": \"Paid in full\",\n      \"Payment_Method__c\": \"Cash\",\n      \"Amount_Paid__c\": 61,\n      \"Amount_Received__c\": 61,\n      \"Amount_Refunded__c\": 0,\n      \"Client__r\": {\n        \"attributes\": {\n          \"type\": \"Contact\",\n          \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n        },\n        \"Id\": \"0031o00001VaN7qAAF\",\n        \"Name\": \"Mock Contact\"\n      }\n    },\n    \"donation\": null\n  }\n]"}],"_postman_id":"49891650-c27a-4e44-96dd-0850f2361420"},{"name":"Create a POS Purchase","id":"f91d9ef6-481d-4b9b-84f4-b0810e42634c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"buyerId\": \"XXXXXXX\",\n    \"posPurchaseId\": \"XXXXXXXXX\",\n    \"membership\": {\n        \"Id\": \"a0i24000003OhKHAA0\"\n    },\n    \"tickets\": [\n        [\n            {\n                \"Museum_Offer__c\": \"a0s24000004hVtgAAE\",\n                \"Number_of_Items__c\": 1\n            }\n        ]\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/purchase","description":"<p>It creates a POS Purchase object with all the related children (Tickets, Donation (membership), Client purchase).</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","pos","v1","purchase"],"host":["{salesforceinstance}","salesforce","com"],"query":[],"variable":[]}},"response":[{"id":"ab93032a-a662-4884-8f0d-381cfd26d4d3","name":"Create POS Purchase","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"buyerId\": \"XXXXXXX\",\n    \"posPurchaseId\": \"XXXXXXXXX\",\n    \"membership\": {\n        \"Id\": \"a0i24000003OhKHAA0\"\n    },\n    \"tickets\": [\n        [\n            {\n                \"Museum_Offer__c\": \"a0s24000004hVtgAAE\",\n                \"Number_of_Items__c\": 1\n            }\n        ]\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/purchase"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": 200,\n  \"status\": \"success\",\n  \"message\": \"POS Purchase POS-XXX created\",\n  \"posPurchase\": {\n    \"sale\": null,\n    \"reservation\": {\n      \"attributes\": {\n        \"type\": \"Group_Reservation__c\",\n        \"url\": \"/services/data/v42.0/sobjects/Group_Reservation__c/a0R1o00000GAda7EAD\"\n      },\n      \"Id\": \"a0R1o00000GAda7EAD\",\n      \"Name\": \"R-2524\",\n      \"Total_Taxes__c\": 2,\n      \"Total_Amount__c\": 61,\n      \"Subtotal__c\": 59,\n      \"Contact_Requesting_the_Visit__c\": \"0031o00001VaN7qAAF\",\n      \"Status__c\": \"Sold\",\n      \"Payment_Status__c\": \"No Payment\",\n      \"Paid_Value1__c\": 0,\n      \"Refunded_Value__c\": 0,\n      \"Date__c\": \"2018-05-09\",\n      \"Total_Visitors__c\": 8,\n      \"POS_Purchase__c\": \"a1s1o000002dzcTAAQ\",\n      \"Museum_Offer_Items__r\": {\n        \"totalSize\": 9,\n        \"done\": true,\n        \"records\": [\n          {\n            \"attributes\": {\n              \"type\": \"Museum_Offer_Item__c\",\n              \"url\": \"/services/data/v42.0/sobjects/Museum_Offer_Item__c/a1P1o000002jUEMEA2\"\n            },\n            \"Group_Reservation__c\": \"a0R1o00000GAda7EAD\",\n            \"Id\": \"a1P1o000002jUEMEA2\",\n            \"Name\": \"MOF-3805\",\n            \"Museum_Offer__c\": \"a0s1o000007mYJmAAM\",\n            \"Number_of_Items__c\": 1,\n            \"Subtotal_amount__c\": 0,\n            \"Total_Amount__c\": 0,\n            \"Status__c\": \"Sold\",\n            \"Exhibition__c\": \"a002400000oKBDqAAO\",\n            \"Museum_Offer__r\": {\n              \"attributes\": {\n                \"type\": \"Museum_Offer__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s1o000007mYJmAAM\"\n              },\n              \"Id\": \"a0s1o000007mYJmAAM\",\n              \"Exposition__c\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Adult 6\"\n            },\n            \"Exhibition__r\": {\n              \"attributes\": {\n                \"type\": \"Inventory_Service__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqAAO\"\n              },\n              \"Id\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Permanent Collection\",\n              \"RecordTypeId\": \"01224000000D87CAAS\"\n            }\n          }\n        ]\n      },\n      \"Contact_Requesting_the_Visit__r\": {\n        \"attributes\": {\n          \"type\": \"Contact\",\n          \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n        },\n        \"Id\": \"0031o00001VaN7qAAF\",\n        \"Name\": \"Mock Contact\"\n      }\n    },\n    \"posPurchase\": {\n      \"attributes\": {\n        \"type\": \"POS_Purchase__c\",\n        \"url\": \"/services/data/v42.0/sobjects/POS_Purchase__c/a1s1o000002dzcTAAQ\"\n      },\n      \"Id\": \"a1s1o000002dzcTAAQ\",\n      \"Name\": \"POS-0680\",\n      \"Reservation_Name__c\": \"R-2524\",\n      \"Client__c\": \"0031o00001VaN7qAAF\",\n      \"Status__c\": \"Sold\",\n      \"Total__c\": 61,\n      \"Subtotal__c\": 59,\n      \"Taxes__c\": 2,\n      \"Sold_Date__c\": \"2018-05-09\",\n      \"Items__c\": 8,\n      \"Payment_Status__c\": \"Paid in full\",\n      \"Payment_Method__c\": \"Cash\",\n      \"Amount_Paid__c\": 61,\n      \"Amount_Received__c\": 61,\n      \"Amount_Refunded__c\": 0,\n      \"Client__r\": {\n        \"attributes\": {\n          \"type\": \"Contact\",\n          \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n        },\n        \"Id\": \"0031o00001VaN7qAAF\",\n        \"Name\": \"Mock Contact\"\n      }\n    },\n    \"donation\": null\n  }\n}"}],"_postman_id":"f91d9ef6-481d-4b9b-84f4-b0810e42634c"},{"name":"Update a POS Purchase","id":"0a2a8fd4-909b-4689-9dff-f8b2a777fbd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"PUT","header":[],"url":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/purchase?action={string}&posPurchaseId={string}","description":"<p>It cancels a POS Purchase, or sets as confirmed the ticket inside a POS Purchase.</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","pos","v1","purchase"],"host":["{salesforceinstance}","salesforce","com"],"query":[{"description":{"content":"<p>Either <em>cancel</em> or <em>confirm</em>.</p>\n<p>When a POS Purchase is cancelled, it status would set as <em>Canceled</em>. When a POS Purchase is confirmed, it status would set as <em>Confirmed</em>, for each Museum Offer Item would be updated with the following logic:</p>\n<ul>\n<li>If the audience is \"N/A\" it would do nothing. But if its not equals to \"N/A\" and has no confirmed tickets (Auctifera__Confirmed_Tickets__c), the actual tickets (Auctifera__Actual_Items__c) would be assigned as confirmed tickets.</li>\n</ul>\n","type":"text/plain"},"key":"action","value":"{string}"},{"description":{"content":"<p>The POS Purchase Id to be updated.</p>\n","type":"text/plain"},"key":"posPurchaseId","value":"{string}"}],"variable":[]}},"response":[{"id":"26331f68-4fec-42e9-b56f-fd6e1a1548d5","name":"Update a POS Purchase","originalRequest":{"method":"PUT","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/purchase?action=cancel&posPurchaseId=XXXX","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","pos","v1","purchase"],"query":[{"key":"action","value":"cancel","description":"Either 'cancel' or 'confirm'"},{"key":"posPurchaseId","value":"XXXX","description":"The POS Purchase Id to be updated"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[],"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": 200,\n  \"status\": \"success\",\n  \"message\": \"POS Purchase POS-XXX canceled\",\n  \"posPurchase\": {\n    \"sale\": null,\n    \"reservation\": {\n      \"attributes\": {\n        \"type\": \"Group_Reservation__c\",\n        \"url\": \"/services/data/v42.0/sobjects/Group_Reservation__c/a0R1o00000GAda7EAD\"\n      },\n      \"Id\": \"a0R1o00000GAda7EAD\",\n      \"Name\": \"R-2524\",\n      \"Total_Taxes__c\": 2,\n      \"Total_Amount__c\": 61,\n      \"Subtotal__c\": 59,\n      \"Contact_Requesting_the_Visit__c\": \"0031o00001VaN7qAAF\",\n      \"Status__c\": \"Sold\",\n      \"Payment_Status__c\": \"No Payment\",\n      \"Paid_Value1__c\": 0,\n      \"Refunded_Value__c\": 0,\n      \"Date__c\": \"2018-05-09\",\n      \"Total_Visitors__c\": 8,\n      \"POS_Purchase__c\": \"a1s1o000002dzcTAAQ\",\n      \"Museum_Offer_Items__r\": {\n        \"totalSize\": 9,\n        \"done\": true,\n        \"records\": [\n          {\n            \"attributes\": {\n              \"type\": \"Museum_Offer_Item__c\",\n              \"url\": \"/services/data/v42.0/sobjects/Museum_Offer_Item__c/a1P1o000002jUEMEA2\"\n            },\n            \"Group_Reservation__c\": \"a0R1o00000GAda7EAD\",\n            \"Id\": \"a1P1o000002jUEMEA2\",\n            \"Name\": \"MOF-3805\",\n            \"Museum_Offer__c\": \"a0s1o000007mYJmAAM\",\n            \"Number_of_Items__c\": 1,\n            \"Subtotal_amount__c\": 0,\n            \"Total_Amount__c\": 0,\n            \"Status__c\": \"Sold\",\n            \"Exhibition__c\": \"a002400000oKBDqAAO\",\n            \"Museum_Offer__r\": {\n              \"attributes\": {\n                \"type\": \"Museum_Offer__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s1o000007mYJmAAM\"\n              },\n              \"Id\": \"a0s1o000007mYJmAAM\",\n              \"Exposition__c\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Adult 6\"\n            },\n            \"Exhibition__r\": {\n              \"attributes\": {\n                \"type\": \"Inventory_Service__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqAAO\"\n              },\n              \"Id\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Permanent Collection\",\n              \"RecordTypeId\": \"01224000000D87CAAS\"\n            }\n          },\n          {\n            \"attributes\": {\n              \"type\": \"Museum_Offer_Item__c\",\n              \"url\": \"/services/data/v42.0/sobjects/Museum_Offer_Item__c/a1P1o000002jUENEA2\"\n            },\n            \"Group_Reservation__c\": \"a0R1o00000GAda7EAD\",\n            \"Id\": \"a1P1o000002jUENEA2\",\n            \"Name\": \"MOF-3806\",\n            \"Museum_Offer__c\": \"a0s1o000007mYJsAAM\",\n            \"Number_of_Items__c\": 1,\n            \"Subtotal_amount__c\": 0,\n            \"Total_Amount__c\": 0,\n            \"Status__c\": \"Sold\",\n            \"Exhibition__c\": \"a002400000oKBDqAAO\",\n            \"Museum_Offer__r\": {\n              \"attributes\": {\n                \"type\": \"Museum_Offer__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s1o000007mYJsAAM\"\n              },\n              \"Id\": \"a0s1o000007mYJsAAM\",\n              \"Exposition__c\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Adult 7\"\n            },\n            \"Exhibition__r\": {\n              \"attributes\": {\n                \"type\": \"Inventory_Service__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqAAO\"\n              },\n              \"Id\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Permanent Collection\",\n              \"RecordTypeId\": \"01224000000D87CAAS\"\n            }\n          }\n        ]\n      },\n      \"Contact_Requesting_the_Visit__r\": {\n        \"attributes\": {\n          \"type\": \"Contact\",\n          \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n        },\n        \"Id\": \"0031o00001VaN7qAAF\",\n        \"Name\": \"Mock Contact\"\n      }\n    },\n    \"posPurchase\": {\n      \"attributes\": {\n        \"type\": \"POS_Purchase__c\",\n        \"url\": \"/services/data/v42.0/sobjects/POS_Purchase__c/a1s1o000002dzcTAAQ\"\n      },\n      \"Id\": \"XXXX\",\n      \"Name\": \"POS-0680\",\n      \"Reservation_Name__c\": \"R-2524\",\n      \"Client__c\": \"0031o00001VaN7qAAF\",\n      \"Status__c\": \"Sold\",\n      \"Total__c\": 61,\n      \"Subtotal__c\": 59,\n      \"Taxes__c\": 2,\n      \"Sold_Date__c\": \"2018-05-09\",\n      \"Items__c\": 8,\n      \"Payment_Status__c\": \"Paid in full\",\n      \"Payment_Method__c\": \"Cash\",\n      \"Amount_Paid__c\": 61,\n      \"Amount_Received__c\": 61,\n      \"Amount_Refunded__c\": 0,\n      \"Client__r\": {\n        \"attributes\": {\n          \"type\": \"Contact\",\n          \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n        },\n        \"Id\": \"0031o00001VaN7qAAF\",\n        \"Name\": \"Mock Contact\"\n      }\n    },\n    \"donation\": null\n  }\n}"}],"_postman_id":"0a2a8fd4-909b-4689-9dff-f8b2a777fbd8"}],"id":"0c6c0d78-6641-4b1f-9451-406dc4a7100c","description":"\n\n<p>Methods to manage the POS Purchases (query, create and update).</p>\n","event":[{"listen":"prerequest","script":{"id":"90bcf1f4-9037-4004-897b-fabe957c9b99","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8189ee72-84e5-4a41-aff6-e9794f217731","type":"text/javascript","exec":[""]}}],"_postman_id":"0c6c0d78-6641-4b1f-9451-406dc4a7100c"},{"name":"Payments","item":[{"name":"Pay a POS Purchase","id":"7b21f7ae-c0a2-4dcc-9927-fc6bea208f7c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"purchaseId\": \"XXXXX\",\n    \"amount\": 100,\n    \"token\": \"XXXX\",\n    \"merchant\": {\n        \"Id\": \"m072400000000APAAY\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/payment?method={string}","description":"<p>It pays the POS Purchase using the action provided.</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","pos","v1","payment"],"host":["{salesforceinstance}","salesforce","com"],"query":[{"description":{"content":"<p>Supported payment methods are: <em>cash</em>, <em>manual_stripe_credit_card</em>, <em>external_card_reader</em>, <em>square</em>.</p>\n","type":"text/plain"},"key":"method","value":"{string}"}],"variable":[]}},"response":[{"id":"fc50560d-6a73-43e9-ab21-196b4d2d0e33","name":"Pay a POS Purchase","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"purchaseId\": \"XXXXX\",\n    \"amount\": 100,\n    \"token\": \"XXXX\",\n    \"merchant\": {\n        \"Id\": \"m072400000000APAAY\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/payment?method=XXXXX","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","pos","v1","payment"],"query":[{"key":"method","value":"XXXXX","description":"Supported payment methods are: *\"cash\"*, *\"manual_stripe_credit_card\"*, *\"magtek_encrypted_credit_card\"*, *\"external_card_reader\"*, *\"square\"*."}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"statusCode\": 200,\n  \"status\": \"success\",\n  \"message\": \"POS Purchase created\",\n  \"purchase\": {\n    \"sale\": null,\n    \"reservation\": {\n      \"attributes\": {\n        \"type\": \"Group_Reservation__c\",\n        \"url\": \"/services/data/v42.0/sobjects/Group_Reservation__c/a0R1o00000GAda7EAD\"\n      },\n      \"Id\": \"a0R1o00000GAda7EAD\",\n      \"Name\": \"R-2524\",\n      \"Total_Taxes__c\": 2,\n      \"Total_Amount__c\": 61,\n      \"Subtotal__c\": 59,\n      \"Contact_Requesting_the_Visit__c\": \"0031o00001VaN7qAAF\",\n      \"Status__c\": \"Sold\",\n      \"Payment_Status__c\": \"No Payment\",\n      \"Paid_Value1__c\": 0,\n      \"Refunded_Value__c\": 0,\n      \"Date__c\": \"2018-05-09\",\n      \"Total_Visitors__c\": 8,\n      \"POS_Purchase__c\": \"a1s1o000002dzcTAAQ\",\n      \"Museum_Offer_Items__r\": {\n        \"totalSize\": 9,\n        \"done\": true,\n        \"records\": [\n          {\n            \"attributes\": {\n              \"type\": \"Museum_Offer_Item__c\",\n              \"url\": \"/services/data/v42.0/sobjects/Museum_Offer_Item__c/a1P1o000002jUEFEA2\"\n            },\n            \"Group_Reservation__c\": \"a0R1o00000GAda7EAD\",\n            \"Id\": \"a1P1o000002jUEFEA2\",\n            \"Name\": \"MOF-3798\",\n            \"Museum_Offer__c\": \"a0s24000004PtalAAC\",\n            \"Number_of_Items__c\": 1,\n            \"Subtotal_amount__c\": 10,\n            \"Total_Amount__c\": 10,\n            \"Status__c\": \"Sold\",\n            \"Exhibition__c\": \"a002400000oKBDqAAO\",\n            \"Museum_Offer__r\": {\n              \"attributes\": {\n                \"type\": \"Museum_Offer__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s24000004PtalAAC\"\n              },\n              \"Id\": \"a0s24000004PtalAAC\",\n              \"Exposition__c\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Audio Guide\"\n            },\n            \"Exhibition__r\": {\n              \"attributes\": {\n                \"type\": \"Inventory_Service__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqAAO\"\n              },\n              \"Id\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Permanent Collection\",\n              \"RecordTypeId\": \"01224000000D87CAAS\"\n            }\n          },\n          {\n            \"attributes\": {\n              \"type\": \"Museum_Offer_Item__c\",\n              \"url\": \"/services/data/v42.0/sobjects/Museum_Offer_Item__c/a1P1o000002jUENEA2\"\n            },\n            \"Group_Reservation__c\": \"a0R1o00000GAda7EAD\",\n            \"Id\": \"a1P1o000002jUENEA2\",\n            \"Name\": \"MOF-3806\",\n            \"Museum_Offer__c\": \"a0s1o000007mYJsAAM\",\n            \"Number_of_Items__c\": 1,\n            \"Subtotal_amount__c\": 0,\n            \"Total_Amount__c\": 0,\n            \"Status__c\": \"Sold\",\n            \"Exhibition__c\": \"a002400000oKBDqAAO\",\n            \"Museum_Offer__r\": {\n              \"attributes\": {\n                \"type\": \"Museum_Offer__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s1o000007mYJsAAM\"\n              },\n              \"Id\": \"a0s1o000007mYJsAAM\",\n              \"Exposition__c\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Adult 7\"\n            },\n            \"Exhibition__r\": {\n              \"attributes\": {\n                \"type\": \"Inventory_Service__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqAAO\"\n              },\n              \"Id\": \"a002400000oKBDqAAO\",\n              \"Name\": \"Permanent Collection\",\n              \"RecordTypeId\": \"01224000000D87CAAS\"\n            }\n          }\n        ]\n      },\n      \"Contact_Requesting_the_Visit__r\": {\n        \"attributes\": {\n          \"type\": \"Contact\",\n          \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n        },\n        \"Id\": \"0031o00001VaN7qAAF\",\n        \"Name\": \"Mock Contact\"\n      }\n    },\n    \"posPurchase\": {\n      \"attributes\": {\n        \"type\": \"POS_Purchase__c\",\n        \"url\": \"/services/data/v42.0/sobjects/POS_Purchase__c/a1s1o000002dzcTAAQ\"\n      },\n      \"Id\": \"XXXXX\",\n      \"Name\": \"POS-0680\",\n      \"Reservation_Name__c\": \"R-2524\",\n      \"Client__c\": \"0031o00001VaN7qAAF\",\n      \"Status__c\": \"Sold\",\n      \"Total__c\": 61,\n      \"Subtotal__c\": 59,\n      \"Taxes__c\": 2,\n      \"Sold_Date__c\": \"2018-05-09\",\n      \"Items__c\": 8,\n      \"Payment_Status__c\": \"Paid in full\",\n      \"Payment_Method__c\": \"Cash\",\n      \"Amount_Paid__c\": 61,\n      \"Amount_Received__c\": 61,\n      \"Amount_Refunded__c\": 0,\n      \"Client__r\": {\n        \"attributes\": {\n          \"type\": \"Contact\",\n          \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n        },\n        \"Id\": \"0031o00001VaN7qAAF\",\n        \"Name\": \"Mock Contact\"\n      }\n    },\n    \"donation\": null\n  }\n}"}],"_postman_id":"7b21f7ae-c0a2-4dcc-9927-fc6bea208f7c"},{"name":"Update a POS Purchase Payment","id":"3041d2e2-6756-4ded-9540-1d5a9bfb1c4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"refundItems\": [\n    {\n      \"sObjectToRefund\": {\n        \"attributes\": {\n          \"type\": \"Auctifera__Sale_Item__c\",\n          \"url\": \"/services/data/v50.0/sobjects/Auctifera__Sale_Item__c/a0t3b00000AMmXXXX\"\n        },\n        \"Auctifera__Client_Purchase__c\": \"a0s3b00000DsQ8XXXX\",\n        \"Id\": \"a0t3b00000AMmAXXXX\",\n        \"Name\": \"S-44522\",\n        \"Auctifera__Subtotal_before_discount__c\": 50.00,\n        \"Auctifera__Catalog_Item__c\": \"a0r3b00000MA9rXXXX\",\n        \"Auctifera__Number_of_Items_bought__c\": 5,\n        \"Auctifera__Purchase_Status__c\": \"Pending\",\n        \"Auctifera__Amount__c\": 55.00,\n        \"Auctifera__Price_Without_Tax__c\": 50.00,\n        \"Auctifera__Additional_Discount_Amount__c\": 0.00,\n        \"Auctifera__Discount_Amount__c\": 0.00,\n        \"Auctifera__Discount_Type__c\": \"Percentage\",\n        \"Auctifera__Discount_Value__c\": 0.00,\n        \"Auctifera__Actual_Items__c\": 5,\n        \"Auctifera__Refunded_Items__c\": 0,\n        \"Auctifera__Subtotal_Refunded__c\": 0.00,\n        \"Auctifera__Item_Price__c\": 10.00,\n        \"Auctifera__Tax_2__c\": 10.00,\n        \"Auctifera__Tax_Amount__c\": 5.00,\n        \"Auctifera__GL_Code__c\": \"SHOP_GL\",\n        \"Auctifera__Tax_GL_Code__c\": \"SHOP_TAX_GL\",\n        \"Auctifera__Catalog_Item__r\": {\n          \"attributes\": {\n            \"type\": \"Auctifera__CatalogItem__c\",\n            \"url\": \"/services/data/v50.0/sobjects/Auctifera__CatalogItem__c/a0r3b00000MA9rXXXX\"\n          },\n          \"Id\": \"a0r3b00000MA9rjAAD\",\n          \"Auctifera__Price__c\": 10.00,\n          \"Auctifera__Tax__c\": 10.0000,\n          \"Auctifera__Tax_Model__c\": \"Tax not included in the price\",\n          \"Name\": \"a0r3b00000MA9rj\",\n          \"Auctifera__Total_Stock__c\": -5,\n          \"Auctifera__Bypass_Stock__c\": true\n        }\n      },\n      \"quantity\": 2\n    }\n  ],\n  \"refundCharges\": [\n    {\n      \"attributes\": {\n        \"type\": \"Auctifera__Charge__c\",\n        \"url\": \"/services/data/v50.0/sobjects/Auctifera__Charge__c/a133b00000Em5sXXXX\"\n      },\n      \"Auctifera__POS_Purchase__c\": \"a1U3b00000A37kXXXX\",\n      \"Id\": \"a133b00000Em5sXXXX\",\n      \"Name\": \"C-207345\",\n      \"Auctifera__Payment_Date__c\": \"2020-12-01\",\n      \"Auctifera__Amount__c\": 55.00,\n      \"Auctifera__Type__c\": \"Cash\",\n      \"Auctifera__Amount_Balance__c\": 55.00,\n      \"Auctifera__Amount_Refunded_2__c\": 0.00,\n      \"Auctifera__Payment_Propagated__c\": false,\n      \"Auctifera__Number_of_Refunds__c\": 0,\n      \"Auctifera__Status__c\": \"Succeeded\",\n      \"Auctifera__Tech_Payment_Date__c\": \"2020-12-01\",\n      \"Auctifera__POS_Purchase__r\": {\n        \"attributes\": {\n          \"type\": \"Auctifera__POS_Purchase__c\",\n          \"url\": \"/services/data/v50.0/sobjects/Auctifera__POS_Purchase__c/a1U3b00000A37kXXXX\"\n        },\n        \"Id\": \"a1U3b00000A37kXXXX\"\n      }\n    }\n  ],\n  \"isFullRefund\": true,\n  \"amount\": 55\n}","options":{"raw":{"language":"json"}}},"url":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/payment?action={string}&posPurchaseId={string}","description":"<p>It updates the POS Purchase Payment.</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","pos","v1","payment"],"host":["{salesforceinstance}","salesforce","com"],"query":[{"description":{"content":"<p>Supported:</p>\n<ul>\n<li><em>refund</em> or <em>itemized_refund</em></li>\n</ul>\n","type":"text/plain"},"key":"action","value":"{string}"},{"description":{"content":"<p>Id of the POS Purchase to update.</p>\n","type":"text/plain"},"key":"posPurchaseId","value":"{string}"}],"variable":[]}},"response":[{"id":"bcf99182-a1eb-4b4a-8ee6-655a5ecef358","name":"Update a POS Purchase Payment","originalRequest":{"method":"PUT","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/pos/v1/payment?action=refund&posPurchaseId=XXXX","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","pos","v1","payment"],"query":[{"key":"action","value":"refund","description":"Supported: *\"refund\"*"},{"key":"posPurchaseId","value":"XXXX","description":"Id of the POS Purchase to update"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"status\": \"success\",\n    \"message\": \"POS Purchase refunded\",\n    \"posPurchase\": {\n        \"sale\": null,\n        \"reservation\": {\n            \"attributes\": {\n                \"type\": \"Group_Reservation__c\",\n                \"url\": \"/services/data/v42.0/sobjects/Group_Reservation__c/a0R1o00000GAda7EAD\"\n            },\n            \"Id\": \"a0R1o00000GAda7EAD\",\n            \"Name\": \"R-2524\",\n            \"Total_Taxes__c\": 2,\n            \"Total_Amount__c\": 61,\n            \"Subtotal__c\": 59,\n            \"Contact_Requesting_the_Visit__c\": \"0031o00001VaN7qAAF\",\n            \"Status__c\": \"Sold\",\n            \"Payment_Status__c\": \"No Payment\",\n            \"Paid_Value1__c\": 0,\n            \"Refunded_Value__c\": 0,\n            \"Date__c\": \"2018-05-09\",\n            \"Total_Visitors__c\": 8,\n            \"POS_Purchase__c\": \"a1s1o000002dzcTAAQ\",\n            \"Museum_Offer_Items__r\": {\n                \"totalSize\": 9,\n                \"done\": true,\n                \"records\": [\n                    {\n                        \"attributes\": {\n                            \"type\": \"Museum_Offer_Item__c\",\n                            \"url\": \"/services/data/v42.0/sobjects/Museum_Offer_Item__c/a1P1o000002jUEFEA2\"\n                        },\n                        \"Group_Reservation__c\": \"a0R1o00000GAda7EAD\",\n                        \"Id\": \"a1P1o000002jUEFEA2\",\n                        \"Name\": \"MOF-3798\",\n                        \"Museum_Offer__c\": \"a0s24000004PtalAAC\",\n                        \"Number_of_Items__c\": 1,\n                        \"Subtotal_amount__c\": 10,\n                        \"Total_Amount__c\": 10,\n                        \"Status__c\": \"Sold\",\n                        \"Exhibition__c\": \"a002400000oKBDqAAO\",\n                        \"Museum_Offer__r\": {\n                            \"attributes\": {\n                                \"type\": \"Museum_Offer__c\",\n                                \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s24000004PtalAAC\"\n                            },\n                            \"Id\": \"a0s24000004PtalAAC\",\n                            \"Exposition__c\": \"a002400000oKBDqAAO\",\n                            \"Name\": \"Audio Guide\"\n                        },\n                        \"Exhibition__r\": {\n                            \"attributes\": {\n                                \"type\": \"Inventory_Service__c\",\n                                \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqAAO\"\n                            },\n                            \"Id\": \"a002400000oKBDqAAO\",\n                            \"Name\": \"Permanent Collection\",\n                            \"RecordTypeId\": \"01224000000D87CAAS\"\n                        }\n                    },\n                    {\n                        \"attributes\": {\n                            \"type\": \"Museum_Offer_Item__c\",\n                            \"url\": \"/services/data/v42.0/sobjects/Museum_Offer_Item__c/a1P1o000002jUENEA2\"\n                        },\n                        \"Group_Reservation__c\": \"a0R1o00000GAda7EAD\",\n                        \"Id\": \"a1P1o000002jUENEA2\",\n                        \"Name\": \"MOF-3806\",\n                        \"Museum_Offer__c\": \"a0s1o000007mYJsAAM\",\n                        \"Number_of_Items__c\": 1,\n                        \"Subtotal_amount__c\": 0,\n                        \"Total_Amount__c\": 0,\n                        \"Status__c\": \"Sold\",\n                        \"Exhibition__c\": \"a002400000oKBDqAAO\",\n                        \"Museum_Offer__r\": {\n                            \"attributes\": {\n                                \"type\": \"Museum_Offer__c\",\n                                \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s1o000007mYJsAAM\"\n                            },\n                            \"Id\": \"a0s1o000007mYJsAAM\",\n                            \"Exposition__c\": \"a002400000oKBDqAAO\",\n                            \"Name\": \"Adult 7\"\n                        },\n                        \"Exhibition__r\": {\n                            \"attributes\": {\n                                \"type\": \"Inventory_Service__c\",\n                                \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqAAO\"\n                            },\n                            \"Id\": \"a002400000oKBDqAAO\",\n                            \"Name\": \"Permanent Collection\",\n                            \"RecordTypeId\": \"01224000000D87CAAS\"\n                        }\n                    }\n                ]\n            },\n            \"Contact_Requesting_the_Visit__r\": {\n                \"attributes\": {\n                    \"type\": \"Contact\",\n                    \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n                },\n                \"Id\": \"0031o00001VaN7qAAF\",\n                \"Name\": \"Mock Contact\"\n            }\n        },\n        \"posPurchase\": {\n            \"attributes\": {\n                \"type\": \"POS_Purchase__c\",\n                \"url\": \"/services/data/v42.0/sobjects/POS_Purchase__c/a1s1o000002dzcTAAQ\"\n            },\n            \"Id\": \"XXXX\",\n            \"Name\": \"POS-0680\",\n            \"Reservation_Name__c\": \"R-2524\",\n            \"Client__c\": \"0031o00001VaN7qAAF\",\n            \"Status__c\": \"Sold\",\n            \"Total__c\": 61,\n            \"Subtotal__c\": 59,\n            \"Taxes__c\": 2,\n            \"Sold_Date__c\": \"2018-05-09\",\n            \"Items__c\": 8,\n            \"Payment_Status__c\": \"Paid in full\",\n            \"Payment_Method__c\": \"Cash\",\n            \"Amount_Paid__c\": 61,\n            \"Amount_Received__c\": 61,\n            \"Amount_Refunded__c\": 0,\n            \"Client__r\": {\n                \"attributes\": {\n                    \"type\": \"Contact\",\n                    \"url\": \"/services/data/v42.0/sobjects/Contact/0031o00001VaN7qAAF\"\n                },\n                \"Id\": \"0031o00001VaN7qAAF\",\n                \"Name\": \"Mock Contact\"\n            }\n        },\n        \"donation\": null\n    }\n}"}],"_postman_id":"3041d2e2-6756-4ded-9540-1d5a9bfb1c4e"}],"id":"d0b48896-04ea-41e6-afc9-5c657ac9d8d0","description":"\n\n<p>Use it for Payment management, supports:</p>\n<ul>\n<li><p>Pay a POS Purchase with the following methods: <em>cash</em>, <em>manual_stripe_credit_card</em> <em>external_card_reader</em>, <em>square</em>.</p>\n</li>\n<li><p>Refund a POS Purchase</p>\n</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"43b98664-0903-423b-8140-2d23e08b2914","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"099cea56-6cba-4cf6-b666-1c50cdaee08c","type":"text/javascript","exec":[""]}}],"_postman_id":"d0b48896-04ea-41e6-afc9-5c657ac9d8d0"},{"name":"Exhibition","item":[{"name":"Get Exhibitions","id":"9bdb8a8c-26a8-47c2-9d94-2cd642bce8ce","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"connection":true,"accept-encoding":true}},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[]},"isInherited":false},"method":"GET","header":[],"url":"https://{salesforceinstance}.salesforce.com/services/apexrest/pos/v1/exhibition?membership={string}&date={string}&useGeneralAccessMembership={boolean}","description":"<p>It retrieves all the exhibition with the filter parameters</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","pos","v1","exhibition"],"host":["{salesforceinstance}","salesforce","com"],"query":[{"description":{"content":"<p>It filters exhibitions by Membership Id.</p>\n","type":"text/plain"},"key":"membership","value":"{string}"},{"description":{"content":"<p>Date string i.e. <em>YYYY-MM-DD</em>.</p>\n","type":"text/plain"},"key":"date","value":"{string}"},{"description":{"content":"<p>True if use the General Access Membership.</p>\n","type":"text/plain"},"key":"useGeneralAccessMembership","value":"{boolean}"}],"variable":[]}},"response":[{"id":"8201a153-2bc6-403c-801d-957b89c7271e","name":"Get Exhibitions","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/pos/v1/exhibition?date=2020/09/28&useGeneralAccessMembership=true","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","pos","v1","exhibition"],"query":[{"key":"membership","value":"{string}","description":"It filters exhibitions by Membership Id.","disabled":true},{"key":"date","value":"2020/09/28","description":"Date string i.e. _YYYY/MM/DD_."},{"key":"useGeneralAccessMembership","value":"true","description":"True if use the General Access Membership."}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\n  {\n    \"attributes\": {\n      \"type\": \"Inventory_Service__c\",\n      \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqXXX\"\n    },\n    \"Id\": \"a002400000oKBDXXX\",\n    \"Name\": \"Permanent Collection\",\n    \"Open_Hour__c\": \"2017-12-04T11:00:00.000+0000\",\n    \"Close_Hour__c\": \"2020-12-31T01:00:00.000+0000\",\n    \"Permanent_Collection__c\": true,\n    \"Primary_File_Link__c\": \"https://s3.amazonaws.com/crmadvanced_bucket/NO.png\",\n    \"TECH_is_time_restricted__c\": false,\n    \"Type__c\": \"Exhibition\",\n    \"Open_Days__c\": \"1;2;3;4;5;6\",\n    \"RecordTypeId\": \"01224000000D87XXX\",\n    \"Museum_Offers__r\": {\n      \"totalSize\": 7,\n      \"done\": true,\n      \"records\": [\n        {\n          \"attributes\": {\n            \"type\": \"Museum_Offer__c\",\n            \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s1o000007mYJJAA2\"\n          },\n          \"Exposition__c\": \"a002400000oKBDXXX\",\n          \"Id\": \"a0s1o000007mYJJXXX\",\n          \"Name\": \"Adult\",\n          \"Audience__c\": \"Adult\",\n          \"Currency__c\": \"EUR\",\n          \"Price__c\": 0.00,\n          \"Price_After_Tax__c\": 0.00,\n          \"Price_Without_Tax__c\": 0.00,\n          \"Tax_Amount__c\": 0.00,\n          \"Description__c\": \"Adult\",\n          \"Type__c\": \"Admission Tickets\",\n          \"Parent_Offer__c\": \"a0s1o000006lZEiXXX\",\n          \"Exposition__r\": {\n            \"attributes\": {\n              \"type\": \"Inventory_Service__c\",\n              \"url\": \"/services/data/v42.0/sobjects/Inventory_Service__c/a002400000oKBDqXXX\"\n            },\n            \"Id\": \"a002400000oKBDqXXX\",\n            \"Name\": \"Permanent Collection\",\n            \"RecordTypeId\": \"01224000000D87CXXX\"\n          },\n          \"Parent_Offer__r\": {\n            \"attributes\": {\n              \"type\": \"Museum_Offer__c\",\n              \"url\": \"/services/data/v42.0/sobjects/Museum_Offer__c/a0s1o000006lZEiXXX\"\n            },\n            \"Id\": \"a0s1o000006lZEiXXX\",\n            \"Name\": \"Adult\",\n            \"Exposition__c\": \"a002400000oKBDqXXX\"\n          }\n        }\n      ]\n    },\n    \"Exhibition_Times_Capacities__r\": {\n      \"totalSize\": 3,\n      \"done\": true,\n      \"records\": [\n        {\n          \"attributes\": {\n            \"type\": \"Exhibition_Time_Capacity__c\",\n            \"url\": \"/services/data/v42.0/sobjects/Exhibition_Time_Capacity__c/a1Z1o00000Ah07EXXX\"\n          },\n          \"Exposition__c\": \"a001o00000tDNAoXXX\",\n          \"Id\": \"a1Z1o00000Ah07EXXX\",\n          \"Date_Time__c\": \"2018-05-10T20:00:00.000+0000\",\n          \"Real_Capacity__c\": 0,\n          \"Target_Capacity__c\": 100,\n          \"Current_Free_Capacity__c\": 100\n        },\n        {\n          \"attributes\": {\n            \"type\": \"Exhibition_Time_Capacity__c\",\n            \"url\": \"/services/data/v42.0/sobjects/Exhibition_Time_Capacity__c/a1Z1o00000Ah07FXXX\"\n          },\n          \"Exposition__c\": \"a001o00000tDNAoXXX\",\n          \"Id\": \"a1Z1o00000Ah07FXXX\",\n          \"Date_Time__c\": \"2018-05-10T20:30:00.000+0000\",\n          \"Real_Capacity__c\": 0,\n          \"Target_Capacity__c\": 100,\n          \"Current_Free_Capacity__c\": 100\n        },\n        {\n          \"attributes\": {\n            \"type\": \"Exhibition_Time_Capacity__c\",\n            \"url\": \"/services/data/v42.0/sobjects/Exhibition_Time_Capacity__c/a1Z1o00000Ah07GXXX\"\n          },\n          \"Exposition__c\": \"a001o00000tDNAoXXX\",\n          \"Id\": \"a1Z1o00000Ah07GXXX\",\n          \"Date_Time__c\": \"2018-05-10T21:00:00.000+0000\",\n          \"Real_Capacity__c\": 0,\n          \"Target_Capacity__c\": 100,\n          \"Current_Free_Capacity__c\": 100\n        }\n      ]\n    }\n  }\n]a"}],"_postman_id":"9bdb8a8c-26a8-47c2-9d94-2cd642bce8ce"}],"id":"11bb6688-dde8-49cf-b019-f957cbc0996c","description":"\n\n<p>Methods to manage the exhibition (pay and update)</p>\n","event":[{"listen":"prerequest","script":{"id":"b3266577-7edb-494e-9706-dc2f512e5a3e","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"42aac743-86a1-4d55-a2a9-b04f141652e5","type":"text/javascript","exec":[""]}}],"_postman_id":"11bb6688-dde8-49cf-b019-f957cbc0996c"},{"name":"Ticketing","item":[{"name":"Scan a ticket","id":"4bdc8cef-7a86-4da2-b6e1-f2930b6396c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"useBrowser","value":"<use-browser>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/scanner/v1/reservation?searchString={string}","description":"<p>When you want to <em>scan a ticket</em> to verify if it is valid, you can send the <strong>id</strong> or <strong>name</strong> to this endpoint if it is valid (id or name), and it will automatically increase the <strong>Auctifera__Group_Reservation__c.Auctifera__Tickets_Scanned__c</strong> by 1 if it has not been confirmed (used) before.</p>\n","urlObject":{"protocol":"https","path":["services","apexrest","Auctifera","scanner","v1","reservation"],"host":["{salesforceinstance}","salesforce","com"],"query":[{"description":{"content":"<p>Text to match with Auctifera__Group_Reservation__c.Name or Auctifera__Group_Reservation__c.Id</p>\n","type":"text/plain"},"key":"searchString","value":"{string}"}],"variable":[]}},"response":[{"id":"287a84a0-cb39-4cb2-ba07-037faf5a76ca","name":"Scan a ticket: Reserved","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/scanner/v1/reservation?searchString=R-60432","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","scanner","v1","reservation"],"query":[{"key":"searchString","value":"R-60432","description":"Text to match with Auctifera__Group_Reservation__c.Name or Auctifera__Group_Reservation__c.Id is reserved but not purchased\n"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"ticket\" : {\n    \"reservationItems\" : null,\n    \"reservation\" : {\n      \"attributes\" : {\n        \"type\" : \"Auctifera__Group_Reservation__c\",\n        \"url\" : \"/services/data/v34.0/sobjects/Auctifera__Group_Reservation__c/a0p3b00000Ia8dlAAB\"\n      },\n      \"Id\" : \"a0p3b00000Ia8dlAAB\",\n      \"Name\" : \"R-60432\",\n      \"Auctifera__Status__c\" : \"Reserved\",\n      \"Auctifera__Total_Visitors__c\" : 1\n    },\n    \"contact\" : null\n  },\n  \"statusCode\" : 300,\n  \"status\" : \"failed\",\n  \"message\" : \"Please scan a paid ticket\"\n}"},{"id":"689df871-bc8e-43a3-aa71-f9209f1dfa88","name":"Scan a ticket: Refunded","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/scanner/v1/reservation?searchString=R-56306","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","scanner","v1","reservation"],"query":[{"key":"searchString","value":"R-56306","description":"Text to match with Auctifera__Group_Reservation__c.Name or Auctifera__Group_Reservation__c.Id has been refunded so it is not valid"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"ticket\" : {\n    \"reservationItems\" : null,\n    \"reservation\" : null,\n    \"contact\" : null\n  },\n  \"statusCode\" : 404,\n  \"status\" : \"failed\",\n  \"message\" : \"Unknown error\"\n}"},{"id":"8379090e-1020-464f-b24f-d279920c862a","name":"Scan a ticket: Sold","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/scanner/v1/reservation?searchString=R-56305","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","scanner","v1","reservation"],"query":[{"key":"searchString","value":"R-56305","description":"This Auctifera__Group_Reservation__c.Name or Auctifera__Group_Reservation__c.Id do exist and is purchased"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"ticket\" : {\n    \"reservationItems\" : null,\n    \"reservation\" : {\n      \"attributes\" : {\n        \"type\" : \"Auctifera__Group_Reservation__c\",\n        \"url\" : \"/services/data/v34.0/sobjects/Auctifera__Group_Reservation__c/a0p3b00000Ht1LuAAJ\"\n      },\n      \"Id\" : \"a0p3b00000Ht1LuAAJ\",\n      \"Name\" : \"R-56305\",\n      \"Auctifera__Status__c\" : \"Confirmed\",\n      \"Auctifera__Confirmed_Date_Time__c\" : \"2020-12-30T16:01:20.000+0000\",\n      \"Auctifera__Total_Visitors__c\" : 5,\n      \"Auctifera__Tickets_Scanned__c\" : 1\n    },\n    \"contact\" : null\n  },\n  \"statusCode\" : 200,\n  \"status\" : \"success\",\n  \"message\" : \"TICKET_FOUND\"\n}"},{"id":"94094b62-afaa-498c-891c-05b9317ecc58","name":"Scan a ticket: Cancelled","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/scanner/v1/reservation?searchString=R-64059","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","scanner","v1","reservation"],"query":[{"key":"searchString","value":"R-64059","description":"Text to match with Auctifera__Group_Reservation__c.Name or Auctifera__Group_Reservation__c.Id has been cancelled"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"ticket\" : {\n    \"reservationItems\" : null,\n    \"reservation\" : null,\n    \"contact\" : null\n  },\n  \"statusCode\" : 404,\n  \"status\" : \"failed\",\n  \"message\" : \"Unknown error\"\n}"},{"id":"9982815c-b688-43f3-9f82-caa1fa635e16","name":"Scan a ticket: Confirmed","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/scanner/v1/reservation?searchString=R-56304","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","scanner","v1","reservation"],"query":[{"key":"searchString","value":"R-56304","description":"Text to match with Auctifera__Group_Reservation__c.Name or Auctifera__Group_Reservation__c.Id has already been scanned and so confirmed"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"ticket\" : {\n    \"reservationItems\" : null,\n    \"reservation\" : {\n      \"attributes\" : {\n        \"type\" : \"Auctifera__Group_Reservation__c\",\n        \"url\" : \"/services/data/v34.0/sobjects/Auctifera__Group_Reservation__c/a0p3b00000Ht1LkAAJ\"\n      },\n      \"Id\" : \"a0p3b00000Ht1LkAAJ\",\n      \"Name\" : \"R-56304\",\n      \"Auctifera__Status__c\" : \"Confirmed\",\n      \"Auctifera__Confirmed_Date_Time__c\" : \"2020-12-29T16:34:18.000+0000\",\n      \"Auctifera__Total_Visitors__c\" : 5,\n      \"Auctifera__Tickets_Scanned__c\" : 1\n    },\n    \"contact\" : null\n  },\n  \"statusCode\" : 300,\n  \"status\" : \"failed\",\n  \"message\" : \"Already Scanned\"\n}"},{"id":"e9a1cd92-f2bb-499b-a291-2658b69ae5e9","name":"Scan a ticket: Non-existing","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://{salesforceinstance}.salesforce.com/services/apexrest/Auctifera/scanner/v1/reservation?searchString=3086","protocol":"https","host":["{salesforceinstance}","salesforce","com"],"path":["services","apexrest","Auctifera","scanner","v1","reservation"],"query":[{"key":"searchString","value":"3086","description":"Text does not match with any Auctifera__Group_Reservation__c.Name or Auctifera__Group_Reservation__c.Id . It does not exist"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"ticket\" : {\n    \"reservationItems\" : null,\n    \"reservation\" : null,\n    \"contact\" : null\n  },\n  \"statusCode\" : 404,\n  \"status\" : \"failed\",\n  \"message\" : \"Ticket not found\"\n}"}],"_postman_id":"4bdc8cef-7a86-4da2-b6e1-f2930b6396c4"},{"name":"Get Exhibitions","id":"7af0b5d1-bd19-49d4-824b-2d2a893ecf49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{client_subdomain}}.veevartapp.com/events?systemType={{system_type}}&language={{language}}&isMultiLanguage={{isMultiLanguage}}&queryDate={{queryDate}}","urlObject":{"protocol":"https","path":["events"],"host":["{{client_subdomain}}","veevartapp","com"],"query":[{"description":{"content":"<p>It can be Group_Ticketing if ticketing is open in group ticketing mode</p>\n","type":"text/plain"},"key":"systemType","value":"{{system_type}}"},{"description":{"content":"<p>current language of the application</p>\n","type":"text/plain"},"key":"language","value":"{{language}}"},{"description":{"content":"<p>Whether the client uses multi language functionality or not</p>\n","type":"text/plain"},"key":"isMultiLanguage","value":"{{isMultiLanguage}}"},{"description":{"content":"<p>date to query exhibitions from (YYYY-MM-DD) If not provided,  service will return the closest date with exhibitions</p>\n","type":"text/plain"},"key":"queryDate","value":"{{queryDate}}"}],"variable":[]}},"response":[],"_postman_id":"7af0b5d1-bd19-49d4-824b-2d2a893ecf49"},{"name":"Get Calendar","id":"ca3f7506-a4a9-43a7-b2fc-5eb72bd9e51a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://{{client_subdomain}}.veevartapp.com/calendar?systemType={{system_type}}&year={{year}}&month={{month}}","urlObject":{"protocol":"https","path":["calendar"],"host":["{{client_subdomain}}","veevartapp","com"],"query":[{"description":{"content":"<p>It can be Group_Ticketing if ticketing is open in group ticketing modee</p>\n","type":"text/plain"},"key":"systemType","value":"{{system_type}}"},{"description":{"content":"<p>year of the month from which the calendar will be returned</p>\n","type":"text/plain"},"key":"year","value":"{{year}}"},{"description":{"content":"<p>month of the year from which the calendar will be returned</p>\n","type":"text/plain"},"key":"month","value":"{{month}}"}],"variable":[]}},"response":[],"_postman_id":"ca3f7506-a4a9-43a7-b2fc-5eb72bd9e51a"},{"name":"Salesforce token","id":"b51c12d9-1348-4f81-9556-2e662fa82fbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"password","type":"text","uuid":"2f4c34d0-bb81-4ac3-925a-2e7f095853cc"},{"key":"username","value":"test-w1gvzbuqtwsd@example.com","type":"text","uuid":"97e8c533-64ef-4b39-ad83-f68a87ec0eb7"},{"key":"password","value":"ey[iuqluxeJc8","type":"text","uuid":"7dcd7722-d8a9-4e7d-ab7b-8ae3cc634d6b"},{"key":"client_id","value":"3MVG9snQZy6aQDh1YUnx82wlA44PIKiQZBAc6SFj5nIQhfoPvdYusSnObL._aSpPFeUQACIQj2s9kaSmYao_s","type":"text","uuid":"cd800e51-81de-48a4-a93b-3bf691c42245"},{"key":"client_secret","value":"69A07368FB5367624588B19C0B3460F57A04F0DC9A3CAF874FFCFF838DCCF1D1","type":"text","uuid":"e5caad49-64d8-4f95-b7a9-133ea7720b52"}]},"url":"https://login.salesforce.com/services/oauth2/token","urlObject":{"protocol":"https","path":["services","oauth2","token"],"host":["login","salesforce","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b51c12d9-1348-4f81-9556-2e662fa82fbb"}],"id":"fc413710-1c17-4513-b44a-195c2c20f1fa","_postman_id":"fc413710-1c17-4513-b44a-195c2c20f1fa","description":""}],"event":[{"listen":"prerequest","script":{"id":"5f3fa5ba-cad7-4038-b6e3-24cc7d43ddd7","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a23c22f1-57f7-4796-9c66-c51022e8e301","type":"text/javascript","exec":[""]}}]}