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

Query Parameters

depth
integer

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

Body

application/json
customer
required

Customer pays Invoice

id
string

Invoice is uniquely identified by id

deal

Invoice is issued for Deal

Response

Invoice Created

data
Invoice · object
success
boolean