Outbound Order Documents
Endpoints related to Outbound Order Documents.
List documents
List documents attached to an outbound order.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound order id. Copy the id from the outbound order.
query Parameters
pageThe page number to return results for
sizeThe number of elements per page. Default value may vary between endpoints
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
List documents › Responses
Success
typeDocument type. The current allowed value is OUTBOUND_CONFIRMATION.
idstatusAccess follows the parent outbound order.
nameName of the document attached to the outbound order.
descriptionAttachment list for this document, or null when none is present.
Create document
Creates a document attached to an outbound order. The response includes a presigned upload URL for each attachment.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound order id. Copy the id from the outbound order.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
External-Meta-KeyThe External-Meta-Key header allows to specify the desired external meta key and only data associated with the specified key will be returned. If no key is specified or the key does not contain data, then externalMeta will not be returned.
Users with VIEW_ALL_EXTERNAL_META permission can specify * to return all available external meta. Data in externalMeta will be keyed by the external meta key.
Create document › Request Body
nameName of the document attached to the outbound order.
descriptionSend an object with attachments to request presigned upload URLs, or null if there are no files.
typeDocument type to send. The current allowed value is OUTBOUND_CONFIRMATION.
Create document › Responses
Document created. Returns new document.
typeDocument type. The current allowed value is OUTBOUND_CONFIRMATION.
idstatusAccess follows the parent outbound order.
nameName of the document attached to the outbound order.
descriptionAttachment list for this document, or null when none is present.
Get document
Returns one document on an outbound order. The response includes a presigned download URL for each attachment. Access follows the parent outbound order. An order the caller cannot see returns 404.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound order id. Copy the id from the outbound order.
documentIdOutbound document id. Copy the id from the outbound document.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
External-Meta-KeyThe External-Meta-Key header allows to specify the desired external meta key and only data associated with the specified key will be returned. If no key is specified or the key does not contain data, then externalMeta will not be returned.
Users with VIEW_ALL_EXTERNAL_META permission can specify * to return all available external meta. Data in externalMeta will be keyed by the external meta key.
Get document › Responses
Document found. Returns document.
typeDocument type. The current allowed value is OUTBOUND_CONFIRMATION.
idstatusAccess follows the parent outbound order.
nameName of the document attached to the outbound order.
descriptionAttachment list for this document, or null when none is present.
Update document
Replaces a document on an outbound order. If-Match carries the document ETag from the latest response. A mismatch returns 412. Access follows the parent outbound order. An order the caller cannot see returns 404.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound order id. Copy the id from the outbound order.
documentIdOutbound document id. Copy the id from the outbound document.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
If-MatchThe If-Match header is used for optimistic concurrency control. It should contain the ETag value of the resource being updated. If the ETag doesn't match the current resource state, the request will be rejected.
Update document › Request Body
nameName of the document attached to the outbound order.
descriptionSend an object with attachments to request presigned upload URLs, or null if there are no files.
typeDocument type to send. The current allowed value is OUTBOUND_CONFIRMATION.
Update document › Responses
Document updated
typeDocument type. The current allowed value is OUTBOUND_CONFIRMATION.
idstatusAccess follows the parent outbound order.
nameName of the document attached to the outbound order.
descriptionAttachment list for this document, or null when none is present.
Delete document
Deletes a document on an outbound order. The response has no body. Access follows the parent outbound order. An order the caller cannot see returns 404.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound order id. Copy the id from the outbound order.
documentIdOutbound document id. Copy the id from the outbound document.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
Delete document › Responses
Document deleted
Get outbound order document history
Returns the audit history for one document on an outbound order. Access follows the parent outbound order. An order the caller cannot see returns 404.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound order id. Copy the id from the outbound order.
documentIdOutbound document id. Copy the id from the outbound document.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
Get outbound order document history › Responses
Success
ideventTimeTime the event occurred.
Identifies a user by id and display name.
actionAction that caused the change.
entityTypeEntity type the event relates to.
entityIdSnapshot of entity data at the time of the event.
Additional context about the change.
Restore document
Restores a trashed document on an outbound order. The document comes back with status ACTIVE, or UPDATED_PENDING while an attachment is still waiting to upload. If-Match carries the document ETag from the latest response. A mismatch returns 412. Access follows the parent outbound order. An order the caller cannot see returns 404.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound order id. Copy the id from the outbound order.
documentIdOutbound document id. Copy the id from the outbound document.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
If-MatchThe If-Match header is used for optimistic concurrency control. It should contain the ETag value of the resource being updated. If the ETag doesn't match the current resource state, the request will be rejected.
Restore document › Responses
Document restored. Returns updated document.
typeDocument type. The current allowed value is OUTBOUND_CONFIRMATION.
idstatusAccess follows the parent outbound order.
nameName of the document attached to the outbound order.
descriptionAttachment list for this document, or null when none is present.
Trash document
Trashes a document on an outbound order. The document comes back with status INACTIVE. If-Match carries the document ETag from the latest response. A mismatch returns 412. Access follows the parent outbound order. An order the caller cannot see returns 404.
path Parameters
tenantIdTenant ID. Can be found in organisation settings
orderIdOutbound order id. Copy the id from the outbound order.
documentIdOutbound document id. Copy the id from the outbound document.
Headers
Accept-VersionAll API end points require Accept-Version in the request header.
Failure to provide the header will return a status code of 400, however, an invalid version can return a 404, 406 or 400.
If-MatchThe If-Match header is used for optimistic concurrency control. It should contain the ETag value of the resource being updated. If the ETag doesn't match the current resource state, the request will be rejected.
Trash document › Responses
Document trashed. Returns updated document.
typeDocument type. The current allowed value is OUTBOUND_CONFIRMATION.
idstatusAccess follows the parent outbound order.
nameName of the document attached to the outbound order.
descriptionAttachment list for this document, or null when none is present.