日本語
cURL
curl --request POST \ --url https://api-dev.paymentoptions.com/api/v1/server-to-server-interface/subscription/{subscription_id}/resume \ --header 'Authorization: <api-key>' \ --header 'x-api-key: <api-key>'
{ "success": true, "status_code": 200, "is_live": false, "gateway_response": { "version": "1", "type": "INFO", "message": "Subscription Updated.", "code": "INFO3000" }, "subscription_details": { "id": "664dc930-88bd-4696-8807-5e0f1fedba0b", "type": "CYCLE", "max_cycle_count": 10, "status": "ACTIVE", "completed_payment_cycle": 1, "last_payment_status": "SUCCESSFUL", "next_payment_date": "2024-11-28T01:31:29.154Z", "next_payment_cycle": 2, "subscription_plan_details": { "name": "Three weeks plan", "desc": "Billed every two days", "billing_cycle_type": "DAYS", "billing_cycle_interval": 2, "amount": 1000, "ccy": "JPY", "trial_period_duration": "", "trial_period_duration_type": "NONE", "plan_discount_percentage": 10, "plan_discount_duration": 2 }, "subscription_transaction_details": [ { "id": "359f39bd-673a-47b3-b9ec-cbd6cd313b8e", "ref": 74860, "cycle": 1, "status": "SUCCESSFUL", "transaction_date": "2024-11-26T01:31:29.000Z", "amount": 900, "ccy": "JPY", "event": "CAPTURED" } ] } }
サブスクリプション再開APIは、加盟店が以前に一時停止されたサブスクリプションを再開し、顧客の請求サイクルと関連サービスを再開することを可能にします。
認証のためのAPIキー。形式:'Basic YOUR_API_KEY_HERE'
x-api-key専用のAPIキー。
サブスクリプションのサブスクリプションID。例: 664dc930-88bd-4696-8807-5e0f1fedba0b。 サブスクリプションの一意のサブスクリプションID。
36
サブスクリプションが再開されたことを示す成功した応答。
操作が成功したかどうかを示します。
true
応答のHTTPステータスコード。
200
取引が本番環境かテスト環境かを示します。
false
ゲートウェイからの応答の詳細。
表示 子属性
サブスクリプションの詳細。