# API ChargeInvoice response contains implicit string value where integer expected

**URL:** <https://integration.keap.com/t/api-chargeinvoice-response-contains-implicit-string-value-where-integer-expected/36151>\
**Category:** API Q&A\
**Created:** [April 5, 2018, 8:14am UTC](https://integration.keap.com/t/api-chargeinvoice-response-contains-implicit-string-value-where-integer-expected/36151 "2018-04-05T08:14:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaspreet\_Singh](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jaspreet\_Singh](https://integration.keap.com/u/Jaspreet_Singh)\
**Post date:** [April 5, 2018, 8:14am UTC](https://integration.keap.com/t/api-chargeinvoice-response-contains-implicit-string-value-where-integer-expected/36151/1 "2018-04-05T08:14:22Z")

</div>

Hello,  
I am new to infusionsoft. I am using [Infusionsoft.net](http://Infusionsoft.net) SDK for payment in my project. All methods like “VerifyCreditCard”, “CreateBlankOrder”, “AddOrderItem” etc. are working fine. When I call the “ChargeInvoice” method then following error is occurred.

“response contains implicit string value where integer expected [response : struct mapped to type ChargeInvoiceResult : member RefNum mapped to type Int32]”.

I don’t know why this error occurred because the response model used by this method is also present in dll. In this model the data type of “RefNum” field is int while expecting string. Is it issue? How can I fix it?

I am using [infusionsoft.net](http://infusionsoft.net) 1.0.15

Please reply as soon as possible.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![TomScott](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/tomscott/32/67_2.png) [@TomScott](https://integration.keap.com/u/TomScott)\
**Post date:** [April 5, 2018, 4:57pm UTC](https://integration.keap.com/t/api-chargeinvoice-response-contains-implicit-string-value-where-integer-expected/36151/2 "2018-04-05T16:57:54Z")

</div>

[GitHub - EventDay/Infusionsoft.net: A C# Wrapper around the Infusionsoft.com API](https://github.com/EventDay/Infusionsoft.net) is not owned or maintained by Infusionsoft.

I would recommend creating [an issue](https://github.com/EventDay/Infusionsoft.net/issues) in their repository regarding it.

---

<div class="post-metadata">

**Author:** ![Jaspreet\_Singh](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@Jaspreet\_Singh](https://integration.keap.com/u/Jaspreet_Singh)\
**Post date:** [April 6, 2018, 2:03pm UTC](https://integration.keap.com/t/api-chargeinvoice-response-contains-implicit-string-value-where-integer-expected/36151/3 "2018-04-06T14:03:10Z")

</div>

Thanks Tom. I created an issue on their repository. Thanks again for your quick response.
