Transactions
Remove credit
POST
/
api
/
transactions
/
remove_credit
Authorization
Body
{
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"amount": 0,
"reciept": {},
"notes": {}
}
{
"success": true,
"transaction": {
"id": 0,
"date": "string",
"source_username": "string",
"destination_username": "string",
"amount": 0,
"type": "credit",
"completed": true,
"notes": {},
"receipt": {},
"credit_transaction_id": "string"
}
}
Authorizations
Authorizationheaderrequired
string
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
amountrequired
number
notes
object
reciept
object
user_idrequired
string
Response
200 - application/json
success
boolean
transaction
object
{
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"amount": 0,
"reciept": {},
"notes": {}
}
{
"success": true,
"transaction": {
"id": 0,
"date": "string",
"source_username": "string",
"destination_username": "string",
"amount": 0,
"type": "credit",
"completed": true,
"notes": {},
"receipt": {},
"credit_transaction_id": "string"
}
}