Bridge

<back to all web services

ConfirmationCreate

Confirmations
The following routes are available for this service:
POST/Confirmations/Create
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Bridge.Private.Api.DTO;
using Bridge.Core.ViewModels;
using Bridge.Core.Results;

namespace Bridge.Core.Results
{
    public partial class SavingResult
    {
        public SavingResult()
        {
            Errors = new List<SavingResultErrors>{};
        }

        public virtual int? Id { get; set; }
        public virtual Guid? GuidId { get; set; }
        public virtual SavingResultStatus Status { get; set; }
        public virtual List<SavingResultErrors> Errors { get; set; }
    }

    public partial class SavingResultErrors
    {
        public virtual string Error { get; set; }
    }

    public enum SavingResultStatus
    {
        Success,
        Error,
    }

}

namespace Bridge.Core.ViewModels
{
    public partial class ConfirmationGradesViewModel
    {
        public virtual int? Id { get; set; }
        public virtual bool Deleted { get; set; }
        public virtual int? ProductId { get; set; }
        public virtual int? VersionId { get; set; }
        public virtual int? GradeId { get; set; }
        public virtual string SpecificationComments { get; set; }
        public virtual int? VolumeFrom { get; set; }
        public virtual int? VolumeTo { get; set; }
        public virtual int? UnitId { get; set; }
        public virtual int? VolumeUnitId { get; set; }
        public virtual double? UnitPrice { get; set; }
        public virtual int? CurrencyId { get; set; }
    }

}

namespace Bridge.Private.Api.DTO
{
    public partial class ConfirmationCreate
    {
        public ConfirmationCreate()
        {
            ConfirmationGrades = new List<ConfirmationGradesViewModel>{};
        }

        public virtual string IMONumberOrMMSI { get; set; }
        public virtual int? VesselId { get; set; }
        public virtual DateTime? DateFrom { get; set; }
        public virtual DateTime? DateTo { get; set; }
        public virtual int? PortId { get; set; }
        public virtual int? DeliveryMethodId { get; set; }
        public virtual string Agent { get; set; }
        public virtual int? SellingAccountId { get; set; }
        public virtual int? BuyingAccountId { get; set; }
        public virtual string RequestedTermsType { get; set; }
        public virtual int? CreditTermDays { get; set; }
        public virtual string VesselType { get; set; }
        public virtual string RecapComments { get; set; }
        public virtual string AgentDetails { get; set; }
        public virtual string AdditionalCosts { get; set; }
        public virtual string BuyerCompany { get; set; }
        public virtual string BuyerEmailAddress { get; set; }
        public virtual List<ConfirmationGradesViewModel> ConfirmationGrades { get; set; }
    }

}

C# ConfirmationCreate DTOs

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

HTTP + CSV

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

{"IMONumberOrMMSI":"String","VesselId":0,"DateFrom":"0001-01-01T00:00:00.0000000","DateTo":"0001-01-01T00:00:00.0000000","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/csv
Content-Length: length

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