fulfillment:writeNEW-GAP-RERATE-SHIPPING-CHARGE-DELTA-WORKFLOW (2026-05-16). Reuben verbatim: “customer pays overnight”. Use case: customer originally chose Ground (45). After the operator re-rates and buys a new label, this endpoint settles the cost delta.
Three actions on the package’s active (non-voided) label:
recharge — update orders.shipping_total to the new carrier cost,
post a GL revenue delta (DR AR / CR shipping_income for delta_amount),
optionally charge the customer’s saved Stripe card via payment_method_id.absorb — log the absorbed cost; leave orders.shipping_total and GL unchanged.manual — flag for offline handling; no GL/total change.Idempotent: one shipping_delta JE per label, ever. Re-calling with the
same label_id returns { idempotent: true } with no side effects.
Soft-fail on Stripe decline: when payment_method_id is supplied and the
card declines, the GL delta and shipping_total update have already
committed; the response carries charge_status: 'declined' so the caller
can offer the customer a hosted-checkout payment link.
Delegates to canonical helper createShippingDeltaCharge in
arcus-api-core/utils/shipping-recharge-helpers.mjs.
Documentation Index
Fetch the complete documentation index at: https://docs.arcuserp.com/llms.txt
Use this file to discover all available pages before exploring further.
API key issued per entity via Settings > Developers > API Keys.
Each key carries scopes (e.g. orders:read, products:write).
Bearer token format: Authorization: Bearer ark_live_ent_Test keys use ark_test_ent_. Both are issued per entity
via Settings > Developers > API Keys.
Client-generated unique key for idempotent POST/PATCH/DELETE operations. Alias for the Idempotency parameter. Max 255 chars. On retry with the same key, the original response is returned without re-executing the operation. Keys expire after 24 hours.
255What to do with the cost delta. recharge bills the
customer (requires payment_method_id for in-API Stripe
charge). absorb logs but does not move money. manual
flags for offline handling.
recharge, absorb, manual Optional explicit label id. When omitted, the active (non-voided) label on the package is used.
Saved Stripe payment method to charge for the delta. Only
honored when action='recharge' and the carrier cost
exceeds what the customer was charged. Soft-fails on
decline.
When true (default) and action='recharge', updates
orders.shipping_total to match the new carrier cost
and re-flows totals via recalculateOrderTotals.
Optional human note recorded on the activity log entry and (for the recharge branch) on the Stripe charge description.
Delta processed