Retrieves a draft contract
Changed onReturns a draft contract by id, including its line items and any attached external references. A draft sent for approval as a new contract carries approval: whether its request waits, was rejected or cancelled, and the request id.
Request
- Base URLhttps://api.rillet.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
OK
Example response
{
"external_references": [
{
"type": "xyzSystemId",
"id": "234",
"url": "https://xyzsystempage.com/ids/234"
}
],
"amount": {
"amount": "1.01",
"currency": "USD"
},
"items": [
{
"price": {
"amount": {
"amount": "1.01",
"currency": "USD"
},
"interval_months": 1
},
"discount": {
"amount_off": {
"amount": "1.01",
"currency": "USD"
}
},
"declared_ssp": {
"amount": "1.01",
"currency": "USD"
}
}
],
"purchase_order_number": "PO-12345",
"billing_address": {
"line1": "123 Main St",
"line2": "Apt 4B",
"city": "Nashville",
"state": "TN",
"zip_code": "37201",
"country": "US"
},
"shipping_address": {
"line1": "123 Main St",
"line2": "Apt 4B",
"city": "Nashville",
"state": "TN",
"zip_code": "37201",
"country": "US"
}
}Changes
- breaking
the
//response's property type changed fromnumbertostring, and format from no format tonumberfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking