v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

Create a new document

post/v1/documents

Request body

doc_namestring required

Specify the name of the document that you are creating.

doc_datestring date required

Specify the date of the document that you are creating.

categorystring required

Specify the category of the document. Allowed values are "dispatch", or "other".

doc_typestring required

Specify the type of the document that you are creating. Allowed values are: 'png', 'jpeg', 'jpg', 'pdf'

doc_sizeinteger required

Specify the size of the document that you are creating.

driver_idinteger

Specify the ID of the driver for whom you are creating this document. After the creating, the document will sent to the corresponding driver.

ref_nostring

Specify the reference number or the order number that will be attached to the document.

notesstring

Mention any notes for the document. For example, if you are sending a Dispatch related document, you can mention, Dispatch # XXXXX document for Driver # XXXXX.

dispatch_idinteger

If the category of the document is 'dispatch", then you must mention the Dispatch ID as well.

doc_timestring date

The timestamp on the document.

Response

200