POST CreateOrUpdateCustomer?programId={programId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programId

integer

Required

Body Parameters

Multisponsor.NetCommerce.Domain.CustomerAccount
NameDescriptionTypeAdditional information
AvailablePoints

decimal number

None.

Id

string

None.

Identification

string

None.

FirstName

string

None.

LastName

string

None.

Points

decimal number

None.

MinimumPoints

decimal number

None.

LastAccountUpdate

date

None.

ProgramId

integer

None.

AdditionalInfo

string

None.

UserName

string

None.

Password

string

None.

IsLegalPerson

boolean

None.

IdentificationTypeId

integer

None.

AllowMobilePhoneContact

boolean

None.

AllowEmailContact

boolean

None.

Errors

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "<AvailablePoints>k__BackingField": 1.0,
  "_isNew": true,
  "_dirtyColumns": null,
  "_isLoaded": true,
  "_validateWhenSaving": true,
  "_providerName": "sample string 12",
  "columnSettings": [
    {
      "_columnName": "id",
      "_currentValue": "sample string 2",
      "_isDirty": true
    },
    {
      "_columnName": "identification",
      "_currentValue": "sample string 3",
      "_isDirty": true
    },
    {
      "_columnName": "first_name",
      "_currentValue": "sample string 4",
      "_isDirty": true
    },
    {
      "_columnName": "last_name",
      "_currentValue": "sample string 5",
      "_isDirty": true
    },
    {
      "_columnName": "points",
      "_currentValue": 1.0,
      "_isDirty": true
    },
    {
      "_columnName": "minimum_points",
      "_currentValue": 1.0,
      "_isDirty": true
    },
    {
      "_columnName": "last_account_update",
      "_currentValue": "2025-05-12T12:49:49.7086053+00:00",
      "_isDirty": true
    },
    {
      "_columnName": "program_id",
      "_currentValue": 1,
      "_isDirty": true
    },
    {
      "_columnName": "additional_info",
      "_currentValue": "sample string 6",
      "_isDirty": true
    },
    {
      "_columnName": "user_name",
      "_currentValue": "sample string 7",
      "_isDirty": true
    },
    {
      "_columnName": "password",
      "_currentValue": "sample string 8",
      "_isDirty": true
    },
    {
      "_columnName": "is_legal_person",
      "_currentValue": true,
      "_isDirty": true
    },
    {
      "_columnName": "identification_type_id",
      "_currentValue": 1,
      "_isDirty": true
    },
    {
      "_columnName": "allow_mobile_phone_contact",
      "_currentValue": true,
      "_isDirty": true
    },
    {
      "_columnName": "allow_email_contact",
      "_currentValue": true,
      "_isDirty": true
    }
  ],
  "errorList": [],
  "invalidTypeExceptionMessage": "sample string 14",
  "lengthExceptionMessage": "sample string 15",
  "nullExceptionMessage": "sample string 13"
}

application/xml, text/xml

Sample:
<CustomerAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Multisponsor.NetCommerce.Domain">
  <_dirtyColumns i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/SubSonic" />
  <_isLoaded xmlns="http://schemas.datacontract.org/2004/07/SubSonic">true</_isLoaded>
  <_isNew xmlns="http://schemas.datacontract.org/2004/07/SubSonic">true</_isNew>
  <_providerName xmlns="http://schemas.datacontract.org/2004/07/SubSonic">sample string 12</_providerName>
  <_validateWhenSaving xmlns="http://schemas.datacontract.org/2004/07/SubSonic">true</_validateWhenSaving>
  <columnSettings xmlns="http://schemas.datacontract.org/2004/07/SubSonic">
    <TableSchema.TableColumnSetting>
      <_columnName>id</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">sample string 2</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>identification</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">sample string 3</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>first_name</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">sample string 4</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>last_name</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">sample string 5</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>points</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal">1</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>minimum_points</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:decimal">1</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>last_account_update</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:dateTime">2025-05-12T12:49:49.7086053+00:00</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>program_id</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">1</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>additional_info</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">sample string 6</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>user_name</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">sample string 7</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>password</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">sample string 8</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>is_legal_person</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:boolean">true</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>identification_type_id</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int">1</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>allow_mobile_phone_contact</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:boolean">true</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
    <TableSchema.TableColumnSetting>
      <_columnName>allow_email_contact</_columnName>
      <_currentValue xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:boolean">true</_currentValue>
      <_isDirty>true</_isDirty>
    </TableSchema.TableColumnSetting>
  </columnSettings>
  <errorList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/SubSonic" />
  <invalidTypeExceptionMessage xmlns="http://schemas.datacontract.org/2004/07/SubSonic">sample string 14</invalidTypeExceptionMessage>
  <lengthExceptionMessage xmlns="http://schemas.datacontract.org/2004/07/SubSonic">sample string 15</lengthExceptionMessage>
  <nullExceptionMessage xmlns="http://schemas.datacontract.org/2004/07/SubSonic">sample string 13</nullExceptionMessage>
  <_x003C_AvailablePoints_x003E_k__BackingField>1</_x003C_AvailablePoints_x003E_k__BackingField>
</CustomerAccount>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

System.Web.Http.IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.