Convert quote to income
curl --request POST \
--url https://staging-api.usetyms.com/v1/adam/quotes/{uuid}/convert-to-income \
--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-income"
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-income', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Quote converted to income successfully",
"data": {
"uuid": "income-uuid-1",
"transaction_type": "sales_receipt"
}
}{
"status": "failed",
"message": "<string>"
}{
"status": "failed",
"message": "<string>"
}Quotes
Convert quote to income
Convert an accepted quote to a cash receipt (sales income). The quote items and customer are copied to a new income record. Pass an empty body {}.
POST
/
quotes
/
{uuid}
/
convert-to-income
Convert quote to income
curl --request POST \
--url https://staging-api.usetyms.com/v1/adam/quotes/{uuid}/convert-to-income \
--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-income"
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-income', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Quote converted to income successfully",
"data": {
"uuid": "income-uuid-1",
"transaction_type": "sales_receipt"
}
}{
"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
Income created from quote