Comments (1)
When you say the API returns 'nothing' do you mean you get an empty array response like []
, or a completely blank response body? It would help greatly if you showed the exact way you're calling the functions, with what arguments, and exactly what you get back.
I have found the API to have some really weird calling patterns, if you get the syntax slightly wrong it can just return zero results, then you fix one of the query parameters slightly, for example specify an ordering for the results, and it can start working. It's been a year or more since I worked against the API in much detail but here's some PHP code I wrote to call the API through my helper (which basically just uses GuzzleHttp
, a standard HTTP request library, to send the request) as documented at https://apps.linnworks.net/Api/Method/Inventory-GetStockItemIdsBySKU:
$lw_api->genericAPICall('POST', 'api/Inventory/GetStockItemIdsBySKU',
[ 'request' => '{
"SKUS": [
"' . $sku . '"
]
}' ]);
I couldn't quite believe that's actually what the body has to look like, but there it is :) It's one of the weirder APIs I've worked with.
from linnworksnetsdk.
Related Issues (20)
- Channel Integration Guide Clarity HOT 1
- Dates don't format correctly HOT 2
- .NET: IEnumerable<T> should be used instead of List<T> HOT 1
- .NET: Base classes/interfaces for standard patterns HOT 1
- Issues with channel integration HOT 4
- Having a repository for each language would be a great idea
- error: when i trying to set order customer info
- Update Product Inventory using Product SKU
- Core SDK is getting regular updates whereas Framework SDK hasn't been touched for a year
- AuthorizeByApplication HOT 3
- Macro Dropbox Upload Not explained HOT 1
- SetExtendedProperties does not work - API Endpoint is expecting an array HOT 1
- not needed conversion HOT 1
- OrdersMethods.UpdateOrderItem - Doesn't update Item Title
- OrderController - GetAvailableFolders
- Move to dotnet core 3.1 (from 2.1) fails to build with System.Data.SqlClient does not exist HOT 2
- Java API HOT 1
- 400 Bad Request when trying to update stock levels HOT 6
- Problems in connecting via SSL and CloudFlare HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linnworksnetsdk.