An application programming interface (API) specifies how some software components should interact with each other.
2
votes
1answer
20 views
Coupon Code API Params
We just want to know what would be the json params to create coupon code from magento2 rest API. The API we are using to generate the coupon code is /rest/V1/coupons
1
vote
0answers
9 views
Write to CSV file in chunks at a time
I am trying to write product data to a CSV file in order to export to a third party.
I need to break the operation down into chunks in order to prevent timeouts when writing large amounts of data.
...
1
vote
0answers
12 views
Failed to communicate with Braintree with taxamo checkout in magento 2.x
In Magento 2.1.2 configure taxamo site - set merchant and braintree configuration in taxamo site & set test mode.
In cart.phtml page add script as below:
Taxamo.initialize('...
0
votes
0answers
8 views
Magento Soap V2 API - 'The requested Payment Method is not available'
I am trying to create an order using the payment method code 'checkmo' which is in the example documentation but I am receiving the error "The requested Payment Method is not available.". Please see ...
0
votes
0answers
14 views
Customer Forgot Password Rest Api In Magento 2
I am using magento 2 rest api,
when I try to run forgot password api for customer, it is showing an error message.
{"message":"Invalid value of \"%value\" provided for the %fieldName field.","...
1
vote
0answers
43 views
Magento 2 - How to get attribute options array for inserting the data using rest api
I have json array for attribute options which is showing below:
"options":[
{
"label":"string",
"value":"string",
"sort_order":0,
"is_default":true,
"store_labels":[
{
"store_id":0,
"label":"string"
}...
5
votes
1answer
42 views
taxamo checkout throws currency_code validation error
**taxamo api checkout form integration into magento 2.x** :
I am using taxamo api
checkout form in magento 2.x. below is code. but
throws error :
"Validation failed {:transaction {:...
2
votes
1answer
38 views
Magento 2 - How to call REST API to register a new customer
In Magento2, How to call REST API to register a new customer (What APIs need to call step by step). Thanks!
1
vote
0answers
9 views
Adding proxy for class hidden behind interface
If I want to add proxy for class Psr\Log\LoggerInterface (for example it is used only in catch block, which is not reached with every request) in my di.xml I should replace it with proxy like this:
&...
1
vote
1answer
9 views
Can't see product even in Backoffice after added product via C# SOAP V2 Magento 1.9.2.4
I am trying to add a product in C# with SOAP V2 here is my code :
PortTypeClient ptc = new PortTypeClient();
string sessionId = ptc.login("dev", "123456789");
catalogProductCreateEntity np = ...
1
vote
0answers
31 views
REST PUT success but no change
I am calling REST PUT to change a category name (one that I am testing) and the response is 200 with the correct new name. When I do a REST GET on the id to get the category back it is again the ...
1
vote
1answer
30 views
Magento2 - A simple custom API module
I have a problem when I create a new custom api module, my mudule is below:
Content of : CalculatorInterface.php
<?php
namespace Tohq\Webapi\Api;
interface CalculatorInterface
{
public ...
0
votes
0answers
12 views
Magento 2 How to Make 3rd party API request?
I am trying to make a request to a third party webservice then using the response I would like to save the data/order in Magento 2 using the webApi
My approach so far hasn't worked as Magento cannot ...
3
votes
0answers
15 views
Magento 2 - How to create a new custom module API
In Magento 2, How to create custom module API? of course, I need have security? Anyone can help explain with a sample module, thanks!
4
votes
2answers
92 views
Develop a mobile app with Magento 2 REST API.?
I couldn't find some needed API functions in Magento 2 REST API Document . I am very doubted. Is it possible to develop a mobile application with current Magento REST API.?
I couldn't find methods to ...
1
vote
1answer
33 views
Magento rest API For Order
We had followed the add order process of
Magento 2 - Create order using REST API on the process of "Place Order" using the API "$base_url/index.php/rest/V1/guest-carts/...
2
votes
2answers
38 views
Receive Post Parameters In Magento 2 Controller
I am calling http request for controller, i am getting get parameteres, but i am not able to receive post parameters in controller.
basically I want to call magento 2 apis and send customized ...
1
vote
0answers
16 views
Braintree custom fields - How to add product data
I am using the Gene Braintree module on Magento 1.9, and I am trying to add some additional data points to the custom fields so I can reconcile the transactions.
I would like to pass order#, ...
1
vote
0answers
12 views
Push notifiation in magento2 for android? [closed]
How do I implement server side so that I can send push notification in Magento based mobile application ?
0
votes
1answer
24 views
Get Customer Login into Magento1.9.x mobile app using REST api
I have a magento website and I am trying to make a android app for it. I have configured the oauth authentication to consume magento rest api and also tested it with postman. Till now everything is ...
1
vote
0answers
15 views
Magento 2: Problem Creating the custom Search REST API URL?
I want achieve this kind of url in my custom REST API, Any Suggestion?
http://localhost/rest/V1/products?name=mujassam&value=5
Before Also I asked same question
Magento2: creating custom ...
3
votes
0answers
27 views
Magento2 search like searching using REST API
When using magento search REST API you can search with logical AND search
http://devdocs.magento.com/guides/v2.0/howdoi/webapi/search-criteria.html#logical-and-search
For example I want to search ...
1
vote
1answer
18 views
Updating qty of products/simple products via API
I am trying to update the quantity of products via API but i don't really understand how the API works. I've copy pasted some code fragments which i found around the internet, and i've already made an ...
1
vote
1answer
26 views
Magento2: creating custom search REST API
I have created many Api's (both GET and POST) but now I want to create the custom search API with different URL Structure (all the params after ?).
I can create the search API in below URL formate..
...
0
votes
0answers
16 views
Magento Session
I want to create a custom dashboard in a subdoamin and want to use the session of magento which is installed in main root. Can you please tell me how i can manage session on both area is the any api ...
0
votes
0answers
11 views
Magento Error oauth_problem=nonce_used
I am new to magento and I'm trying to integrate a 3rd party application that will create a product using the REST API.
The problem I am with is the "oauth_problem=nonce_used" when trying to create a ...
0
votes
0answers
22 views
Magento API - Authorization Required for Every Session
I have a PHP API script which has incorporated the Magento REST example from their website. I've managed to get this working great on my web server, it's just that each time I start a new browser ...
3
votes
1answer
25 views
Magento rest API configurable product and category list
I am having a project using Magento rest API V1, I have read through the documentation and looking for the answer around the web but cannot find the solution.
First :
I want to show list of ...
0
votes
0answers
19 views
Should I use api.php or index.php to handle SOAP requests?
I recently had an issue with Magento's V2 SOAP API where the soap:address returned in the WSDL was incorrect. It returned something like https://example.com/?type=v2_soap instead of https://example....
0
votes
0answers
13 views
Access Control for extended api
I am trying to add access control to an api extension I found on the web. Currently the acl is set to only work when "all" is set on Resource Access.
api.xml:
<?xml version="1.0"?>
<config&...
0
votes
1answer
29 views
Magento REST API Example Errors
I'm trying to get a Magento REST API example working (Create a simple product as an Admin user with OAuth authentication) from the following link:
http://devdocs.magento.com/guides/m1x/api/rest/...
1
vote
1answer
28 views
magento2 API - SOAP connection mystery. Which versions for “stream context”
I have an existing m1 site and a php script which uses the soap API to synchronize product information (read only). It is on a host I do not control and uses the litespeed server.
I have been trying ...
1
vote
1answer
14 views
How to use constantcontact/php-sdk in magento 2.1.1?
I tried use ti contant contact SDK in magento2 but not success.
This code:
$path = pathinfo($_SERVER["SCRIPT_FILENAME"]);
require_once __DIR__ .'/php-sdk-master/src/Ctct/autoload.php';
...
3
votes
1answer
29 views
How to use V1/products to get the stockItem qty of the magento products?
I need to know for each product sky, price and stock.
I am using http://192.168.1.180/magento/index.php/rest/V1/products?searchCriteria[filter_groups][0][filters][0][field]=category_id&...
3
votes
1answer
28 views
I want some extra fields on magento 2.1.2 api
What I get :
http://example.com/index.php/rest/V1/categories/263/products
[{
"sku": "20130",
"position": 1,
"category_id": "263"
},
{
"sku": "20134",...
1
vote
1answer
24 views
error oauth_problem=signature_invalid for POST
i am using magento rest api for get data and it work very well but when i wanna send data return this error
"messages": {
"error": [
{
"code": 401,
...
3
votes
0answers
27 views
Magento 2 : How does shipment tracking data get stored?
I'm trying to figure out how shipment tracking data is stored. Especially when it's set by the API. So when I look at sales/etc/webapi.xml I see the following.
<route url="/V1/shipment/track" ...
0
votes
0answers
29 views
Magento 2.1.1 Rest API Update price only
Trying to Change only the price of the products with PUT method.
HERE http://devdocs.magento.com/guides/m1x/api/rest/Resources/Products/products.html#RESTAPI-Resource-Products-HTTPMethod-PUT-products-...
0
votes
0answers
13 views
Api not integrating
failed to load external entity "http://example.com/index.php/api/v2_soap/index/?wsdl=1"
in /home3/produdo3/public_html/example/lib/Zend/Soap/Server.php on line 811
Something is wrong in below code . ...
0
votes
1answer
15 views
Is it possible to get products in the shopping cart using Magento API?
I've already written custom payment gateway for example.
How can I get products properties in the shopping cart, when customer reaches payment details page (before he redirect to the bank page as ...
0
votes
0answers
19 views
accessing magento2 API's with your own token
I have a web app running which works on token based authentication.
Now I want to integrate magento 2 with that.
The problem comes here is user management. I want my system's user to be logged in ...
0
votes
0answers
13 views
NOAH API in magento
Anyone here have any information that how can I integrate or use NOAH API in magento?
Please Suggest anything or share any link or document regarding NOAH API.
Thanks in anticipation.
0
votes
0answers
8 views
Soap api override cart.order v1 & v2
I need to override magento soap api "cart.order" method in order to add possibility of setting attributes for a newly created order(custom flag-fields).
So now, it looks like:
$proxy->call($...
0
votes
0answers
13 views
is it possible to create android shopping app for magento 1.9.2
I am new to magento.I have looked through the internet.There is a lot of rest API's available for Magento version 2.0. but not for the V 1.9.2.
I have looked through below link: http://devdocs.magento....
0
votes
1answer
56 views
Magento 2 - sales_order_shipment_save_after
I need to call some API on ship item from magento but nothing is working.
Following things I already tried:
1) Use event/observer: sales_order_shipment_save_after (As I thought It will work in ...
0
votes
0answers
11 views
Magento 1.9 API - How to do oauth admin authorization login page in andriod appilcation?
Need to know the possible way to do oauth admin authorization in android. In web I can be able to do it by showing the login page in browser. once success authorization i can get access token in php ...
0
votes
1answer
20 views
Use API rest media management by storeView code (admin)
I'm having troubles using the catalogProductAttributeMediaGalleryManagementV1 API rest for manage the products images in a multiple storeView project.
The main problem, is when I use the
POST /V1/...
0
votes
0answers
26 views
magento rest api return error 500
i know when returned error 500 my code have error ... but i copy all code from magento doc
this is my code
and this error :
Invalid auth/bad request (got a 500, expected HTTP/1.1 20X or a redirect)
$...
0
votes
1answer
68 views
magento 2 rest api search results display with filter options
I am new to magento 2. I have to develop Rest api search service list with categories filter option like web application. Is that possible kindly help me anyone
1
vote
0answers
51 views
Magento2 How to get Custom order attributes value in response in rest api v1
down vote
favorite
I have installed Amasty order attributes extension
I followed http://magehit.com/blog/how-to-get-value-of-custom-attribute-on-magento-2-rest-api/
and created
app/code/Amasty/...