Update mail item

Mark the item read/unread and/or move it into a folder

Authentication

AuthorizationBearer

Your API key, sent as Authorization: Bearer usgmk_live_… in production or usgmk_test_… in the sandbox.

Path parameters

idstringRequired

Request

This endpoint expects an object.
is_readbooleanOptional
folder_idstring or nullOptionalformat: "^\d+$"
Move the item to this folder. Pass null to remove it from its folder.

Response

idstring

Mail item id (numeric string).

is_readboolean
mail_statusstring
Lifecycle status as reported by the mailroom.
mail_typestring
mail_type_labelstring

Human-readable form of mail_type (e.g. “Large Letter”).

measurementobject
Item dimensions, in inches.
weightdouble
Item weight, in pounds.
has_storage_chargesboolean
Whether the item is currently accruing storage charges.
sender_namestring or nullOptional
recipient_namestring or nullOptional
arrival_datedatetime or nullOptional
When the item arrived at the facility.
envelope_image_urlstring or nullOptional

Photo of the item/envelope.

quarantine_reasonstring or nullOptional
scanobject or nullOptional
The scan requested for this item, when one exists.
tracking_numberstring or nullOptional
Inbound carrier tracking number, when one was captured.
sender_addressstring or nullOptional
folderobject or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error