|
6004 | 6004 | <nav id="scrollingNav">
|
6005 | 6005 | <ul class="sidenav nav nav-list">
|
6006 | 6006 | <li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
|
6007 |
| - <li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.15.1</li> |
| 6007 | + <li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.16.0</li> |
6008 | 6008 | <li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
|
6009 | 6009 | <li data-group="Accounting" data-name="createAccount" class="">
|
6010 | 6010 | <a href="#api-Accounting-createAccount">createAccount</a>
|
|
6375 | 6375 | <li data-group="Accounting" data-name="getJournal" class="">
|
6376 | 6376 | <a href="#api-Accounting-getJournal">getJournal</a>
|
6377 | 6377 | </li>
|
| 6378 | + <li data-group="Accounting" data-name="getJournalByNumber" class=""> |
| 6379 | + <a href="#api-Accounting-getJournalByNumber">getJournalByNumber</a> |
| 6380 | + </li> |
6378 | 6381 | <li data-group="Accounting" data-name="getJournals" class="">
|
6379 | 6382 | <a href="#api-Accounting-getJournals">getJournals</a>
|
6380 | 6383 | </li>
|
@@ -9419,7 +9422,7 @@ <h2>Parameters</h2>
|
9419 | 9422 | "schema" : {
|
9420 | 9423 | "$ref" : "#/components/schemas/Contacts"
|
9421 | 9424 | },
|
9422 |
| - "example" : "{ \"Id\": \"e997d6d7-6dad-4458-beb8-d9c1bf7f2edf\", \"Status\": \"OK\", \"ProviderName\": \"Xero API Partner\", \"DateTimeUTC\": \"/Date(1551399321121)/\", \"Contacts\": [ { \"ContactID\": \"3ff6d40c-af9a-40a3-89ce-3c1556a25591\", \"ContactStatus\": \"ACTIVE\", \"Name\": \"Foo9987\", \"EmailAddress\": \" [email protected]\", \"BankAccountDetails\": \"\", \"Addresses\": [ { \"AddressType\": \"STREET\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" }, { \"AddressType\": \"POBOX\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" } ], \"Phones\": [ { \"PhoneType\": \"DEFAULT\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"DDI\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"FAX\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"MOBILE\", \"PhoneNumber\": \"555-1212\", \"PhoneAreaCode\": \"415\", \"PhoneCountryCode\": \"\" } ], \"UpdatedDateUTC\": \"/Date(1551399321043+0000)/\", \"ContactGroups\": [], \"IsSupplier\": false, \"IsCustomer\": false, \"SalesTrackingCategories\": [], \"PurchasesTrackingCategories\": [], \"PaymentTerms\": { \"Bills\": { \"Day\": 15, \"Type\": \"OFCURRENTMONTH\" }, \"Sales\": { \"Day\": 10, \"Type\": \"DAYSAFTERBILLMONTH\" } }, \"ContactPersons\": [], \"HasValidationErrors\": false } ] }" |
| 9425 | + "example" : "{ \"Contacts\": [ { \"ContactID\": \"3ff6d40c-af9a-40a3-89ce-3c1556a25591\", \"ContactStatus\": \"ACTIVE\", \"Name\": \"Foo9987\", \"EmailAddress\": \" [email protected]\", \"BankAccountDetails\": \"\", \"Addresses\": [ { \"AddressType\": \"STREET\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" }, { \"AddressType\": \"POBOX\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" } ], \"Phones\": [ { \"PhoneType\": \"DEFAULT\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"DDI\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"FAX\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"MOBILE\", \"PhoneNumber\": \"555-1212\", \"PhoneAreaCode\": \"415\", \"PhoneCountryCode\": \"\" } ], \"UpdatedDateUTC\": \"/Date(1551399321043+0000)/\", \"ContactGroups\": [], \"IsSupplier\": false, \"IsCustomer\": false, \"SalesTrackingCategories\": [], \"PurchasesTrackingCategories\": [], \"PaymentTerms\": { \"Bills\": { \"Day\": 15, \"Type\": \"OFCURRENTMONTH\" }, \"Sales\": { \"Day\": 10, \"Type\": \"DAYSAFTERBILLMONTH\" } }, \"ContactPersons\": [] } ] }" |
9423 | 9426 | }
|
9424 | 9427 | },
|
9425 | 9428 | "required" : true
|
@@ -26824,6 +26827,129 @@ <h2>Parameters</h2>
|
26824 | 26827 | </div>
|
26825 | 26828 | </div>
|
26826 | 26829 | </td>
|
| 26830 | +</tr> |
| 26831 | + |
| 26832 | + </table> |
| 26833 | + </article> |
| 26834 | + </div> |
| 26835 | + <hr> |
| 26836 | + <div id="api-Accounting-getJournalByNumber"> |
| 26837 | + <article id="api-Accounting-getJournalByNumber-0" data-group="User" data-name="getJournalByNumber" data-version="0"> |
| 26838 | + <div class="pull-left"> |
| 26839 | + <h1>getJournalByNumber</h1> |
| 26840 | + <p>Retrieves a specific journal using a unique journal number.</p> |
| 26841 | + </div> |
| 26842 | + <div class="pull-right"></div> |
| 26843 | + <div class="clearfix"></div> |
| 26844 | + <p></p> |
| 26845 | + <p class="marked"></p> |
| 26846 | + <p></p> |
| 26847 | + <br /> |
| 26848 | + <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/Journals/{JournalNumber}</span></code></pre> |
| 26849 | + <p> |
| 26850 | + <h3>Usage and SDK Samples</h3> |
| 26851 | + </p> |
| 26852 | + <ul class="nav nav-tabs nav-tabs-examples"> |
| 26853 | + <li class=""><a href="#examples-Accounting-getJournalByNumber-0-java">Java</a></li> |
| 26854 | + </ul> |
| 26855 | + <div class="tab-content"> |
| 26856 | + <div class="tab-pane" id="examples-Accounting-getJournalByNumber-0-java"> |
| 26857 | + <pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.*; |
| 26858 | +import org.openapitools.client.api.client.AccountingApi; |
| 26859 | +import org.openapitools.client.models.accounting.*; |
| 26860 | + |
| 26861 | +import java.io.File; |
| 26862 | +import java.util.*; |
| 26863 | + |
| 26864 | +public class AccountingApiExample { |
| 26865 | + private AccountingApi apiInstance; |
| 26866 | + |
| 26867 | + public static void main(String[] args) { |
| 26868 | + String accessToken = "YOUR_ACCESS_TOKEN"; |
| 26869 | + ApiClient defaultClient = new ApiClient(); |
| 26870 | + |
| 26871 | + apiInstance = AccountingApi.getInstance(defaultClient); |
| 26872 | + String xeroTenantId = 'YOUR_XERO_TENANT_ID'; |
| 26873 | + Integer journalNumber = 1000; |
| 26874 | + |
| 26875 | + try { |
| 26876 | + Journals result = apiInstance.getJournalByNumber(accessToken, xeroTenantId, journalNumber); |
| 26877 | + System.out.println(result); |
| 26878 | + } catch (XeroException e) { |
| 26879 | + System.err.println("Exception when calling AccountingApi#getJournalByNumber"); |
| 26880 | + e.printStackTrace(); |
| 26881 | + } |
| 26882 | + } |
| 26883 | +}</code></pre> |
| 26884 | + </div> |
| 26885 | + </div> |
| 26886 | + <h2>Scopes</h2> |
| 26887 | + <table> |
| 26888 | + |
| 26889 | + <tr> |
| 26890 | + <td>accounting.journals.read</td> |
| 26891 | + <td>Grant read-only access to journals</td> |
| 26892 | + </tr> |
| 26893 | + |
| 26894 | + </table> |
| 26895 | + <h2>Parameters</h2> |
| 26896 | + <div class="methodsubtabletitle">Path parameters</div> |
| 26897 | + <table id="methodsubtable"> |
| 26898 | + <tr> |
| 26899 | + <th width="150px">Name</th> |
| 26900 | + <th>Description</th> |
| 26901 | + </tr> |
| 26902 | + <tr><td style="width:150px;">JournalNumber<span style="color:red;">*</span></td> |
| 26903 | +<td> |
| 26904 | + |
| 26905 | + |
| 26906 | + <div id="d2e199_getJournalByNumber_journalNumber"> |
| 26907 | + <div class="json-schema-view"> |
| 26908 | + <div class="primitive"> |
| 26909 | + <span class="type"> |
| 26910 | + Integer |
| 26911 | + </span> |
| 26912 | + |
| 26913 | + <div class="inner description marked"> |
| 26914 | +Number of a Journal |
| 26915 | + </div> |
| 26916 | + </div> |
| 26917 | + <div class="inner required"> |
| 26918 | + Required |
| 26919 | + </div> |
| 26920 | + </div> |
| 26921 | + </div> |
| 26922 | +</td> |
| 26923 | +</tr> |
| 26924 | + |
| 26925 | + </table> |
| 26926 | + <div class="methodsubtabletitle">Header parameters</div> |
| 26927 | + <table id="methodsubtable"> |
| 26928 | + <tr> |
| 26929 | + <th width="150px">Name</th> |
| 26930 | + <th>Description</th> |
| 26931 | + </tr> |
| 26932 | + <tr><td style="width:150px;">xero-tenant-id<span style="color:red;">*</span></td> |
| 26933 | +<td> |
| 26934 | + |
| 26935 | + |
| 26936 | + <div id="d2e199_getJournalByNumber_xeroTenantId"> |
| 26937 | + <div class="json-schema-view"> |
| 26938 | + <div class="primitive"> |
| 26939 | + <span class="type"> |
| 26940 | + String |
| 26941 | + </span> |
| 26942 | + |
| 26943 | + <div class="inner description marked"> |
| 26944 | +Xero identifier for Tenant |
| 26945 | + </div> |
| 26946 | + </div> |
| 26947 | + <div class="inner required"> |
| 26948 | + Required |
| 26949 | + </div> |
| 26950 | + </div> |
| 26951 | + </div> |
| 26952 | +</td> |
26827 | 26953 | </tr>
|
26828 | 26954 |
|
26829 | 26955 | </table>
|
|
0 commit comments