This document provides a comprehensive reference for the RESTful web services related to the payment backend system. It details available API endpoints, request and response formats, expected behaviors, and error handling.
Logs in a user using email and name.
/auth/login
https://api.credett.com
Content-Type: application/json
Bearer {token}
{
"email": "example@gmail.com",
"name": "John Doe"
}
{
"status": "success",
"message": "User logged in successfully",
"token": "jwt-token-string"
}
Status Code | Message |
---|---|
400 | Invalid email or name |
401 | Unauthorized access |
Retrieves all tokens available for the user.
/txn/get-all-tokens
https://api.credett.com
{
"tokens": [
"token1",
"token2"
]
}
Checks if the server is running.
/
{
"status": "running"
}
Creates a new API for a merchant.
/merchant/createapi
{
"mid": 1,
"tokenids": "1",
"wallet": "0xD7b126d15d3d158dF7a7A90040F5839567C09320"
}
Creates a token for a specific network.
/merchant/createtoken
{
"networkid": 80002,
"networkname": "AMOY CHAIN",
"tokenname": "USDT"
}
Generates an invoice for a transaction.
/txn/generateinvoice
{
"api": "93ed9cc18019c813be0aa402161a3adb",
"amount": "10",
"networkid": "11155111"
}
Checks the status of a transaction.
/txn/get-txn-status
{
"order_id": "1"
}
©2025, Credett. All rights reserved.