Comments (3)
The GetMyFeesEstimateRequest
object has to be passed data when it is constructed (as do most models). For example:
use SellingPartnerApi\Api;
use SellingPartnerApi\Model\Fees;
$feesEstimateRequest = new Fees\GetMyFeesEstimateRequest([
"fees_estimate_request" => new Fees\FeesEstimateRequest([
"marketplace_id" => "ATVPDKIKX0DER",
"price_to_estimate_fees" => new Fees\PriceToEstimateFees([
"listing_price" => new Fees\MoneyType([
"currency_code" => "USD",
"amount" => "21.99",
]),
"shipping_price" => new Fees\MoneyType([
"currency_code" => "USD",
"amount" => "4.23",
]),
"identifier" => "some_unique_value",
]),
]);
$api = new Api\FeesApi();
$response = $api->getMyFeesEstimateForSKU("your_sku", $feesEstimateRequest);
(I haven't tested that code snippet, but it should at least be close enough to correct to get you up and running.)
As you can see on its documentation page, the GetMyFeesEstimateRequest
model has an inner attribute called fees_estimate_request
, which should be an instance of the FeesEstimateRequest
model. Then that model has some inner attributes, some of which are other models...you can keep clicking through the links on the documentation pages until you've checked the sub-attributes of every attribute required by the model you're using. Many models have optional attributes, which will be marked optional
on the model's documentation page.
from selling-partner-api.
@yassersebai did you resolve this issue? If so, I'd like to close it.
from selling-partner-api.
I'm going to close this -- please feel free to reopen it if necessary.
from selling-partner-api.
Related Issues (20)
- Important question for me: How much does it cost to use Amazon SP? HOT 2
- Report GET_MERCHANT_LISTINGS_ALL_DATA in Json HOT 2
- Updating inventory quantity for given marketplaces
- Getting frequent cURL 35 & cURL 52 HOT 2
- Access to PII HOT 1
- Using targetApplication for RDT Token Calls? HOT 1
- SellingPartnerApi\Model\OrdersV0\OrderItem missing DEEMED_RESELLER_CATEGORY_NG_VOEC ("NG_VOEC") HOT 3
- Add MXN to CurrencyCode HOT 1
- Invalid value for enum '\SellingPartnerApi\Model\FbaOutboundV20200701\AdditionalLocationInfo' (GARAGE/OTHER DOOR/OTHER LOC) HOT 1
- IAM-User is not authorized to perform: sts HOT 1
- VendorShippingV1Api doesn't have endpoint '/vendor/shipping/v1/transportLabels' HOT 4
- createSubscription error: Request has missing or invalid parameters and cannot be parsed.
- Strict comparison using === between '\SellingPartnerApi…' and '\SplFileObject' will always evaluate to false. HOT 1
- getOrders only processing the first marketplace_id when a list of marketplace ids is passed in the params HOT 1
- Invalid value 'MY_VOEC' for 'deemed_reseller_category' HOT 1
- cURL error 35: OpenSSL SSL_connect HOT 1
- Invalid or unsupported document ID found on getReportDocument for GET_FLAT_FILE_VAT_INVOICE_DATA_REPORT HOT 1
- When querying the logistics information interface, an enum exception error occurred. HOT 1
- Missing operation "getCompetitiveSummary" in ProductPricingV20220501Api HOT 1
- FBAOutbound case issues HOT 2
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 selling-partner-api.