Update invoice (partial)
curl --request PATCH \
--url https://staging-api.usetyms.com/v1/adam/invoices/{uuid} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"date": "2023-12-25",
"due_date": "2023-12-25",
"narration": "<string>",
"record_items": [
"<unknown>"
]
}
'import requests
url = "https://staging-api.usetyms.com/v1/adam/invoices/{uuid}"
payload = {
"date": "2023-12-25",
"due_date": "2023-12-25",
"narration": "<string>",
"record_items": ["<unknown>"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date: '2023-12-25',
due_date: '2023-12-25',
narration: '<string>',
record_items: ['<unknown>']
})
};
fetch('https://staging-api.usetyms.com/v1/adam/invoices/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Invoice updated successfully",
"data": {
"uuid": "550e8400-e29b-41d4-a716-446655440001",
"narration": "Updated invoice description"
}
}Invoices
Update invoice (partial)
PATCH
/
invoices
/
{uuid}
Update invoice (partial)
curl --request PATCH \
--url https://staging-api.usetyms.com/v1/adam/invoices/{uuid} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"date": "2023-12-25",
"due_date": "2023-12-25",
"narration": "<string>",
"record_items": [
"<unknown>"
]
}
'import requests
url = "https://staging-api.usetyms.com/v1/adam/invoices/{uuid}"
payload = {
"date": "2023-12-25",
"due_date": "2023-12-25",
"narration": "<string>",
"record_items": ["<unknown>"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date: '2023-12-25',
due_date: '2023-12-25',
narration: '<string>',
record_items: ['<unknown>']
})
};
fetch('https://staging-api.usetyms.com/v1/adam/invoices/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "success",
"message": "Invoice updated successfully",
"data": {
"uuid": "550e8400-e29b-41d4-a716-446655440001",
"narration": "Updated invoice description"
}
}Authorizations
Business secret tyms_sk_... for business-scoped routes. Partner secret for register-business and referred-business distributor routes.
Path Parameters
Response
200 - application/json
Invoice updated (partial)