Syntch Gateway API

<back to all web services

PostMerchantUser

Administration - Merchant Management
Requires Authentication
Required role:Merchant
The following routes are available for this service:
POST/merchants/usersCreates a new gateway user for the specified merchant.
PostMerchantUser Parameters:
NameParameterData TypeRequiredDescription
MerchantKeymodelintYes
GatewayUsermodelPostUserRequestYes
IsApiUsermodelboolYes
PostUserRequest Parameters:
NameParameterData TypeRequiredDescription
UserNameformstringNo
FirstNameformstringNo
LastNameformstringNo
EmailAddressformstringNo
PhoneNumberformstringNo
PasswordformstringNo
IsActiveformboolNo
IsLockoutEnabledformboolNo
IsTwoFactorEnabledformboolNo
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
CountryformstringNo
ShouldChangePasswordOnNextLoginformboolNo
GatewayUser Parameters:
NameParameterData TypeRequiredDescription
UserNameformstringNo
PhoneNumberformstringNo
IdformintNo
DeleterUserIdformlong?No
CreatorUserIdformlongNo
LastModifierUserIdformlong?No
IsLockoutEnabledformboolNo
RolesformICollection<GatewayUserRole<Int64>>No
ClaimsformICollection<UserClaim>No
LoginsformICollection<GatewayUserLogin<Int64>>No
IsPhoneNumberConfirmedformboolNo
SecurityStampformstringNo
IsTwoFactorEnabledformboolNo
IsDeletedformboolNo
IsEmailConfirmedformboolNo
AccessFailedCountformintNo
LockoutEndDateUtcformDateTime?No
CreationTimeformDateTimeNo
LastModificationTimeformDateTime?No
DeletionTimeformDateTime?No
FirstNameformstringNo
EmailConfirmationCodeformstringNo
PasswordformstringNo
LastNameformstringNo
IsActiveformboolNo
EmailAddressformstringNo
TenantIdformint?No
AuthenticationSourceformstringNo
PasswordResetCodeformstringNo
LastLoginTimeformDateTime?No
Address1formstringNo
Address2formstringNo
CityformstringNo
StateformstringNo
ZipformstringNo
CountryformstringNo
TimezoneformstringNo
ShouldChangePasswordOnNextLoginformboolNo
UserClaim Parameters:
NameParameterData TypeRequiredDescription
ClaimTypeformstringNo
ClaimValueformstringNo
CreatorIdformintNo
TenantIdformintNo
CreateTimeformDateTimeNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /merchants/users HTTP/1.1 
Host: syntch.simpay.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PostMerchantUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Users.BindingModels">
  <GatewayUser>
    <Address1>String</Address1>
    <Address2>String</Address2>
    <City>String</City>
    <Country>String</Country>
    <EmailAddress>String</EmailAddress>
    <FirstName>String</FirstName>
    <IsActive>false</IsActive>
    <IsLockoutEnabled>false</IsLockoutEnabled>
    <IsTwoFactorEnabled>false</IsTwoFactorEnabled>
    <LastName>String</LastName>
    <Password>String</Password>
    <PhoneNumber>String</PhoneNumber>
    <ShouldChangePasswordOnNextLogin>false</ShouldChangePasswordOnNextLogin>
    <State>String</State>
    <UserName>String</UserName>
    <Zip>String</Zip>
  </GatewayUser>
  <IsApiUser>false</IsApiUser>
  <MerchantKey>0</MerchantKey>
</PostMerchantUser>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GatewayUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gateway.User.Domain.BindingModels">
  <AccessFailedCount>0</AccessFailedCount>
  <Address1>String</Address1>
  <Address2>String</Address2>
  <AuthenticationSource>String</AuthenticationSource>
  <City>String</City>
  <Claims xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.Identity.Domain.BindingModels" i:nil="true" />
  <Country>String</Country>
  <CreationTime>0001-01-01T00:00:00</CreationTime>
  <CreatorUserId>0</CreatorUserId>
  <DeleterUserId>0</DeleterUserId>
  <DeletionTime>0001-01-01T00:00:00</DeletionTime>
  <EmailAddress>String</EmailAddress>
  <EmailConfirmationCode>String</EmailConfirmationCode>
  <FirstName>String</FirstName>
  <Id>0</Id>
  <IsActive>false</IsActive>
  <IsDeleted>false</IsDeleted>
  <IsEmailConfirmed>false</IsEmailConfirmed>
  <IsLockoutEnabled>false</IsLockoutEnabled>
  <IsPhoneNumberConfirmed>false</IsPhoneNumberConfirmed>
  <IsTwoFactorEnabled>false</IsTwoFactorEnabled>
  <LastLoginTime>0001-01-01T00:00:00</LastLoginTime>
  <LastModificationTime>0001-01-01T00:00:00</LastModificationTime>
  <LastModifierUserId>0</LastModifierUserId>
  <LastName>String</LastName>
  <LockoutEndDateUtc>0001-01-01T00:00:00</LockoutEndDateUtc>
  <Logins xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.Identity.Domain.BindingModels" />
  <Password>String</Password>
  <PasswordResetCode>String</PasswordResetCode>
  <PhoneNumber>String</PhoneNumber>
  <Roles xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.Identity.Domain.BindingModels" />
  <SecurityStamp>String</SecurityStamp>
  <ShouldChangePasswordOnNextLogin>false</ShouldChangePasswordOnNextLogin>
  <State>String</State>
  <TenantId>0</TenantId>
  <Timezone>String</Timezone>
  <UserName>String</UserName>
  <Zip>String</Zip>
</GatewayUser>