Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Status codes provide extra information when a request is made to the MTAPI. The response code will be provided when a request has been successfully completed.

...

Response Headers
{
"cache-control": "no-cache",
"content-length": "123",
"content-type": "application/json; charset=utf-8",
"date": "Tue, 20 Apr 2021 11:28:03 GMT",
"expires": "-1",
"mtapistatus": "-1",
"pragma": "no-cache",
"server": "Microsoft-IIS/8.5",
"x-aspnet-version": "4.0.30319",
"x-powered-by": "ASP.NET"
}

...

Accounts Controller (601000-601999)

...

  • A null UserActivationContext was provided.

    InvalidReturnUrl InvalidUserActivationContext = 601000CannotAssociateInternalUserToOrg = 601001

  • User activation failed.

    UserActivationFailed = 601001

  • A null RegistrationContext was provided.

    InvalidRegistrationContext = 601002

  • User registration failed.

    UserRegistrationFailed = 601003

  • No email value was provided.

    InvalidEmail = 601004

  • No value was provided for the MBUN.

    InvalidMbun = 601005

  • Account recovery failed.

    InitiateAccountRecoveryFailed = 601007

  • The account recovery id must be higher than zero.

    InvalidAccountRecoveryId = 601008

    The completion of the account recovery failed.

    CompleteRecoveryFailed = 601009

  • The user id must be higher than zero.

    InvalidUserId = 601010

  • A value must be provided.

    InvalidConfirmationCode = 601011

  • Failed to verify a users email.

    FailedToVerifyEmail = 601012

  • Failed to retrieve user enrollments.

    GetEnrollmentsFailed = 601013

  • Cannot associate an internal user to an organization.

    CannotAssociateInternalUserToOrganization = 601014

  • Setting the enrollment key failed.

    SetEnrollmentKeyFailed = 601015

  • Get applied permissions failed.

    GetAppliedPermissionsFailed = 601016

  • AppliedUserServicePermissionDTO cannot be null.

    InvalidAppliedServicePermissionDTO = 601017

  • Applying user service permissions failed.

    ApplyUserServicePermissionsFailed = 601018

Address Controller (602000-602999)

...