# Confirm payment Create a confirm payment request for smart button functionality. Endpoint: POST /apmPayments/{paymentId}/confirmations Version: 2024-07-01 Security: BasicAuth ## Path parameters: - `paymentId` (string, required) The identifier of the payment resource. ## Header parameters: - `WP-Api-Version` (string, required) The API version. Enum: "2024-07-01" ## Response 201 fields (application/json): - `paymentId` (string) The identifier of the payment resource. - `lastEvent` (string) Enum: "authorized", "cancelFailed", "cancelled", "cancelRequested", "sentForSettlement", "sentForAuthorization", "settlementFailed", "chargebackReversed", "chargedBack", "disputeExpired", "disputeFundsHeld", "disputeFundsReleased", "disputeReserveReleased", "error", "expired", "disputeInformationRequested", "disputInformationSupplied", "miscellaneous", "pending", "refunded", "refundExpired", "refundFailed", "refundReversed", "refused", "refusedByIssuer", "requestExpired", "sentForRefund", "settled", "settlementReversed", "cancelledByCustomer", "signedFormReceived", "unknown", "manuallyAmended" - `_links` (object) Links to resources related to the request. - `_links.self` (object) The URL you can invoke to fetch the last event for the payment. - `_links.self.href` (string) - `_actions` (object) ## Response 400 fields (application/json): - `errorName` (string) - `message` (string) - `validationErrors` (array) ## Response 401 fields (application/json): - `errorName` (string) - `message` (string) ## Response 404 fields (application/json): - `errorName` (string) - `message` (string) - `validationErrors` (array) ## Response 500 fields (application/json): - `errorName` (string) - `message` (string)