Saltar al contenido
SendIt está en desarrollo y todavía no opera comercialmente · SendIt is in development and not yet commercially available.
SendItdocs
English
Esc
↑↓navigate↵open⌘Jpreview
En esta página

Refunds & voids

Void unused labels and receive the full credit back to your wallet.

A refund in SendIt is a label void: voiding a label credits the net purchase amount back to your wallet.

Void a label

curl -X POST https://api.sendit.mx/v1/shipments/clxq1w2e3r4t5y6u7i8o9p0a/label/void \
  -H "X-API-Key: sk_test_..." \
  -H "Idempotency-Key: 7c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f" \
  -H "Content-Type: application/json" \
  -d '{ "reason": "CUSTOMER_REQUEST" }'

reason is optional: CUSTOMER_REQUEST, WRONG_RATE, DUPLICATE, ADDRESS_ERROR, CARRIER_ISSUE, or OTHER, plus a free note of up to 500 characters.

Voiding is allowed while the shipment is in LABEL_PURCHASED or READY_FOR_PICKUP, that is, before the carrier collects the package. The call returns a void attempt (label_void_attempt): if the carrier answers right away you get 200 with status: "succeeded"; while the outcome is still in flight you get 202 with Location and Retry-After — poll GET /v1/label-void-attempts/:id until a terminal state (succeeded or failed).

{
  "success": true,
  "data": {
    "id": "va_01J9K2M4N6P8Q0R2S4T6V8X0",
    "object": "label_void_attempt",
    "shipmentId": "clxq1w2e3r4t5y6u7i8o9p0a",
    "labelId": "clxlbl456abc789def012ghi",
    "status": "succeeded",
    "livemode": false,
    "refundAmount": "326.82",
    "currency": "MXN",
    "walletBalanceAfter": "12485.25",
    "error": null,
    "statusUrl": "/v1/label-void-attempts/va_01J9K2M4N6P8Q0R2S4T6V8X0"
  }
}

On completion:

  1. The net amount of the original charge (quoted total minus any promotion) is credited to your wallet using the original funding source.
  2. The label becomes VOIDED and the shipment moves to CANCELLED.
  3. The credit shows up immediately in GET /v1/wallet/transactions. A retry never credits twice.
status Meaning
pending / processing In flight — poll the statusUrl
succeeded Voided and refunded
failed Could not be voided — error explains why
action_required The outcome could not be resolved automatically. Keep the attempt id and stop blind retries: the operation may resume after reconciliation

Cross-state rules with insurance

Labels with an open insurance claim can’t be voided, and a pending void blocks new claims:

Code When How to resolve it
CLAIM_PENDING_NO_REFUND_ALLOWED The shipment has an open claim (the claimId is in the response) Resolve or cancel the claim first
SHIPMENT_REFUNDED_NO_CLAIMS_ALLOWED Filing a claim on an already-voided label No insurance applies to voided labels — the cost was already refunded
CLAIM_ALREADY_OPEN An open claim already exists for the shipment Fetch the existing claim

In test mode

Voiding a test label credits the virtual balance, with no real-world effects. You can also reset the test balance with POST /v1/wallet/test/reset. See Test mode.

¿Te ha resultado útil esta página?