CartonCloud
CartonCloud API

Outbound Order Documents

Endpoints related to Outbound Order Documents.


List documents

GET
https://api.cartoncloud.com
/tenants/{tenantId}/outbound-orders/{orderId}/documents
required permission: VIEW_DOCUMENT

List documents attached to an outbound order.

List documents › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

orderId
​UUID · uuid · required

Outbound order id. Copy the id from the outbound order.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527

List documents › query Parameters

page
​integer

The page number to return results for

size
​integer

The number of elements per page. Default value may vary between endpoints

List documents › Headers

Accept-Version
​string · enum · required

All 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.

Enum values:
10

List documents › Responses

Success

​object · required
type
​string · enum · required

Document type. The current allowed value is OUTBOUND_CONFIRMATION.

Enum values:
OUTBOUND_CONFIRMATION
id
​string · uuid · readOnly
status
​string · enum · readOnly
Enum values:
CREATED_PENDING
UPDATED_PENDING
ACTIVE
INACTIVE
ERROR
Default: CREATED_PENDING
​object

Access follows the parent outbound order.

name
​string

Name of the document attached to the outbound order.

description
​string | null
​DocumentDetails | null

Attachment list for this document, or null when none is present.

​AuditInfo · readOnly

Create document

POST
https://api.cartoncloud.com
/tenants/{tenantId}/outbound-orders/{orderId}/documents
required permission: EDIT_DOCUMENT

Creates a document attached to an outbound order. The response includes a presigned upload URL for each attachment.

Create document › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

orderId
​UUID · uuid · required

Outbound order id. Copy the id from the outbound order.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527

Create document › Headers

Accept-Version
​string · enum · required

All 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.

Enum values:
10
External-Meta-Key
​string

The 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

​object
name
​string

Name of the document attached to the outbound order.

description
​string | null
​DocumentRequestDetails | null

Send an object with attachments to request presigned upload URLs, or null if there are no files.

type
​string · enum

Document type to send. The current allowed value is OUTBOUND_CONFIRMATION.

Enum values:
OUTBOUND_CONFIRMATION

Create document › Responses

Document created. Returns new document.

​object · required
type
​string · enum · required

Document type. The current allowed value is OUTBOUND_CONFIRMATION.

Enum values:
OUTBOUND_CONFIRMATION
id
​string · uuid · readOnly
status
​string · enum · readOnly
Enum values:
CREATED_PENDING
UPDATED_PENDING
ACTIVE
INACTIVE
ERROR
Default: CREATED_PENDING
​object

Access follows the parent outbound order.

name
​string

Name of the document attached to the outbound order.

description
​string | null
​DocumentDetails | null

Attachment list for this document, or null when none is present.

​AuditInfo · readOnly

Get document

GET
https://api.cartoncloud.com
/tenants/{tenantId}/outbound-orders/{orderId}/documents/{documentId}
required permission: VIEW_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.

Get document › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

orderId
​UUID · uuid · required

Outbound order id. Copy the id from the outbound order.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527
documentId
​UUID · uuid · required

Outbound document id. Copy the id from the outbound document.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527

Get document › Headers

Accept-Version
​string · enum · required

All 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.

Enum values:
10
External-Meta-Key
​string

The 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.

​object · required
type
​string · enum · required

Document type. The current allowed value is OUTBOUND_CONFIRMATION.

Enum values:
OUTBOUND_CONFIRMATION
id
​string · uuid · readOnly
status
​string · enum · readOnly
Enum values:
CREATED_PENDING
UPDATED_PENDING
ACTIVE
INACTIVE
ERROR
Default: CREATED_PENDING
​object

Access follows the parent outbound order.

name
​string

Name of the document attached to the outbound order.

description
​string | null
​DocumentDetails | null

Attachment list for this document, or null when none is present.

​AuditInfo · readOnly

Update document

PUT
https://api.cartoncloud.com
/tenants/{tenantId}/outbound-orders/{orderId}/documents/{documentId}
required permission: EDIT_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.

Update document › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

orderId
​UUID · uuid · required

Outbound order id. Copy the id from the outbound order.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527
documentId
​UUID · uuid · required

Outbound document id. Copy the id from the outbound document.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527

Update document › Headers

Accept-Version
​string · enum · required

All 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.

Enum values:
10
If-Match
​string

The 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

​object
name
​string

Name of the document attached to the outbound order.

description
​string | null
​DocumentRequestDetails | null

Send an object with attachments to request presigned upload URLs, or null if there are no files.

type
​string · enum

Document type to send. The current allowed value is OUTBOUND_CONFIRMATION.

Enum values:
OUTBOUND_CONFIRMATION

Update document › Responses

Document updated

​object · required
type
​string · enum · required

Document type. The current allowed value is OUTBOUND_CONFIRMATION.

Enum values:
OUTBOUND_CONFIRMATION
id
​string · uuid · readOnly
status
​string · enum · readOnly
Enum values:
CREATED_PENDING
UPDATED_PENDING
ACTIVE
INACTIVE
ERROR
Default: CREATED_PENDING
​object

Access follows the parent outbound order.

name
​string

Name of the document attached to the outbound order.

description
​string | null
​DocumentDetails | null

Attachment list for this document, or null when none is present.

​AuditInfo · readOnly

Delete document

DELETE
https://api.cartoncloud.com
/tenants/{tenantId}/outbound-orders/{orderId}/documents/{documentId}
required permission: EDIT_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.

Delete document › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

orderId
​UUID · uuid · required

Outbound order id. Copy the id from the outbound order.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527
documentId
​UUID · uuid · required

Outbound document id. Copy the id from the outbound document.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527

Delete document › Headers

Accept-Version
​string · enum · required

All 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.

Enum values:
10

Delete document › Responses

Document deleted

No data returned

Get outbound order document history

GET
https://api.cartoncloud.com
/tenants/{tenantId}/outbound-orders/{orderId}/documents/{documentId}/history
required permission: VIEW_DOCUMENT

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.

Get outbound order document history › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

orderId
​UUID · uuid · required

Outbound order id. Copy the id from the outbound order.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527
documentId
​UUID · uuid · required

Outbound document id. Copy the id from the outbound document.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527

Get outbound order document history › Headers

Accept-Version
​string · enum · required

All 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.

Enum values:
10

Get outbound order document history › Responses

Success

​AuditEvent[]
Audit trail entry for a document or entity.
id
​UUID · uuid
eventTime
​string · date-time

Time the event occurred.

​UserReference

Identifies a user by id and display name.

action
​string

Action that caused the change.

entityType
​string

Entity type the event relates to.

entityId
​UUID · uuid
​object

Snapshot of entity data at the time of the event.

​object

Additional context about the change.


Restore document

POST
https://api.cartoncloud.com
/tenants/{tenantId}/outbound-orders/{orderId}/documents/{documentId}/restore
required permission: EDIT_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.

Restore document › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

orderId
​UUID · uuid · required

Outbound order id. Copy the id from the outbound order.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527
documentId
​UUID · uuid · required

Outbound document id. Copy the id from the outbound document.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527

Restore document › Headers

Accept-Version
​string · enum · required

All 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.

Enum values:
10
If-Match
​string

The 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.

​object · required
type
​string · enum · required

Document type. The current allowed value is OUTBOUND_CONFIRMATION.

Enum values:
OUTBOUND_CONFIRMATION
id
​string · uuid · readOnly
status
​string · enum · readOnly
Enum values:
CREATED_PENDING
UPDATED_PENDING
ACTIVE
INACTIVE
ERROR
Default: CREATED_PENDING
​object

Access follows the parent outbound order.

name
​string

Name of the document attached to the outbound order.

description
​string | null
​DocumentDetails | null

Attachment list for this document, or null when none is present.

​AuditInfo · readOnly

Trash document

POST
https://api.cartoncloud.com
/tenants/{tenantId}/outbound-orders/{orderId}/documents/{documentId}/trash
required permission: EDIT_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.

Trash document › path Parameters

tenantId
​string · uuid · required

Tenant ID. Can be found in organisation settings

orderId
​UUID · uuid · required

Outbound order id. Copy the id from the outbound order.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527
documentId
​UUID · uuid · required

Outbound document id. Copy the id from the outbound document.

Example: 38756e85-d15c-45d9-84fd-1b3e50b73527

Trash document › Headers

Accept-Version
​string · enum · required

All 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.

Enum values:
10
If-Match
​string

The 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.

​object · required
type
​string · enum · required

Document type. The current allowed value is OUTBOUND_CONFIRMATION.

Enum values:
OUTBOUND_CONFIRMATION
id
​string · uuid · readOnly
status
​string · enum · readOnly
Enum values:
CREATED_PENDING
UPDATED_PENDING
ACTIVE
INACTIVE
ERROR
Default: CREATED_PENDING
​object

Access follows the parent outbound order.

name
​string

Name of the document attached to the outbound order.

description
​string | null
​DocumentDetails | null

Attachment list for this document, or null when none is present.

​AuditInfo · readOnly