shopStatus/ endpoint provides an interface that lets you check whether all prerequisites for switching a subshop to live are fulfilled. The actual status change is not performed via this endpoint but as a regular write access to the configuration.
A functional description of the three modes and the transitions between them can be found at Shop modes.
Supported methods
List of all supported methods| Command/Info | Endpoints | DELETE | GET | POST | PUT |
|---|---|---|---|---|---|
| Readiness check | shopStatus/goLive/{subshopId} |
Method for the readiness check
The following method checks whether a subshop is allowed to switch to active mode. It is read-only and does not make any changes. All active online payment methods are checked. If one of these payment methods is still in sandbox mode, it is reported as a blocker. To use this method you need the corresponding permissions to read configuration data.GET shopStatus/goLive/{subshopId}
Checks for the specified subshop whether the prerequisites for switching to “Active” mode are fulfilled.Example
Response - readiness fulfilled
Response - blocker found (payment method PayPal in sandbox mode)
Response fields
| Name | Type | Meaning |
|---|---|---|
allowed | bool | true if no blockers were found and the switch to “Active” is permitted.false if blockers were found. |
blockers | object | Only present if allowed = false. Key: technical identifier of the blocking payment method. Value: reason for blocking (e.g. sandbox). |
Error codes
| Error | Type | Reason |
|---|---|---|
| 401 Unauthorized | Not authorized. You are not logged in or you do not have the required permissions to read configuration data. |
Setting the status
This interface does not provide its own method for setting the status. The status change is performed as a regular write access to the configuration node with the body
This interface does not provide its own method for setting the status. The status change is performed as a regular write access to the configuration node with the body
{ "data": { "status": "active" } }. See API reference configuration.