I have implemented Authorize.net CIM API for my custom solution. Everything was working fine before.
Now when I trying to load any customer information with customer profile id and customer paymen profile id using SOP API of Authorize.net CIM it is getting failed.
I am getting following error "SOAP-ERROR: Encoding: object has no 'unmaskExpirationDate' property" when trying using "getCustomerPaymentProfile" function of Authorize.net CIM API via merchant sandbox mode.
While with XML API for Authorize.net CIM of "getCustomerPaymentProfile" function returning ferfect but this error is only with SOAP API.
Below is the SOAP urls that I am using for sandbox account,
Gateway WSDL: "https://api.authorize.net/soap/v1/Service.asmx?WSDL"
Test Gateway Url: "https://apitest.authorize.net/soap/v1/Service.asmx"
Have anybody faced such issue recently?
Ok I got an answer just now.
When checking WSDL url I found that they have recently changed the WSDL xml format for "getCustomerPaymentProfile" function by adding Additional
"" which always expact the "unmaskExpirationDate" parameter as boolean as part of request parameters.
After updating my SOAP request parameters solved the error.
Related
I want to create an API request in Postman that creates a category in Moodle.
The following are the steps which I did in Moodle :
Enabled Web service
Created an External service and added core_course_create_categories function.
Enabled REST protocol
Created Token.
This is my POST URL:
http://localhost/test/moodle/webservice/rest/server.php?username=admin&password=Password#1&service=mycustomservice&name=CustomCategory&parent=1&idnumber=CSTM1&description=Desc
Under Authorization tab, I have selected Bearer Token and added the Token from Moodle web service.
When I send the request, I am getting invalidtoken Invalid token - token not found error.
Can anyone please suggest a solution for this
Moodle version: 3.4.8 and Postman version 7.6.0
Thanks in advance.
You can not call API by GET Method.
In postman you have to call the API using POST method.
pass your token in form-data as wstoken.
call your function as wsfunction.
Check my Screenshot below.
I have a custom page where I obtain Published API list using WSO2 Store Restful API
https://docs.wso2.com/display/AM220/apidocs/store/#!/operations#APICollection#apisGet
The problem is the returned result does not includes API Rating and Business Information whereas the Jaggery API that has been used by the default API Manager UI does include it. Is there any way to configure it so the REST API returns that data?
If I use the jaggery API instead, it is cookie based while I am using OAuth2 OIDC Service Provider of the IS. I cant obtain API that has visibility to only its own domain by passing access token to the Authorization header.
APIM Version: 2.2
Please Advice. Thanks!
There is no such a way which will change the output response of defined APIs.
If you want to do that, get source code of wso2 from github & edit the APIs & use the edited source to deploy your application. (But this will add lots of maintenance issue)
The quickest way is to call the get details of api.
It will return the business information object as well as below:
"businessInformation": {
"technicalOwner": "John Doe",
"technicalOwnerEmail": "architecture#pizzashack.com",
"businessOwner": "Jane Roe",
"businessOwnerEmail": "marketing#pizzashack.com"
},
Here you will get the heavy response as it returns the complete swagger definition as well.
When I payment through live mode authorize.net give reponse code E00006(The API user name is invalid or not present)
How to resolved it?
Check the name value of the XML or JSON you are posting.
Be sure you are using the appropriate credentials for the API endpoint you are posting to:
Sandbox URL: https://apitest.authorize.net/xml/v1/request.api
Production URL: https://api.authorize.net/xml/v1/request.api
I'm working on BP monitor app and trying to test web APIs according to the documentation with the OAuth 2.0 type authorization. But I'm facing some problems to get validate GET or POST response.
Could you please help me how I can get the response of GET and POST web APIs.
1) In the postman app, you first enter your API endpoint into the URL field.
2) Just to the left of the URL input, there is a dropdown to select whether you'd like to send your request as GET or POST.
3) To the right of the URL input, you can define any extra parameters needed.
These parameters are where you can define specific details needed for your test-case.
Postman also allows you to easily generate OAuth tokens for testing (support for OAuth 1.0a and OAuth2).
I have one WSDL containing the metadata like web service etc which i have tried to extract using soap API but since all the web services in WSDL are authenticated, I am not able to POST the request and get the response when I create the Data source in Report Builder and add the WSDL URL i am not able to post the request to get the required response as it throws the authentication error..!!!
I have tried setting the credentials while passing the credentials #query in dataset, but unable to post the request.
Can anyone help me on this part..!!