Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
March 2021
March 2021
Hi,
Found this old issue: https://community.myob.com/t5/MYOB-API-questions-and-answers/New-line-break-in-purchase-order/m-p/57...
But it seems there's no solution on how to split into multiple lines on shipping address.
Can anyone help us out. thanks.
March 2021
March 2021
Hi @ITQuoter
Thanks for reaching out, The AccountRight API only allows for a single string to be used in your request body when sending invoices to a company file. You can use `\r\n` as a line break in the request body to separate the shipping address information into multiple lines in AccountRight. For example, the shipping address details can be sent via the API as `"ShipToAddress": "Jacob API\r\n17 Made Up Road\r\nXXXX NSW 2056\r\nAustralia\r\n"` which creates the invoice in the format shown in the attached screenshot. When extracting the invoice to retrieve the shipping address details, there is no way to show each component in it's own line. The shipping address details will be represented in the `"ShipToAddress": "Jacob API\r\n17 Made Up Road\r\nXXXX NSW 2056\r\nAustralia\r\n"` format when retrieving it via the API.
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
March 2021
March 2021
Hi,
I tried that and it seems not working, see this screenshot
March 2021
March 2021
Hi,
Any update on this, as there are many clients who use myob that integrates in our app.
March 2021
March 2021
Hi @ITQuoter,
Would you please be able to create an API support request with us here. This will allow us to have a more in-depth look into what is occurring with the address field.
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
June 2021
June 2021
For anyone still struggling with this I found that changing the quotes around my string from single to double quotes solved the problem:
'Street\r\nSuburb'
to:
"Street\r\nSuburb"
0
|
80
|
|||
by
IdaS1
a month ago
1
194
|
1
|
194
|
||
by
KILIQUIDWASTE
September
26
1052
|
26
|
1052
|
||
5
|
977
|
|||
3
|
880
|