You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
spa_instat_tv/src/requests/cancelSubscribe.tsx

13 lines
292 B

import { PAYMENT_API_URL } from 'config'
import { callApi } from 'helpers'
export const cancelSubscribe = (id: number): Promise<unknown> => {
const config = {
method: 'DELETE',
}
return callApi({
config,
url: `${PAYMENT_API_URL}/api/v2/general/subscription/${id}`,
})
}