Orders
CANCEL Order
to cancel an order, post with the order id with your private key from your server this will keep the details of an order around, but will disallow any further payments added to it { "tab" "examples", "url" "https //test api featherpay io/api/v1/orders/{orderid}/cancel", "name" "cancel order", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "9ec lgwx45zlcr vuhnip", "code" "\[]", "language" "200", "customlabel" "" }, { "id" "heatsmobtjprlyatkfbh0", "code" "{\n \\"suberrors\\" \[],\n \\"message\\" \\"must remove all payment methods before cancelling the order\\"\n}", "language" "412", "customlabel" "" } ], "selectedlanguageid" "heatsmobtjprlyatkfbh0" }, "examples" { "languages" \[ { "id" "pfc138rtnf7ft8irnnhcm", "code" "curl x post \\\\\n url 'https //test api featherpay io/api/v1/orders/\ orderid/cancel' \\\\\n header 'content type application/json;charset=utf 8' \\\\\n header 'accept application/json' \\\\\n header 'x api key {secret api key}' \\\\\n header 'x store id {store ulid}' \\\\\n data '{}'", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "pfc138rtnf7ft8irnnhcm" }, "description" "cancel an order by its id", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }