Documentation Index
Fetch the complete documentation index at: https://docs.starkfi.io/llms.txt
Use this file to discover all available pages before exploring further.
When an order is disabled, it can no longer be processed in our transaction system. Therefore, if it is being used in a checkout or for a specific one-time charge, the payer will not be able to complete it.
Disable or Enable order
Make one request to control the statecurl --request POST \
--url https://api.starkfi.io/order/:order_id/toggle \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api_key>' \
Deactivated response
Activated response
{
"statusCode": 200,
"success": true,
"status": "order_deactivated",
"message": "Order deactivated successfully.",
"data": {
"id": "cmom6hg0e000201nm7dcrkgel",
"active": false
}
}
{
"statusCode": 200,
"success": true,
"status": "order_activated",
"message": "Order activated successfully.",
"data": {
"id": "cmom6hg0e000201nm7dcrkgel",
"active": true
}
}