This API is used to retrieve seller payouts and monetary transaction details related to those payouts.
PHP 7.2 and later.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github/zvps/ebay-sell-finances-php-client.git"
}
],
"require": {
"zvps/ebay-sell-finances-php-client": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: Authorization Code
$config = Ebay\Sell\Finances\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Ebay\Sell\Finances\Api\PayoutApi(
// 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
);
$payout_id = 'payout_id_example'; // string | The unique identfier of the payout is passed in as a path parameter at the end of the call URI. The getPayouts method can be used to retrieve the unique identifier of a payout, or the user can check Seller Hub to get the payout ID.
try {
$result = $apiInstance->getPayout($payout_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PayoutApi->getPayout: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to https://apiz.ebay.com/sell/finances/v1
Class | Method | HTTP request | Description |
---|---|---|---|
PayoutApi | getPayout | GET /payout/{payout_Id} | |
PayoutApi | getPayoutSummary | GET /payout_summary | |
PayoutApi | getPayouts | GET /payout | |
SellerFundsSummaryApi | getSellerFundsSummary | GET /seller_funds_summary | |
TransactionApi | getTransactionSummary | GET /transaction_summary | |
TransactionApi | getTransactions | GET /transaction | |
TransferApi | getTransfer | GET /transfer/{transfer_Id} |
- Amount
- BalanceAdjustment
- Buyer
- Charge
- Fee
- FundingSource
- OrderLineItem
- Payout
- PayoutInstrument
- PayoutSummaryResponse
- Payouts
- Reference
- SellerFundsSummaryResponse
- Transaction
- TransactionSummaryResponse
- Transactions
- Transfer
- TransferDetail
- Type:
OAuth
- Flow:
accessCode
- Authorization URL:
https://auth.ebay.com/oauth2/authorize
- Scopes:
- https://api.ebay.com/oauth/api_scope/sell.finances: View and manage your payment and order information to display this information to you and allow you to initiate refunds using the third party application
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.9.0
- Package version:
5.0.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen