### POST /check-credentials Source: https://docs.boomerangme.cards/marketplace/create-an-application Verifies the user credentials provided during the application installation process. ```APIDOC ## POST /check-credentials ### Description This method is used to verify the user credentials specified when installing the application. ### Method POST ### Endpoint /check-credentials ### Parameters #### Request Body - **credentials** (array) - Required - Merchant credentials containing name and value pairs. ### Request Example { "credentials": [ { "name": "api_key", "value": "example_key" } ] } ### Response #### Success Response (200) - **isValid** (boolean) - Indicates if the provided credentials are valid. #### Response Example { "isValid": true } ``` -------------------------------- ### POST /get-inventory Source: https://docs.boomerangme.cards/marketplace/create-an-application Retrieves the inventory tree, such as a restaurant menu, used during installation or rule triggering. ```APIDOC ## POST /get-inventory ### Description This method is used to retrieve an inventory tree (for example, a restaurant menu). The method is used during application installation and when inventory-based rules are triggered. ### Method POST ### Endpoint /get-inventory ### Parameters #### Request Body - **credentials** (array) - Required - Merchant credentials used to authorize the inventory request. ### Request Example { "credentials": [ { "name": "api_key", "value": "example_key" } ] } ### Response #### Success Response (200) - **inventoryItems** (array) - A list of inventory items or groups. #### Response Example { "inventoryItems": [ { "type": "group", "id": "1", "title": "Main Menu", "items": [] } ] } ``` -------------------------------- ### Retrieve Application Inventory Source: https://docs.boomerangme.cards/marketplace/create-an-application This endpoint fetches the inventory tree, such as a restaurant menu, required for application installation and rule triggering. It returns a hierarchical structure of inventory items. ```JSON {"openapi":"3.0.0","info":{"title":"Marketplace API","version":"1.0.0"},"servers":[{"url":"https://app-domain.example"}],"security":[],"paths":{"/get-inventory":{"post":{"summary":"Get Inventory","description":"This method is used to retrieve an inventory tree (for example, a restaurant menu).\nThe method is used during application installation and when inventory-based rules are triggered.","operationId":"post_app_api_v2_marketplace_stabdoc_getinventory","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetInventoryRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetInventoryResponse"}}}}}}}},"components":{"schemas":{"GetInventoryRequest":{"properties":{"credentials":{"description":"Merchant credentials.","type":"array","items":{"properties":{"name":{"type":"string"},"value":{"type":"string"}},"type":"object"}}},"type":"object"},"GetInventoryResponse":{"properties":{"inventoryItems":{"type":"array","items":{"$ref":"#/components/schemas/InventoryItem"}}},"type":"object"},"InventoryItem":{"required":["type","id","title"],"properties":{"type":{"type":"string","enum":["group","item"],"nullable":true},"id":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"items":{"type":"array","items":{"$ref":"#/components/schemas/InventoryItem"},"nullable":true}},"type":"object"}}}} ```