cURL
curl --request POST \ --url https://commerce.driv.ly/api/invoices \ --header 'Content-Type: application/json' \ --data '{ "id": "inv_39dk39dks933", "deal": "deal_5ksj49dkvdl2", "customer": "cus_k3j5s9qj3w0d" }'
{ "data": { "id": "inv_39dk39dks933", "deal": "deal_5ksj49dkvdl2", "customer": "cus_k3j5s9qj3w0d" }, "success": true }
The number of levels of related objects to include in the response
Customer pays Invoice
Invoice is uniquely identified by id
Invoice is issued for Deal
Invoice Created
Show child attributes
{ "id": "inv_39dk39dks933", "deal": "deal_5ksj49dkvdl2", "customer": "cus_k3j5s9qj3w0d"}