You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/accounting/AccountingApi.md
+22-7Lines changed: 22 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2074,7 +2074,9 @@ opts = {
2074
2074
2075
2075
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2076
2076
2077
-
idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
2077
+
idempotency_key: 'KEY_VALUE', # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
2078
+
2079
+
allow_backorders: true # Boolean | Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
2078
2080
}
2079
2081
2080
2082
begin
@@ -2096,6 +2098,7 @@ Name | Type | Description | Notes
2096
2098
**summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
2097
2099
**unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
2098
2100
**idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional]
2101
+
**allow_backorders** | **Boolean**| Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative | [optional]
2099
2102
2100
2103
### Return type
2101
2104
@@ -5905,7 +5908,9 @@ opts = {
5905
5908
5906
5909
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
5907
5910
5908
-
page_size: 100 # Integer | Number of records to retrieve per page
5911
+
page_size: 100, # Integer | Number of records to retrieve per page
5912
+
5913
+
references: ['"Ref1", "Ref2"'] # Array<String> | Filter by a comma-separated list of References
5909
5914
}
5910
5915
5911
5916
begin
@@ -5929,6 +5934,7 @@ Name | Type | Description | Notes
5929
5934
**page** | **Integer**| Up to 100 bank transactions will be returned in a single API call with line items details | [optional]
5930
5935
**unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
5931
5936
**page_size** | **Integer**| Number of records to retrieve per page | [optional]
5937
+
**references** | [**Array<String>**](String.md)| Filter by a comma-separated list of References | [optional]
5932
5938
5933
5939
### Return type
5934
5940
@@ -10808,13 +10814,15 @@ opts = {
10808
10814
10809
10815
order: 'Reference ASC', # String | Order by an any element
10810
10816
10811
-
page: 1, # Integer | e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
10817
+
page: 1, # Integer | e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment
10812
10818
10813
10819
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
10814
10820
10815
10821
page_size: 100, # Integer | Number of records to retrieve per page
10816
10822
10817
-
invoice_numbers: ['"INV-001", "INV-002"'] # Array<String> | Filter by a comma-separated list of InvoiceNumbers
10823
+
invoice_numbers: ['"INV-001", "INV-002"'], # Array<String> | Filter by a comma-separated list of InvoiceNumbers
10824
+
10825
+
references: ['"Ref1", "Ref2"'] # Array<String> | Filter by a comma-separated list of References
10818
10826
}
10819
10827
10820
10828
begin
@@ -10835,10 +10843,11 @@ Name | Type | Description | Notes
10835
10843
**if_modified_since** | **DateTime**| Only records created or modified since this timestamp will be returned | [optional]
10836
10844
**where** | **String**| Filter by an any element | [optional]
10837
10845
**order** | **String**| Order by an any element | [optional]
10838
-
**page** | **Integer**| e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment | [optional]
10846
+
**page** | **Integer**| e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment | [optional]
10839
10847
**unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
10840
10848
**page_size** | **Integer**| Number of records to retrieve per page | [optional]
10841
10849
**invoice_numbers** | [**Array<String>**](String.md)| Filter by a comma-separated list of InvoiceNumbers | [optional]
10850
+
**references** | [**Array<String>**](String.md)| Filter by a comma-separated list of References | [optional]
10842
10851
10843
10852
### Return type
10844
10853
@@ -14799,7 +14808,9 @@ invoices = {"Invoices":[{"Reference":"May the force be with you","InvoiceID":"00
14799
14808
opts = {
14800
14809
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
14801
14810
14802
-
idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
14811
+
idempotency_key: 'KEY_VALUE', # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
14812
+
14813
+
allow_backorders: true # Boolean | Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
14803
14814
}
14804
14815
14805
14816
begin
@@ -14821,6 +14832,7 @@ Name | Type | Description | Notes
14821
14832
**invoices** | [**Invoices**](Invoices.md)| |
14822
14833
**unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
14823
14834
**idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional]
14835
+
**allow_backorders** | **Boolean**| Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative | [optional]
14824
14836
14825
14837
### Return type
14826
14838
@@ -15458,7 +15470,9 @@ opts = {
15458
15470
15459
15471
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
15460
15472
15461
-
idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
15473
+
idempotency_key: 'KEY_VALUE', # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
15474
+
15475
+
allow_backorders: true # Boolean | Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
15462
15476
}
15463
15477
15464
15478
begin
@@ -15480,6 +15494,7 @@ Name | Type | Description | Notes
15480
15494
**summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
15481
15495
**unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
15482
15496
**idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional]
15497
+
**allow_backorders** | **Boolean**| Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative | [optional]
**is_tracked_as_inventory** | **Boolean** | True for items that are tracked as inventory. An item will be tracked as inventory if the InventoryAssetAccountCode and COGSAccountCode are set. | [optional]
17
17
**total_cost_pool** | **BigDecimal** | The value of the item on hand. Calculated using average cost accounting. | [optional]
18
-
**quantity_on_hand** | **BigDecimal** | The quantity of the item on hand | [optional]
18
+
**quantity_on_hand** | **BigDecimal** | The quantity of the item on hand. This will be 0 if `QuantityOnBackOrder` is greater than 0. | [optional]
19
+
**quantity_available** | **Float** | The quantity of the item available. This is equal to `QuantityOnHand` - `QuantityOnBackOrder`. This value will be negative if `QuantityOnBackOrder` is greater than 0. | [optional]
20
+
**quantity_on_back_order** | **Float** | The quantity of the item on backorder. This will be 0 if `QuantityOnHand` is greater than 0. | [optional]
19
21
**updated_date_utc** | **DateTime** | Last modified date in UTC format | [optional]
20
22
**item_id** | **String** | The Xero identifier for an Item | [optional]
21
23
**status_attribute_string** | **String** | Status of object | [optional]
Copy file name to clipboardExpand all lines: docs/accounting/index.html
+125-8Lines changed: 125 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3519,10 +3519,22 @@
3519
3519
},
3520
3520
"QuantityOnHand" : {
3521
3521
"type" : "number",
3522
-
"description" : "The quantity of the item on hand",
3522
+
"description" : "The quantity of the item on hand. This will be 0 if `QuantityOnBackOrder` is greater than 0.",
3523
3523
"format" : "double",
3524
3524
"x-is-money" : true
3525
3525
},
3526
+
"QuantityAvailable" : {
3527
+
"type" : "number",
3528
+
"description" : "The quantity of the item available. This is equal to `QuantityOnHand` - `QuantityOnBackOrder`. This value will be negative if `QuantityOnBackOrder` is greater than 0.",
3529
+
"format" : "double",
3530
+
"readOnly" : true
3531
+
},
3532
+
"QuantityOnBackOrder" : {
3533
+
"type" : "number",
3534
+
"description" : "The quantity of the item on backorder. This will be 0 if `QuantityOnHand` is greater than 0.",
3535
+
"format" : "double",
3536
+
"readOnly" : true
3537
+
},
3526
3538
"UpdatedDateUTC" : {
3527
3539
"type" : "string",
3528
3540
"description" : "Last modified date in UTC format",
puts "Exception when calling create_invoices: #{e}"
@@ -12294,6 +12307,26 @@ <h2>Parameters</h2>
12294
12307
</div>
12295
12308
</div>
12296
12309
</td>
12310
+
</tr>
12311
+
12312
+
<tr><td style="width:150px;">allowBackorders</td>
12313
+
<td>
12314
+
12315
+
12316
+
<div id="d2e199_createInvoices_allowBackorders">
12317
+
<div class="json-schema-view">
12318
+
<div class="primitive">
12319
+
<span class="type">
12320
+
Boolean
12321
+
</span>
12322
+
12323
+
<div class="inner description marked">
12324
+
Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
12325
+
</div>
12326
+
</div>
12327
+
</div>
12328
+
</div>
12329
+
</td>
12297
12330
</tr>
12298
12331
12299
12332
</table>
@@ -21403,9 +21436,10 @@ <h3>Usage and SDK Samples</h3>
puts "Exception when calling update_invoice: #{e}"
@@ -41099,6 +41175,26 @@ <h2>Parameters</h2>
41099
41175
</div>
41100
41176
</div>
41101
41177
</td>
41178
+
</tr>
41179
+
41180
+
<tr><td style="width:150px;">allowBackorders</td>
41181
+
<td>
41182
+
41183
+
41184
+
<div id="d2e199_updateInvoice_allowBackorders">
41185
+
<div class="json-schema-view">
41186
+
<div class="primitive">
41187
+
<span class="type">
41188
+
Boolean
41189
+
</span>
41190
+
41191
+
<div class="inner description marked">
41192
+
Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
41193
+
</div>
41194
+
</div>
41195
+
</div>
41196
+
</div>
41197
+
</td>
41102
41198
</tr>
41103
41199
41104
41200
</table>
@@ -42779,6 +42875,7 @@ <h3>Usage and SDK Samples</h3>
42779
42875
summarize_errors = true
42780
42876
unitdp = 4
42781
42877
idempotency_key = 'KEY_VALUE'
42878
+
allow_backorders = true
42782
42879
date_value = 'YYYY-MM-DD'
42783
42880
due_date_value = 'YYYY-MM-DD'
42784
42881
@@ -42810,7 +42907,7 @@ <h3>Usage and SDK Samples</h3>
Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
0 commit comments