Channel Manager - eventers/Eventers-Marketplace-Backend GitHub Wiki

This is be wiki page giving information to marketplace to connect and fetch their user information and account addresses. This will enable multiple features on top of Algorand with the ease of user custodial and management system.

All the marketplace with their access key will be part of the marketplace table and all their users will be part of user_marketplace table.

Vault

In Vault mapping is referenced in a folder format so - Mapping in the Vault will be done via the mobile number (country code + phone number).

User creation for marketplace

Connect API for user creation via the marketplace.

  • URL

    /marketplace/user/connect

  • Method:

    POST

  • Data Params

   "data":{

      "user_marketplace":{
         "phone_number":"",
         "phone_country_code":"",
      },

      "auth":{
         "access_key":"",
      }

   }

Success Response:

MOBILE

  • Code: 200
    Content:
   "data":{

   "user_marketplace":{
         "user_id":"",
          "phone_number":"",
          "phone_country_code":"",
      }

      "auth":{
         "status":"OTP_SUCCESSFULLY_SEND",
      }

   }

Verification

Connect API for the marketplace for OTP verification.

  • URL

    /marketplace/user/verifyotp

  • Method:

    POST

  • Data Params

   "data":{

      "user_marketplace":{
         "user_id":"",
         "phone_number":"",
         "phone_country_code":"",
      },

      "auth":{
         "access_key":"",
         "otp" : ""
      }

   }

Success Response:

MOBILE

  • Code: 200
    Content:
   "data":{

      "user":{
         "user_id":"",
         "account_address":"",  
         "account_passphrase":"",  
         ....
      }
   }
⚠️ **GitHub.com Fallback** ⚠️