POST /V1/carts/mine/payment-order
POST /V1/carts/mine/payment-order is a Magento 2 REST endpoint in the PaymentServicesPaypal module. Create a payment order for logged in customer. Requires a customer or admin Bearer token (whichever owns the resource).
Last verified: against Magento 2.4.9.
Returns
Magento\PaymentServicesPaypal\Api\Data\PaymentOrderInterface
Service contract
Magento\PaymentServicesPaypal\Api\PaymentOrderRequestInterface::create
Authorization
Self — a customer Bearer token (when the caller owns the resource) or an admin token both work.
Body parameters
Example request
Auto-generated from the service contract — paste-ready against your store's /rest/default base. Replace the host, store code, ACL token, and any required values before running.
Headers
Path
/V1/carts/mine/payment-orderBody
{
"cartId": 0,
"customerId": 0,
"location": "",
"methodCode": "",
"paymentSource": "",
"vaultIntent": false
}Related in PaymentServicesPaypal
Other endpoints shipped by the same module.
/V1/carts/mine/payment-order/:id
SelfGet payment order for logged in customer
PaymentServicesPaypal · Magento\PaymentServicesPaypal\Api\PaymentOrderRequestInterface::get
/V1/carts/mine/payment-order/:id
SelfSync payment order for logged in customer
PaymentServicesPaypal · Magento\PaymentServicesPaypal\Api\PaymentOrderRequestInterface::sync
/V1/guest-carts/:cartId/payment-order
AnonymousCreate a payment order for guest customer
PaymentServicesPaypal · Magento\PaymentServicesPaypal\Api\PaymentOrderRequestInterface::createGuest
/V1/guest-carts/:cartId/payment-order/:id
AnonymousGet payment order for guest customer
PaymentServicesPaypal · Magento\PaymentServicesPaypal\Api\PaymentOrderRequestInterface::getForGuest
/V1/guest-carts/:cartId/payment-order/:id
AnonymousSync payment order for guest customer
PaymentServicesPaypal · Magento\PaymentServicesPaypal\Api\PaymentOrderRequestInterface::syncForGuest
/V1/payment-order/completeOrder
AnonymousRest API endpoint to place an order
PaymentServicesPaypal · Magento\PaymentServicesPaypal\Api\CompleteOrderInterface::execute
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.