POST api/StudentServices/ExternalStorefrontFulfillment

Assign content directly to a student. student account will be matched by email address and will be created if no matching account is found. start date and end date are optional, and will be set to start at the current date, and expire in 1 year if not included.

Request Information

URI Parameters

None.

Body Parameters

ExternalStorefrontFulfillmentPost
NameDescriptionTypeAdditional information
Student

CreateStudentPost

None.

ProductCodes

Collection of string

None.

ExternalId

string

None.

ExternalName

string

None.

Key

Key to Access API provided by GMetrix

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Key": "sample string 1",
  "Student": {
    "FirstName": "sample string 1",
    "LastName": "sample string 2",
    "Password": "sample string 3",
    "EmailAddress": "sample string 4",
    "StudentNumber": "sample string 5",
    "StudentId": 6,
    "Username": "sample string 7",
    "AccessCode": "sample string 8",
    "ReferenceInfo": "sample string 9",
    "Claims": [
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      },
      {
        "Key": "sample string 1",
        "Value": "sample string 2"
      }
    ],
    "Key": "sample string 10"
  },
  "ProductCodes": [
    "sample string 1",
    "sample string 2"
  ],
  "ExternalId": "sample string 1",
  "ExternalName": "sample string 2"
}

application/xml, text/xml

Sample:
<ExternalStorefrontFulfillmentPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ManagementServicesApi.Models">
  <Key>sample string 1</Key>
  <ExternalId>sample string 1</ExternalId>
  <ExternalName>sample string 2</ExternalName>
  <ProductCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ProductCodes>
  <Student>
    <Key>sample string 10</Key>
    <AccessCode>sample string 8</AccessCode>
    <Claims xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
      <d3p1:KeyValuePairOfstringstring>
        <d3p1:key>sample string 1</d3p1:key>
        <d3p1:value>sample string 2</d3p1:value>
      </d3p1:KeyValuePairOfstringstring>
      <d3p1:KeyValuePairOfstringstring>
        <d3p1:key>sample string 1</d3p1:key>
        <d3p1:value>sample string 2</d3p1:value>
      </d3p1:KeyValuePairOfstringstring>
    </Claims>
    <ReferenceInfo>sample string 9</ReferenceInfo>
    <StudentId>6</StudentId>
    <Username>sample string 7</Username>
    <EmailAddress>sample string 4</EmailAddress>
    <FirstName>sample string 1</FirstName>
    <LastName>sample string 2</LastName>
    <Password>sample string 3</Password>
    <StudentNumber>sample string 5</StudentNumber>
  </Student>
</ExternalStorefrontFulfillmentPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateStudentSuccess
NameDescriptionTypeAdditional information
AccessCodeAdded

boolean

None.

StudentId

integer

None.

StudentPortalSingleSignOnURL

string

None.

CourseName

string

None.

FirstName

string

None.

LastName

string

None.

ASPNetUserID

globally unique identifier

None.

UserName

string

None.

CourseID

integer

None.

CourseVendor

string

None.

CourseType

string

None.

CourseControl

string

None.

CourseTypeID

byte

None.

CourseStudentID

integer

None.

Progress

decimal number

None.

SecondsSpent

integer

None.

HMSTimeSpent

string

None.

EnrollmentDate

date

None.

StartDate

date

None.

DueDate

date

None.

ExpirationDate

date

None.

CompletionDate

date

None.

Successful

boolean

None.

MsgSuccess

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AccessCodeAdded": true,
  "StudentId": 2,
  "StudentPortalSingleSignOnURL": "sample string 3",
  "CourseName": "sample string 4",
  "FirstName": "sample string 5",
  "LastName": "sample string 6",
  "ASPNetUserID": "1aad429d-c77a-443c-8c49-4229114bcecf",
  "UserName": "sample string 8",
  "CourseID": 9,
  "CourseVendor": "sample string 10",
  "CourseType": "sample string 11",
  "CourseControl": "sample string 12",
  "CourseTypeID": 64,
  "CourseStudentID": 1,
  "Progress": 1.1,
  "SecondsSpent": 1,
  "HMSTimeSpent": "sample string 14",
  "EnrollmentDate": "2025-05-08T06:43:37.2694513-07:00",
  "StartDate": "2025-05-08T06:43:37.2694513-07:00",
  "DueDate": "2025-05-08T06:43:37.2694513-07:00",
  "ExpirationDate": "2025-05-08T06:43:37.2694513-07:00",
  "CompletionDate": "2025-05-08T06:43:37.2694513-07:00",
  "Successful": true,
  "MsgSuccess": "sample string 18"
}

application/xml, text/xml

Sample:
<CreateStudentSuccess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ManagementServices.Repositories.Response">
  <MsgSuccess>sample string 18</MsgSuccess>
  <Successful>true</Successful>
  <ASPNetUserID>1aad429d-c77a-443c-8c49-4229114bcecf</ASPNetUserID>
  <CompletionDate>2025-05-08T06:43:37.2694513-07:00</CompletionDate>
  <CourseControl>sample string 12</CourseControl>
  <CourseID>9</CourseID>
  <CourseName>sample string 4</CourseName>
  <CourseStudentID>1</CourseStudentID>
  <CourseType>sample string 11</CourseType>
  <CourseTypeID>64</CourseTypeID>
  <CourseVendor>sample string 10</CourseVendor>
  <DueDate>2025-05-08T06:43:37.2694513-07:00</DueDate>
  <EnrollmentDate>2025-05-08T06:43:37.2694513-07:00</EnrollmentDate>
  <ExpirationDate>2025-05-08T06:43:37.2694513-07:00</ExpirationDate>
  <FirstName>sample string 5</FirstName>
  <HMSTimeSpent>sample string 14</HMSTimeSpent>
  <LastName>sample string 6</LastName>
  <Progress>1.1</Progress>
  <SecondsSpent>1</SecondsSpent>
  <StartDate>2025-05-08T06:43:37.2694513-07:00</StartDate>
  <StudentId>2</StudentId>
  <StudentPortalSingleSignOnURL>sample string 3</StudentPortalSingleSignOnURL>
  <UserName>sample string 8</UserName>
  <AccessCodeAdded>true</AccessCodeAdded>
</CreateStudentSuccess>