Skip to content

Commit 3449148

Browse files
author
Jonathan Hatlee
committed
XBIVE-13942: Adds spec for invoice backorders and backorder-specific item fields
1 parent e313746 commit 3449148

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

xero_accounting.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7605,6 +7605,7 @@ paths:
76057605
- $ref: "#/components/parameters/summarizeErrors"
76067606
- $ref: "#/components/parameters/unitdp"
76077607
- $ref: "#/components/parameters/idempotencyKey"
7608+
- $ref: "#/components/parameters/allowBackorders"
76087609
responses:
76097610
"200":
76107611
description: Success - return response of type Invoices array with newly created Invoice
@@ -8217,6 +8218,7 @@ paths:
82178218
- $ref: "#/components/parameters/InvoiceID"
82188219
- $ref: "#/components/parameters/unitdp"
82198220
- $ref: "#/components/parameters/idempotencyKey"
8221+
- $ref: "#/components/parameters/allowBackorders"
82208222
responses:
82218223
"200":
82228224
description: Success - return response of type Invoices array with updated Invoice
@@ -8730,6 +8732,28 @@ paths:
87308732
IsTrackedAsInventory: false
87318733
IsSold: true
87328734
IsPurchased: true
8735+
- ItemID: 5a70a272-a481-4bcf-a8ca-efffd923ab48
8736+
Code: fg78Ac
8737+
Description: Fender Stratocaster Sunburst
8738+
PurchaseDescription: Fender Stratocaster Sunburst
8739+
UpdatedDateUTC: /Date(1552331874000+0000)/
8740+
PurchaseDetails:
8741+
UnitPrice: 1500.0000
8742+
COGSAccountCode: "500"
8743+
TaxType: ""
8744+
SalesDetails:
8745+
UnitPrice: 5000.0000
8746+
AccountCode: "200"
8747+
TaxType: OUTPUT2
8748+
Name: Fender Stratocaster
8749+
IsTrackedAsInventory: true
8750+
InventoryAssetAccountCode: "140"
8751+
TotalCostPool: 0.00
8752+
QuantityOnHand: 0.0000
8753+
QuantityAvailable: 0.0000
8754+
QuantityOnBackOrder: 0.0000
8755+
IsSold: true
8756+
IsPurchased: true
87338757
put:
87348758
security:
87358759
- OAuth2:
@@ -8977,6 +9001,8 @@ paths:
89779001
InventoryAssetAccountCode: "630"
89789002
TotalCostPool: 25000.00
89799003
QuantityOnHand: 10.0000
9004+
QuantityAvailable: 10.0000
9005+
QuantityOnBackOrder: 0.0000
89809006
IsSold: true
89819007
IsPurchased: true
89829008
ValidationErrors: []
@@ -19577,6 +19603,14 @@ components:
1957719603
example: KEY_VALUE
1957819604
schema:
1957919605
type: string
19606+
allowBackorders:
19607+
in: query
19608+
name: allowBackorders
19609+
x-snake: allow_backorders
19610+
description: 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
19611+
example: true
19612+
schema:
19613+
type: boolean
1958019614
includeOnline:
1958119615
in: query
1958219616
name: IncludeOnline

0 commit comments

Comments
 (0)