# Help Needed - Upgrade issue

**URL:** <https://developer.squareup.com/forums/t/help-needed-upgrade-issue/5984>\
**Category:** Questions\
**Tags:** payments-api\
**Created:** [May 18, 2022, 8:35am UTC](https://developer.squareup.com/forums/t/help-needed-upgrade-issue/5984 "2022-05-18T08:35:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidReynolds](https://avatars.discourse-cdn.com/v4/letter/d/e47c2d/32.png) [@DavidReynolds](https://developer.squareup.com/forums/u/DavidReynolds)\
**Post date:** [May 18, 2022, 8:35am UTC](https://developer.squareup.com/forums/t/help-needed-upgrade-issue/5984/1 "2022-05-18T08:35:35Z")

</div>

Hi i’ve had to update our payments AWS lambda from Dot Net Core 2.1 to 3.1  
And payments have stopped working.  
im getting : Deserialization of reference types without parameterless constructor is not supported. Type ‘Square.Models.CreatePaymentRequest’  
I was using version 4.0.0 the first version of the sdk which was worked fine. Ive just updated to 9.1 but still get the errors.

[HttpPost]  
public async Task IndexAsync([FromBody] Square.Models.CreatePaymentRequest payment)  
{

My method will no longer accept Square.Models.CreatePaymentRequest I just get that error “Deserialization of reference types without parameterless constructor is not supported. Type ‘Square.Models.CreatePaymentRequest’”

Any ideas?

---

<div class="post-metadata">

**Author:** ![DavidReynolds](https://avatars.discourse-cdn.com/v4/letter/d/e47c2d/32.png) [@DavidReynolds](https://developer.squareup.com/forums/u/DavidReynolds)\
**Post date:** [May 18, 2022, 10:07am UTC](https://developer.squareup.com/forums/t/help-needed-upgrade-issue/5984/2 "2022-05-18T10:07:45Z")

</div>

Hi I have now sorted this by adding NuGet reference to `Microsoft.AspNetCore.Mvc.NewtonsoftJson`  
and then : ```  
services.AddControllers()  
.AddNewtonsoftJson();

🙂

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [May 18, 2022, 4:02pm UTC](https://developer.squareup.com/forums/t/help-needed-upgrade-issue/5984/3 "2022-05-18T16:02:45Z")

</div>

Glad to hear you figured it out! 🙂
