Cancel Custom Envelope Order
DELETE/print-mail/v1/custom_envelopes/{id}/orders/{orderID}
Cancels the custom envelope order by orderID for the custom envelope
by id. Only orders whose status is placed can be cancelled. Note that
this operation cannot be undone.
Cancel Custom Envelope Order
curl https://api.postgrid.com/print-mail/v1/custom_envelopes/$ID/orders/$ORDER_ID \
-X DELETE \
-H "X-API-Key: $POSTGRID_PRINT_MAIL_API_KEY"{
"id": "custom_envelope_order_6qZ2LHGvyYh4h6Ud1uUctT",
"object": "custom_envelope_order",
"live": false,
"customEnvelope": "custom_envelope_iPu6EaCbSUjZN7bEW8Qhee",
"quantityOrdered": 5000,
"status": "cancelled",
"createdAt": "2021-12-16T03:23:22.617Z",
"updatedAt": "2021-12-16T03:23:22.617Z"
}Returns Examples
{
"id": "custom_envelope_order_6qZ2LHGvyYh4h6Ud1uUctT",
"object": "custom_envelope_order",
"live": false,
"customEnvelope": "custom_envelope_iPu6EaCbSUjZN7bEW8Qhee",
"quantityOrdered": 5000,
"status": "cancelled",
"createdAt": "2021-12-16T03:23:22.617Z",
"updatedAt": "2021-12-16T03:23:22.617Z"
}