Subscription API is intended for recurring transactions - transactions that deduct customer's funds at a pre-defined time interval. Supported payment method currently are Card Payment and GoPay (for GoPay Tokenizations).
You can perform recurring transaction by creating subscription details.
Midtrans will attempt to auto-deduct customer funds at the set time interval based on the subscription details (subscription schedule, amount, currency, and so on) created. Hence, you need not do recurring transactions manually.
API Methods
HTTP Method | Endpoint | Definition |
---|---|---|
POST | /v1/subscriptions | Create a subscription that contains all the details for creating transaction. |
GET | /v1/subscriptions/subscription_id | Retrieve the subscription details with a given subscription_id . |
POST | /v1/subscriptions/subscription_id /disable | Disable the customer's subscription. The customer will not be charged in the future for this subscription. |
POST | /v1/subscriptions/subscription_id /enable | Enable the customer's subscription. |
PATCH | /v1/subscriptions/subscription_id | Update existing subscription details. |