commerce

POST /v1/orders/{orderId}/paypal/local

Open a PayPal order paid by a regional bank method and return the bank's page.

All commerce endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

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

NameTypeRequiredWhat it is
orderId (path)UuidYesThe order's id.

Request body

NameTypeRequiredWhat it is
methodstring<ideal, bancontact, eps, blik, p24>Yes—

Response

NameTypeRequiredWhat it is
paypal_order_idstringYes—
redirect_urlstringYesPayPal's payer-action link (the bank's page).

Errors this endpoint can return

401 · 403 · 404 · 409 · 422 · 429 · 503