BNPL Postman Collection

🟒 GET /health

Request:

GET https://api3.dev.merso.io/health

Description: Health check endpoint to verify the service is running.


πŸ” POST /user-approval

Request:

POST https://api3.dev.merso.io/user-approval
Authorization: Bearer <token>
Content-Type: application/json

Body:

{
  "userAddress": "VALID_USER_ADDRESS",
  "userEmail": "user@email.com",
  "gameTokenAddress": "YOUR_GAME_ERC20_ADDRESS",
  "tokenPrice": "PRICE_IN_WEI",
  "collectionAddress": "YOUR_GAME_NFT_COLLECTION_ADDRESS"
}

πŸͺ™ POST /buy-token-with-merso

Request:

POST https://api3.dev.merso.io/buy-token-with-merso
Authorization: Bearer <token>
Content-Type: application/json

Body:

{
  "userAddress": "VALID_USER_ADDRESS",
  "tokenId": "1",
  "tokenPrice": "PRICE_IN_WEI",
  "nftCollectionAddress": "YOUR_GAME_NFT_COLLECTION_ADDRESS"
}

πŸ›‘οΈ POST /auth

Request:

POST https://api3.dev.merso.io/auth
Content-Type: application/json

Body:

{
    "game_id": "YOUR_GAME_ID",
    "api_key": "YOUR_API_KEY"
}

πŸ’° GET /user-loans

Request:

GET https://api3.dev.merso.io/user-loans?userEmail=USER_EMAIL
Authorization: Bearer <your_jwt_token>

Query parameters:

userEmail: USER_EMAIL 

Last updated