Open a subscription (flag: recurring; test keys always)
Authentication: Merchant key in x-wavepay-service-key
Parameters
| Name | In | Required | Type |
|---|
Idempotency-Key | header | yes | string |
Body (JSON)
| Field | Type | Required |
|---|
productId | string | yes |
planId | string | yes |
provider | paynow | paynow-mobile | paypal | yes |
email | string | yes |
phone | string | no |
externalSubject | string | yes |
collection | automatic | invoice_and_remind | no |
method | string | no |
Responses
| Status | Meaning |
|---|
| 201 | OK |
| 403 | FEATURE_DISABLED (flag off for live money) or MERCHANT_SCOPE |
Example
curl -sX POST https://t3rnel-wavepay-production.t3ratech.workers.dev/v2/internal/subscriptions \
-H 'x-wavepay-service-key: mk_live_…' \
-H 'content-type: application/json' \
-d '{"productId":"…","planId":"…","provider":"paynow","email":"…","phone":"…","externalSubject":"…","collection":"automatic","method":"…"}'