Untitled
unknown
tsx
a year ago
1.3 kB
2
Indexable
Never
const { data }: AxiosResponse<AxiosResponseType> = await api.post( '/checkoutsell', { customerid: args.phoneNumber, city: args.formData.city!.label, state: args.formData.province!.label, address: args.formData.address, postalCode: args.formData.postalCode, first_name: args.formData.firstName, last_name: args.formData.lastName, post_price: Number(args.formData!.transportPrice) * 10, countPack: 1, postMethod: args.fetchedLogginedUserData?.postmethod, sendTime: args.fetchedLogginedUserData?.sendtime, sendDay: args.fetchedLogginedUserData?.sendday, bank: args.fetchedLogginedUserData?.bank, accNumber: args.fetchedLogginedUserData?.accnumber, accountholder: args.fetchedLogginedUserData?.accountholder, email: args.fetchedLogginedUserData?.email, discountcode: '', sell: '1', total_weight: args.totalWeight, payment_method: 'post', total_books_price: args.totalBookPrice, total_dicounts: '', final_total_price: args.totalBookPrice + Number(args.formData!.transportPrice) * 10, books: args.booksData, }, { headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${args.token}`, }, }, );