Create Credits
This endpoint allows you to create and add credit to a specific User's wallet
Credit will be added to the specified users name
POST https://example.com/wp-json/rimplenet/v1/credits
Request Body
Name
Type
Description
wallet_id*
String
Id of wallet about to be funded
amount*
int
Enter desired amount
request_id *
any
A unique identifier for this transaction
user_id *
int
id of user to be credited
note
String
Add some note
{
"status_code": 200,
"status": true,
"message": "Transaction Completed",
"data": {
"transaction_id": 457,
"user_id": 163
}
}{
"status_code": 400,
"status": false,
"message": "invalid input",
"error": {
"user_id": "user_id cannot be zero",
"wallet_id": "Field Cannot be empty",
"request_id": "Field Cannot be empty",
"amount": "Field Cannot be empty"
}
}{
"status_code": 404,
"status": false,
"message": "Invalid User credentials",
"error": [
"Unable to reach 800"
]
}{
"status_code": 409,
"status": false,
"message": "Transaction already exists",
"error": {
"txn_id": "456",
"exist": "Transaction already executed"
}
}// Some code{
"status_code": 400,
"status": false,
"message": "invalid input",
"error": {
"request_id": "Field Cannot be empty",
"amount": "Field Cannot be empty"
}
}{
"status_code": 404,
"status": false,
"message": "Invalid User credentials",
"error": [
"Unable to reach 800"
]
}{
"status_code": 409,
"status": false,
"message": "Transaction already exists",
"error": {
"txn_id": "456",
"exist": "Transaction already executed"
}
}Last updated