|
5 | 5 | } ],
|
6 | 6 | "info" : {
|
7 | 7 | "title" : "Accounting API",
|
8 |
| - "version" : "2.0.0" |
| 8 | + "version" : "2.0.0", |
| 9 | + "termsOfService" : "https://developer.xero.com/xero-developer-platform-terms-conditions/", |
| 10 | + "contact" : { |
| 11 | + "name" : "Xero Platform Team", |
| 12 | + |
| 13 | + "url" : "https://developer.xero.com" |
| 14 | + } |
9 | 15 | },
|
10 | 16 | "paths" : {
|
11 | 17 | "/Accounts" : {
|
|
685 | 691 | "name" : "page",
|
686 | 692 | "description" : "e.g. page=1 – Up to 100 bank transactions will be returned in a single API call with line items shown for each bank transaction",
|
687 | 693 | "schema" : {
|
688 |
| - "type" : "number" |
| 694 | + "type" : "integer" |
689 | 695 | }
|
690 | 696 | } ]
|
691 | 697 | },
|
|
1854 | 1860 | "name" : "page",
|
1855 | 1861 | "description" : "e.g. page=1 - Up to 100 contacts will be returned in a single API call.",
|
1856 | 1862 | "schema" : {
|
1857 |
| - "type" : "number" |
| 1863 | + "type" : "integer" |
1858 | 1864 | }
|
1859 | 1865 | }, {
|
1860 | 1866 | "in" : "query",
|
|
2678 | 2684 | "name" : "page",
|
2679 | 2685 | "description" : "e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note",
|
2680 | 2686 | "schema" : {
|
2681 |
| - "type" : "number" |
| 2687 | + "type" : "integer" |
2682 | 2688 | }
|
2683 | 2689 | } ]
|
2684 | 2690 | },
|
|
3798 | 3804 | "name" : "page",
|
3799 | 3805 | "description" : "e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice",
|
3800 | 3806 | "schema" : {
|
3801 |
| - "type" : "number" |
| 3807 | + "type" : "integer" |
3802 | 3808 | }
|
3803 | 3809 | }, {
|
3804 | 3810 | "in" : "query",
|
|
4738 | 4744 | "in" : "query",
|
4739 | 4745 | "name" : "offset",
|
4740 | 4746 | "schema" : {
|
4741 |
| - "type" : "number" |
| 4747 | + "type" : "integer" |
4742 | 4748 | }
|
4743 | 4749 | }, {
|
4744 | 4750 | "in" : "query",
|
|
4811 | 4817 | "name" : "page",
|
4812 | 4818 | "description" : "Up to 100 linked transactions will be returned in a single API call. Use the page parameter to specify the page to be returned e.g. page=1.",
|
4813 | 4819 | "schema" : {
|
4814 |
| - "type" : "number" |
| 4820 | + "type" : "integer" |
4815 | 4821 | }
|
4816 | 4822 | }, {
|
4817 | 4823 | "in" : "query",
|
|
5040 | 5046 | "name" : "page",
|
5041 | 5047 | "description" : "e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment",
|
5042 | 5048 | "schema" : {
|
5043 |
| - "type" : "number" |
| 5049 | + "type" : "integer" |
5044 | 5050 | }
|
5045 | 5051 | } ]
|
5046 | 5052 | },
|
|
5547 | 5553 | "name" : "page",
|
5548 | 5554 | "description" : "e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment",
|
5549 | 5555 | "schema" : {
|
5550 |
| - "type" : "number" |
| 5556 | + "type" : "integer" |
5551 | 5557 | }
|
5552 | 5558 | } ]
|
5553 | 5559 | }
|
|
6056 | 6062 | "name" : "page",
|
6057 | 6063 | "description" : "e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment",
|
6058 | 6064 | "schema" : {
|
6059 |
| - "type" : "number" |
| 6065 | + "type" : "integer" |
6060 | 6066 | }
|
6061 | 6067 | } ]
|
6062 | 6068 | },
|
|
6239 | 6245 | "name" : "page",
|
6240 | 6246 | "description" : "To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned.",
|
6241 | 6247 | "schema" : {
|
6242 |
| - "type" : "number" |
| 6248 | + "type" : "integer" |
6243 | 6249 | }
|
6244 | 6250 | } ]
|
6245 | 6251 | },
|
|
7561 | 7567 | "in" : "query",
|
7562 | 7568 | "name" : "periods",
|
7563 | 7569 | "schema" : {
|
7564 |
| - "type" : "number" |
| 7570 | + "type" : "integer" |
7565 | 7571 | }
|
7566 | 7572 | }, {
|
7567 | 7573 | "in" : "query",
|
7568 | 7574 | "name" : "timeframe",
|
7569 | 7575 | "description" : "The period size to compare to (1=month, 3=quarter, 12=year)",
|
7570 | 7576 | "schema" : {
|
7571 |
| - "type" : "number" |
| 7577 | + "type" : "integer" |
7572 | 7578 | }
|
7573 | 7579 | }, {
|
7574 | 7580 | "in" : "query",
|
|
7632 | 7638 | "name" : "period",
|
7633 | 7639 | "description" : "The number of periods to compare (integer between 1 and 12)",
|
7634 | 7640 | "schema" : {
|
7635 |
| - "type" : "number" |
| 7641 | + "type" : "integer" |
7636 | 7642 | }
|
7637 | 7643 | }, {
|
7638 | 7644 | "in" : "query",
|
7639 | 7645 | "name" : "timeframe",
|
7640 | 7646 | "description" : "The period size to compare to (1=month, 3=quarter, 12=year)",
|
7641 | 7647 | "schema" : {
|
7642 |
| - "type" : "number" |
| 7648 | + "type" : "integer" |
7643 | 7649 | }
|
7644 | 7650 | } ]
|
7645 | 7651 | }
|
|
7775 | 7781 | "name" : "periods",
|
7776 | 7782 | "description" : "The number of periods to compare (integer between 1 and 12)",
|
7777 | 7783 | "schema" : {
|
7778 |
| - "type" : "number" |
| 7784 | + "type" : "integer" |
7779 | 7785 | }
|
7780 | 7786 | }, {
|
7781 | 7787 | "in" : "query",
|
7782 | 7788 | "name" : "timeframe",
|
7783 | 7789 | "description" : "The period size to compare to (1=month, 3=quarter, 12=year)",
|
7784 | 7790 | "schema" : {
|
7785 |
| - "type" : "number" |
| 7791 | + "type" : "string", |
| 7792 | + "enum" : [ "MONTH", "QUARTER", "YEAR" ] |
7786 | 7793 | }
|
7787 | 7794 | }, {
|
7788 | 7795 | "in" : "query",
|
|
8643 | 8650 | },
|
8644 | 8651 | "CurrencyRate" : {
|
8645 | 8652 | "description" : "Exchange rate to base currency when money is spent or received. e.g. 0.7500 Only used for bank transactions in non base currency. If this isn’t specified for non base currency accounts then either the user-defined rate (preference) or the XE.com day rate will be used. Setting currency is only supported on overpayments.",
|
8646 |
| - "type" : "number" |
| 8653 | + "type" : "number", |
| 8654 | + "format" : "float" |
8647 | 8655 | },
|
8648 | 8656 | "Url" : {
|
8649 | 8657 | "description" : "URL link to a source document – shown as “Go to App Name”",
|
|
8660 | 8668 | },
|
8661 | 8669 | "SubTotal" : {
|
8662 | 8670 | "description" : "Total of bank transaction excluding taxes",
|
8663 |
| - "type" : "number" |
| 8671 | + "type" : "number", |
| 8672 | + "format" : "float" |
8664 | 8673 | },
|
8665 | 8674 | "TotalTax" : {
|
8666 | 8675 | "description" : "Total tax on bank transaction",
|
8667 |
| - "type" : "number" |
| 8676 | + "type" : "number", |
| 8677 | + "format" : "float" |
8668 | 8678 | },
|
8669 | 8679 | "Total" : {
|
8670 | 8680 | "description" : "Total of bank transaction tax inclusive",
|
8671 |
| - "type" : "number" |
| 8681 | + "type" : "number", |
| 8682 | + "format" : "float" |
8672 | 8683 | },
|
8673 | 8684 | "BankTransactionID" : {
|
8674 | 8685 | "description" : "Xero generated unique identifier for bank transaction",
|
|
8718 | 8729 | },
|
8719 | 8730 | "Quantity" : {
|
8720 | 8731 | "description" : "LineItem Quantity",
|
8721 |
| - "type" : "string" |
| 8732 | + "type" : "number", |
| 8733 | + "format" : "float" |
8722 | 8734 | },
|
8723 | 8735 | "UnitAmount" : {
|
8724 | 8736 | "description" : "LineItem Unit Amount",
|
8725 |
| - "type" : "number" |
| 8737 | + "type" : "number", |
| 8738 | + "format" : "float" |
8726 | 8739 | },
|
8727 | 8740 | "ItemCode" : {
|
8728 | 8741 | "description" : "See Items",
|
|
8738 | 8751 | },
|
8739 | 8752 | "TaxAmount" : {
|
8740 | 8753 | "description" : "The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated <TaxAmount> is not correct.",
|
8741 |
| - "type" : "number" |
| 8754 | + "type" : "number", |
| 8755 | + "format" : "float" |
8742 | 8756 | },
|
8743 | 8757 | "LineAmount" : {
|
8744 | 8758 | "description" : "If you wish to omit either of the <Quantity> or <UnitAmount> you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if a DiscountRate has been used . i.e LineAmount = Quantity * Unit Amount * ((100 – DiscountRate)/100)",
|
8745 |
| - "type" : "number" |
| 8759 | + "type" : "number", |
| 8760 | + "format" : "float" |
8746 | 8761 | },
|
8747 | 8762 | "Tracking" : {
|
8748 | 8763 | "description" : "Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 <TrackingCategory> elements.",
|
|
8926 | 8941 | },
|
8927 | 8942 | "Amount" : {
|
8928 | 8943 | "description" : "The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00",
|
8929 |
| - "type" : "number" |
| 8944 | + "type" : "number", |
| 8945 | + "format" : "float" |
8930 | 8946 | },
|
8931 | 8947 | "Payments" : {
|
8932 | 8948 | "type" : "array",
|
|
8989 | 9005 | },
|
8990 | 9006 | "SortOrder" : {
|
8991 | 9007 | "description" : "Integer – ranked order of branding theme. The default branding theme has a value of 0",
|
8992 |
| - "type" : "number", |
8993 |
| - "format" : "double" |
| 9008 | + "type" : "integer" |
8994 | 9009 | },
|
8995 | 9010 | "CreatedDateUTC" : {
|
8996 | 9011 | "description" : "UTC timestamp of creation date of branding theme",
|
|
9301 | 9316 | },
|
9302 | 9317 | "Rate" : {
|
9303 | 9318 | "description" : "CIS Deduction rate for the contact if he is a subcontractor. If the contact is not CISEnabled, then the rate is not returned",
|
9304 |
| - "type" : "number" |
| 9319 | + "type" : "integer" |
9305 | 9320 | }
|
9306 | 9321 | }
|
9307 | 9322 | },
|
|
9534 | 9549 | },
|
9535 | 9550 | "Amount" : {
|
9536 | 9551 | "description" : "the amount being applied to the invoice",
|
9537 |
| - "type" : "number" |
| 9552 | + "type" : "number", |
| 9553 | + "format" : "float" |
9538 | 9554 | },
|
9539 | 9555 | "Date" : {
|
9540 | 9556 | "description" : "the date the prepayment is applied YYYY-MM-DD (read-only). This will be the latter of the invoice date and the prepayment date.",
|
|
10058 | 10074 | "properties" : {
|
10059 | 10075 | "UnitPrice" : {
|
10060 | 10076 | "description" : "Unit Price of the item. By default UnitPrice is rounded to two decimal places. You can use 4 decimal places by adding the unitdp=4 querystring parameter to your request.",
|
10061 |
| - "type" : "number" |
| 10077 | + "type" : "number", |
| 10078 | + "format" : "float" |
10062 | 10079 | },
|
10063 | 10080 | "AccountCode" : {
|
10064 | 10081 | "description" : "Default account code to be used for purchased/sale. Not applicable to the purchase details of tracked items",
|
@@ -10684,11 +10701,13 @@
|
10684 | 10701 | },
|
10685 | 10702 | "CurrencyRate" : {
|
10686 | 10703 | "description" : "Exchange rate when payment is received. Only used for non base currency invoices and credit notes e.g. 0.7500",
|
10687 |
| - "type" : "number" |
| 10704 | + "type" : "number", |
| 10705 | + "format" : "float" |
10688 | 10706 | },
|
10689 | 10707 | "Amount" : {
|
10690 | 10708 | "description" : "The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00",
|
10691 |
| - "type" : "number" |
| 10709 | + "type" : "number", |
| 10710 | + "format" : "float" |
10692 | 10711 | },
|
10693 | 10712 | "Reference" : {
|
10694 | 10713 | "description" : "An optional description for the payment e.g. Direct Debit",
|
@@ -11449,17 +11468,15 @@
|
11449 | 11468 | "properties" : {
|
11450 | 11469 | "Period" : {
|
11451 | 11470 | "description" : "Integer used with the unit e.g. 1 (every 1 week), 2 (every 2 months)",
|
11452 |
| - "type" : "number", |
11453 |
| - "format" : "double" |
| 11471 | + "type" : "integer" |
11454 | 11472 | },
|
11455 | 11473 | "Unit" : {
|
11456 | 11474 | "description" : "One of the following : WEEKLY or MONTHLY",
|
11457 | 11475 | "type" : "string"
|
11458 | 11476 | },
|
11459 | 11477 | "DueDate" : {
|
11460 | 11478 | "description" : "Integer used with due date type e.g 20 (of following month), 31 (of current month)",
|
11461 |
| - "type" : "number", |
11462 |
| - "format" : "double" |
| 11479 | + "type" : "integer" |
11463 | 11480 | },
|
11464 | 11481 | "DueDateType" : {
|
11465 | 11482 | "allOf" : [ {
|
@@ -11556,12 +11573,14 @@
|
11556 | 11573 | "DisplayTaxRate" : {
|
11557 | 11574 | "description" : "Tax Rate (decimal to 4dp) e.g 12.5000",
|
11558 | 11575 | "readOnly" : true,
|
11559 |
| - "type" : "number" |
| 11576 | + "type" : "number", |
| 11577 | + "format" : "float" |
11560 | 11578 | },
|
11561 | 11579 | "EffectiveRate" : {
|
11562 | 11580 | "description" : "Effective Tax Rate (decimal to 4dp) e.g 12.5000",
|
11563 | 11581 | "readOnly" : true,
|
11564 |
| - "type" : "number" |
| 11582 | + "type" : "number", |
| 11583 | + "format" : "float" |
11565 | 11584 | }
|
11566 | 11585 | },
|
11567 | 11586 | "required" : [ "ReportTaxType" ],
|
|
11578 | 11597 | },
|
11579 | 11598 | "Rate" : {
|
11580 | 11599 | "description" : "Tax Rate (up to 4dp)",
|
11581 |
| - "type" : "number" |
| 11600 | + "type" : "number", |
| 11601 | + "format" : "float" |
11582 | 11602 | },
|
11583 | 11603 | "IsCompound" : {
|
11584 | 11604 | "description" : "Boolean to describe if Tax rate is compounded.",
|
|
11724 | 11744 | "properties" : {
|
11725 | 11745 | "ErrorNumber" : {
|
11726 | 11746 | "description" : "Exception number",
|
11727 |
| - "type" : "number" |
| 11747 | + "type" : "integer" |
11728 | 11748 | },
|
11729 | 11749 | "Type" : {
|
11730 | 11750 | "description" : "Exception type",
|
|
0 commit comments