Questions tagged [c#]
The c# tag has no usage guidance.
12
questions
0
votes
0
answers
258
views
Create Product at Magento 2 Using REST in C#
I'm trying to create a simple Product by Rest API. Response.Status = Unauthorization
I wonder if the installation or configuration of something is missing
Here is my code
public void CreateProduct()...
0
votes
1
answer
778
views
Create Product at Magento 2.3.3 Using REST in C#
I'm trying to create simple Product by Rest Api status code is ok
Although I can not see the product in Magento2, Here is my code :
Token = this.GetAdminToken("admin", "password");
var request = ...
1
vote
1
answer
5k
views
Restful API working in postman, C# not Working [Magento Integration]
I am integrating with Magento 2, using RESTful APIs. When I use postman, it works like charm, while in C# code, it returns "Unauthorized 401" exception.
However, It was working in C# code earlier, ...
1
vote
0
answers
176
views
The .NET NuGet Package `Magento.NetCore` Has No Sample Code - How to use it?
I want to use C# to call against the Magento 2 REST API. The NuGet package Magento.NetCore seems like it might be a fairly complete C# library, but there is no sample code. Even just to create a ...
2
votes
0
answers
100
views
Magento2 SOAP with C#
I am trying to read Magento customer from a C# third-party software.
When I enter SOAP into the browser, its throwing error.
URL:-
http://localhost:81/magento2-2.2.5/soap/default?wsdl&...
4
votes
1
answer
6k
views
magento api 2 create product error
I have used C# to call magento rest API to create a new product (magento version 2.2.5)
this is the body data:
{
"product": {
"id": 0,
"sku": "MS-Champ11",
"name": "Champ Tee11",
"...
0
votes
1
answer
34
views
Why Magento SOAP multiLocationInventoryStockList is not accepting any filter request?
I am trying from magento soap to get info about inventory from individual "sku", but object "multiLocationInventoryStockList" is getting me back result from all locations Id's.
Here is my code in C#:...
1
vote
0
answers
534
views
Magento 2 soap API in C#
I've been searching for ways to use soap api in c# (with visual studio 2015). First I thought it was simple, just add web reference like this site (http://tdmts.net/2017/02/07/magento-2-soap-api-with-...
0
votes
1
answer
4k
views
How to use access Magento 2 API from C# with REST and Token-based authentication
I create an Integration -> Activate -> Obtained the Access Token
Like is described here: http://devdocs.magento.com/guides/v2.2/get-started/authentication/gs-authentication-token.html
And in my test ...
1
vote
2
answers
3k
views
Magento 2 REST API Get TaxRate by Tax Class ID
i'm using RestSharp in C# to connect with Magento2 REST API.
Everythings fine, except one simple thing:
lets say i've got a product, in its JSON-DATA there is a tax_class_id "4". Inside of this ...
1
vote
0
answers
440
views
Using magento2 Soap api in .NET
I am trying to consume magento2 soap api in .NET C#, and can find that to consume sales api's we need to be authorize, i have the authorization token , but can anybody help me how we can add this in ....
0
votes
2
answers
3k
views
Invoke rest api from c#
I am successfully getting access token, but when I call customer service it is throwing error.
Error:Bad Request/Unauthorized
for this I have tried below code.
using System;
using System....