# Create an APM payment Perform a sale. Endpoint: POST /apmPayments Version: 2024-07-01 Security: BasicAuth ## Header parameters: - `Content-Type` (string, required) The content type of the request body. Enum: "application/json" - `WP-Api-Version` (string, required) The API version. Enum: "2024-07-01" ## Request fields (application/json): - `transactionReference` (string, required) For Bizum transaction please follow this extra regex [a-zA-Z0-9]{4,12} - `merchant` (object, required) - `merchant.entity` (string, required) Used to route the request in Access Worldpay, created as part of on-boarding. Example: "default" - `instruction` (object, required) Object that contains the payment type and details. - `instruction.method` (string, required) Identifies the type of payment. More payment types are available on version 2023-06-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) - `_actions.reverse` (object) Link to resources to reverse operation. - `_actions.reverse.method` (string) - `_actions.partialReverse` (object) Link to resources to reverse operation. - `_actions.settle` (object) Link to resources to reverse operation. - `_actions.partialSettle` (object) Link to resources to reverse operation. - `_actions.confirmPayment` (object) Link to resources to reverse operation. - `redirect` (string) The URL to redirect your customer to. - `paymentInstrument` (object) - `paymentInstrument.type` (string) - `paymentInstrument.sdkReference` (string) SDK token used for PayPal Smart Button flow - `commandId` (string) An action ID generated by us identifying a single merchant interaction Example: "cmdYNdIHBPJwbkjLiykzTx0" ## Response 400 fields (application/json): - `errorName` (string) - `message` (string) - `validationErrors` (array) ## Response 401 fields (application/json): - `errorName` (string) - `message` (string) ## Response 500 fields (application/json): - `errorName` (string) - `message` (string)