Invoice API

Get Invoices
URL /ApiService.svc/Invoices/List
Method POST
Body
{
    "FromModifiedDate": "/Date(1587358800000)/",
    "ToModifiedDate": "/Date(1600700966247)/"
}
Response
[
    {
        "AddressId": 1,
        "BillTo": "RazorSync\nCustomer Support\n4500 Park Glen Rd\nMinneapolis, MN 55416",
        "CreateDate": "/Date(1600204558193+0000)/",
        "CustomId": "1",
        "CustomerId": 1,
        "DueDate": "/Date(1602738000000+0000)/",
        "ExcelPdfTaxRate": 0.050000,
        "Id": 1,
        "IsHideOnCustomer": true,
        "LastChangeDate": "/Date(1600700940690+0000)/",
        "Memo": "123",
        "SendToContactId": 1,
        "ServiceTo": "RazorSync\nCustomer Support\n4500 Park Glen Rd\nMinneapolis, MN 55416",
        "Tax": 0.00000,
        "TaxNameId": null,
        "Total": 120.00000,
        "Zip": "55416"
    }
]
Comments

 

  Get Invoice
URL /ApiService.svc/Invoice/{id}
Method GET
Body

 

Response
{
    "AddressId": 1,
    "BillTo": "RazorSync\nCustomer Support\n4500 Park Glen Rd\nMinneapolis, MN 55416",
    "CreateDate": "/Date(1600204558193+0000)/",
    "CustomId": "1",
    "CustomerId": 1,
    "DueDate": "/Date(1602738000000+0000)/",
    "ExcelPdfTaxRate": 0.050000,
    "Id": 1,
    "IsHideOnCustomer": true,
    "LastChangeDate": "/Date(1600700940690+0000)/",
    "Memo": "123",
    "SendToContactId": 1,
    "ServiceTo": "RazorSync\nCustomer Support\n4500 Park Glen Rd\nMinneapolis, MN 55416",
    "Tax": 0.00000,
    "TaxNameId": null,
    "Total": 120.00000,
    "Zip": "55416"
}
Comments

 

 

  Create Invoice
URL /Invoice/Create
Method POST
Body

{
"AddressId": 1,
"BillTo": "RazorSync\nCustomer Support\n4500 Park Glen Rd\nMinneapolis, MN 55416",
"CreateDate": "/Date(1600204558193)/",
"CustomerId": 1,
"DueDate": "/Date(1602738000000)/",
"ExcelPdfTaxRate": 0.09,
"IsHideOnCustomer": true,
"LastChangeDate": "/Date(1600700940690)/",
"Memo": "Test memo",
"SendToContactId": 1,
"ServiceTo": "RazorSync\nCustomer Support\n4500 Park Glen Rd\nMinneapolis, MN 55416",
"Zip": "55416"
}

Response
{
"AddressId": 1,
"BillTo": "RazorSync\nCustomer Support\n4500 Park Glen Rd\nMinneapolis, MN 55416",
"CreateDate": "/Date(1608155588122)/",
"CustomId": "37",
"CustomerId": 1,
"DueDate": "/Date(1610747588122)/",
"ExcelPdfTaxRate": 0.09,
"Id": 1016,
"IsHideOnCustomer": true,
"LastChangeDate": "/Date(1608155588137)/",
"Memo": "Test memo",
"SendToContactId": 1,
"ServiceTo": "RazorSync\nCustomer Support\n4500 Park Glen Rd\nMinneapolis, MN 55416",
"Tax": null,
"TaxNameId": null,
"Total": null,
"Zip": "55416"
}
Comments

If you invoice through Quickbooks, then the system will ignore ExcelPdfTaxRate and set TaxNameId to the default.