Amount Update API
This API allows you to update the subscription amount for a specific subscription identified by {{SUBSCRIPTION_ID}}. To use this functionality, send a PUT request to the provided URL with the relevant Bearer Token in the request header and include the new amount_cents value in the request payload. This API is useful for adjusting subscription billing amounts as needed.
Amount Update API Request:
URL: https://accept.paymob.com/api/acceptance/subscriptions/{{SUBSCRIPTION_ID}}
Method: PUT
Source: Merchant's server
Recipient: Accept's server
Authentication: Bearer Token {auth token}
Parameter | Description | Mandatory |
---|---|---|
amount_cents | The new subscription amount in cents. | Yes |
Example request data:
{
"amount_cents":200
}
Example response data:
{
"id": 4,
"client_info": {
"full_name": "Clifford Nicolas",
"email": "[email protected]",
"phone_number": "+86(8)9135210487"
},
"frequency": 7,
"created_at": "2023-12-04T12:27:56.206886",
"updated_at": "2023-12-04T12:27:56.206902",
"name": "Test Subscription",
"reminder_days": 3,
"retrial_days": 3,
"plan_id": 3,
"state": "active",
"amount_cents": 200,
"starts_at": "2023-12-04",
"next_billing": "2023-12-11",
"reminder_date": "2023-12-08",
"ends_at": null,
"resumed_at": null,
"suspended_at": null,
"integration": 3381753,
"initial_transaction": 148370208
}
Updated 5 months ago