Activate Draft Order
1 min
POST
https://api.nue.io/orders/{draftOrderId}
draftOrderIdstringThe id of the preview draft order.
acceptstringGenerated from available response content types
bodyobject
201Created
207<p>Multi-Status — order activated but payment failed. Returned when processPayment is true, cancelOnPaymentFail is false, and payment processing fails. The order and subscriptions are committed; payment must be retried separately.</p>
curl --request POST \
--url https://api.nue.io/orders/{draftOrderId} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"options": {},
"orderProducts": [
{
"id": ""
}
],
"paymentMethodObject": {
"externalPaymentMethodId": "",
"name": "",
"paymentMethodType": "",
"paymentSystem": "",
"autoChargeEnabled": ""
}
}'