Save request payment
POST : http://<base_url>/digipay/v3/transaction/wallet_payment_request
This API is used to save the request payment
BODY PARAMS:-
Parameter | Type | Description | Value |
---|---|---|---|
from_user_info | Json | it combines from_user user_id,user_type and userName | b9a4cbeeedd340509cb1ac628cae2973 |
to_user_id | Json | it combines to_user user_id,user_type and userName | 100 |
currency_code | String | a unique currency code used to make payment request EX:INR,USD etc | USD |
amount | Double | amount used to make payment | 100 |
wallet_id | String | unique wallet_id assigned to the user's wallet to make payment request | b9a4cbeeedd340509cb1ac628cae2973 |
note | String | brief description added at the time of making payment request | test |
currency_id | String | unique currency_id assigned to the user's wallet to make payment request | b9a4cbeeedd340509cb1ac628cae2973 |
user_bank_id | String | unique user_bank_id assigned to the user's wallet to make payment request | b9a4cbeeedd340509cb1ac628cae2973 |
HEADERS:-
Parameter | Type | Description | Value |
---|---|---|---|
Authorization | String | It is a combination of type and token to authenticate user for the given token | Token duik7309njdlkhdauhknksadhjkas986876sd873j |
CompanyID | String | Company_id is a unique primary id, that is represent company detail | 76bc712200ca444fa334f9e55e5fd7a8 |
Request Body:-
Request Example
curl --request POST \
--url http://192.168.1.102:8014/digipay/v3/transaction/wallet_payment_request \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"currency_code": "USD",
"amount": 100,
"wallet_id": "b9a4cbeeedd340509cb1ac628cae2973",
"note": "test",
"currency_id": "b9a4cbeeedd340509cb1ac628cae2973",
"user_bank_id": "b9a4cbeeedd340509cb1ac628cae2973"
}
'
Response:-
Response 200(OK)
{
"success": 1,
"error": [],
"data": {
"message": "Payment request made successfully."
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}
RESPONSES :-
Status Code | Description |
---|---|
200 | OK |
400 | BAD REQUEST |
404 | NOT FOUND |
500 | INTERNAL SERVER ERROR |