This project is read-only.
1
Vote

The server returned 'Unauthorized' with the status code Unauthorized (401) when posting ''.

description

HI,

I am trying to connect to Chargify using .net sdk installed from nu-get packages version 1.1.6085.28452.

I am using the following code to create a customer
var chargifyinst = new ChargifyConnect("https://mysubdomain-sandbox.chargify.com", "xxxx", "xxxx", "xxx");    
            chargifyinst.ProtocolType = SecurityProtocolType.Tls12;      
            var savedcust = chargifyinst.CreateCustomer(customer);
I am using the password from the api keys I generated for the chagify direct api section in the chargify account portal.

I am using the api v2 keys.

When I am trying to save I am receiving 401 unauthorized response. Can any one help where I am going wrong.

comments