API Rechnung abholen
Last updated
by
Jürgen Weisental
**Rechnung Übertragung**
System -> Allgemein -> Sonstiges
Rechnung Übertragung -> URL
Die Rechnung wird per http(s) Post type:Application/json UTF-8 übertragen.
Alternativ kann die Rechnungen geladen werden
Nach Nummern:
[https://\[id\].portal.dikas.de/rest/cashpoint/invoices/\[APIKey\]/byid/\[StartId\]/\[EndID\]](https://%5Bid%5D.portal.dikas.de/rest/cashpoint/invoices/%5BAPIKey%5D/byid/%5BStartId%5D/%5BEndID%5D)
Wird keine EndId angeben werden die nächsten 1000 Rechnungen ausgeben.
Nach Datum:
[https://\[id\].portal.dikas.de/rest/cashpoint/invoices/\[APIKey\]/bydate?s=StartDate\[&e=EndDate\]](https://\[id\].portal.dikas.de/rest/cashpoint/invoices/\[APIKey\]/bydate?s=StartDate\[&e=EndDate\])
**Beispiel**
curl --compressed [https://demo.portal.dikas.de/rest/cashpoint/invoices/50jtZXrOhayAk68WAQnO/byid/1/1](https://demo.portal.dikas.de/rest/cashpoint/invoices/50jtZXrOhayAk68WAQnO/byid/1/1)
curl --compressed [https://demo.portal.dikas.de/rest/cashpoint/invoices/50jtZXrOhayAk68WAQnO/bydate?s=2022-10-01%2010:00&e=2022-10-20%206:00](https://demo.portal.dikas.de/rest/cashpoint/invoices/50jtZXrOhayAk68WAQnO/byid/1/1)
**Datenstruktur**
```
public class CashPointBon {
public string UId { get; set; }
public DateTime? DeliveryDate { get; set; }
public bool NoDeliveryTime { get; set; }
public string DeliveryId { get; set; }
public double Amount { get; set; }
public string Currency { get; set; }
public double CurrencyRate { get; set; }
public int BonId { get; set; }
public string CashpointExchangeId { get; set; }
public string CustomerId { get; set; }
public string BonSourceId { get; set; }
public string Source { get; set; }
public string PersonalId { get; set; }
public string PersonalName { get; set; }
public List<CashPointPosition> Positions { get; set; }
public string PaymentType { get; set; }
public string TableName { get; set; }
public bool IsOffSite { get; set; }
public string Commment { get; set; }
public string TargetBonId { get; set; }
public BonAddress Recipient { get; set; }
public int StornoMode { get; set; }
public double AmountGiven { get; set; }
public List<BonPaymentItem> ExtraPayments { get; set; }
public string WorkplaceName { get; set; }
public string WorkplaceId { get; set; }
public string ExtrenId { get; set; }
public double BonsPoints { get; set; }
public double Netto {get; set}
}
public class BonAddress {
public string Id { get; set; }
public string Comment { get; set; }
public string GroupId { get; set; }
public int AddressId { get; set; }
public string City { get; set; }
public string Company { get; set; }
public string Company2 { get; set; }
public string Country { get; set; }
public string Firstname { get; set; }
public string Lastname { get; set; }
public string MobilPhone { get; set; }
public string Phone { get; set; }
public string Street { get; set; }
public string Street2 { get; set; }
public string StreetId { get; set; }
public string Zip { get; set; }
}
public class CashPointPosition {
public string Id { get; set; }
public string Gang { get; set; }
public string WorkplaceId { get; set; }
public string SourceId { get; set; }
public string SourceName { get; set; }
public string PersonalId { get; set; }
public string PersonalName { get; set; }
public string ArticleId { get; set; }
public string ArticleName { get; set; }
public double Count { get; set; }
public double SingleAmount { get; set; }
public double ExtraOptionRabatt { get; set; }
public double Amount {get; set;}
public double TaxPercent { get; set; }
public string ArticleGroupId { get; set; }
public string ArticleRuleId { get; set; }
public string ArticleRuleName { get; set; }
public List<ArticleExtraOption> ExtraOptions { get; set; }
public string ExtraDescription { get; set; }
public string Source { get; set; }
public System.DateTime CreateDate { get; set; }
public string OriginalPersonalId { get; set; }
public double NormalPrice { get; set; }
public double Netto {get;set;}
}
```
·