macropage / sdk-ebay-rest-finance
This API is used to retrieve seller payouts and monetary transaction details related to those payouts.
1.4.0
2021-11-16 18:52 UTC
Requires
- php: >=7.2
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2 || 7.*
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-12-17 02:49:04 UTC
README
This API is used to retrieve seller payouts and monetary transaction details related to those payouts.
Installation & Usage
Requirements
PHP 7.3 and later. Should also work with PHP 8.0 but has not been tested.
Composer
To install the bindings via Composer, add the following to composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/macropage/sdk-ebay-rest-finance.git" } ], "require": { "macropage/sdk-ebay-rest-finance": "*@dev" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
<?php require_once('/path/to/sdk-ebay-rest-finance/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: api_auth $config = macropage\SDKs\ebay\rest\finance\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new macropage\SDKs\ebay\rest\finance\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 ); $payoutId = 'payoutId_example'; // string | The unique identfier of the payout is passed in as a path parameter at the end of the call URI. <br/><br/>The <b>getPayouts</b> 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($payoutId); print_r($result); } catch (Exception $e) { echo 'Exception when calling PayoutApi->getPayout: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://apiz.ebay.com/sell/finances/v1
Models
- Amount
- BalanceAdjustment
- Buyer
- Charge
- Error
- ErrorParameter
- Fee
- FundingSource
- OrderLineItem
- Payout
- PayoutInstrument
- PayoutSummaryResponse
- Payouts
- Reference
- SellerFundsSummaryResponse
- Transaction
- TransactionSummaryResponse
- Transactions
- Transfer
- TransferDetail
Authorization
api_auth
- 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
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
1.9.0
- Package version:
1.9.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen