Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
October 2019 - last edited October 2019
October 2019 - last edited October 2019
Hello,
Calling the API "Sale/CreditRefund" we get back the error Error (4163) JournalLine_InvalidAccount:
Request:
Post http://localhost:8080/AccountRight/************-****-*****-****-******/Sale/CreditRefund
{
"Account": {
"UID": "edfb1479-b314-4468-bf12-2ce1338cb78f"
},
"Invoice": {
"UID": "01ec026a-49ba-48f3-819f-aefb0eab274e"
},
"Customer": {
"UID": "55010cb0-e706-4705-bd0a-b9cbe41855d4"
},
"Number": "U182",
"Date": "2019-10-27T00:00:00",
"Amount": 52.00,
"Memo": "PaymentId #182",
"PaymentMethod": null
}
Response:
October 2019
October 2019
Hello @abaazzi,
Thanks for getting in touch. The error JournalLine_InvalidAccount when posting to the /Sale/CreditRefund endpoint, can often be caused by a missing linked account in the AccountRight file set up. Your client will need to open their file, then go to Setup > Linked Accounts > Sales Accounts. On this screen, there is a tickbox labelled I track deposits collected from customer, this will need to be ticked and an account selected.
Generally, a Liability type account is used, however your client will need to confirm with their Accountant/Bookkeeper which specific account to select.
Without this linked account selected, AccountRight is unable to accept the POST through the API of the CreditRefund.
Thanks,
Thanks,
@Hannah_B
MYOB API Specialist
MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's
Did my answer help?
Mark it as a Solution
by
Jodie-D
September
6
1079
|
6
|
1079
|
||
10
|
902
|
|||
18
|
2232
|
|||
6
|
1314
|
|||
29
|
1622
|