PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

ClientTokenizeACHRequest

The following routes are available for this service:
POST/ClientTokenizeACH

// @DataContract
export class InOutTimes
{

    public constructor(init?: Partial<InOutTimes>) { (Object as any).assign(this, init); }
}

// @DataContract
export class RequestTimestamps
{
    // @DataMember(EmitDefaultValue=false)
    public AppLayer: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public ParentLookup: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public RetryLookup: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public GetCardData: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public CardTokenize: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public CardEncrypt: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public DBInsert: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public BackendProcess: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public DBUpdate: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public ParentUpdate: InOutTimes;

    // @DataMember(EmitDefaultValue=false)
    public Network: InOutTimes;

    public constructor(init?: Partial<RequestTimestamps>) { (Object as any).assign(this, init); }
}

// @DataContract
export class PaysecureResponseInternal
{
    // @DataMember(EmitDefaultValue=false)
    public Timestamps: RequestTimestamps;

    public constructor(init?: Partial<PaysecureResponseInternal>) { (Object as any).assign(this, init); }
}

// @DataContract
export class ClientTokenizeACH extends PaysecureResponseInternal
{
    // @DataMember
    public SessionToken: string;

    // @DataMember
    public ResponseCode: string;

    // @DataMember
    public ErrorMessage: string;

    // @DataMember
    public ErrorCode: string;

    public constructor(init?: Partial<ClientTokenizeACH>) { super(init); (Object as any).assign(this, init); }
}

export class BillingDescriptor
{
    public Address: string;
    public City: string;
    public State: string;
    public Zip: string;
    public Country: string;

    public constructor(init?: Partial<BillingDescriptor>) { (Object as any).assign(this, init); }
}

// @DataContract
export class ClientTokenizeACHRequest
{
    // @DataMember
    public Version: string;

    // @DataMember
    public KeyId: string;

    // @DataMember
    public FirstName: string;

    // @DataMember
    public LastName: string;

    // @DataMember
    public Email: string;

    // @DataMember
    public PhoneType: string;

    // @DataMember
    public PhoneNumber: string;

    // @DataMember
    public RoutingNumber: string;

    // @DataMember
    public EncryptedAccountNumber: string;

    // @DataMember
    public BillingDetails: BillingDescriptor;

    // @DataMember
    public VerifyACH: boolean;

    public constructor(init?: Partial<ClientTokenizeACHRequest>) { (Object as any).assign(this, init); }
}

TypeScript ClientTokenizeACHRequest 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 /ClientTokenizeACH HTTP/1.1 
Host: api.paysecure.acculynk.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Version: String,
	KeyId: String,
	FirstName: String,
	LastName: String,
	Email: String,
	PhoneType: String,
	PhoneNumber: String,
	RoutingNumber: String,
	EncryptedAccountNumber: String,
	BillingDetails: 
	{
		Address: String,
		City: String,
		State: String,
		Zip: String,
		Country: String
	},
	VerifyACH: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	SessionToken: String,
	ResponseCode: String,
	ErrorMessage: String,
	ErrorCode: String,
	Timestamps: 
	{
		AppLayer: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		ParentLookup: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		RetryLookup: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		GetCardData: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		CardTokenize: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		CardEncrypt: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		DBInsert: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		BackendProcess: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		DBUpdate: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		ParentUpdate: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		Network: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		}
	}
}