Skip to content

Latest commit

 

History

History
118 lines (77 loc) · 3.02 KB

CustomerSatisfactionApi.md

File metadata and controls

118 lines (77 loc) · 3.02 KB

CustomerSatisfactionApi

All URIs are relative to http://localhost

Method HTTP request Description
createCsat POST /api/v1/csat Create Customer Satisfaction Score
editCsat PATCH /api/v1/csat/{id} Update Customer Satisfaction Description

createCsat

DeleteApplications200Response createCsat(createCsatRequest)

Creates a customer satisfaction score between 0 and 5

Example

import {
    CustomerSatisfactionApi,
    Configuration,
    CreateCsatRequest
} from '@hdruk/gateway-api-sdk';

const configuration = new Configuration();
const apiInstance = new CustomerSatisfactionApi(configuration);

let createCsatRequest: CreateCsatRequest; //Customer Satisfaction score

const { status, data } = await apiInstance.createCsat(
    createCsatRequest
);

Parameters

Name Type Description Notes
createCsatRequest CreateCsatRequest Customer Satisfaction score

Return type

DeleteApplications200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Resource Created -
422 Validation Error -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

editCsat

EditCsat200Response editCsat(editCsatRequest)

Update a description for a satisfaction score entry

Example

import {
    CustomerSatisfactionApi,
    Configuration,
    EditCsatRequest
} from '@hdruk/gateway-api-sdk';

const configuration = new Configuration();
const apiInstance = new CustomerSatisfactionApi(configuration);

let id: number; //ID of the CSAT entry (default to undefined)
let editCsatRequest: EditCsatRequest; //Reason to update

const { status, data } = await apiInstance.editCsat(
    id,
    editCsatRequest
);

Parameters

Name Type Description Notes
editCsatRequest EditCsatRequest Reason to update
id [number] ID of the CSAT entry defaults to undefined

Return type

EditCsat200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Update successful -

[Back to top] [Back to API list] [Back to Model list] [Back to README]