Bridge

<back to all web services

EnquiryCreate

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


open class EnquiryCreate
{
    var AccountId:Int? = null
    var Agent:String? = null
    var BuyerEmailAddress:String? = null
    var BuyerCompany:String? = null
    var CreditTermDays:Int? = null
    var DateFrom:Date? = null
    var DateTo:Date? = null
    var DeliveryMethodId:Int? = null
    var GeneralComments:String? = null
    var PortId:Int? = null
    var RequestedTermsType:String? = null
    var VesselId:Int? = null
    var SupplyDeskEntityContactId:Int? = null
    var SelectedEntityContactIds:ArrayList<String> = ArrayList<String>()
    var EnquiryGrades:ArrayList<CreateEnquiryGradesViewModel> = ArrayList<CreateEnquiryGradesViewModel>()
}

open class CreateEnquiryGradesViewModel
{
    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
}

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 EnquiryCreate DTOs

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

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Enquiries/Create HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"AccountId":0,"Agent":"String","BuyerEmailAddress":"String","BuyerCompany":"String","CreditTermDays":0,"DateFrom":"0001-01-01T00:00:00.0000000","DateTo":"0001-01-01T00:00:00.0000000","DeliveryMethodId":0,"GeneralComments":"String","PortId":0,"RequestedTermsType":"String","VesselId":0,"SupplyDeskEntityContactId":0,"SelectedEntityContactIds":["String"],"EnquiryGrades":[{"Id":0,"Deleted":false,"ProductId":0,"VersionId":0,"GradeId":0,"SpecificationComments":"String","VolumeFrom":0,"VolumeTo":0,"UnitId":0}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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