| Requires any of the roles: | Client, Admin, Partner |
| GET | /invoice_files |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:collection';
// @DataContract
class InvoiceFilesLookup implements IConvertible
{
// @DataMember(Order=2)
int? TenantsId;
// @DataMember(Order=3)
int? DebtsId;
// @DataMember(Order=4)
String? InvoiceUrl;
InvoiceFilesLookup({this.TenantsId,this.DebtsId,this.InvoiceUrl});
InvoiceFilesLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
TenantsId = json['TenantsId'];
DebtsId = json['DebtsId'];
InvoiceUrl = json['InvoiceUrl'];
return this;
}
Map<String, dynamic> toJson() => {
'TenantsId': TenantsId,
'DebtsId': DebtsId,
'InvoiceUrl': InvoiceUrl
};
getTypeName() => "InvoiceFilesLookup";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'InvoiceFilesLookup': TypeInfo(TypeOf.Class, create:() => InvoiceFilesLookup()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /invoice_files HTTP/1.1 Host: duengageapi.uat.scadsoftware.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
[{"TenantsId":0,"DebtsId":0,"InvoiceUrl":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}]