Arrownet
8.7 Arrownet¶
Multi-Step API¶
1. User Details¶
URL: {{base_url}}/api/servicegroup/details/arrownet/
Service Params:
{
"token": "token-provided",
"username": "username"
}
Request Example:
{
"token": "your_token_here",
"username": "Pradhanang"
}
Response:
- Success:
{
"status": true,
"plan_details": [
{
"duration": 1,
"amount": "1695.00"
},
{
"duration": 3,
"amount": "5085.00"
},
{
"duration": 6,
"amount": "9492.00"
},
{
"duration": 12,
"amount": "17628.00"
}
],
"days_remaining": 464,
"current_plan": "50Mbps",
"accept_advance_payment": true,
"has_due": false,
"full_name": "Ashish Pradhanang - Home"
}
- Error:
Note: For all client errors, error_code
is 4000
.
{
"status": false,
"message": "Can't fulfill request",
"state": "Error",
"error": "client_error",
"details": "Username not found",
"error_data": {},
"error_code": "4000"
}
2. Arrownet Payment¶
URL: {{base_url}}/api/servicegroup/commit/arrownet/
Service Params:
{
"username": "username",
"amount": "amount",
"duration": "1,3,6,12", // According to Requirement
"reference": "unique value",
"token": "token provided by khalti"
}
Request Example:
{
"username": "Pradhanang",
"amount": "1695.00",
"duration": 1,
"reference": "unique_ref_123",
"token": "your_token_here"
}
Response:
- Success:
{
"status": true,
"message": "Successfully Completed Transaction",
"detail": "Transaction successful",
"extra_data": {},
"state": "Success",
"id": 1440
}
- Error:
{
"error_code": "1010",
"message": "Validation error",
"status": false,
"error_data": {
// present for validation error (codes 1010, 1011) specifying errors corresponding to fields
},
"details": "error details (string) for other errors"
}