All URIs are relative to https://rest.clicksend.com/v3
| Method | HTTP request | Description |
|---|---|---|
| postReturnAddressesByReturnAddressIdDelete | DELETE /post/return-addresses/{return_address_id} | Delete specific post return address |
| postReturnAddressesByReturnAddressIdGet | GET /post/return-addresses/{return_address_id} | Get specific post return address |
| postReturnAddressesByReturnAddressIdPut | PUT /post/return-addresses/{return_address_id} | Update post return address |
| postReturnAddressesGet | GET /post/return-addresses | Get list of post return addresses |
| postReturnAddressesPost | POST /post/return-addresses | Create post return address |
string postReturnAddressesByReturnAddressIdDelete($return_address_id)
Delete specific post return address
Delete specific post return address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ClickSend\Api\PostReturnAddressApi(
// 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
);
$return_address_id = 56; // int | Return address ID
try {
$result = $apiInstance->postReturnAddressesByReturnAddressIdDelete($return_address_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PostReturnAddressApi->postReturnAddressesByReturnAddressIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| return_address_id | int | Return address ID |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string postReturnAddressesByReturnAddressIdGet($return_address_id)
Get specific post return address
Get specific post return address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ClickSend\Api\PostReturnAddressApi(
// 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
);
$return_address_id = 56; // int | Return address ID
try {
$result = $apiInstance->postReturnAddressesByReturnAddressIdGet($return_address_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PostReturnAddressApi->postReturnAddressesByReturnAddressIdGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| return_address_id | int | Return address ID |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string postReturnAddressesByReturnAddressIdPut($body, $return_address_id)
Update post return address
Update post return address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ClickSend\Api\PostReturnAddressApi(
// 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
);
$body = new \ClickSend\Model\Address(); // \ClickSend\Model\Address | Address model
$return_address_id = 56; // int | Return address ID
try {
$result = $apiInstance->postReturnAddressesByReturnAddressIdPut($body, $return_address_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PostReturnAddressApi->postReturnAddressesByReturnAddressIdPut: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \ClickSend\Model\Address | Address model | |
| return_address_id | int | Return address ID |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string postReturnAddressesGet($page, $limit)
Get list of post return addresses
Get list of post return addresses
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ClickSend\Api\PostReturnAddressApi(
// 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
);
$page = 1; // int | Page number
$limit = 10; // int | Number of records per page
try {
$result = $apiInstance->postReturnAddressesGet($page, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PostReturnAddressApi->postReturnAddressesGet: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| page | int | Page number | [optional] [default to 1] |
| limit | int | Number of records per page | [optional] [default to 10] |
string
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string postReturnAddressesPost($body)
Create post return address
Create post return address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
$config = ClickSend\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new ClickSend\Api\PostReturnAddressApi(
// 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
);
$body = new \ClickSend\Model\Address(); // \ClickSend\Model\Address | Address model
try {
$result = $apiInstance->postReturnAddressesPost($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PostReturnAddressApi->postReturnAddressesPost: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| body | \ClickSend\Model\Address | Address model |
string
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]