PHPackages                             the-dusky/idempiere-php-composite-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. the-dusky/idempiere-php-composite-api

ActiveLibrary[API Development](/categories/api)

the-dusky/idempiere-php-composite-api
=====================================

A php wrapper for the composite api in Idempiere

1561PHP

Since Feb 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/the-dusky/idempiere-php-composite-api)[ Packagist](https://packagist.org/packages/the-dusky/idempiere-php-composite-api)[ RSS](/packages/the-dusky-idempiere-php-composite-api/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

idempiere-php-composite-api
===========================

[](#idempiere-php-composite-api)

A php wrapper for the composite api in Idempiere

request\_params can be sent in as json or an associative php array.

To install use composer:

```
composer require the-dusky/idempiere-php-composite-api

composer
```

Make Call:

```
    use  IdempierePhpCompositeApi\IdApi;

    $IdApi = new IdApi();

    $IdApi->build_request($json_or_array);

    $IdApi->build_request($additional_json_or_array, true);

    $IdApi->make_request();
```

Available Properties:

```
    //JSON

        $json_request = $IdApi->get_json_request();

        $raw_json_response = $IdApi->get_raw_json_response();

        $parsed_json_response = $IdApi->get_json_response();

    //ARRAY

        $array_request = $IdApi->get_array_request();

        $raw_array_response = $IdApi->get_raw_array_response();

        $parsed_array_response = $IdApi->get_array_response();

    //XML

        $xml_soap_request = $IdApi->get_xml_request();

        $xml_soap_response = $IdApi->get_xml_response();
```

example json:

```
    //REQUEST

        {
           "settings":{
              "urlEndpoint":"**ENDPOINT**",
              "user":"**USERNAME**",
              "password":"**PASSWORD**",
              "language":"en_US",
              "clientId":"11",
              "roleId":"50004",
              "orgId":"11",
              "warehouseId":"103",
              "stage":"9"
           },
           "call":[
             {
                "type":"createUpdateData",
                "preCommit":"false",
                "postCommit":"false",
                "serviceName":"CreateBPartner1_0",
                "table":"c_bpartner",
                "action":"CreateUpdate",
                "name":"bpartner_id",
                "values":{
                   "Name":"Joe Schmoe",
                   "email":"joe@schmoe.com",
                   "TaxID":"",
                   "IsVendor":"N",
                   "IsCustomer":"Y",
                   "IsTaxExempt":"N",
                   "C_BP_Group_ID":"104"
                }
             },
             {
                "type":"createUpdateData",
                "preCommit":"false",
                "postCommit":"false",
                "serviceName":"CreateUpdateLocation",
                "table":"C_Location",
                "action":"CreateUpdate",
                "name":"location_id",
                "values":{
                   "Address1":"Some Street",
                   "Address2":"1B",
                   "City":"Brooklyn",
                   "lookup":[
                      {
                         "id":"C_Region_ID",
                         "value":"NY"
                      },
                      {
                         "id":"C_Country_ID",
                         "value":"United States"
                      }
                   ],
                   "Postal":"11249"
                }
             },
             {
                "type":"createUpdateData",
                "preCommit":"false",
                "postCommit":"false",
                "serviceName":"CreateUpdateBPLocation",
                "table":"C_BPartner_Location",
                "action":"CreateUpdate",
                "name":"bp_location_id",
                "values":{
                   "C_BPartner_ID":"@C_BPartner.C_BPartner_ID",
                   "C_Location_ID":"@C_Location.C_Location_ID",
                   "IsShipTo":"Y",
                   "IsBillTo":"N"
                }
             },
             {
                "type":"createUpdateData",
                "preCommit":"true",
                "postCommit":"false",
                "serviceName":"CreateUpdateUser",
                "table":"AD_User",
                "action":"CreateUpdate",
                "name":"user_id",
                "values":{
                   "Name":"Joe Schmoe",
                   "C_BPartner_ID":"@C_BPartner.C_BPartner_ID",
                   "EMail":"sandy@maxcorsillo.com",
                   "C_BPartner_Location_ID":"@C_BPartner_Location.C_BPartner_Location_ID"
                }
             },
             {
                "type":"createUpdateData",
                "preCommit":"false",
                "postCommit":"false",
                "serviceName":"CreateUpdateLocation",
                "table":"C_Location",
                "action":"CreateUpdate",
                "name":"location_id",
                "values":{
                   "Address1":"Some Other Street",
                   "Address2":"#2",
                   "City":"Brooklyn",
                   "lookup":[
                      {
                         "id":"C_Region_ID",
                         "value":"NY"
                      },
                      {
                         "id":"C_Country_ID",
                         "value":"United States"
                      }
                   ],
                   "Postal":"11249"
                }
             },
             {
                "type":"createUpdateData",
                "preCommit":"false",
                "postCommit":"false",
                "serviceName":"CreateUpdateBPLocation",
                "table":"C_BPartner_Location",
                "action":"CreateUpdate",
                "name":"bp_location_id",
                "values":{
                   "C_BPartner_ID":"@C_BPartner.C_BPartner_ID",
                   "C_Location_ID":"@C_Location.C_Location_ID",
                   "IsShipTo":"N",
                   "IsBillTo":"Y"
                }
             },
             {
                "type":"createUpdateData",
                "preCommit":"false",
                "postCommit":"false",
                "serviceName":"CreateOrderRecord",
                "table":"C_Order",
                "action":"CreateUpdate",
                "name":"order_id",
                "values":{
                   "M_Warehouse_ID":"1000001",
                   "AD_User_ID":"@AD_User.AD_User_ID",
                   "C_BPartner_ID":"@C_BPartner.C_BPartner_ID",
                   "C_DocTypeTarget_ID":"132",
                   "FreightCostRule":"I",
                   "DocumentNo":"122014"
                }
             },
             {
                "type":"createUpdateData",
                "preCommit":"false",
                "postCommit":"false",
                "serviceName":"CreateOrderRecord",
                "table":"C_Order",
                "action":"CreateUpdate",
                "name":"order_update",
                "values":{
                   "DocumentNo":"122014",
                   "M_PriceList_ID":"101"
                }
             },
             {
                "type":"createUpdateData",
                "preCommit":"false",
                "postCommit":"false",
                "serviceName":"CreateOrderLine",
                "table":"C_OrderLine",
                "action":"CreateUpdate",
                "name":"orderline_id",
                "values":{
                   "AD_Org_ID":"11",
                   "AD_Client_ID":"11",
                   "C_Order_ID":"@C_Order.C_Order_ID",
                   "QtyEntered":"1",
                   "QtyOrdered":"1",
                   "Line":"10",
                   "PriceEntered":"99",
                   "PriceActual":"99",
                   "lookup":[
                      {
                         "id":"M_Product_ID",
                         "value":"100025"
                      }
                   ]
                }
             },
             {
                "type":"createUpdateData",
                "preCommit":"false",
                "postCommit":"false",
                "serviceName":"CreateOrderLine",
                "table":"C_OrderLine",
                "action":"CreateUpdate",
                "name":"orderline_id",
                "values":{
                   "AD_Org_ID":"11",
                   "AD_Client_ID":"11",
                   "C_Order_ID":"@C_Order.C_Order_ID",
                   "QtyEntered":"1",
                   "QtyOrdered":"1",
                   "Line":"20",
                   "PriceEntered":"21.29",
                   "PriceActual":"21.29",
                   "lookup":[
                      {
                         "id":"M_Product_ID",
                         "value":"1255669"
                      }
                   ]
                }
             },
             {
                "type":"setDocAction",
                "preCommit":"true",
                "postCommit":"true",
                "serviceName":"UpdateOrderStatus",
                "table":"C_Order",
                "idColumn":"C_Order_ID",
                "action":"CO"
             },
             {
                "type":"runProcess",
                "preCommit":"false",
                "postCommit":"true",
                "serviceName":"GenerateInvoice",
                "name":"invoice_id",
                "values":{
                   "AD_Org_ID":"11",
                   "C_Order_ID":"@C_Order.C_Order_ID",
                   "DocAction":"CO"
                }
             }
           ]
        }

    //RESPONSE

        {
           "soapBody":{
              "ns1compositeOperationResponse":{
                 "CompositeResponses":{
                    "CompositeResponse":{
                       "StandardResponse":[
                          {
                             "@attributes":{
                                "RecordID":"1000000"
                             },
                             "outputFields":{
                                "outputField":{
                                   "@attributes":{
                                      "column":"C_BPartner_ID",
                                      "value":"1000000"
                                   }
                                }
                             }
                          },
                          {
                             "@attributes":{
                                "RecordID":"1006750"
                             },
                             "outputFields":{
                                "outputField":[
                                   {
                                      "@attributes":{
                                         "column":"Address1",
                                         "value":"Some Street"
                                      }
                                   },
                                   {
                                      "@attributes":{
                                         "column":"Address2",
                                         "value":"1B"
                                      }
                                   },
                                   {
                                      "@attributes":{
                                         "column":"C_City_ID"
                                      }
                                   },
                                   {
                                      "@attributes":{
                                         "column":"C_Country_ID",
                                         "value":"100",
                                         "Text":"United States"
                                      }
                                   },
                                   {
                                      "@attributes":{
                                         "column":"C_Location_ID",
                                         "value":"1006750"
                                      }
                                   },
                                   {
                                      "@attributes":{
                                         "column":"C_Region_ID",
                                         "value":"108",
                                         "Text":"NY"
                                      }
                                   }
                                ]
                             }
                          },
                          {
                             "@attributes":{
                                "RecordID":"1006580"
                             },
                             "outputFields":{
                                "outputField":{
                                   "@attributes":{
                                      "column":"C_BPartner_Location_ID",
                                      "value":"1006580"
                                   }
                                }
                             }
                          },
                          {
                             "@attributes":{
                                "RecordID":"1000000"
                             },
                             "outputFields":{
                                "outputField":{
                                   "@attributes":{
                                      "column":"AD_User_ID",
                                      "value":"1000000"
                                   }
                                }
                             }
                          },
                          {
                             "@attributes":{
                                "RecordID":"1007791"
                             },
                             "outputFields":{
                                "outputField":[
                                   {
                                      "@attributes":{
                                         "column":"C_Order_ID",
                                         "value":"1007791"
                                      }
                                   },
                                   {
                                      "@attributes":{
                                         "column":"DocumentNo",
                                         "value":"121973"
                                      }
                                   }
                                ]
                             }
                          },
                          {
                             "@attributes":{
                                "RecordID":"1007791"
                             },
                             "outputFields":{
                                "outputField":[
                                   {
                                      "@attributes":{
                                         "column":"C_Order_ID",
                                         "value":"1007791"
                                      }
                                   },
                                   {
                                      "@attributes":{
                                         "column":"DocumentNo",
                                         "value":"121973"
                                      }
                                   }
                                ]
                             }
                          },
                          {
                             "@attributes":{
                                "RecordID":"1039473"
                             },
                             "outputFields":{
                                "outputField":{
                                   "@attributes":{
                                      "column":"C_OrderLine_ID",
                                      "value":"1039473"
                                   }
                                }
                             }
                          },
                          {
                             "@attributes":{
                                "RecordID":"1039474"
                             },
                             "outputFields":{
                                "outputField":{
                                   "@attributes":{
                                      "column":"C_OrderLine_ID",
                                      "value":"1039474"
                                   }
                                }
                             }
                          },
                          {
                             "@attributes":{
                                "RecordID":"1007791",
                                "IsError":"false"
                             }
                          },
                          {
                             "@attributes":{
                                "IsError":"false"
                             },
                             "RunProcessResponse":{
                                "@attributes":{
                                   "IsError":"false"
                                },
                                "Error":"Created = 1",
                                "Summary":"Created = 1",
                                "LogInfo":{

                                }
                             }
                          }
                       ]
                    }
                 }
              }
           }
        }

    //PARSED RESPONSE

        {
           "Summary":{
              "bpartner_id":"1000000",
              "location_id":[
                 "1006752",
                 "1006751"
              ],
              "bp_location_id":[
                 "1006576",
                 "1006579"
              ],
              "user_id":"1000000",
              "order_id":"1007806",
              "order_update":"1007806",
              "orderline_id":[
                  "1039507",
                  "1039508"
              ]
           },
           "Response":[
              {
                 "serviceName":"CreateBPartner1_0",
                 "RecordID":"1000000",
                 "OutputFields":{
                    "C_BPartner_ID":"1000000"
                 }
              },
              {
                 "serviceName":"CreateUpdateLocation",
                 "RecordID":"1006752",
                 "OutputFields":{
                    "Address1":"390 Wythe Avenue",
                    "Address2":"#1D",
                    "C_City_ID":"NULL",
                    "C_Country_ID":"100",
                    "C_Location_ID":"1006752",
                    "C_Region_ID":"108"
                 }
              },
              {
                 "serviceName":"CreateUpdateBPLocation",
                 "RecordID":"1006576",
                 "OutputFields":{
                    "C_BPartner_Location_ID":"1006576"
                 }
              },
              {
                 "serviceName":"CreateUpdateUser",
                 "RecordID":"1000000",
                 "OutputFields":{
                    "AD_User_ID":"1000000"
                 }
              },
              {
                 "serviceName":"CreateUpdateLocation",
                 "RecordID":"1006751",
                 "OutputFields":{
                    "Address1":"109 South 6th Street",
                    "Address2":"#2",
                    "C_City_ID":"NULL",
                    "C_Country_ID":"100",
                    "C_Location_ID":"1006751",
                    "C_Region_ID":"108"
                 }
              },
              {
                 "serviceName":"CreateUpdateBPLocation",
                 "RecordID":"1006579",
                 "OutputFields":{
                    "C_BPartner_Location_ID":"1006579"
                 }
              },
              {
                 "serviceName":"CreateOrderRecord",
                 "RecordID":"1007806",
                 "OutputFields":{
                    "C_Order_ID":"1007806",
                    "DocumentNo":"122014"
                 }
              },
              {
                 "serviceName":"CreateOrderRecord",
                 "RecordID":"1007806",
                 "OutputFields":{
                    "C_Order_ID":"1007806",
                    "DocumentNo":"122014"
                 }
              },
              {
                 "serviceName":"CreateOrderLine",
                 "RecordID":"1039507",
                 "OutputFields":{
                    "C_OrderLine_ID":"1039507"
                 }
              },
              {
                 "serviceName":"CreateOrderLine",
                 "RecordID":"1039508",
                 "OutputFields":{
                    "C_OrderLine_ID":"1039508"
                 }
              },
              {
                 "serviceName":"UpdateOrderStatus",
                 "RecordID":"1007806",
                 "IsError":"false"
              },
              {
                 "serviceName":"GenerateInvoice",
                 "IsError":"false",
                 "RunProcessResponse":{
                    "@attributes":{
                       "IsError":"false"
                    },
                    "Error":"Created = 1",
                    "Summary":"Created = 1",
                    "LogInfo":[

                    ]
                 }
              }
           ]
        }
```

```

               **USERNAME**
               **PASSWORD**
               en_US
               11
               50004
               11
               103
               9

            SyncOrder

                  createUpdateData

                     CreateBPartner1_0
                     c_bpartner
                     0
                     CreateUpdate

                           Joe Schmoe

                           joe@schmoe.com

                           N

                           Y

                           N

                           104

                  createUpdateData

                     CreateUpdateLocation
                     C_Location
                     0
                     CreateUpdate

                           Some Street

                           1B

                           Brooklyn

                           11211

                  createUpdateData

                     CreateUpdateBPLocation
                     C_BPartner_Location
                     0
                     CreateUpdate

                           @C_BPartner.C_BPartner_ID

                           @C_Location.C_Location_ID

                           Y

                           Y

                  createUpdateData

                     CreateUpdateUser
                     AD_User
                     0
                     CreateUpdate

                           Joe Schmoe

                           @C_BPartner.C_BPartner_ID

                           joe@schmoe.com

                           @C_BPartner_Location.C_BPartner_Location_ID

                  createUpdateData

                     CreateOrderRecord
                     C_Order
                     0
                     CreateUpdate

                           1000001

                           @AD_User.AD_User_ID

                           @C_BPartner.C_BPartner_ID

                           132

                           I

                           5000000

                  createUpdateData

                     CreateOrderRecord
                     C_Order
                     0
                     CreateUpdate

                           5000000

                           100

                  createUpdateData

                     CreateOrderLine
                     C_OrderLine
                     0
                     CreateUpdate

                           11

                           11

                           @C_Order.C_Order_ID

                           1

                           1

                           10

                           108

                           108

                  createUpdateData

                     CreateOrderLine
                     C_OrderLine
                     0
                     CreateUpdate

                           11

                           11

                           @C_Order.C_Order_ID

                           1

                           1

                           20

                           42.13

                           42.13

                  setDocAction

                     UpdateOrderStatus
                     C_Order
                     0
                     @C_Order.C_Order_ID
                     CO

                  runProcess

                     GenerateInvoice

                           11

                           @C_Order.C_Order_ID

                           CO

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a36e82ebaa782423c6f20c45c85690e057a5f4369db3f22c574c7da83e8d166b?d=identicon)[the-dusky](/maintainers/the-dusky)

### Embed Badge

![Health badge](/badges/the-dusky-idempiere-php-composite-api/health.svg)

```
[![Health](https://phpackages.com/badges/the-dusky-idempiere-php-composite-api/health.svg)](https://phpackages.com/packages/the-dusky-idempiere-php-composite-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
