Bridge

<back to all web services

ConfirmationCreate

Confirmations
The following routes are available for this service:
POST/Confirmations/Create
import java.math.*
import java.util.*
import net.servicestack.client.*


open class ConfirmationCreate
{
    var IMONumberOrMMSI:String? = null
    var VesselId:Int? = null
    var DateFrom:Date? = null
    var DateTo:Date? = null
    var PortId:Int? = null
    var DeliveryMethodId:Int? = null
    var Agent:String? = null
    var SellingAccountId:Int? = null
    var BuyingAccountId:Int? = null
    var RequestedTermsType:String? = null
    var CreditTermDays:Int? = null
    var VesselType:String? = null
    var RecapComments:String? = null
    var AgentDetails:String? = null
    var AdditionalCosts:String? = null
    var BuyerCompany:String? = null
    var BuyerEmailAddress:String? = null
    var ConfirmationGrades:ArrayList<ConfirmationGradesViewModel> = ArrayList<ConfirmationGradesViewModel>()
}

open class ConfirmationGradesViewModel
{
    var Id:Int? = null
    var Deleted:Boolean? = null
    var ProductId:Int? = null
    var VersionId:Int? = null
    var GradeId:Int? = null
    var SpecificationComments:String? = null
    var VolumeFrom:Int? = null
    var VolumeTo:Int? = null
    var UnitId:Int? = null
    var VolumeUnitId:Int? = null
    var UnitPrice:Double? = null
    var CurrencyId:Int? = null
}

open class SavingResult
{
    var Id:Int? = null
    var GuidId:UUID? = null
    var Status:SavingResultStatus? = null
    var Errors:ArrayList<SavingResultErrors> = ArrayList<SavingResultErrors>()
}

enum class SavingResultStatus
{
    Success,
    Error,
}

open class SavingResultErrors
{
    var Error:String? = null
}

Kotlin ConfirmationCreate 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 /Confirmations/Create HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	IMONumberOrMMSI: String,
	VesselId: 0,
	DateFrom: 0001-01-01,
	DateTo: 0001-01-01,
	PortId: 0,
	DeliveryMethodId: 0,
	Agent: String,
	SellingAccountId: 0,
	BuyingAccountId: 0,
	RequestedTermsType: String,
	CreditTermDays: 0,
	VesselType: String,
	RecapComments: String,
	AgentDetails: String,
	AdditionalCosts: String,
	BuyerCompany: String,
	BuyerEmailAddress: String,
	ConfirmationGrades: 
	[
		{
			Id: 0,
			Deleted: False,
			ProductId: 0,
			VersionId: 0,
			GradeId: 0,
			SpecificationComments: String,
			VolumeFrom: 0,
			VolumeTo: 0,
			UnitId: 0,
			VolumeUnitId: 0,
			UnitPrice: 0,
			CurrencyId: 0
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	GuidId: 00000000000000000000000000000000,
	Status: Success,
	Errors: 
	[
		{
			Error: String
		}
	]
}