Dansk

Ingen beskrivelse i specifikationen.

2 operationer
POST /patron/{patronId}/payment/finalize FinalizePayment

Finalize Payment

Finalize payment, mark fees as paid. Multiple calls to finalize payment with the same payment ID will return the same confirmation ID, and the FinalizeFeeStatus will be 'registered' (provided, of course, that the previous call also resulted in status 'registered'). If in the configuration, payment->initialize->state is `use_initialize` and the initialize endpoint has not been called (e.g. if the order ID is not created), finalize returns the error code 300005. This also means that `orderId` is required in the request if payment->initialize->state is `use_initialize`. Multiple calls to finalize payment with the same payment ID will return the same confirmation ID for a minimum of 48 hours. If finalize is called a second time with the same payment ID, and any information in the request has changed, finalize returns the error code 300301.

Parametre

patronIdpåkrævet
path · stringPatron ID from authentication
Fælles for operationerne: version. Se den fælles kontrakt på versionssiden.

Request body

application/json · påkrævet

FinalizePaymentRequestBody

Svar

Fejlsvar: 400 · 401 · 404 — Se den fælles kontrakt på versionssiden.
POST /patron/{patronId}/payment/initialize InitializePayment

Initialize payment

This validates that the method can be used, initializes the payment, and returns an order ID.

Parametre

patronIdpåkrævet
path · stringPatron ID from authentication
Fælles for operationerne: version. Se den fælles kontrakt på versionssiden.

Request body

application/json · påkrævet

InitializePaymentRequestBody

Svar

Fejlsvar: 400 · 401 · 404 — Se den fælles kontrakt på versionssiden.