Feature #5704
closedProvide the api to save the vendor invoice details
Description
The Api which handles to save the invoice details of a vendor like products with the qty,taxsubtotal,invoiceno,invoice due date like all the information will store
Subtasks
Related issues
Updated by Teja Sriram Sangani about 2 months ago
- Status changed from New to Resolved
curl --location 'http://localhost:3007/api/v1/vendor-invoice/create-vendor-invoice' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4N2EyODI5NzY1MzAwNjU1NzM4NGE1MyIsInNsdWciOiJudXJzZXJ5L2V2ZXJncmVlbiIsInJvbGUiOiJtYW5hZ2VyIiwiZGJOYW1lIjoiZXZlcmdyZWVuIiwidGltZVpvbmUiOiJBc2lhL0NhbGN1dHRhIiwiaWF0IjoxNzY1MTg2MTU0LCJleHAiOjE3NjUyNzI1NTR9.DRvbGlrexlb7L2DFLUIcZsKvbOqTbCsnu5tL264LOv8' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"vendorId": "vn_893757",
"items": [
{
"productId": "45f47efe-e5c9-48f6-98ec-12d1412ea1f5",
"quantity": 100,
"purchase_cost": 5.99,
"tax": 47.92,
"notes": "Premium potting soil batch"
},
{
"productId": "3c5ea72c-cac1-424f-a841-bb9b340981b7",
"quantity": 50,
"purchase_cost": 12.99,
"tax": 32.48,
"notes": "Organic fertilizer"
}
],
"paymentTerms": "Net 30",
"dueDate": "2024-12-31",
"notes": "Monthly supply order for December",
"attachments": [
{
"filename": "purchase_order_123.pdf",
"url": "https://storage.example.com/purchase_order_123.pdf",
"uploadedAt": "2024-12-01T10:00:00Z"
}
]
}'
Updated by Yalavarthi Thriveni about 1 month ago
- Status changed from Resolved to Closed