Contents
On this page
Resume Held Sale - Plugixa POS for WooCommerce
DELETE /plugixa-pos/v1/held-carts/{id}
Take a held cart back: it is deleted and returned in one step, so two registers cannot resume the same cart.
Needs a user with the plugixa_pos_sell capability (signed in with an Application Password, or the login cookie with an X-WP-Nonce header). Administrators hold it; other roles only when you grant it. The user must also be allowed to use the register (register access).
Request
DELETE https://your-site.example/wp-json/plugixa-pos/v1/held-carts/12?register_id=1
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The held cart’s id |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
register_id |
integer |
Yes | The register resuming it. It must be in the same store. |
Responses
200 OK. data is the held cart, fields as in List Held Sales.
{
"success": true,
"data": {
"id": 12,
"register_id": 1,
"label": "Lady in the green coat",
"cashier": "Emma Laurent",
"cart": {
"lines": [
{
"product_id": 3800,
"variation_id": 3801,
"qty": 1
}
]
},
"created_at": "2026-11-19 14:20:11"
}
}
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_pos_no_register |
No register with that id. |
403 |
plugixa_pos_register_forbidden |
The register is missing or archived, or the user may not use it. |
404 |
plugixa_pos_not_found |
The cart was already resumed, or belongs to another store. |
Plus the errors every endpoint can return.
Examples
curl -s -X DELETE "https://your-site.example/wp-json/plugixa-pos/v1/held-carts/12?register_id=1" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-pos/v1/held-carts/12?register_id=1');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_USERPWD => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-pos/v1/held-carts/12?register_id=1', {
method: 'DELETE',
headers: {
'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
},
});
const { data } = await response.json();
Quick Links
Share