# Payment query request Query a payment Endpoint: GET /api/payments/{linkData} Version: 2024-06-01 Security: BasicAuth ## Path parameters: - `linkData` (string, required) ## Header parameters: - `WP-Api-Version` (string, required) The API version Enum: "2024-06-01" ## Response 200 fields (application/json): - `lastEvent` (string) The last event received for the payment Enum: "authorizationRequested", "authorizationSucceeded", "authorizationRefused", "authorizationFailed", "authorizationTimedOut", "settlementRequested", "settlementRequestSubmitted", "settlementFailed", "settlementTimedOut", "refundRequested", "refundRequestSubmitted", "refundFailed", "refundTimedOut", "cancellationRequested", "cancellationRequestSubmitted", "cancellationFailed", "cancellationTimedOut", "reversalRequested", "reversalRequestSubmitted", "reversalFailed", "reversalTimedOut" - `_actions` (object) - `_actions.cancelPayment` (object) Cancel the payment. See [details](../manage-payments/cancel) - `_actions.cancelPayment.href` (string) - `_actions.cancelPayment.method` (string) - `_actions.partiallySettlePayment` (object) Partially settle the payment. See [details](../manage-payments/partialsettle) including what to add in the request body. - `_actions.settlePayment` (object) Fully settle the payment. See [details](../manage-payments/settle) - `_actions.refundPayment` (object) Fully refund the payment. See [details](../manage-payments/refund) - `_actions.partiallyRefundPayment` (object) Partially refund the payment. - `_actions.reversePayment` (object) Reverse the payment. See [details](../manage-payments/reversal) ## Response 400 fields (application/json): - `errorName` (string) - `message` (string) - `jsonPath` (string) - `validationErrors` (array) ## Response 404 fields (application/json): - `errorName` (string) - `message` (string) ## Response 500 fields (application/json): - `errorName` (string) - `message` (string)