...
Connection to the Ascora is achieved utilising Basic Authentication with an Ascora Account. This must be added to the headers in the HTTP Get/Post operations.
API Endpoint
...
Invoice Functions
[Route("/invoicedetails")] [Route("/invoicedetails/{CompanyId}")] public class InvoiceDetails : InvoiceDetailResponse { public DateTime InvoicesPriorToDate { get; set; } } | Retrieves all Invoices prior to the specified Date which have not yet been marked as sent to the Accounting System. |
[Route("/MarkInvoice", "POST")] public class MarkInvoice { public List<Guid> InvoiceIds { get; set; } } | Marks the specified Invoices as having been successfully pushed to the Accounting System. |
Note: Invoices must be marked as successfully pushed once retrieve or they will be retrieved again in future requests.
...
/// <summary>
/// Total Tax for all items on this invoice Line
/// </summary>
public decimal Tax { get; set; }
}
Payment Functions
[Route("/payments")] public class Payments { public List<Payment> Results { get; set; } } | Retrieves all Payments that have not yet been sent to the Accounting Package but are linked to Invoices that are already marked as sent. |
[Route("/MarkPayment", "POST")] public class MarkPayment { public List<Guid> PaymentIds { get; set; } } | Marks the specified Payments as having been successfully pushed to the Accounting System. |
Note: Payments must be marked as successfully pushed once retrieve or they will be retrieved again in future requests.
...