POST api/OrganizationInvoice

Request Information

URI Parameters

None.

Body Parameters

OrganizationInvoice
NameDescriptionTypeAdditional information
RecordNo

integer

None.

OrganizationFK

integer

None.

Organization

Organization

None.

OrganizationPlanTypeFK

integer

None.

OrganizationPlan

OrganizationPlanType

None.

Amount

decimal number

None.

BillingPeriod

date

None.

NextBillingPeriod

date

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "OrganizationFK": 2,
  "Organization": {
    "RecordNo": 1,
    "OrganizationName": "sample string 2",
    "ProjectFK": 1,
    "Projects": {
      "RecordNo": 1,
      "ProjectName": "sample string 2",
      "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
      "IsDeleted": true,
      "TestTypes": [
        {
          "RecordNo": 1,
          "TestTypeName": "sample string 2",
          "SortOrder": 3,
          "IsStudent": true,
          "ProjectFK": 1,
          "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "IsDeleted": true
        },
        {
          "RecordNo": 1,
          "TestTypeName": "sample string 2",
          "SortOrder": 3,
          "IsStudent": true,
          "ProjectFK": 1,
          "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "IsDeleted": true
        }
      ]
    },
    "CreatedOn": "2024-12-21T22:12:43.6139676+00:00",
    "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
    "IsDeleted": true,
    "organizationPlans": [
      {
        "RecordNo": 1,
        "OrganizationFK": 2,
        "OrganizationPlanTypeFK": 3,
        "OrganizationPlanType": {
          "RecordNo": 1,
          "OrganizationPlanName": "sample string 2",
          "MaxCountStudent": 3,
          "MinCountStudent": 4,
          "Cost": 5.0,
          "ExpireDays": 6,
          "CreatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "IsDeleted": true
        },
        "CreatedBy": 4,
        "CancelledBy": 1,
        "CancellationReasonFK": 1,
        "CancellationReason": {
          "RecordNo": 1,
          "CancellationReasonName": "sample string 2",
          "IsOrgnizationPlan": true,
          "IsUserPlan": true,
          "CreatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "IsDeleted": true
        },
        "CancellationReasonNote": "sample string 5",
        "CancellationDate": "2024-12-21T22:12:43.6139676+00:00",
        "Amount": 6.0,
        "StartDate": "2024-12-21T22:12:43.6139676+00:00",
        "EndDate": "2024-12-21T22:12:43.6139676+00:00",
        "CreatedOn": "2024-12-21T22:12:43.6139676+00:00",
        "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
        "IsDeleted": true
      },
      {
        "RecordNo": 1,
        "OrganizationFK": 2,
        "OrganizationPlanTypeFK": 3,
        "OrganizationPlanType": {
          "RecordNo": 1,
          "OrganizationPlanName": "sample string 2",
          "MaxCountStudent": 3,
          "MinCountStudent": 4,
          "Cost": 5.0,
          "ExpireDays": 6,
          "CreatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "IsDeleted": true
        },
        "CreatedBy": 4,
        "CancelledBy": 1,
        "CancellationReasonFK": 1,
        "CancellationReason": {
          "RecordNo": 1,
          "CancellationReasonName": "sample string 2",
          "IsOrgnizationPlan": true,
          "IsUserPlan": true,
          "CreatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
          "IsDeleted": true
        },
        "CancellationReasonNote": "sample string 5",
        "CancellationDate": "2024-12-21T22:12:43.6139676+00:00",
        "Amount": 6.0,
        "StartDate": "2024-12-21T22:12:43.6139676+00:00",
        "EndDate": "2024-12-21T22:12:43.6139676+00:00",
        "CreatedOn": "2024-12-21T22:12:43.6139676+00:00",
        "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
        "IsDeleted": true
      }
    ]
  },
  "OrganizationPlanTypeFK": 3,
  "OrganizationPlan": {
    "RecordNo": 1,
    "OrganizationPlanName": "sample string 2",
    "MaxCountStudent": 3,
    "MinCountStudent": 4,
    "Cost": 5.0,
    "ExpireDays": 6,
    "CreatedOn": "2024-12-21T22:12:43.6139676+00:00",
    "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
    "IsDeleted": true
  },
  "Amount": 4.0,
  "BillingPeriod": "2024-12-21T22:12:43.6139676+00:00",
  "NextBillingPeriod": "2024-12-21T22:12:43.6139676+00:00",
  "CreatedOn": "2024-12-21T22:12:43.6139676+00:00",
  "UpdatedOn": "2024-12-21T22:12:43.6139676+00:00",
  "IsDeleted": true
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'TrishAcademy.Models.Projects' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'TrishAcademy.Models.Projects' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OrganizationInvoice'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.