| Requires any of the roles: | Admin, TeamAdmin |
| POST | /recurringPayments |
|---|
export class RecurringPayment
{
public id?: number;
public status?: string;
public phoneVerificationNumber?: string;
public deviceId?: string;
public panLastFour?: string;
public expYear?: string;
public expMonth?: string;
public token?: string;
public monthlyPrice?: number;
public subscriptionLength?: number;
public monthsPaid?: number;
public chargeFirstMonth?: boolean;
// @References("typeof(TicketUserServices.ServiceModel.Types.EventOwner)")
public ownerId?: number;
public ownerCardTypeId?: number;
// @StringLength(2147483647)
public jsonResponse?: string;
public startDate?: string;
public lastPayment?: string;
public nextPayment?: string;
public paymentTokenId?: string;
public declinedCounter?: number;
public transactionFee?: number;
public termsVersion?: string;
public termsAcceptedAt?: string;
public currency?: string;
public mode?: string;
public lastDeclineReason?: string;
public lastDeclineDate?: string;
public lastDunningStage?: number;
public lastDunningNotifiedAt?: string;
public constructor(init?: Partial<RecurringPayment>) { (Object as any).assign(this, init); }
}
export class RecurringPaymentGetResult
{
public item?: RecurringPayment;
public alreadyExisted?: boolean;
public statusCode?: number;
public message?: string;
public constructor(init?: Partial<RecurringPaymentGetResult>) { (Object as any).assign(this, init); }
}
export class RecurringPaymentCreateRequest
{
public phoneVerificationNumber?: string;
public token?: string;
public panLastFour?: string;
public expYear?: string;
public expMonth?: string;
public deviceId?: string;
public monthlyPrice?: number;
public subscriptionLength?: number;
public chargeFirstMonth?: boolean;
public ownerId?: number;
public ownerCardTypeId?: number;
public paymentTokenId?: string;
public transactionFee?: number;
public currency?: string;
public mode?: string;
public startDate?: string;
public lastPayment?: string;
public nextPayment?: string;
public jsonResponse?: string;
public termsVersion?: string;
public termsAcceptedAt?: string;
public constructor(init?: Partial<RecurringPaymentCreateRequest>) { (Object as any).assign(this, init); }
}
TypeScript RecurringPaymentCreateRequest DTOs
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 /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
}