BokaMera.API.Host

<back to all web services

DibsCallbackDto

The following routes are available for this service:
POST/licenses/dibscallback/Save Dibs CallbackThis service is used for the DIBS callback.
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BokaMera.API.ServiceModel.Dtos

Namespace Global

    Namespace BokaMera.API.ServiceModel.Dtos

        Public Partial Class DibsCallbackDto
            '''<Summary>
            '''The company id to save the credit card to
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The company id to save the credit card to", IsRequired:=true)>
            Public Overridable Property CompanyId As Guid

            '''<Summary>
            '''The dibs card expiration date (yymm)
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The dibs card expiration date (yymm)", IsRequired:=true)>
            Public Overridable Property cardexpdate As String

            '''<Summary>
            '''The dibs transact id
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The dibs transact id", IsRequired:=true)>
            Public Overridable Property transact As String

            '''<Summary>
            '''The dibs card number (masked)
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The dibs card number (masked)", IsRequired:=true)>
            Public Overridable Property cardnomask As String

            '''<Summary>
            '''The dibs paytype
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The dibs paytype", IsRequired:=true)>
            Public Overridable Property paytype As String

            '''<Summary>
            '''The dibs currency
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The dibs currency", IsRequired:=true)>
            Public Overridable Property currency As String

            '''<Summary>
            '''The dibs acquirer
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The dibs acquirer", IsRequired:=true)>
            Public Overridable Property acquirer As String

            '''<Summary>
            '''The dibs approval code
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The dibs approval code", IsRequired:=true)>
            Public Overridable Property approvalcode As String

            '''<Summary>
            '''The dibs status code
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The dibs status code", IsRequired:=true)>
            Public Overridable Property statuscode As String

            '''<Summary>
            '''The dibs amount
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The dibs amount", IsRequired:=true)>
            Public Overridable Property amount As String

            '''<Summary>
            '''The redirect url to send user back to after added creditcard
            '''</Summary>
            <ApiMember(DataType:="uri", Description:="The redirect url to send user back to after added creditcard", IsRequired:=true)>
            Public Overridable Property RedirectUrl As String

            '''<Summary>
            '''The unique token for this request
            '''</Summary>
            <ApiMember(DataType:="string", Description:="The unique token for this request", IsRequired:=true)>
            Public Overridable Property Token As String

            '''<Summary>
            '''status of the callback url
            '''</Summary>
            <ApiMember(DataType:="enum", Description:="status of the callback url", IsRequired:=true)>
            Public Overridable Property Status As DibStatus
        End Class

        Public Enum DibStatus
            Success
            Cancelled
        End Enum
    End Namespace
End Namespace

VB.NET DibsCallbackDto 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 /licenses/dibscallback/ HTTP/1.1 
Host: api.bokamera.se 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	cardexpdate: String,
	transact: String,
	cardnomask: String,
	paytype: String,
	currency: String,
	acquirer: String,
	approvalcode: String,
	statuscode: String,
	amount: String,
	RedirectUrl: String,
	Token: String,
	Status: Success
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}