commerce
POST /v1/orders/{orderId}/paypal/local
Open a PayPal order paid by a regional bank method and return the bank's page.
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/local \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "method": <string<ideal, bancontact, eps, blik, p24>> }'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
Opens a PayPal order for the named method and returns the bank page to send the buyer to. The payer's name and e-mail are the signed-in user's, never request fields. PayPal completes the order itself once the bank approves; the buyer returns to Billing as from a PayPal approval, and the signed PAYMENT.CAPTURE.COMPLETED webhook settles the order even if they never come back. Nothing is charged until the buyer approves at their bank. Account credit pays first, as on every PayPal order.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
orderId (path) | Uuid | Yes | The order's id. |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
method | string<ideal, bancontact, eps, blik, p24> | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
paypal_order_id | string | Yes | — |
redirect_url | string | Yes | PayPal's payer-action link (the bank's page). |
Errors this endpoint can return
401 · 403 · 404 · 409 · 422 · 429 · 503