Symptoms

GetPromotionDetails_API execution with the following parameters:

<string>PromoID</string>
    </value>
        <value>
             <i4>1</i4>
         </value>

Returns the following error:

System ErrorData packet type error. Type: 12 Index: 2

While Billing API Reference states:

Str Value: The value of the Key parameter. The parameter takes one of these values:
an integer promotion ID in OA Billing when Key = PromoID;
a string promotion code in OA Billing when Key = PromoCode.

Cause

The documentation is not accurate. A request #PBA-80504 "Update GetPromotionDetails_API description" has been created to correct the documentation.

Resolution

Please use the following syntax in case of PromoID is used as key:

<string>PromoID</string>
    </value>
        <value>
            <string>1</string>
        </value>

Internal content