| POST | /integrations/api/{integrationType}/core/verifytoken |
|---|
namespace BH.CloudAPI.Common.DTO
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type VerifyTokenRs() =
member val CardRef:String = null with get,set
member val Success:Boolean = new Boolean() with get,set
member val Message:String = null with get,set
[<AllowNullLiteral>]
type ApiClientHeader() =
member val ClientId:Int32 = new Int32() with get,set
member val Referrer:String = null with get,set
member val IpAddress:String = null with get,set
member val LoggedInUserId:Int32 = new Int32() with get,set
member val GroupId:Int32 = new Int32() with get,set
member val Task:String = null with get,set
member val Machine:String = null with get,set
member val Location:String = null with get,set
member val CreatedBy:Int32 = new Int32() with get,set
member val CampaignId:Int32 = new Int32() with get,set
member val ReCaptchaScore:Nullable<Decimal> = new Nullable<Decimal>() with get,set
[<AllowNullLiteral>]
type VerifyTokenRq() =
member val Header:ApiClientHeader = null with get,set
member val IntegrationType:String = null with get,set
member val NationalId:Int32 = new Int32() with get,set
member val ChapterId:Int32 = new Int32() with get,set
member val IntegrationPartnerId:Int32 = new Int32() with get,set
member val Token:String = null with get,set
member val VerificationTypes:String = null with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /integrations/api/{integrationType}/core/verifytoken HTTP/1.1
Host: devapi.billhighway.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Header:
{
ClientId: 0,
Referrer: String,
IpAddress: String,
LoggedInUserId: 0,
GroupId: 0,
Task: String,
Machine: String,
Location: String,
CreatedBy: 0,
CampaignId: 0,
ReCaptchaScore: 0
},
IntegrationType: String,
NationalId: 0,
ChapterId: 0,
IntegrationPartnerId: 0,
Token: String,
VerificationTypes: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
CardRef: String,
Success: False,
Message: String
}