Skip to main content
POST
/
documents
Create a new Document
curl --request POST \
  --url https://commerce.driv.ly/api/documents \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {},
  "id": "<string>",
  "deal": "<string>",
  "isSigned": true
}
'
{
  "data": {
    "id": "<string>",
    "data": {},
    "deal": "<string>",
    "isSigned": true
  },
  "success": true
}

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json
data
object
required

Document has Data

id
string

Document is uniquely identified by id

deal

Deal has Document

isSigned
boolean

Document is signed

Response

Document Created

data
Document · object
success
boolean