Bridge

<back to all web services

EnquiryAddBuyer

Enquiries
The following routes are available for this service:
POST/Enquiries/Add-Buyer
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Bridge.Private.Api.DTO
Imports Bridge.Core.ViewModels

Namespace Global

    Namespace Bridge.Core.ViewModels

        Public Partial Class EnquiryAddBuyerViewModel
            Public Sub New()
                Errors = New List(Of String)
            End Sub

            Public Overridable Property Status As String
            Public Overridable Property EntityContactGuid As Nullable(Of Guid)
            Public Overridable Property Errors As List(Of String)
        End Class
    End Namespace

    Namespace Bridge.Private.Api.DTO

        Public Partial Class EnquiryAddBuyer
            Public Overridable Property EnquiryId As Integer
            Public Overridable Property EnquiryGuid As Guid
            Public Overridable Property BuyerCompany As String
            Public Overridable Property BuyerEmailAddress As String
            Public Overridable Property AccountId As Integer
            Public Overridable Property EntityId As Integer
        End Class
    End Namespace
End Namespace

VB.NET EnquiryAddBuyer 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 /Enquiries/Add-Buyer HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"EnquiryId":0,"EnquiryGuid":"00000000000000000000000000000000","BuyerCompany":"String","BuyerEmailAddress":"String","AccountId":0,"EntityId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Status":"String","EntityContactGuid":"00000000000000000000000000000000","Errors":["String"]}