All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| createCustomer | POST /api/v1.0/{appId}/customers | |
| getCustomerById | GET /api/v1.0/{appId}/customers/{customerId} | |
| getCustomers | GET /api/v1.0/{appId}/customers | |
| updateCustomerById | POST /api/v1.0/{appId}/customers/{customerId} |
RestApiResultCustomer createCustomer(appId, customerCreateModel)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CustomersApi();
let appId = "appId_example"; // String |
let customerCreateModel = new Flipdish.CustomerCreateModel(); // CustomerCreateModel |
apiInstance.createCustomer(appId, customerCreateModel, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| customerCreateModel | CustomerCreateModel |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, Data
RestApiResultCustomer getCustomerById(appId, customerId)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CustomersApi();
let appId = "appId_example"; // String |
let customerId = 56; // Number |
apiInstance.getCustomerById(appId, customerId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| customerId | Number |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace
RestApiResultCustomers getCustomers(appId, phoneNumber)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CustomersApi();
let appId = "appId_example"; // String |
let phoneNumber = "phoneNumber_example"; // String |
apiInstance.getCustomers(appId, phoneNumber, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| phoneNumber | String |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace
RestApiResultCustomer updateCustomerById(appId, customerId, updateCustomer)
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.CustomersApi();
let appId = "appId_example"; // String |
let customerId = 56; // Number |
let updateCustomer = new Flipdish.CustomerUpdateModel(); // CustomerUpdateModel |
apiInstance.updateCustomerById(appId, customerId, updateCustomer, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| customerId | Number | ||
| updateCustomer | CustomerUpdateModel |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, Data, Message, ErrorCode, StackTrace