All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| createEndUserFeeConfig | POST /api/v1.0/{appId}/stores/{storeId}/end-user-fees | |
| getEndUserFeesForStore | GET /api/v1.0/{appId}/stores/{storeId}/end-user-fees | |
| setV2FeeCalculation | POST /api/v1.0/{appId}/stores/{storeId}/end-user-fees/v2-fee-calculation |
Object createEndUserFeeConfig(appId, storeId, input)
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.EndUserFeesApi();
let appId = "appId_example"; // String |
let storeId = 56; // Number |
let input = new Flipdish.CreateEndUserFeeConfig(); // CreateEndUserFeeConfig |
apiInstance.createEndUserFeeConfig(appId, storeId, input, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| storeId | Number | ||
| input | CreateEndUserFeeConfig |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultGetEndUserFeeConfigsResponse getEndUserFeesForStore(appId, storeId)
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.EndUserFeesApi();
let appId = "appId_example"; // String |
let storeId = 56; // Number |
apiInstance.getEndUserFeesForStore(appId, storeId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| storeId | Number |
RestApiResultGetEndUserFeeConfigsResponse
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultSetV2FeeCalculationRequest setV2FeeCalculation(appId, storeId, input)
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.EndUserFeesApi();
let appId = "appId_example"; // String |
let storeId = 56; // Number |
let input = new Flipdish.SetV2FeeCalculationRequest(); // SetV2FeeCalculationRequest |
apiInstance.setV2FeeCalculation(appId, storeId, input, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| storeId | Number | ||
| input | SetV2FeeCalculationRequest |
RestApiResultSetV2FeeCalculationRequest
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml