Skip to content

Latest commit

 

History

History
215 lines (152 loc) · 7.68 KB

MarketplaceApi.md

File metadata and controls

215 lines (152 loc) · 7.68 KB

Swagger\Client\MarketplaceApi

All URIs are relative to https://rest.paycomet.com

Method HTTP request Description
splitTransfer POST /v1/marketplace/split-transfer Make a transfer to other accounts on PAYCOMET
splitTransferReversal POST /v1/marketplace/split-transfer-reversal Run a split transfer reversal based on a previous split transfer
transfer POST /v1/marketplace/transfer Run a transfer
transferReversal POST /v1/marketplace/transfer-reversal Make a transfer reversal based on a previous transfer

splitTransfer

\Swagger\Client\Model\InlineResponse20025 splitTransfer($paycomet_api_token, $body)

Make a transfer to other accounts on PAYCOMET

Make a deposit in a destination account

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\MarketplaceApi(
    // 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()
);
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required)
$body = new \Swagger\Client\Model\MarketplaceSplittransferBody(); // \Swagger\Client\Model\MarketplaceSplittransferBody | 

try {
    $result = $apiInstance->splitTransfer($paycomet_api_token, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MarketplaceApi->splitTransfer: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
paycomet_api_token string PAYCOMET API key (Authorization privilege required)
body \Swagger\Client\Model\MarketplaceSplittransferBody [optional]

Return type

\Swagger\Client\Model\InlineResponse20025

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

splitTransferReversal

\Swagger\Client\Model\InlineResponse20025 splitTransferReversal($paycomet_api_token, $body)

Run a split transfer reversal based on a previous split transfer

Make a split transfer reversal request

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\MarketplaceApi(
    // 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()
);
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required)
$body = new \Swagger\Client\Model\MarketplaceSplittransferreversalBody(); // \Swagger\Client\Model\MarketplaceSplittransferreversalBody | 

try {
    $result = $apiInstance->splitTransferReversal($paycomet_api_token, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MarketplaceApi->splitTransferReversal: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
paycomet_api_token string PAYCOMET API key (Authorization privilege required)
body \Swagger\Client\Model\MarketplaceSplittransferreversalBody [optional]

Return type

\Swagger\Client\Model\InlineResponse20025

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

transfer

\Swagger\Client\Model\InlineResponse20026 transfer($paycomet_api_token, $body)

Run a transfer

Run a transfer in a destination account

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\MarketplaceApi(
    // 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()
);
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required)
$body = new \Swagger\Client\Model\MarketplaceTransferBody(); // \Swagger\Client\Model\MarketplaceTransferBody | 

try {
    $result = $apiInstance->transfer($paycomet_api_token, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MarketplaceApi->transfer: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
paycomet_api_token string PAYCOMET API key (Authorization privilege required)
body \Swagger\Client\Model\MarketplaceTransferBody [optional]

Return type

\Swagger\Client\Model\InlineResponse20026

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

transferReversal

\Swagger\Client\Model\InlineResponse20026 transferReversal($paycomet_api_token, $body)

Make a transfer reversal based on a previous transfer

Make a transfer reversal based on a previous transfer

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\MarketplaceApi(
    // 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()
);
$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required)
$body = new \Swagger\Client\Model\MarketplaceTransferreversalBody(); // \Swagger\Client\Model\MarketplaceTransferreversalBody | 

try {
    $result = $apiInstance->transferReversal($paycomet_api_token, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MarketplaceApi->transferReversal: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
paycomet_api_token string PAYCOMET API key (Authorization privilege required)
body \Swagger\Client\Model\MarketplaceTransferreversalBody [optional]

Return type

\Swagger\Client\Model\InlineResponse20026

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]