BNPL Postman Collection

🟒 GET /health

Request:

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

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


πŸ” POST /merso-user-approval

Request:

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

Body:

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

πŸͺ™ POST /merso-buy-token

Request:

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

Body:

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

πŸ’΅ POST /merso-buy-token-with-fiat

Request:

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

Body:

{
  "tokenPriceInUSD": "PRICE_IN_USD",
  "tokenId": "1",
  "tokenName": "NFT_NAME"
  "userAddress": "VALID_USER_ADDRESS",
  "userEmail": "VALID_USER_EMAIL"
  "collectionAddress": "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