All URIs are relative to https://api.allegro.pl.
Method | HTTP request | Description |
---|---|---|
calculateFeePreviewUsingPOST() | POST /pricing/offer-fee-preview | Calculate fee and commission for an offer |
offerQuotesPublicUsingGET() | GET /pricing/offer-quotes | Get the user's current offer quotes |
calculateFeePreviewUsingPOST($public_offer_preview_request): \OpenAPI\AllegroSdk\Model\FeePreviewResponse
Calculate fee and commission for an offer
Provides information about fee and commission for an offer. Read more: <a href="../../tutorials/jak-sprawdzic-oplaty-nn9DOL5PASX#kalkulator-oplat" target="_blank">PL / <a href="../../tutorials/how-to-check-the-fees-3An6Wame3Um#fee-calculator" target="_blank">EN.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = OpenAPI\AllegroSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\AllegroSdk\Api\PricingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$public_offer_preview_request = new \OpenAPI\AllegroSdk\Model\PublicOfferPreviewRequest(); // \OpenAPI\AllegroSdk\Model\PublicOfferPreviewRequest
try {
$result = $apiInstance->calculateFeePreviewUsingPOST($public_offer_preview_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PricingApi->calculateFeePreviewUsingPOST: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
public_offer_preview_request | \OpenAPI\AllegroSdk\Model\PublicOfferPreviewRequest |
\OpenAPI\AllegroSdk\Model\FeePreviewResponse
- Content-Type:
application/vnd.allegro.public.v1+json
- Accept:
application/vnd.allegro.public.v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
offerQuotesPublicUsingGET($offer_id): \OpenAPI\AllegroSdk\Model\OfferQuotesDto
Get the user's current offer quotes
This endpoint returns current offer quotes (listing and promo fees) cycles for authenticated user and list of offers. Read more: <a href="../../tutorials/jak-sprawdzic-oplaty-nn9DOL5PASX#data-naliczenia-kolejnej-oplaty" target="_blank">PL / <a href="../../tutorials/how-to-check-the-fees-3An6Wame3Um#check-when-a-fee-is-charged" target="_blank">EN.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: bearer-token-for-user
$config = OpenAPI\AllegroSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\AllegroSdk\Api\PricingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$offer_id = array('offer_id_example'); // string[] | List of offer Ids, maximum 20 values.
try {
$result = $apiInstance->offerQuotesPublicUsingGET($offer_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PricingApi->offerQuotesPublicUsingGET: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
offer_id | string[] | List of offer Ids, maximum 20 values. |
\OpenAPI\AllegroSdk\Model\OfferQuotesDto
- Content-Type: Not defined
- Accept:
application/vnd.allegro.public.v1+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]