AddOrUpdateProductLines

Request

Parameters

ParameterTypeRequiredRecommendedDescription
InvoiceKeystringRequiredInvoice key of the invoice for which product lines need to be added or updated.

Example Request

{
    "Services": {
        "ServiceList": [
            {
                "Name": "CreditManagement3",
                "Action": "AddOrUpdateProductLines",
                "Parameters": [
                    {
                        "Name": "InvoiceKey",
                        "Value": "xxxxxxxxxxxxxxxxxxxxxxxx"
                    },
                    {
                        "Name": "ProductId",
                        "GroupType": "ProductLine",
                        "GroupId": "1",
                        "Value": "2092"
                    },
                    {
                        "Name": "ProductName",
                        "GroupType": "ProductLine",
                        "GroupId": "1",
                        "Value": "Test"
                    },
                    {
                        "Name": "Quantity",
                        "GroupType": "ProductLine",
                        "GroupId": "1",
                        "Value": "1"
                    },
                    {
                        "Name": "PricePerUnit",
                        "GroupType": "ProductLine",
                        "GroupId": "1",
                        "Value": "50"
                    },
                    {
                        "Name": "VatPercentage",
                        "GroupType": "ProductLine",
                        "GroupId": "1",
                        "Value": "7"
                    },
                    {
                        "Name": "TotalVat",
                        "GroupType": "ProductLine",
                        "GroupID": 1,
                        "Value": "10"
                    },
                    {
                        "Name": "TotalAmount",
                        "GroupType": "ProductLine",
                        "GroupID": "1",
                        "Value": "200"
                    },
                    {
                        "Name": "Type",
                        "GroupType": "ProductLine",
                        "GroupId": "1",
                        "Value": "Regular"
                    }
                ]
            }
        ]
    }
}

Response

{
   "Key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2017-09-19T17:46:14"
   },
   "RequiredAction": null,
   "Services": null,
   "CustomParameters": null,
   "AdditionalParameters": null,
   "RequestErrors": null,
   "ServiceCode": "CreditManagement3",
   "IsTest": true,
   "ConsumerMessage": null
}