Trendsic Platform Service

<back to all web services

AgentEventRegistrationRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,POST,OPTIONS/v1/AgentEventRegistration
"use strict";
export class AgentEventRegistration {
    /** @param {{AgentEventRegistrationId?:string,EventRegistrationId?:string,UserId?:string,NumberAttending?:number,TotalCost?:number,StripeChargeId?:string,DateCreated?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    AgentEventRegistrationId;
    /** @type {string} */
    EventRegistrationId;
    /** @type {string} */
    UserId;
    /** @type {number} */
    NumberAttending;
    /** @type {number} */
    TotalCost;
    /** @type {string} */
    StripeChargeId;
    /** @type {string} */
    DateCreated;
}
export class AgentEventRegistrationResponse {
    /** @param {{ResponseStatus?:ResponseStatus,AgentEventRegistration?:AgentEventRegistration[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {AgentEventRegistration[]} */
    AgentEventRegistration = [];
}
export class AgentEventRegistrationRequest {
    /** @param {{AgentEventRegistration?:AgentEventRegistration[],StripeToken?:string,RegistrationDescription?:string,EventRegistrationId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {AgentEventRegistration[]} */
    AgentEventRegistration = [];
    /** @type {string} */
    StripeToken;
    /** @type {string} */
    RegistrationDescription;
    /** @type {string} */
    EventRegistrationId;
}

JavaScript AgentEventRegistrationRequest 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 /v1/AgentEventRegistration HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	AgentEventRegistration: 
	[
		{
			AgentEventRegistrationId: 00000000000000000000000000000000,
			EventRegistrationId: 00000000000000000000000000000000,
			UserId: 00000000000000000000000000000000,
			NumberAttending: 0,
			TotalCost: 0,
			StripeChargeId: String,
			DateCreated: 0001-01-01
		}
	],
	StripeToken: String,
	RegistrationDescription: String,
	EventRegistrationId: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	AgentEventRegistration: 
	[
		{
			AgentEventRegistrationId: 00000000000000000000000000000000,
			EventRegistrationId: 00000000000000000000000000000000,
			UserId: 00000000000000000000000000000000,
			NumberAttending: 0,
			TotalCost: 0,
			StripeChargeId: String,
			DateCreated: 0001-01-01
		}
	]
}