Method Community

 

Trying to create a simple Customer using APIKey

Last post 12-06-2022 6:16 PM by Method_Inderdeep. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-05-2022 12:51 PM

    Trying to create a simple Customer using APIKey

    Hello,

    I'm trying to use the API to create a new customer using the APIKey auth method using Postman. Not sure why I'm getting the 401 unauthorized error.

    I'm adding this info to the header:

    APIKey: (using the API generated through the portal - I was able to get a 200 response using a GET request with no problem)

    Content-Type: application/json

    Content-Length: (autocompleted by Postman)

    Host: (autocompleted by Postman)

    Body (using Json)

    {
        "FirstName": "FirstNameTest2",
        "LastName": "LastNameTest2",
        "Phone": "1234567890",
        "Email": "test@test.com",
        "IsLeadStatusOnly": "true"
    }

    Are there any examples to add a Customer?

    Thanks,

  • 12-06-2022 6:16 PM In reply to

    Re: Trying to create a simple Customer using APIKey

    Hello,

    Is it possible for you to please send the header information to api@method.me? It seems like there is an authorization issue with the values you are parsing. Once I have the email, I will be able to guide you in the right direction.


    Regards,

    Inder

Page 1 of 1 (2 items)