Happy Business Starts Here

Highlighted
Zuora Support

invalid price format: Flat Fee error

When I try to edit the RatePlanChargeTier via API (in a subscribe() or amend() call), I got the following error.

 

invalid price format: Flat Fee.

Or this one

 

invalid price format: Per Unit.

My call looks something like this.

 

          <ns1:RatePlanChargeTier>
            <ns2:Tier>1</ns2:Tier>
            <ns2:StartingUnit>0.0000000</ns2:StartingUnit>
            <ns2:EndingUnit>5.00000</ns2:EndingUnit>
            <ns2:Price>0.000000</ns2:Price>
            <ns2:PriceFormat>Flat Fee</ns2:PriceFormat>
          </ns1:RatePlanChargeTier>
          <ns1:RatePlanChargeTier>
            <ns2:Tier>2</ns2:Tier>
            <ns2:StartingUnit>6.0000000</ns2:StartingUnit>
            <ns2:EndingUnit>10000.00000</ns2:EndingUnit>
            <ns2:Price>10.0000000</ns2:Price>
            <ns2:PriceFormat>Per Unit</ns2:PriceFormat>
          </ns1:RatePlanChargeTier>

Per RatePlanChargeTier document, 'Flat Fee' and 'Per Unit' are the correct values. Does anyone have any idea on what is wrong with my call?



If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Zuora Support

Re: invalid price format: Flat Fee error

PriceFormat values are stored in Zuora as 'Flat Fee' and 'Per Unit.'  However, when passing them in a subscribe() or amend() call, please use 'FlatFee' and 'PerUnit' (with no spaces).

 

          <ns1:RatePlanChargeTier>
            <ns2:Tier>1</ns2:Tier>
            <ns2:StartingUnit>0.0000000</ns2:StartingUnit>
            <ns2:EndingUnit>5.00000</ns2:EndingUnit>
            <ns2:Price>0.000000</ns2:Price>
            <ns2:PriceFormat>FlatFee</ns2:PriceFormat>
          </ns1:RatePlanChargeTier>
          <ns1:RatePlanChargeTier>
            <ns2:Tier>2</ns2:Tier>
            <ns2:StartingUnit>6.0000000</ns2:StartingUnit>
            <ns2:EndingUnit>10000.00000</ns2:EndingUnit>
            <ns2:Price>10.0000000</ns2:Price>
            <ns2:PriceFormat>PerUnit</ns2:PriceFormat>
          </ns1:RatePlanChargeTier>


If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √