Updating Invoice Lines PUT Request doesn't reflect changes

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
moretonblue
2 Posts
User

2Posts

0Kudos

0Solutions

Updating Invoice Lines PUT Request doesn't reflect changes

I have attached a screenshot

I have an existing invoice with one line item in it I did a PUT request with 2 new items added but it doesn't get added and no errors was thrown

https://developer.myob.com/api/myob-business-api/v2/sale/invoice/invoice_item/

i'm using this api.

Here is the json for PUT request

{
"Customer": {
"UID": "022e7385-c877-43ce-992d-8ea8936bb3ec"
},
"UID": "6c85f12f-82e3-4141-9555-5556948c400d",
"Lines": [
{
"RowID": 153,
"ShipQuantity": 0,
"UnitPrice": 1650,
"UnitOfMeasure": null,
"UnitCount": 1,
"UnitPriceForeign": null,
"DiscountPercent": 0,
"CostOfGoodsSold": 0,
"Item": null,
"Account": {
"UID": "a59b19ba-bcd8-429c-94a0-3b9fbf2e7703",
"Name": "Sales",
"DisplayID": "4-1400"
},
"Location": null,
"Type": "Transaction",
"Description": "myob supplier - Test - Loan Calculator Reference ID: e6ecb765-3f35-4d6d-8632-f53a745788be",
"Total": 1650,
"TotalForeign": null,
"Job": null,
"TaxCode": {
"UID": "939f5ada-49c7-445f-bee4-0a351c88b073",
"Code": "GST"
},
"RowVersion": "-6397926220633210880"
},
{
"Type": "Transaction",
"Description": "myob supplier - Test - Loan Calculator Reference ID: 29627222-a961-4643-a734-648b00af0377",
"UnitCount": 1,
"UnitPrice": 3000,
"Job": null,
"DiscountPercent": 0,
"TaxCode": {
"UID": "939f5ada-49c7-445f-bee4-0a351c88b073"
},
"Account": {
"UID": "a59b19ba-bcd8-429c-94a0-3b9fbf2e7703"
}
},
{
"Type": "Transaction",
"Description": "myob supplier - Test 3 - Loan Calculator Reference ID: c342c65c-ac18-4d92-8275-ad2e99b9ac08",
"UnitCount": 1,
"UnitPrice": 2500,
"Job": null,
"DiscountPercent": 0,
"TaxCode": {
"UID": "939f5ada-49c7-445f-bee4-0a351c88b073"
},
"Account": {
"UID": "a59b19ba-bcd8-429c-94a0-3b9fbf2e7703"
}
}
]
}

Untitled2.png

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post