Webhook Configuration Endpoint
We recommend the configuration of a static webhook target endpoints via the merchant portal as outlined in Return URL and Instant Notification URL Configuration
Some use cases however may require the configuration and reconfiguration of this URL via an automatic process. The endpoint provided here can be used to programmatically reconfigure the:
notification callback URL and
return URL
URL | /api/order/setup |
HTTP method | PUT |
Request | |
Content-Type | application/json |
Path Params | none |
Query Params | none |
Header Params | Authorization: Bearer <access token> |
Body | CallbackURLSetupRequest - [JSON] |
Example
Request |
PUT /<path>/api/order/setup HTTP/1.1 |
Response |
HTTP/1.1 200 OK |
Data Types
Input Data Types:
Name | Type | Required | Maximum Length | Description |
returnUrl | string | Y | 255 | The URL to which the customer will be redirected once the payment has been completed on the e-Smobilpay for e-commerce portal. When invoking this URL, Smobilpay for e-commerce redirects the browser with the following URL:
|
notificationUrl | string | Y | 255 | The callback URL to which Smobilpay for e-commerce will notify your e-Shop whenever the payment status has changed. When invoking this URL, Smobilpay for e-commerce calls your server with the following enhanced notification URL:
|