v1
latestOpenAPI 3.1.02026-07-26500375.1 KBSubscriptions
Charge Subscription
The following endpoint activates a subscription with its first charge, or updates the customer's stored payment method.
post/v1/subscriptions/{id}/charge
Path parameters
idstring required
Durianpay's subscription identifier. ID that you received on Create Subscription API Response
Headers
Content-Typestring required
Indicates the media type of the resource. value: application/json
X-Request-IDstring
Optional client-supplied idempotency and tracing ID, echoed back in the response.
Request body
Example request
{
"payment_method_unique_id": "GOPAY"
}Response
Charge executed, or payment method updated (no charge).
Example response
{
"status": "success"
}