Ask to void an unused label
request_label_voidFiles a request with SMKlog to void the paid shipping label behind a create_checkout_link session and refund it, for a label that will not be used (wrong address, sale called off). It only files the request: an SMKlog operator checks the carrier and then refunds the card by hand. No money moves through this tool; get_refund_status reports under_review while the request is open, then the outcome. Not cancel_checkout_link, which withdraws a link nobody has paid. Unused USPS labels are also refunded automatically after a few days without a scan.
Parameter rules:
session_id is the as_ plus UUID id from create_checkout_link.
Accepted while the session is live (30 days from its creation) and before the carrier scans the label; after a scan label_in_use.
No label yet: label_not_ready. Already refunded: already_refunded.
Repeating it returns the same request (already_requested true).
dry_run true checks eligibility and files nothing.
60 calls an hour per client, shared with get_checkout_status.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "request_label_void"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | True checks eligibility and files nothing. | |
| session_id | Yes | The session_id from create_checkout_link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | What to tell the human | |
| dry_run | Yes | True when nothing was filed | |
| order_id | Yes | SMKlog order id of the label | |
| requested | Yes | True when a request is on file | |
| session_id | Yes | The session asked about | |
| window_days | Yes | Days a session lives; a request is accepted while it does | |
| requested_at | No | When the request was filed, ISO 8601 | |
| window_closes_at | No | When the session expires and the window closes, ISO 8601 | |
| already_requested | Yes | True when it was filed by an earlier call |