SpringImport\Swagger\Magento2\Client\CustomerAddressRepositoryV1Api
May 18, 2017 ยท View on GitHub
All URIs are relative to http://t213.vg/rest/default
| Method | HTTP request | Description |
|---|---|---|
| customerAddressRepositoryV1DeleteByIdDelete | DELETE /V1/addresses/{addressId} | |
| customerAddressRepositoryV1GetByIdGet | GET /V1/customers/addresses/{addressId} |
customerAddressRepositoryV1DeleteByIdDelete
bool customerAddressRepositoryV1DeleteByIdDelete($addressId)
Delete customer address by ID.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CustomerAddressRepositoryV1Api();
$addressId = 56; // int |
try {
$result = $api_instance->customerAddressRepositoryV1DeleteByIdDelete($addressId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerAddressRepositoryV1Api->customerAddressRepositoryV1DeleteByIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| addressId | int |
Return type
bool
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
customerAddressRepositoryV1GetByIdGet
\SpringImport\Swagger\Magento2\Client\Model\CustomerDataAddressInterface customerAddressRepositoryV1GetByIdGet($addressId)
Retrieve customer address.
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new SpringImport\Swagger\Magento2\Client\Api\CustomerAddressRepositoryV1Api();
$addressId = 56; // int |
try {
$result = $api_instance->customerAddressRepositoryV1GetByIdGet($addressId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomerAddressRepositoryV1Api->customerAddressRepositoryV1GetByIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| addressId | int |
Return type
\SpringImport\Swagger\Magento2\Client\Model\CustomerDataAddressInterface
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]