# \#net

**URL:** https://developer.squareup.com/forums/tag/net/34.md

[Latest](https://developer.squareup.com/forums/latest.md) · [Categories](https://developer.squareup.com/forums/categories.md) · [Tags](https://developer.squareup.com/forums/tags.md)

---

## [.NET SDK namespace changes from 44.0.0](https://developer.squareup.com/forums/t/net-sdk-namespace-changes-from-44-0-0/27092)

<div class="topic-metadata">

**Author:** [@hmdev](https://developer.squareup.com/forums/u/hmdev)\
**Replies:** 4\
**Last updated:** [August 7, 2026, 4:05pm UTC](https://developer.squareup.com/forums/t/net-sdk-namespace-changes-from-44-0-0/27092 "2026-08-07T16:05:22Z")

</div>

As of .NET SDK version 44.0.0 some of the namespace names have changed to now have underscores at the end - for example Square.Checkout.PaymentLinks is now under Square.Checkout\_ I can’t see anything in the Changelog ab…

---

## [Calculate net sales from orders api](https://developer.squareup.com/forums/t/calculate-net-sales-from-orders-api/23923)

<div class="topic-metadata">

**Author:** [@dvan1234](https://developer.squareup.com/forums/u/dvan1234)\
**Replies:** 3\
**Last updated:** [September 13, 2025, 4:51am UTC](https://developer.squareup.com/forums/t/calculate-net-sales-from-orders-api/23923 "2025-09-13T04:51:32Z")

</div>

Hi, I have a question of how to calculate the net sales using the orders api. Currently I get the orders by a location\_id and a period. Lets say 2025/08/29 - 2025/09/05 using the search order endpoint. For each order …

---

## [Unable to find AuthorizeOAuthRequest (.NET)](https://developer.squareup.com/forums/t/unable-to-find-authorizeoauthrequest-net/23685)

<div class="topic-metadata">

**Author:** [@voyagercraftcoffee](https://developer.squareup.com/forums/u/voyagercraftcoffee)\
**Replies:** 2\
**Last updated:** [August 18, 2025, 4:36pm UTC](https://developer.squareup.com/forums/t/unable-to-find-authorizeoauthrequest-net/23685 "2025-08-18T16:36:41Z")

</div>

Hello All, I am using the .NET Square SDK and trying to get code from the API Explorer to run. From the OAuth Authorize explorer, I copied the following C# code. Explorer page: GET /oauth2/authorize - Square API Explo…

---

## [Is Item Visibility available through the Catalog API?](https://developer.squareup.com/forums/t/is-item-visibility-available-through-the-catalog-api/11307)

<div class="topic-metadata">

**Author:** [@chilenazo](https://developer.squareup.com/forums/u/chilenazo)\
**Replies:** 6\
**Last updated:** [April 8, 2025, 3:48pm UTC](https://developer.squareup.com/forums/t/is-item-visibility-available-through-the-catalog-api/11307 "2025-04-08T15:48:14Z")

</div>

Hello, Is the Visibility field available through the Catalog API? If so, which field is it? Thank you

---

## [How to setup SquareClinet and perform payment using C# .Net framework 4.8](https://developer.squareup.com/forums/t/how-to-setup-squareclinet-and-perform-payment-using-c-net-framework-4-8/21639)

<div class="topic-metadata">

**Author:** [@muhammad.raheel](https://developer.squareup.com/forums/u/muhammad.raheel)\
**Replies:** 3\
**Last updated:** [March 27, 2025, 5:45pm UTC](https://developer.squareup.com/forums/t/how-to-setup-squareclinet-and-perform-payment-using-c-net-framework-4-8/21639 "2025-03-27T17:45:03Z")

</div>

Hi Square devs, I am trying to create square client using c# dot net framework 4.8 and facing compile time errors. public static SquareClient CreateClient() { return new SquareClient( Environment.GetEnviron…

---

## [How to access the list of categories associated to an item](https://developer.squareup.com/forums/t/how-to-access-the-list-of-categories-associated-to-an-item/12716)

<div class="topic-metadata">

**Author:** [@chilenazo](https://developer.squareup.com/forums/u/chilenazo)\
**Replies:** 7\
**Last updated:** [February 24, 2025, 7:18pm UTC](https://developer.squareup.com/forums/t/how-to-access-the-list-of-categories-associated-to-an-item/12716 "2025-02-24T19:18:42Z")

</div>

Hello, An item can be associated to more than one category. But how do I get the list of categories of an item? The .NET SDK only exposes a single CategoryId for an item. Is there a way to access the list of categories …

---

## [How do I use CatalogDiscount object?](https://developer.squareup.com/forums/t/how-do-i-use-catalogdiscount-object/11449)

<div class="topic-metadata">

**Author:** [@chilenazo](https://developer.squareup.com/forums/u/chilenazo)\
**Replies:** 1\
**Last updated:** [December 1, 2023, 5:16pm UTC](https://developer.squareup.com/forums/t/how-do-i-use-catalogdiscount-object/11449 "2023-12-01T17:16:59Z")

</div>

Hello, I am having trouble working with the CatalogDiscount object? First, it’s not clear to me how to find the CatalogItem objects that a CatalogDiscount object applies to. Also, where in the object model are the quant…

---

## [Refund API - can't be processed through this API](https://developer.squareup.com/forums/t/refund-api-cant-be-processed-through-this-api/2502)

<div class="topic-metadata">

**Author:** [@m8kwr](https://developer.squareup.com/forums/u/m8kwr)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 8:33pm UTC](https://developer.squareup.com/forums/t/refund-api-cant-be-processed-through-this-api/2502 "2021-05-12T20:33:16Z")

</div>

I am using .net SDK to create a refund in the sandbox. The order that I am trying to do the refund on has been created also in the sandbox. And is there in the dashboard. I am getting an error of “The payment XXXXXXXX…

---

## [CSharp samples of connect-api-examples on Github should be upgraded to dotnet core 2.1](https://developer.squareup.com/forums/t/csharp-samples-of-connect-api-examples-on-github-should-be-upgraded-to-dotnet-core-2-1/1394)

<div class="topic-metadata">

**Author:** [@Gary](https://developer.squareup.com/forums/u/Gary)\
**Replies:** 1\
**Last updated:** [December 9, 2020, 5:06pm UTC](https://developer.squareup.com/forums/t/csharp-samples-of-connect-api-examples-on-github-should-be-upgraded-to-dotnet-core-2-1/1394 "2020-12-09T17:06:16Z")

</div>

The CSharp samples on Github use dotnet core 2.0. This version reached end-of-life on Oct 1, 2018 - https://github.com/dotnet/core/blob/master/microsoft-support.md. These samples should be migrated to at least dotnet co…

---

## [On\_by\_default field in field missing in .net SDK](https://developer.squareup.com/forums/t/on-by-default-field-in-field-missing-in-net-sdk/441)

<div class="topic-metadata">

**Author:** [@jlopez-grubbrr](https://developer.squareup.com/forums/u/jlopez-grubbrr)\
**Replies:** 1\
**Last updated:** [June 30, 2020, 4:05pm UTC](https://developer.squareup.com/forums/t/on-by-default-field-in-field-missing-in-net-sdk/441 "2020-06-30T16:05:41Z")

</div>

Using the .NET SDK, we are trying to download the catalog. When working with modifiers, there is a field "on\_by\_default field " that is available in the API, but it doesn’t seem to show up in the SDK. Where can I get thi…
