/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

(string) the Wero payment id returned by /api/client/wero/transaction1 (required)
(String) optionally define the response-format for this call. One of: compact (default) | compacts | full | fulls | json | md | html | js | openapi | yaml
(int) 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.

Error Responses

HTTP StatusError CodeDescription
401not_authCaller is not an API-role executor, or lacks the API_WERO_ACCESS permission
400parameter_errorpaymentId missing
404not_foundNo Wero payment found for the given paymentId
409wero_pendingConsent is still pending at the bank - retry shortly
409wero_deniedConsent was explicitly denied/failed at the bank
409wero_errorCould not verify consent or capture the payment (network/upstream failure)

Response Types

WeroConfirm

WeroConfirm (v1) docs

Result of confirming consent and capturing a Wero payment that has no associated shop order.

Fields (3)
#FieldTypeDescription
0actionstringthe action that was performed
1resultstringthe exit/result code of the action
2captureIdstringthe bank's capture id - only set when result is "captured"

Data (1 record)

actionresultcaptureId
ConfirmWeroTransactionnot_auth