HOME / COMMUNITY Switch to knowledge base

{ "Errors": { "Error": [ "Input string was not in a correct format." ] } }

i am try to create an invoice. However when i send my json

{
    "payload": {
        "Header": {
            "MessageType": "Request",
            "SubmissionNumber": "13795222-ed71-4999-b91f-06f80bdccb50",
            "Authentication": {
                "MD5Value": "########",
                "AccNumber": "########",
                "ApplicationID": "########"
            }
        },
        "Body": {
            "@xmlns": "https://api.quickfile.co.uk",
            "InvoiceData": {
                "InvoiceType": "INVOICE",
                "ClientID": "##",
                "ClientAddress": {
                    "Address": "null<br/>null<br/>null",
                    "CountryISO": "GB"
                },
                "Currency": "GBP",
                "TermDays": 0,
                "Language": "en",
                "InvoiceLines": {
                    "ItemLines": {
                        "ItemLine": [
                            {
                                "ItemID": "##",
                                "ItemName": "new package type",
                                "ItemDescription": null,
                                "ItemNominalCode": "9a6d7",
                                "Tax1": {
                                    "TaxName": "none",
                                    "TaxPercentage": "0",
                                    "TaxAmount": "0"
                                },
                                "UnitCost": "699.0",
                                "Qty": 1
                            }
                        ]
                    }
                },
                "Scheduling": {
                    "SingleInvoiceData": {
                        "IssueDate": "2018-10-18"
                    }
                }
            }
        }
    }
}

i am getting

{   "Errors": {     "Error": [       "Input string was not in a correct format."     ]   } }

fixed it is the ItemNominalCode

Glad to hear you managed to resolve this @sampzz

Please let us know if we can help you further.

This topic was automatically closed after 7 days. New replies are no longer allowed.