Forum Discussion
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.
Hi,
I tried that and it seems not working, see this screenshot
- 4 years ago
Hi,
Any update on this, as there are many clients who use myob that integrates in our app.
- Han-Solo4 years agoMYOB Moderator
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.
- 4 years ago
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"
Looking for something else?
Search the Community Forum for answers or find your topic and get the conversation started!
Find technical support and help for all MYOB products in our online help centre
Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.