New Line break in Shipping Address

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.
ITQuoter
Partner
4 Posts
Partner
Partner

4Posts

0Kudos

0Solutions

New Line break in Shipping Address

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. 

5 REPLIES 5
Hannah_B
MYOB Moderator
142 Posts
MYOB Moderator
Australia
MYOB Moderator

142Posts

33Kudos

25Solutions

Re: New Line break in Shipping Address

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.

 

Address lines.PNG


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

ITQuoter
Partner
4 Posts
Partner
Partner

4Posts

0Kudos

0Solutions

Re: New Line break in Shipping Address

Hi, 

 

I tried that and it seems not working, see this screenshot

 

myob.PNG

ITQuoter
Partner
4 Posts
Partner
Partner

4Posts

0Kudos

0Solutions

Re: New Line break in Shipping Address

Hi, 

 

Any update on this, as there are many clients who use myob that integrates in our app.

 

 

Hannah_B
MYOB Moderator
142 Posts
MYOB Moderator
Australia
MYOB Moderator

142Posts

33Kudos

25Solutions

Re: New Line break in Shipping Address

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

gaileli
1 Post
User

1Posts

0Kudos

0Solutions

Re: New Line break in Shipping Address

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"

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