/api/Invoices/BasedOnQuotation/
POST
- Header
Parameter Description GenerationVersion نسخه API Authorization توکن از نوع JWT برای اعتبارسنجی کاربر IntegrationID کد دستگاه ArbitraryCode یک GUID یکتا EncArbitraryCode نسخه کد شده ArbitraryCode به کمک کلید عمومی - Request
Parameter Type Required Description QuatationID int * شناسه پیش فاکتور JSON{ "QuatationID": 1 } - Response
- 200
Parameter Type Description InvoiceID int شناسه فاکتور OrderRef ?int شناسه درخواست فروش QuotationRef ?int شناسه پیش فاکتور Number int شماره فاکتور Date datetime تاریخ فاکتور CustomerRef int شناسه مشتری CurrencyRef int شناسه ارز Rate double نرخ تبدیل ارز SaleTypeRef int شناسه نوع فروش AddressRef ?int شناسه آدرس Price decimal مبلغ Tax ?decimal مالیات Duty ?decimal عوارض Discount ?decimal تخفیف Addition ?decimal اضافات NetPrice ?decimal مبلغ خالص InvoiceItems []InvoiceItem آرایهای از اقلام فاکتور JSON{ "InvoiceID": 1, "OrderRef": 1, "QuotationRef": 1, "Number": 0, "Date": "2024-04-28", "CustomerRef": 1, "CurrencyRef": 1, "Rate": 0, "SaleTypeRef": 1, "AddressRef": 1, "Price": 0, "Tax": 0, "Duty": 0, "Discount": 0, "Addition": 0, "NetPrice": 0, "AgreementRef": 1, "RemainingAmount": 0, "TotalReceivedAmount": 0, "SettlementType": 1, "State": 1, "InvoiceItems": [ { "InvoiceItemID": 1, "ItemRef": 1, "TracingRef": 1, "TracingTitle": "string", "Quantity": 0, "SecondaryQuantity": 0, "Fee": 0, "Price": 0, "Discount": 0, "Tax": 0, "Duty": 0, "Addition": 0, "NetPrice": 0, "DiscountInvoiceItemRef": 1, "ProductPackRef": 1, "ProductPackQuantity": 0, "Description": "string" } ] } - 400
Code Message Description 400 قبلاً برای تمام اقلام این پیش فاکتور، فاکتور فروش صادر شده است. 400 پس از ثبت عملیات، مانده حساب مشتری از سقف اعتبار تعیین شده بیشتر خواهد شد. 400 پیشفاکتور پیدا نشد.
- 200