POST v3/Registration

Request Information

URI Parameters

None.

Body Parameters

ParticipantRegistrationViewModel
NameDescriptionTypeAdditional information
Password

string

Required

String length: inclusive between 4 and 128

GoldVendors

Collection of Vendor

None.

SilverVendors

Collection of Vendor

None.

BronzeVendors

Collection of Vendor

None.

ConfirmPassword

string

Required

Email

string

Required

Matching regular expression pattern: \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

String length: inclusive between 6 and 254

FirstName

string

Required

String length: inclusive between 1 and 100

LastName

string

Required

String length: inclusive between 1 and 100

Address1

string

Required

String length: inclusive between 1 and 100

Address2

string

String length: inclusive between 0 and 100

City

string

Required

String length: inclusive between 1 and 100

StateId

integer

Required

States

Collection of DropDownViewModel

None.

ZipCode

string

Required

Matching regular expression pattern: (^\d{5}(-\d{4})?$)|(^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$)

String length: inclusive between 5 and 10

Phone

string

Required

Matching regular expression pattern: ^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$

IndustryId

integer

Required

Industries

Collection of DropDownViewModel

None.

BranchNumber

integer

Range: inclusive between 1 and 2147483647

Branches

Collection of DropDownViewModel

None.

CustomerNumber

integer

Range: inclusive between 1 and 2147483647

AgreedToTermsOfUse

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Password": "sample string 1",
  "GoldVendors": [
    {
      "Name": "sample string 1",
      "ImageId": 2,
      "VendorLevel": 0,
      "Id": 3
    },
    {
      "Name": "sample string 1",
      "ImageId": 2,
      "VendorLevel": 0,
      "Id": 3
    }
  ],
  "SilverVendors": [
    {
      "Name": "sample string 1",
      "ImageId": 2,
      "VendorLevel": 0,
      "Id": 3
    },
    {
      "Name": "sample string 1",
      "ImageId": 2,
      "VendorLevel": 0,
      "Id": 3
    }
  ],
  "BronzeVendors": [
    {
      "Name": "sample string 1",
      "ImageId": 2,
      "VendorLevel": 0,
      "Id": 3
    },
    {
      "Name": "sample string 1",
      "ImageId": 2,
      "VendorLevel": 0,
      "Id": 3
    }
  ],
  "ConfirmPassword": "sample string 2",
  "Email": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "Address1": "sample string 6",
  "Address2": "sample string 7",
  "City": "sample string 8",
  "StateId": 9,
  "States": [
    {
      "Id": 1,
      "Text": "sample string 2"
    },
    {
      "Id": 1,
      "Text": "sample string 2"
    }
  ],
  "ZipCode": "sample string 10",
  "Phone": "sample string 11",
  "IndustryId": 12,
  "Industries": [
    {
      "Id": 1,
      "Text": "sample string 2"
    },
    {
      "Id": 1,
      "Text": "sample string 2"
    }
  ],
  "BranchNumber": 13,
  "Branches": [
    {
      "Id": 1,
      "Text": "sample string 2"
    },
    {
      "Id": 1,
      "Text": "sample string 2"
    }
  ],
  "CustomerNumber": 14,
  "AgreedToTermsOfUse": true
}

application/xml, text/xml

Sample:
<ParticipantRegistrationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Areas.Users.Models">
  <Address1>sample string 6</Address1>
  <Address2>sample string 7</Address2>
  <AgreedToTermsOfUse>true</AgreedToTermsOfUse>
  <BranchNumber>13</BranchNumber>
  <Branches xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Models">
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
  </Branches>
  <City>sample string 8</City>
  <CustomerNumber>14</CustomerNumber>
  <Email>sample string 3</Email>
  <FirstName>sample string 4</FirstName>
  <Industries xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Models">
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
  </Industries>
  <IndustryId>12</IndustryId>
  <LastName>sample string 5</LastName>
  <Phone>sample string 11</Phone>
  <StateId>9</StateId>
  <States xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.WebAPI.Models">
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
    <d2p1:DropDownViewModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Text>sample string 2</d2p1:Text>
    </d2p1:DropDownViewModel>
  </States>
  <ZipCode>sample string 10</ZipCode>
  <BronzeVendors xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.Domain.Entities">
    <d2p1:Vendor>
      <d2p1:Id>3</d2p1:Id>
      <d2p1:ImageId>2</d2p1:ImageId>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:VendorLevel>Default</d2p1:VendorLevel>
    </d2p1:Vendor>
    <d2p1:Vendor>
      <d2p1:Id>3</d2p1:Id>
      <d2p1:ImageId>2</d2p1:ImageId>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:VendorLevel>Default</d2p1:VendorLevel>
    </d2p1:Vendor>
  </BronzeVendors>
  <ConfirmPassword>sample string 2</ConfirmPassword>
  <GoldVendors xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.Domain.Entities">
    <d2p1:Vendor>
      <d2p1:Id>3</d2p1:Id>
      <d2p1:ImageId>2</d2p1:ImageId>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:VendorLevel>Default</d2p1:VendorLevel>
    </d2p1:Vendor>
    <d2p1:Vendor>
      <d2p1:Id>3</d2p1:Id>
      <d2p1:ImageId>2</d2p1:ImageId>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:VendorLevel>Default</d2p1:VendorLevel>
    </d2p1:Vendor>
  </GoldVendors>
  <Password>sample string 1</Password>
  <SilverVendors xmlns:d2p1="http://schemas.datacontract.org/2004/07/Go4Gold.Domain.Entities">
    <d2p1:Vendor>
      <d2p1:Id>3</d2p1:Id>
      <d2p1:ImageId>2</d2p1:ImageId>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:VendorLevel>Default</d2p1:VendorLevel>
    </d2p1:Vendor>
    <d2p1:Vendor>
      <d2p1:Id>3</d2p1:Id>
      <d2p1:ImageId>2</d2p1:ImageId>
      <d2p1:Name>sample string 1</d2p1:Name>
      <d2p1:VendorLevel>Default</d2p1:VendorLevel>
    </d2p1:Vendor>
  </SilverVendors>
</ParticipantRegistrationViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.