Remove an attachment

DELETE /api/v1/inbound-shipments/:id/attachments/:attachmentId write:inbound_shipment

Removes an attachment from a package: it disappears from attachments[] and its download link stops being issued. Allowed in any status. Removing one that is already gone, or was never yours, is a 404.

The runner below targets attachment 0, which is never a valid id, so pressing Run cannot remove anything: put a real attachment id in the path when you call this yourself.

Try it DELETE /api/v1/inbound-shipments/0/attachments/0 write

These inputs are shared across all docs pages, so an id entered here carries over.

response

Not run yet. Press Run to make a live call against https://service.rip.fun (through this demo's server-side proxy; the API key never reaches the browser).

curl (tracks the inputs above)
curl -X DELETE 'https://service.rip.fun/api/v1/inbound-shipments/0/attachments/0' \
  -H 'X-API-Key: rip_…'

Response fields (data)

FieldDescription
attachment_id / deletedThe id you removed, and true

Errors

StatusCodeWhen
400invalid ideither id is not a positive integer
404not foundno such live attachment on that shipment of yours

See Errors for the response envelope and the full code list.