Skip to main content
The payment/paypalonboarding endpoint provides a REST interface for managing PayPal onboarding processes in the shop system. It supports creating, retrieving, updating and deleting onboarding entries, generating the PayPal action URL required for the flow, and processing the PayPal return (return URL).

Supported methods

List of all supported methods.

PayPal onboarding process

Data fields of an entry

Example

Methods for PayPal onboarding

This section describes the endpoints for managing individual PayPal onboarding entries.

GET payment/paypalonboarding

This endpoint can be used to load a list of existing onboarding entries for the current shop. Search and filter parameters from the request are taken into account and limited to deleted=false. If the request contains the indication of a PayPal return (PPact=finish), the return data is processed first. To use it, read permissions for PayPal onboarding data are required.

Example

Response

Filter fields

id, updatedAt, status, emailConfirmed, permissionsGranted, mode, deleted

Sort fields

updatedAt, createdAt, id, shop, merchantId, accountType, status, mode, emailConfirmed, email, consentStatus, permissionsGranted

Error codes

GET payment/paypalonboarding/{id}

This endpoint can be used to retrieve a single onboarding entry by its ID for the current shop. To use this endpoint, read permissions for PayPal onboarding data are required.

Example

Response

Error codes

GET payment/paypalonboarding/{id}/url

This endpoint can be used to directly request the current PayPal action URL for a tracking ID. The URL is intended to start the PayPal onboarding flow and contains the configured return URL of the shop. To use this endpoint, write permissions for PayPal onboarding data are required.

Example

Response

Error codes

POST payment/paypalonboarding

This endpoint can be used to create a new onboarding entry. The tracking ID is built from a timestamp, shop ID and a sequential number; the operating mode (Production/Test) is determined from the configuration. The generated { "trackingId": "…" } is returned as the result. To use this endpoint, create permissions for PayPal onboarding data are required.

Example

Request body

Response

Error codes

PUT payment/paypalonboarding/{id}

This endpoint can be used to update an onboarding entry or — if no merchant ID is yet available — to query the PayPal action URL for starting the onboarding. Without merchantIdInPayPal, the endpoint returns the action URL ({ "acturl": "…" }). With merchantIdInPayPal, the account/integration status is queried at PayPal, relevant fields (e.g. email confirmation, payment capability, scopes) are taken over and a corresponding internal status is set; the result is the updated entry as JSON. To use this endpoint, write permissions for PayPal onboarding data are required.

Query parameters

merchantIdInPayPal – (optional) PayPal merchant ID. If specified, the account status is queried at PayPal and the entry is updated. If not specified, the action URL is returned instead.

Example

Response when no merchantIdInPayPal was provided

Response when a merchantIdInPayPal was provided

Error codes

PUT payment/paypalonboarding/{id}/checkstatus

This endpoint receives return data from PayPal (return URL), logs it and assigns it to the corresponding onboarding entry. The provided query parameters are stored; the valid account status is then queried via the PayPal API, persisted in the entry, and the updated entry is returned as JSON. To use this endpoint, write permissions for PayPal onboarding data are required.

Query parameters

commonid – shop ID
merchantId – tracking ID of the entry
merchantIdInPayPal – PayPal merchant ID
accountStatus – account status
consentStatus – consent status (“true”/“false”)
isEmailConfirmed – email confirmed (“true”/“false”)
permissionGranted – permissions granted (“true”/“false”)

Example

Response

Error codes

DELETE payment/paypalonboarding/{id}

This endpoint marks an existing onboarding entry as deleted by its ID (soft delete). The entry remains in the database, but is given a deletion timestamp and no longer appears in the list. The request returns the updated list in the response body. To use this endpoint, delete permissions for PayPal onboarding data are required.

Example

Response

Error codes

Support

Bei technischen Fragen und Hilfestellungen ist unser Support-Team für Sie erreichbar: Zum Kundenportal Bitte senden Sie uns eine möglichst detaillierte Beschreibung sowie Screenshots, Requests/Antworten, damit wir Ihre Anfrage zeitnah und zielführend beantworten können.