Update Subscription
Updates an existing subscription. All fields are optional; only provided fields will be updated.
Business Rules
Update a subscription
Resource URL:
https://api.sandbox.irembopay.com/subscriptions/{subscription_identifier}https://api.irembopay.com/payments/subscriptions/{subscription_identifier}Name
Value
Name
Type
Mandatory?
Comment
Request body
Field
Type
Mandatory
Comment (Description)
Response body payload
Field
Type
Mandatory
Comment (Description)
Error codes
HTTP Status
Code/Key
Comment (Description)
Open API Sample
Authorizations
X-IREMBOPAY-AUTHORIZATIONstringRequired
Path parameters
identifierstringRequired
Subscription identifier (e.g., SU-ABC12345)
Header parameters
X-API-VersionstringRequiredDefault:
API version number (e.g., 2)
2Body
planIdentifierstringRequiredExample:
Plan identifier (e.g., PL-2A1YFJVI)
PL-2A1YFJVIplanPricestringRequiredExample:
Plan price with currency (e.g., "30,000.00 RWF")
30,000.00 RWFoccurrenceinteger · nullableOptional
Number of billing cycles (occurrences) for the subscription
endDatestring · date · nullableOptionalExample:
Subscription end date (can be null for indefinite). Either endDate or endDateTime can be provided, but not both.
2024-12-31endDateTimestring · date-time · nullableOptionalExample:
Subscription end datetime (can be null for indefinite). Either endDate or endDateTime can be provided, but not both.
2024-12-31T23:59:59Responses
200
Subscription updated successfully
application/json
400
Bad request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not found
application/json
409
Conflict
application/json
500
Internal server error
application/json
put
/subscriptions/{identifier}Last updated