digitaluapi

<back to all web services

InvoiceFilesAdd

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
POST/invoice_files
import Foundation
import ServiceStack

// @DataContract
public class InvoiceFilesAdd : Codable
{
    // @DataMember(Order=2)
    // @Validate(Validator="NotNull")
    public var tenantsId:Int

    // @DataMember(Order=3)
    // @Validate(Validator="NotNull")
    public var debtsId:Int

    // @DataMember(Order=4)
    // @Validate(Validator="NotNull")
    public var invoiceUrl:String

    required public init(){}
}

public class InvoiceFilesAddResponse : Codable
{
    // @DataMember(Order=2)
    public var tenantsId:Int

    // @DataMember(Order=3)
    public var debtsId:Int

    // @DataMember(Order=4)
    public var invoiceUrl:String

    // @DataMember(Order=6)
    public var responseStatus:ResponseStatus

    required public init(){}
}


Swift InvoiceFilesAdd DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	TenantsId: 0,
	DebtsId: 0,
	InvoiceUrl: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	}
}