Skip to main content
POST
Create CoworkerDelivery
A CoworkerDelivery tracks a delivery (mail, parcel, check, or other item) received on behalf of a customer at a location, along with its current processing status and the customer’s handling preference. Each delivery records who it is for (CoworkerId or ContractContactId), what it is (DeliveryType), and how the customer wants it handled (HandlingPreference). Staff can then mark the delivery through its lifecycle — processed, collected, forwarded, scanned, recycled, shredded, or returned to sender — with corresponding timestamps. Handling preferences control what happens to the delivery: Deliveries can also have attached files — for example, a scanned copy of the contents (NewScannedFileDataUrl), a forwarding receipt (NewForwardedFileDataUrl), or a collection signature (NewSignatureUrl).

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the CoworkerDelivery-Create role.

Enums

Request Body

Required Fields

integer
required
ID of the business linked to this record.
string
required
Short label or description identifying the delivery item.
string
required
Physical location where the delivery is being stored (e.g. mailroom shelf).
integer
required
Type of delivery item (Mail, Parcel, Check, Publicity, or Other). Defaults to eDeliveryType.Other.

Optional Fields

integer
ID of the coworker linked to this record.
integer
ID of the contract contact linked to this record.
string
Name of the staff member who received the delivery.
string
Free-text notes about the delivery.
string
URL of a new file to upload as the file data.
boolean
Set to true to remove the current file data file.
string
URL of a new file to upload as the signature.
boolean
Set to true to remove the current signature file.
string
URL of a new file to upload as the scanned file data.
boolean
Set to true to remove the current scanned file data file.
string
URL of a new file to upload as the forwarded file data.
boolean
Set to true to remove the current forwarded file data file.
boolean
Whether the customer has collected the delivery.
boolean
Whether the customer must sign upon collection.
boolean
Whether the customer has signed for the delivery.
boolean
Whether notified is enabled.
string
Date and time the customer collected the delivery.
boolean
Whether billed is enabled.
integer
How the customer wants this delivery handled (e.g. StoreForCollection, Forward, Shred). See eDeliveryHandlingPreference? enum above.
boolean
Whether the enclosed check has been deposited.
boolean
Whether the delivery has been forwarded to the customer.
boolean
Whether the delivery contents have been scanned.
boolean
Whether the delivery has been recycled.
boolean
Whether the delivery has been shredded.
boolean
Whether the delivery is being held for customer collection.
boolean
Whether the delivery has been returned to sender.
string
Date and time the check was deposited.
string
Date and time the delivery was forwarded.
string
Date and time the delivery contents were scanned.
string
Date and time the delivery was recycled.
string
Date and time the delivery was shredded.
string
Date and time the delivery was placed in storage for collection.
string
Date and time the delivery was returned to sender.
string
ID of the forwarding address unique associated with this record.
string
ID of the check deposited product unique associated with this record.
string
ID of the forwarded product unique associated with this record.
string
ID of the scanned product unique associated with this record.
string
ID of the recycled product unique associated with this record.
string
ID of the shredded product unique associated with this record.
string
ID of the stored for collection product unique associated with this record.
string
ID of the returned to sender product unique associated with this record.
string
ID of the collected product unique associated with this record.

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the coworkerdelivery was created successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response