Bills
table
Column | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Examples
SELECT
*
FROM
Bills
WHERE
Status = 'Open'
INSERT INTO
Bills (Contact, Reference, Dated_On, Due_On, Bill_Items)
VALUES
(
'https://api.freeagent.com/v2/contacts/18541472',
'YEB002',
'2024-11-28',
'2024-12-28',
'[{"category":"https://api.freeagent.com/v2/categories/291","description":"YEB Line 2 standing charge","sales_tax_rate":"20","total_value_ex_tax":49.99}]'
)
UPDATE Bills
SET
Comments = 'Standing charge for second line.'
WHERE
Id = '31467166'
DELETE FROM Bills
WHERE
Id = '31467166'