ثبت یک فاکتور فروش

/api/invoices/

  • Header

  • Request
    JSON
    {
      "InvoiceExtraData": {
        "Fields": [
          {
            "Key": "string",
            "Value": {}
          }
        ],
        "ExtraColumnVersion": 0,
        "ExtraDataVersion": 0,
        "EntityID": 0
      },
      "GUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "CurrencyRef": 1,
      "CustomerRef": 1,
      "AddressRef": 1,
      "SaleTypeRef": 1,
      "SettlementType": 1,
      "DiscountOnCustomer": 0,
      "Price": 0,
      "Discount": 0,
      "Tax": 0,
      "Duty": 0,
      "Addition": 0,
      "Items": [
        {
          "RowID": 1,
          "ItemRef": 1,
          "TracingRef": 1,
          "StockRef": 1,
          "Quantity": 0,
          "SecondaryQuantity": 0,
          "Fee": 0,
          "Price": 0,
          "Description": "string",
          "PriceInfoPercentDiscount": 0,
          "PriceInfoPriceDiscount": 0,
          "PriceInfoDiscountRate": 0,
          "AggregateAmountPercentDiscount": 0,
          "AggregateAmountPriceDiscount": 0,
          "AggregateAmountDiscountRate": 0,
          "CustomerDiscount": 0,
          "CustomerDiscountRate": 0,
          "Discount": 0,
          "DiscountParentRef": 1,
          "Tax": 0,
          "Duty": 0,
          "Addition": 0
        }
      ]
    }
    
    
  • Response
    • 200

      JSON
      {
        "InvoiceExtraData": {
          "Fields": [
            {
              "Key": "string",
              "Value": {}
            }
          ],
          "ExtraColumnVersion": 0,
          "ExtraDataVersion": 0,
          "EntityID": 0
        },
        "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
تمامی حقوق مالکیت معنوی این وب‌سایت برای شرکت سپیدار سیستم محفوظ است. © Copyright 2026 Sepidar System. All rights reserved.