commerce
POST /v1/orders/{orderId}/paypal-subscription
Pay an order with ONE PayPal approval that also renews its subscriptions.
Authentication
Send an API key as a bearer token. The endpoint checks billing.payment.manage; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/orders/{orderId}/paypal-subscription \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
The one-approval checkout (V1 parity). Opens one PayPal subscription agreement for an order with exactly one recurring line: the one-off part of the order is the agreement's setup fee and the recurring part is cycle 1, so the buyer approves once and PayPal collects the whole order at activation and renews the recurring part after. The order is settled by the BILLING.SUBSCRIPTION.ACTIVATED webhook (once, however often PayPal redelivers it) and its subscriptions are created on the PayPal rail, so the engine never bills them a second time. Idempotent per order: a reload returns the same approval link. Account credit is not applied on this path, and nothing is charged by this call.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
orderId (path) | Uuid | Yes | The order's id. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
approve_url | string | Yes | PayPal's approval page for this agreement. |
paypal_subscription_id | string | Yes | PayPal's agreement id (I-…). |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429 · 503