Update addresses of open sales invoices
Update addresses for unpaid invoices using a customer number and order number or contract number
Send a PATCH request to /jobs/opensalesinvoices. Use custnum and ordernumber or contractnum as query parameters to identify the invoices.
Request
Send the new address in the addaddress array.
{
"addaddress": [
{
"address": "Kuninkaankatu 15",
"city": "KUOPIO",
"addressaddline1": "Johto",
"addressaddline2": "PL 43",
"addressaddline3": "C/O Mauno Mansikka",
"addresstype": "1",
"person": "Tauno Testaaja",
"company": "Toiminimi Testaaja",
"addresscountry": "FIN",
"postcode": "70100",
"custnum": "123456",
"govid": "123456-7",
"vatid": "FI1234567",
"customertype": "1",
"email": "name@domain.fi",
"phone": "+3581234567",
"sitecode": "123456",
"contactperson": "Liisa Assistentti",
"countryname": "Sweden"
}
]
}Address fields
address
Yes
Street address.
city
Yes
City or locality.
postcode
Yes
Postal code.
addresstype
Yes when updating
Address type. Omit it to create a new address.
customertype
Yes
1 for a company or 2 for a consumer.
company
For companies
Company name. Required when customertype is 1.
person
For consumers
Person name. Required when customertype is 2.
addressaddline1–addressaddline3
No
Additional address lines.
addresscountry
No
Three-letter ISO country code.
custnum
No
Customer number.
govid
No
Business ID or personal identifier.
vatid
No
VAT identifier.
email
No
Email address.
phone
No
Phone number.
contactperson
No
Contact person.
countryname
No
Country name.
Address types
1
Mailing address
2
Delivery address
3
Invoicing address
4
C/O address
5
C/O debtor address
6
Other
7
Usage place address
Response
A successful update returns 200 and the affected invoices.
200
Addresses were updated or added.
204
The request was accepted, but no matching address was updated.
400
Invalid request.
401
Authentication failed.
Last updated
Was this helpful?

