All URIs are relative to https://api.volocommerce.io/1.0
Method | HTTP request | Description |
---|---|---|
doUpdate | PUT /customers | Update Customer |
getCustomers | GET /customers | Returns a list of customers |
removeCustomer | DELETE /customers/{customerId} | Delete the customer |
saveCustomers | POST /customers | Add a list of customers |
doUpdate($body)
Update Customer
Update Customer.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new \VoloCommerce\Api\v1\Client\CustomersApi();
$body = new \VoloCommerce\Api\v1\Model\UpdateCustomer(); // \VoloCommerce\Api\v1\Model\UpdateCustomer |
try {
$api_instance->doUpdate($body);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->doUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \VoloCommerce\Api\v1\Model\UpdateCustomer | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\VoloCommerce\Api\v1\Model\CustomerResponse getCustomers($authorization, $x_api_key, $id, $name, $company_name, $postcode, $email, $phone, $merchant_type)
Returns a list of customers
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new \VoloCommerce\Api\v1\Client\CustomersApi();
$authorization = "authorization_example"; // string | Auth token
$x_api_key = "x_api_key_example"; // string | API Key
$id = 56; // int | Customer ID
$name = "name_example"; // string | First name or last name of the customer
$company_name = "company_name_example"; // string | Company Name
$postcode = "postcode_example"; // string | Postcode of the address
$email = "email_example"; // string | Email address of the customer
$phone = "phone_example"; // string | Phone number of the customer
$merchant_type = "merchant_type_example"; // string | Merchant type of the customer
try {
$result = $api_instance->getCustomers($authorization, $x_api_key, $id, $name, $company_name, $postcode, $email, $phone, $merchant_type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->getCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | Auth token | |
x_api_key | string | API Key | |
id | int | Customer ID | [optional] |
name | string | First name or last name of the customer | [optional] |
company_name | string | Company Name | [optional] |
postcode | string | Postcode of the address | [optional] |
string | Email address of the customer | [optional] | |
phone | string | Phone number of the customer | [optional] |
merchant_type | string | Merchant type of the customer | [optional] |
\VoloCommerce\Api\v1\Model\CustomerResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\VoloCommerce\Api\v1\Model\DeleteCustomerResponse removeCustomer($customer_id, $authorization, $x_api_key)
Delete the customer
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new \VoloCommerce\Api\v1\Client\CustomersApi();
$customer_id = 56; // int | Customer id
$authorization = "authorization_example"; // string | Auth token
$x_api_key = "x_api_key_example"; // string | API Key
try {
$result = $api_instance->removeCustomer($customer_id, $authorization, $x_api_key);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->removeCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
customer_id | int | Customer id | |
authorization | string | Auth token | |
x_api_key | string | API Key |
\VoloCommerce\Api\v1\Model\DeleteCustomerResponse
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\VoloCommerce\Api\v1\Model\CustomerResponseBeanList saveCustomers($authorization, $x_api_key, $body)
Add a list of customers
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new \VoloCommerce\Api\v1\Client\CustomersApi();
$authorization = "authorization_example"; // string | Auth token
$x_api_key = "x_api_key_example"; // string | API Key
$body = new \VoloCommerce\Api\v1\Model\AddCustomers(); // \VoloCommerce\Api\v1\Model\AddCustomers |
try {
$result = $api_instance->saveCustomers($authorization, $x_api_key, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CustomersApi->saveCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
authorization | string | Auth token | |
x_api_key | string | API Key | |
body | \VoloCommerce\Api\v1\Model\AddCustomers | [optional] |
\VoloCommerce\Api\v1\Model\CustomerResponseBeanList
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]