| Requires any of the roles: | Client, Admin, Partner |
| POST | /invoice_files |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:collection';
class InvoiceFilesAddResponse implements IConvertible
{
// @DataMember(Order=2)
int? TenantsId;
// @DataMember(Order=3)
int? DebtsId;
// @DataMember(Order=4)
String? InvoiceUrl;
// @DataMember(Order=6)
ResponseStatus? ResponseStatus;
InvoiceFilesAddResponse({this.TenantsId,this.DebtsId,this.InvoiceUrl,this.ResponseStatus});
InvoiceFilesAddResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
TenantsId = json['TenantsId'];
DebtsId = json['DebtsId'];
InvoiceUrl = json['InvoiceUrl'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'TenantsId': TenantsId,
'DebtsId': DebtsId,
'InvoiceUrl': InvoiceUrl,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "InvoiceFilesAddResponse";
TypeContext? context = _ctx;
}
// @DataContract
class InvoiceFilesAdd implements IConvertible
{
// @DataMember(Order=2)
// @Validate(Validator="NotNull")
int? TenantsId;
// @DataMember(Order=3)
// @Validate(Validator="NotNull")
int? DebtsId;
// @DataMember(Order=4)
// @Validate(Validator="NotNull")
String? InvoiceUrl;
InvoiceFilesAdd({this.TenantsId,this.DebtsId,this.InvoiceUrl});
InvoiceFilesAdd.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() => "InvoiceFilesAdd";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'InvoiceFilesAddResponse': TypeInfo(TypeOf.Class, create:() => InvoiceFilesAddResponse()),
'InvoiceFilesAdd': TypeInfo(TypeOf.Class, create:() => InvoiceFilesAdd()),
});
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.
POST /invoice_files HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"TenantsId":0,"DebtsId":0,"InvoiceUrl":"String"}
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"}}}