OA Billing API - PlaceOrderAndAuthorize_API

Discussion in 'PBA Suggestions and Feedback' started by zairi ibrahim, May 5, 2017.

  1. zairi ibrahim

    zairi ibrahim Bit Poster

    Messages:
    1
    Hello,

    I want to place an order by the Billing API using the PlaceOrderAndAuthorize_API method with an existing customer, I get the following error :

    HTML:
    <?xml version="1.0" encoding="UTF-8"?>
    <methodResponse><fault><value><struct><member><name>faultCode</name><value><i4>-1</i4></value></member><member><name>faultString</name><value><string>VGFibGUgQ291bnRyeSBkb2Vzbid0IGNvbnRhaW4gcm93IHdpdGggaWQgU3RyaW5nKE5VTEwpLiAKRXJyb3IgQ29kZTogMHg4NWMyMDQxNy4KUmVwb3J0IElEOiA4NjkK</string></value></member></struct></value></fault></methodResponse>

    and here is my request :

    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <methodCall>
    <methodName>Execute</methodName>
    <params>
      <param>
       <value>
        <struct>
          <member>
           <name>Username</name>
           <value>admin</value>
          </member>
          <member>
           <name>Password</name>
           <value>setup</value>
          </member>
         <member>
          <name>Server</name>
          <value>BM</value>
         </member>
         <member>
          <name>Method</name>
          <value>PlaceOrderAndAuthorize_API</value>
         </member>
         <member>
          <name>Params</name>
          <value>
           <array>
            <data>
             <!-- VendorAccountID -->
             <value><i4>1</i4></value>
             <!-- ProvisioningItemsCounter -->
             <value><i4>1</i4></value>
             <!-- ProvisioningItem #0. PlanID=1, PlanPeriodID=3, ProvisioningItemID=0, ParentItemID is not defined -->
             <value>4=8=0=-1</value>
             <!-- ProvisioningItem #1. ResourceRateID=12, PlanPeriodID=3, ProvisioningItemID=1, ParentItemID=0, Amount=100 -->
             <value>1=8=0=0=10=RESOURCE</value>
             <!-- ProvisioningDataSlotCounter -->
             <value><i4>3</i4></value>
             <!-- ProvisioningItemID #0 -->
             <value><i4>0</i4></value>
             <!-- ProvisioningParametersCounter for the ProvisioningItem #0 -->
             <value><i4>1</i4></value>
             <value>DomainID=</value>
        <!-- ContactDataCounter -->
        <value><i4>1</i4></value>
            <!-- Login to CP -->
        <value>LoginID=store1apiuser1</value>
            <!-- Customer's Account ID -->
        <value>AccountID=100007</value>
            <!-- PayToolCounter -->
        <value><i4>1</i4></value>
        <value>PromoCodeID=VP8TC</value>
            <!-- Identifier of Payment tool registered on Customer's Account -->
        <value>PayToolID=16</value>
            <!-- IP Address -->
        <value>IPAddressID=192.168.0.5</value>
            </data>
           </array>
          </value>
         </member>
        </struct>
       </value>
      </param>
    </params>
    </methodCall>
    

    When I decode the fault code, i got :
    "Table Country doesn't contain row with id String(NULL).
    Error Code: 0x85c20417.
    Report ID: 834"

    Have you an idea about this error ?

    Thanks,
     

Share This Page