← API Index
/api/wero/confirm1
Confirm consent and capture a Wero payment that has no associated shop order (see /api/client/wero/transaction1's orderless path). Requires an API-role executor with the API_WERO_ACCESS permission.
Parameters
| Name |
Description |
Type |
| paymentId |
the Wero payment id returned by /api/client/wero/transaction1 (required) |
string |
| oo-rf |
optionally define the response-format for this call. One of: compact (default) | compacts | full | fulls | json | md | html | js | openapi | yaml |
String |
| oo-auth |
optionally force the API to check against the role (instead of silently not returning data). For guests or public access, the default is -1. 0 (regular customer) and above define the role for which the current session is expected to be authorized. |
int |
Error Responses
| HTTP Status |
Error Code |
Description |
| 401 |
not_auth |
Caller is not an API-role executor, or lacks the API_WERO_ACCESS permission |
| 400 |
parameter_error |
paymentId missing |
| 404 |
not_found |
No Wero payment found for the given paymentId |
| 409 |
wero_pending |
Consent is still pending at the bank - retry shortly |
| 409 |
wero_denied |
Consent was explicitly denied/failed at the bank |
| 409 |
wero_error |
Could not verify consent or capture the payment (network/upstream failure) |
Response Types
| Type |
Version |
Description |
| WeroConfirm |
1 |
Result of confirming consent and capturing a Wero payment that has no associated shop order. |
OpenAPI
See confirm1.yaml
Referenced in skills