All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
getBillingAddressCollection | GET /order/billing_addresses | Retrieves the collection of BillingAddress resources. |
getBillingAddressItem | GET /order/billing_addresses/{id} | Retrieves a BillingAddress resource. |
postBillingAddressCollection | POST /order/billing_addresses | Creates a BillingAddress resource. |
putBillingAddressItem | PUT /order/billing_addresses/{id} | Replaces the BillingAddress resource. |
\VentureLeap\OrderService\Model\InlineResponse200 getBillingAddressCollection($page)
Retrieves the collection of BillingAddress resources.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = VentureLeap\OrderService\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = VentureLeap\OrderService\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new VentureLeap\OrderService\Api\BillingAddressApi(
// 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 | The collection page number
try {
$result = $apiInstance->getBillingAddressCollection($page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingAddressApi->getBillingAddressCollection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
page | int | The collection page number | [optional] [default to 1] |
\VentureLeap\OrderService\Model\InlineResponse200
- Content-Type: Not defined
- Accept: application/ld+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressRead getBillingAddressItem($id)
Retrieves a BillingAddress resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = VentureLeap\OrderService\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = VentureLeap\OrderService\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new VentureLeap\OrderService\Api\BillingAddressApi(
// 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
);
$id = "id_example"; // string |
try {
$result = $apiInstance->getBillingAddressItem($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingAddressApi->getBillingAddressItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressRead
- Content-Type: Not defined
- Accept: application/ld+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressRead postBillingAddressCollection($body)
Creates a BillingAddress resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = VentureLeap\OrderService\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = VentureLeap\OrderService\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new VentureLeap\OrderService\Api\BillingAddressApi(
// 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 \VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressWrite(); // \VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressWrite | The new BillingAddress resource
try {
$result = $apiInstance->postBillingAddressCollection($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingAddressApi->postBillingAddressCollection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressWrite | The new BillingAddress resource | [optional] |
\VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressRead
- Content-Type: application/ld+json
- Accept: application/ld+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressRead putBillingAddressItem($id, $body)
Replaces the BillingAddress resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: apiKey
$config = VentureLeap\OrderService\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = VentureLeap\OrderService\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$apiInstance = new VentureLeap\OrderService\Api\BillingAddressApi(
// 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
);
$id = "id_example"; // string |
$body = new \VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressWrite(); // \VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressWrite | The updated BillingAddress resource
try {
$result = $apiInstance->putBillingAddressItem($id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BillingAddressApi->putBillingAddressItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
body | \VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressWrite | The updated BillingAddress resource | [optional] |
\VentureLeap\OrderService\Model\BillingAddressJsonldBillingAddressRead
- Content-Type: application/ld+json
- Accept: application/ld+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]