Convert quote to invoice
curl --request POST \
--url https://staging-api.usetyms.com/v1/adam/quotes/{uuid}/convert-to-invoice \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'import requests
url = "https://staging-api.usetyms.com/v1/adam/quotes/{uuid}/convert-to-invoice"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://staging-api.usetyms.com/v1/adam/quotes/{uuid}/convert-to-invoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Quote converted to invoice successfully",
"data": {
"uuid": "invoice-uuid-1",
"transaction_type": "invoice"
}
}{
"status": "failed",
"message": "<string>"
}{
"status": "failed",
"message": "<string>"
}Quotes
Convert quote to invoice
Convert an accepted quote to a posted invoice. The quote items, customer, and amounts are copied to a new invoice. Pass an empty body {}.
POST
/
quotes
/
{uuid}
/
convert-to-invoice
Convert quote to invoice
curl --request POST \
--url https://staging-api.usetyms.com/v1/adam/quotes/{uuid}/convert-to-invoice \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{}'import requests
url = "https://staging-api.usetyms.com/v1/adam/quotes/{uuid}/convert-to-invoice"
payload = {}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://staging-api.usetyms.com/v1/adam/quotes/{uuid}/convert-to-invoice', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Quote converted to invoice successfully",
"data": {
"uuid": "invoice-uuid-1",
"transaction_type": "invoice"
}
}{
"status": "failed",
"message": "<string>"
}{
"status": "failed",
"message": "<string>"
}Authorizations
Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.
Path Parameters
Quote uuid.
Body
application/json
The body is of type object.
Response
Invoice created from quote