Charge Subscription Payment
Doing charge for this subscription / MIT
Endpoint Information
Name: Charge Subscription Payment
Method: POST
URL: {{base_url}}/api/v1/subscriptions/charge
Authentication
Type: Basic Auth
- Username: App Key
- Password: Secret Key
Request Body
Content-Type: application/json
{
"merchantAccountId": "{{your_account_no}}",
"subscription_id": "03cdef06-1ae1-44c0-b674-eabdf30f6c20",
"amount": 100 //optional
}
Response
Success Response
{
"success": true,
"message": "Processing",
"data": {
"reference": "11-DuqXNBv0-012||20",
"subscription_id": "ed86a142-2e81-4e3a-ad98-a99b18931a15",
"status": "active",
"amount": "50",
"payment_status": "processing"
}
}
Failed Response
{
"success": false,
"message": "failed.",
"data": {
"subscription_id": "03cdef06-1ae1-44c0-b674-eabdf30f6c20",
"amount": "10.10"
}
}