feat: add customers list on the dashboard

This commit is contained in:
swve 2024-11-03 00:04:00 +01:00
parent 3988ee1d4b
commit 9f1d8c58d1
8 changed files with 361 additions and 7 deletions

View file

@ -45,3 +45,12 @@ export async function deletePaymentConfig(orgId: number, id: string, access_toke
const res = await errorHandling(result);
return res;
}
export async function getOrgCustomers(orgId: number, access_token: string) {
const result = await fetch(
`${getAPIUrl()}payments/${orgId}/customers`,
RequestBodyWithAuthHeader('GET', null, null, access_token)
);
const res = await errorHandling(result);
return res;
}