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.
namespace BokaMera.API.ServiceModel.Dtos

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type DibStatus =
        | Success = 0
        | Cancelled = 1

    [<AllowNullLiteral>]
    type 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)>]
        member val CompanyId:Guid = new Guid() with get,set

        ///<summary>
        ///The dibs card expiration date (yymm)
        ///</summary>
        [<ApiMember(DataType="string", Description="The dibs card expiration date (yymm)", IsRequired=true)>]
        member val cardexpdate:String = null with get,set

        ///<summary>
        ///The dibs transact id
        ///</summary>
        [<ApiMember(DataType="string", Description="The dibs transact id", IsRequired=true)>]
        member val transact:String = null with get,set

        ///<summary>
        ///The dibs card number (masked)
        ///</summary>
        [<ApiMember(DataType="string", Description="The dibs card number (masked)", IsRequired=true)>]
        member val cardnomask:String = null with get,set

        ///<summary>
        ///The dibs paytype
        ///</summary>
        [<ApiMember(DataType="string", Description="The dibs paytype", IsRequired=true)>]
        member val paytype:String = null with get,set

        ///<summary>
        ///The dibs currency
        ///</summary>
        [<ApiMember(DataType="string", Description="The dibs currency", IsRequired=true)>]
        member val currency:String = null with get,set

        ///<summary>
        ///The dibs acquirer
        ///</summary>
        [<ApiMember(DataType="string", Description="The dibs acquirer", IsRequired=true)>]
        member val acquirer:String = null with get,set

        ///<summary>
        ///The dibs approval code
        ///</summary>
        [<ApiMember(DataType="string", Description="The dibs approval code", IsRequired=true)>]
        member val approvalcode:String = null with get,set

        ///<summary>
        ///The dibs status code
        ///</summary>
        [<ApiMember(DataType="string", Description="The dibs status code", IsRequired=true)>]
        member val statuscode:String = null with get,set

        ///<summary>
        ///The dibs amount
        ///</summary>
        [<ApiMember(DataType="string", Description="The dibs amount", IsRequired=true)>]
        member val amount:String = null with get,set

        ///<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)>]
        member val RedirectUrl:String = null with get,set

        ///<summary>
        ///The unique token for this request
        ///</summary>
        [<ApiMember(DataType="string", Description="The unique token for this request", IsRequired=true)>]
        member val Token:String = null with get,set

        ///<summary>
        ///status of the callback url
        ///</summary>
        [<ApiMember(DataType="enum", Description="status of the callback url", IsRequired=true)>]
        member val Status:DibStatus = new DibStatus() with get,set

F# DibsCallbackDto DTOs

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

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<DibsCallbackDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
  <CompanyId>00000000-0000-0000-0000-000000000000</CompanyId>
  <RedirectUrl>String</RedirectUrl>
  <Status>Success</Status>
  <Token>String</Token>
  <acquirer>String</acquirer>
  <amount>String</amount>
  <approvalcode>String</approvalcode>
  <cardexpdate>String</cardexpdate>
  <cardnomask>String</cardnomask>
  <currency>String</currency>
  <paytype>String</paytype>
  <statuscode>String</statuscode>
  <transact>String</transact>
</DibsCallbackDto>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />