Billhighway Cloud API

<back to all web services

VerifyTokenRq

The following routes are available for this service:
POST/integrations/api/{integrationType}/core/verifytoken
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using BH.CloudAPI.DTO.Charges.Api.Request;
using BH.CloudAPI.Common.DTO;
using BH.CloudAPI.DTO.Charges.Api.Response;

namespace BH.CloudAPI.Common.DTO
{
    public partial class ApiClientHeader
    {
        public virtual int ClientId { get; set; }
        public virtual string Referrer { get; set; }
        public virtual string IpAddress { get; set; }
        public virtual int LoggedInUserId { get; set; }
        public virtual int GroupId { get; set; }
        public virtual string Task { get; set; }
        public virtual string Machine { get; set; }
        public virtual string Location { get; set; }
        public virtual int CreatedBy { get; set; }
        public virtual int CampaignId { get; set; }
        public virtual decimal? ReCaptchaScore { get; set; }
    }

}

namespace BH.CloudAPI.DTO.Charges.Api.Request
{
    public partial class VerifyTokenRq
    {
        public virtual ApiClientHeader Header { get; set; }
        public virtual string IntegrationType { get; set; }
        public virtual int NationalId { get; set; }
        public virtual int ChapterId { get; set; }
        public virtual int IntegrationPartnerId { get; set; }
        public virtual string Token { get; set; }
        public virtual string VerificationTypes { get; set; }
    }

}

namespace BH.CloudAPI.DTO.Charges.Api.Response
{
    public partial class VerifyTokenRs
    {
        public virtual string CardRef { get; set; }
        public virtual bool Success { get; set; }
        public virtual string Message { get; set; }
    }

}

C# VerifyTokenRq 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 /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
}