All URIs are relative to https://virtserver.swaggerhub.com/iDT-Labs/Noory/1.0.0
Method | HTTP request | Description |
---|---|---|
addCustomer | POST /customers | adds a customer |
deleteCustomer | DELETE /customers/{id} | Delete a single customer record. |
getByExternalID | GET /customers/byExternalId/{externalId} | GETs a single customer its external ID |
getCustomer | GET /customers/{id} | Gets a single customer |
listCustomers | GET /customers | Gets a list of customers |
markCustomerSourceDefault | POST /customers/{id}/sources/{sid}/default | Marks a customer payment source as default |
updateCustomer | PUT /customers/{id} | Updates a customer |
updateCustomerSources | POST /customers/{id}/sources | Adds a payment source to customer |
Customer addCustomer(customerCreateDto)
adds a customer
Adds a customer
// Import classes:
//import io.noory.client.invoker.ApiClient;
//import io.noory.client.invoker.ApiException;
//import io.noory.client.invoker.Configuration;
//import io.noory.client.invoker.auth.*;
//import io.noory.client.api.DevelopersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DevelopersApi apiInstance = new DevelopersApi();
CustomerCreateDto customerCreateDto = new CustomerCreateDto(); // CustomerCreateDto | Customer record to add
try {
Customer result = apiInstance.addCustomer(customerCreateDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#addCustomer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
customerCreateDto | CustomerCreateDto | Customer record to add | [optional] |
- Content-Type: application/json
- Accept: application/json
Customer deleteCustomer(id)
Delete a single customer record.
Delete a single customer record. Deletion does not remove the record from the database but soft deletes it by setting the deleted attribute to true. You can still access the customer record but it won't show up in listings
// Import classes:
//import io.noory.client.invoker.ApiClient;
//import io.noory.client.invoker.ApiException;
//import io.noory.client.invoker.Configuration;
//import io.noory.client.invoker.auth.*;
//import io.noory.client.api.DevelopersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DevelopersApi apiInstance = new DevelopersApi();
String id = "id_example"; // String | Unique ID of customer
try {
Customer result = apiInstance.deleteCustomer(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#deleteCustomer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Unique ID of customer |
- Content-Type: Not defined
- Accept: application/json
Customer getByExternalID(externalId)
GETs a single customer its external ID
GETs a single customer its external ID
// Import classes:
//import io.noory.client.invoker.ApiClient;
//import io.noory.client.invoker.ApiException;
//import io.noory.client.invoker.Configuration;
//import io.noory.client.invoker.auth.*;
//import io.noory.client.api.DevelopersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DevelopersApi apiInstance = new DevelopersApi();
String externalId = "externalId_example"; // String | Unique externalId of customer
try {
Customer result = apiInstance.getByExternalID(externalId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#getByExternalID");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
externalId | String | Unique externalId of customer |
- Content-Type: Not defined
- Accept: application/json
Customer getCustomer(id)
Gets a single customer
Gets a single customer
// Import classes:
//import io.noory.client.invoker.ApiClient;
//import io.noory.client.invoker.ApiException;
//import io.noory.client.invoker.Configuration;
//import io.noory.client.invoker.auth.*;
//import io.noory.client.api.DevelopersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DevelopersApi apiInstance = new DevelopersApi();
String id = "id_example"; // String | Unique ID of customer
try {
Customer result = apiInstance.getCustomer(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#getCustomer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Unique ID of customer |
- Content-Type: Not defined
- Accept: application/json
List<Customer> listCustomers(search, page, size)
Gets a list of customers
Gets a list of customers; supports filtering, size, page by
// Import classes:
//import io.noory.client.invoker.ApiClient;
//import io.noory.client.invoker.ApiException;
//import io.noory.client.invoker.Configuration;
//import io.noory.client.invoker.auth.*;
//import io.noory.client.api.DevelopersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DevelopersApi apiInstance = new DevelopersApi();
String search = "search_example"; // String | pass an optional RSQL search string for looking up inventory
Integer page = 56; // Integer | page for pagination
Integer size = 56; // Integer | maximum number of records to return
try {
List<Customer> result = apiInstance.listCustomers(search, page, size);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#listCustomers");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
search | String | pass an optional RSQL search string for looking up inventory | [optional] |
page | Integer | page for pagination | [optional] |
size | Integer | maximum number of records to return | [optional] |
- Content-Type: Not defined
- Accept: application/json
Customer markCustomerSourceDefault(id, sid)
Marks a customer payment source as default
Marks a customer payment source as default
// Import classes:
//import io.noory.client.invoker.ApiClient;
//import io.noory.client.invoker.ApiException;
//import io.noory.client.invoker.Configuration;
//import io.noory.client.invoker.auth.*;
//import io.noory.client.api.DevelopersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DevelopersApi apiInstance = new DevelopersApi();
String id = "id_example"; // String | Unique ID of customer
String sid = "sid_example"; // String | ID of source we wish to make default
try {
Customer result = apiInstance.markCustomerSourceDefault(id, sid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#markCustomerSourceDefault");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Unique ID of customer | |
sid | String | ID of source we wish to make default |
- Content-Type: Not defined
- Accept: application/json
Customer updateCustomer(id, customerUpdateDto)
Updates a customer
Update a customer's record
// Import classes:
//import io.noory.client.invoker.ApiClient;
//import io.noory.client.invoker.ApiException;
//import io.noory.client.invoker.Configuration;
//import io.noory.client.invoker.auth.*;
//import io.noory.client.api.DevelopersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DevelopersApi apiInstance = new DevelopersApi();
String id = "id_example"; // String | Unique ID of customer
CustomerUpdateDto customerUpdateDto = new CustomerUpdateDto(); // CustomerUpdateDto | Customer record to update
try {
Customer result = apiInstance.updateCustomer(id, customerUpdateDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#updateCustomer");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Unique ID of customer | |
customerUpdateDto | CustomerUpdateDto | Customer record to update | [optional] |
- Content-Type: Not defined
- Accept: application/json
Customer updateCustomerSources(id, sourceCreateDto)
Adds a payment source to customer
Adds a payment source to customer
// Import classes:
//import io.noory.client.invoker.ApiClient;
//import io.noory.client.invoker.ApiException;
//import io.noory.client.invoker.Configuration;
//import io.noory.client.invoker.auth.*;
//import io.noory.client.api.DevelopersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DevelopersApi apiInstance = new DevelopersApi();
String id = "id_example"; // String | Unique ID of customer
SourceCreateDto sourceCreateDto = new SourceCreateDto(); // SourceCreateDto | Soruce record to create
try {
Customer result = apiInstance.updateCustomerSources(id, sourceCreateDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevelopersApi#updateCustomerSources");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | Unique ID of customer | |
sourceCreateDto | SourceCreateDto | Soruce record to create | [optional] |
- Content-Type: Not defined
- Accept: application/json