restApi Business Partner Location

97 views
Skip to first unread message

Erick Benivan

unread,
Apr 24, 2026, 4:47:49 AMApr 24
to iDempiere

Hello, is there anyone who can help? I am currently trying to POST data to create a business partner and its location.

Is it possible to create both the business partner and its location in a single request,

with the condition that we do not POST the location data beforehand?
Below is an example of the JSON body I am using:
{
"Name": "PAXAR INDONESIA",
"Value": "LPXR03",
"IsVendor": true,
"C_BP_Group_ID": 1000001,
"location": [
{
"Address": "",
"Address1": "JL INTI I BIIE LIPPO CIKARANG, BLK C-1, NO.14, CIBATU BEKASI"
}
]
}


And here is the specific error I am getting:

{
"title": "Save error",
"status": 500,
"detail": "Save error with exception: Fill mandatory fields:"
}


Jesús Castillo

unread,
Apr 28, 2026, 8:47:20 AM (11 days ago) Apr 28
to idem...@googlegroups.com
Hi Erick,

I had that request a time ago, I had to developed.
 
Atte: Jesus Castillo.


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/idempiere/a77ad79c-3264-4e98-9639-be20553d0054n%40googlegroups.com.

Diego Ruiz

unread,
Apr 28, 2026, 9:06:05 AM (11 days ago) Apr 28
to iDempiere
This is possible without any development with the current REST. 

You need to follow the iDempiere data structure

Business Partner -> Business Partner Location -> Location

This request works against the test server:

POST ..../C_BPartner

Body
{
"Name": "Test BPartner",
"C_BPartner_Location": [
{
"Name": "testBPLoc",
"C_Location_ID": {
"Address1": "testLoc",
"C_Country_ID": 209
}
}
]
}

Best regards,
Diego

Erick Benivan

unread,
May 3, 2026, 8:07:20 PM (6 days ago) May 3
to iDempiere
oke thank you, i'll be try 
Reply all
Reply to author
Forward
0 new messages