fix: invoice generate sharable link

This commit is contained in:
Ahmed Bouhuolia
2025-06-27 01:59:46 +02:00
parent e7178a6575
commit 0c0e1dc22e
10 changed files with 74 additions and 19 deletions

View File

@@ -45,7 +45,10 @@ export function useCreatePaymentLink(
return useMutation<CreatePaymentLinkResponse, Error, CreatePaymentLinkValues>(
(values) =>
apiRequest
.post('/payment-links/generate', transfromToSnakeCase(values))
.post(
`/sale-invoices/${values.transactionId}/generate-link`,
transfromToSnakeCase(values),
)
.then((res) => res.data),
{
...options,