TicketUserServices

<back to all web services

RecurringPaymentCreateRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin
The following routes are available for this service:
POST/recurringPayments
RecurringPaymentCreateRequest Parameters:
NameParameterData TypeRequiredDescription
PhoneVerificationNumberbodystringNo
TokenbodystringNo
PanLastFourbodystringNo
ExpYearbodystringNo
ExpMonthbodystringNo
DeviceIdbodystringNo
MonthlyPricebodyintNo
SubscriptionLengthbodyintNo
ChargeFirstMonthbodyboolNo
OwnerIdbodyint?No
OwnerCardTypeIdbodyint?No
PaymentTokenIdbodystringNo
TransactionFeebodydecimal?No
CurrencybodystringNo
ModebodystringNo
StartDatebodyDateTime?No
LastPaymentbodyDateTime?No
NextPaymentbodyDateTime?No
JsonResponsebodystringNo
TermsVersionbodystringNo
TermsAcceptedAtbodyDateTime?No
RecurringPaymentGetResult Parameters:
NameParameterData TypeRequiredDescription
ItemformRecurringPaymentNo
AlreadyExistedformboolNo
StatusCodeformintNo
MessageformstringNo
RecurringPayment Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
StatusformstringNo
PhoneVerificationNumberformstringNo
DeviceIdformstringNo
PanLastFourformstringNo
ExpYearformstringNo
ExpMonthformstringNo
TokenformstringNo
MonthlyPriceformintNo
SubscriptionLengthformintNo
MonthsPaidformintNo
ChargeFirstMonthformboolNo
OwnerIdformint?No
OwnerCardTypeIdformint?No
JsonResponseformstringNo
StartDateformDateTime?No
LastPaymentformDateTime?No
NextPaymentformDateTime?No
PaymentTokenIdformstringNo
DeclinedCounterformintNo
TransactionFeeformdecimal?No
TermsVersionformstringNo
TermsAcceptedAtformDateTime?No
CurrencyformstringNo
ModeformstringNo
LastDeclineReasonformstringNo
LastDeclineDateformDateTime?No
LastDunningStageformbyteNo
LastDunningNotifiedAtformDateTime?No

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 /recurringPayments HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	phoneVerificationNumber: String,
	token: String,
	panLastFour: String,
	expYear: String,
	expMonth: String,
	deviceId: String,
	monthlyPrice: 0,
	subscriptionLength: 0,
	chargeFirstMonth: False,
	ownerId: 0,
	ownerCardTypeId: 0,
	paymentTokenId: String,
	transactionFee: 0,
	currency: String,
	mode: String,
	startDate: 0001-01-01,
	lastPayment: 0001-01-01,
	nextPayment: 0001-01-01,
	jsonResponse: String,
	termsVersion: String,
	termsAcceptedAt: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	item: 
	{
		id: 0,
		status: String,
		phoneVerificationNumber: String,
		deviceId: String,
		panLastFour: String,
		expYear: String,
		expMonth: String,
		token: String,
		monthlyPrice: 0,
		subscriptionLength: 0,
		monthsPaid: 0,
		chargeFirstMonth: False,
		ownerId: 0,
		ownerCardTypeId: 0,
		jsonResponse: String,
		startDate: 0001-01-01,
		lastPayment: 0001-01-01,
		nextPayment: 0001-01-01,
		paymentTokenId: String,
		declinedCounter: 0,
		transactionFee: 0,
		termsVersion: String,
		termsAcceptedAt: 0001-01-01,
		currency: String,
		mode: String,
		lastDeclineReason: String,
		lastDeclineDate: 0001-01-01,
		lastDunningStage: 0,
		lastDunningNotifiedAt: 0001-01-01
	},
	alreadyExisted: False,
	statusCode: 0,
	message: String
}