| Xero |
PO26050001 |
PurchaseOrder |
|
Failed |
Xero API 400 error calling CreatePurchaseOrders :{
"ErrorNumber": 10,
"Type": "ValidationException",
"Message": "A validation exception occurred",
"Elements": [
{
"PurchaseOrderID": "00000000-0000-0000-0000-000000000000",
"PurchaseOrderNumber": "PO26050001",
"DateString": "2026-05-06T00:00:00",
"Date": "\/Date(1778025600000+0000)\/",
"DeliveryDateString": "2026-05-13T00:00:00",
"DeliveryDate": "\/Date(1778630400000+0000)\/",
"HasErrors": true,
"IsDiscounted": false,
"TotalDiscount": 0.00,
"Reference": "",
"Type": "PURCHASEORDER",
"CurrencyCode": "AUD",
"Contact": {
"ContactID": "9310b0d5-e1dc-46f2-aa03-d639797ab239",
"ContactStatus": "ACTIVE",
"Name": "A class Fencing Solution",
"EmailAddress": "",
"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": "",
"PhoneAreaCode": "",
"PhoneCountryCode": ""
}
],
"UpdatedDateUTC": "\/Date(1759885847510+0000)\/",
"ContactGroups": [],
"DefaultCurrency": "AUD",
"ContactPersons": [],
"HasValidationErrors": false
},
"Status": "SUBMITTED",
"LineAmountTypes": "Inclusive",
"LineItems": [
{
"ItemCode": "ACTPFP125125165",
"Description": "Treated Pine Fence Paling 125x12x1650",
"UnitAmount": 1.5800,
"TaxType": "INPUT",
"TaxAmount": 718.18,
"LineAmount": 7900.00,
"AccountCode": "351",
"Tracking": [],
"Quantity": 5000.0000,
"AccountID": "cec0747b-1d3d-4f8b-9289-2e7c7242b729",
"ValidationErrors": []
},
{
"ItemCode": "ACTPS2005036",
"Description": "TREATED PINE SLEEPERS 200x50 - 200x50x3.6",
"UnitAmount": 20.4600,
"TaxType": "INPUT",
"TaxAmount": 3720.00,
"LineAmount": 40920.00,
"AccountCode": "351",
"Tracking": [],
"Quantity": 2000.0000,
"AccountID": "cec0747b-1d3d-4f8b-9289-2e7c7242b729",
"ValidationErrors": []
}
],
"SubTotal": 44381.82,
"TotalTax": 4438.18,
"Total": 48820.00,
"ValidationErrors": [
{
"Message": "Item code 'ACTPS2005036' is not valid"
}
],
"Warnings": [
{
"Message": "Created from ERP PO 53"
}
]
}
]
}Xero API 400 error calling CreatePurchaseOrders :{
"ErrorNumber": 10,
"Type": "ValidationException",
"Message": "A validation exception occurred",
"Elements": [
{
"PurchaseOrderID": "00000000-0000-0000-0000-000000000000",
"PurchaseOrderNumber": "PO26050001",
"DateString": "2026-05-06T00:00:00",
"Date": "\/Date(1778025600000+0000)\/",
"DeliveryDateString": "2026-05-13T00:00:00",
"DeliveryDate": "\/Date(1778630400000+0000)\/",
"HasErrors": true,
"IsDiscounted": false,
"TotalDiscount": 0.00,
"Reference": "",
"Type": "PURCHASEORDER",
"CurrencyCode": "AUD",
"Contact": {
"ContactID": "9310b0d5-e1dc-46f2-aa03-d639797ab239",
"ContactStatus": "ACTIVE",
"Name": "A class Fencing Solution",
"EmailAddress": "",
"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": "",
"PhoneAreaCode": "",
"PhoneCountryCode": ""
}
],
"UpdatedDateUTC": "\/Date(1759885847510+0000)\/",
"ContactGroups": [],
"DefaultCurrency": "AUD",
"ContactPersons": [],
"HasValidationErrors": false
},
"Status": "SUBMITTED",
"LineAmountTypes": "Inclusive",
"LineItems": [
{
"ItemCode": "ACTPFP125125165",
"Description": "Treated Pine Fence Paling 125x12x1650",
"UnitAmount": 1.5800,
"TaxType": "INPUT",
"TaxAmount": 718.18,
"LineAmount": 7900.00,
"AccountCode": "351",
"Tracking": [],
"Quantity": 5000.0000,
"AccountID": "cec0747b-1d3d-4f8b-9289-2e7c7242b729",
"ValidationErrors": []
},
{
"ItemCode": "ACTPS2005036",
"Description": "TREATED PINE SLEEPERS 200x50 - 200x50x3.6",
"UnitAmount": 20.4600,
"TaxType": "INPUT",
"TaxAmount": 3720.00,
"LineAmount": 40920.00,
"AccountCode": "351",
"Tracking": [],
"Quantity": 2000.0000,
"AccountID": "cec0747b-1d3d-4f8b-9289-2e7c7242b729",
"ValidationErrors": []
}
],
"SubTotal": 44381.82,
"TotalTax": 4438.18,
"Total": 48820.00,
"ValidationErrors": [
{
"Message": "Item code 'ACTPS2005036' is not valid"
}
],
"Warnings": [
{
"Message": "Created from ERP PO 53"
}
]
}
]
} |
|