# B2B integration (Closed alpha) For integrating topmate with your business, you can email at dinesh@topmate.io and we shall enable it for you. ## Webhook details This webhook will be triggrered after every booking has been made. Booking can be of the following types 1. 1:1 Call => `service_type=1` 2. Text query => `service_type=2` 3. Webinar => `service_type=3` 4. Package => `service_type=4` 5. Document => `service_type=5` ### payload ``` { 'id': 'ef873dc8-5cf9-45a6-a0fa-ceb25ef87e0d', 'expert': { 'id': 1, 'email': 'dinesh@topmate.io', 'phone': '+919967275672', 'full_name': 'Dinesh Singh' }, 'consumer_name': 'Test', 'consumer_email': 'test@topmate.io', 'consumer_phone': '+919967275672', 'time': '2045-10-12T11:10:00-05:00', 'created': '2023-02-28T01:51:21.737007-05:00', 'price': 50, 'expert_earnings': 50, 'fair_price': 50, 'currency': { 'code': 'USD', 'currency': 'United States Dollar', 'display_text': '$' }, 'ip_address': '127.0.0.1', 'service': { 'id': 2413, 'title': 'Ethereum verification', 'type': 1 }, 'answers_json': [ { 'answer': 'test@topmate.io', 'question': 'Email' }, { 'answer': '+919967275672', 'question': 'Phone' } ], 'discount': 0, 'subscribe_to_whatsapp': True, 'document_url': None } ``` ### header TOPMATE_WEBHOOK_KEY: <key provided by you, if not provided this will not be sent What are different pricing in the above document? - `price` the price that is paid by the consumer - `expert_earnings` the money that has been earned by the user - `fair_price` In some cases we allow consumers to pay on top of the listed price. This can be enabled from the dashboard For enabling the webhook, send following details at dinesh@topmate.io The webhook url, it should accept POST request and a `webhook_key` if needed for verifying ## Action items for implementing white label solution - [ ] Provide a link to landing page on koinx website. This will be the page that would be shown when visiting https://koinx.topmate.io/ or https://*.koinx.com/. Currently we have setup a demo page on our end. (Pending from Koinx) - [ ] Confirm the subdomain that will be used. (Pending from Koinx) - [ ] Add a DNS record with following details. (Pending from Koinx) ``` Type : A Name : {sub-domain-name} Data : 143.244.200.229 TTL : 30 mins ``` Example Image. Here @ tag needs to be updated with {sub-domain-name} ![Untitled](https://topmate.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F841243e1-e6cc-4526-8aee-a8ba86c30848%2FUntitled.png?id=7218d068-ff26-412a-8123-bbcb32ebf636&table=block&spaceId=a1860ac5-fe72-402b-b4b0-55c67dbc5040&width=2000&userId=&cache=v2) - [x] Provide logo details [https://drive.google.com/drive/folders/136jCXU8ccG0DgXMeiPF_Jp3LJC_wC8yV](https://drive.google.com/drive/folders/136jCXU8ccG0DgXMeiPF_Jp3LJC_wC8yV) - [x] Provide details for all the users on this sheet. ‣ - [x] Demo setup at https://koinx.topmate.io/ - [x] Topmate will configure the network level routing and update the assets, text on white-labelled site. - [ ] Share webhook url for receiving webhook for each event. (Pending from Koinx) - [ ] Google Sheet for tracking the bookings. (Pending from Topmate) - [ ] Testing