POST api/Customer/CreateCustomer?usPropayId={usPropayId}&caPropayId={caPropayId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
usPropayId

string

Required

caPropayId

string

Required

Body Parameters

Account
NameDescriptionTypeAdditional information
AccountInfo

AccountInfo

None.

BPAddresses

Collection of Address

None.

UserInfo

UserInfo

None.

BankAccount

BankAccount

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountInfo": null,
  "BPAddresses": [
    {
      "<MagentoAddressId>k__BackingField": "sample string 1",
      "<ShipToDef>k__BackingField": "sample string 2",
      "<AddressName>k__BackingField": "sample string 3",
      "<IsAddressSync>k__BackingField": "sample string 4",
      "<U_MAddressID>k__BackingField": "sample string 5",
      "<U_AddressSource>k__BackingField": "sample string 6",
      "<AddresseeFirstName>k__BackingField": "sample",
      "<AddresseeLastName>k__BackingField": " string 10",
      "<RowNum>k__BackingField": 9,
      "<AddressLine1>k__BackingField": "sample string 11",
      "<AddressLine2>k__BackingField": "sample string 12",
      "<City>k__BackingField": "sample string 13",
      "<State>k__BackingField": "sample string 14",
      "<PostalCode>k__BackingField": "sample string 15",
      "<Country>k__BackingField": "sample string 16",
      "<AddressType>k__BackingField": 0,
      "<Active>k__BackingField": false,
      "<IsCreatedInUS>k__BackingField": 20,
      "<IsCreatedInCA>k__BackingField": 21,
      "<IsUpdatedInUS>k__BackingField": 22,
      "<IsUpdatedInCA>k__BackingField": 23
    },
    {
      "<MagentoAddressId>k__BackingField": "sample string 1",
      "<ShipToDef>k__BackingField": "sample string 2",
      "<AddressName>k__BackingField": "sample string 3",
      "<IsAddressSync>k__BackingField": "sample string 4",
      "<U_MAddressID>k__BackingField": "sample string 5",
      "<U_AddressSource>k__BackingField": "sample string 6",
      "<AddresseeFirstName>k__BackingField": "sample",
      "<AddresseeLastName>k__BackingField": " string 10",
      "<RowNum>k__BackingField": 9,
      "<AddressLine1>k__BackingField": "sample string 11",
      "<AddressLine2>k__BackingField": "sample string 12",
      "<City>k__BackingField": "sample string 13",
      "<State>k__BackingField": "sample string 14",
      "<PostalCode>k__BackingField": "sample string 15",
      "<Country>k__BackingField": "sample string 16",
      "<AddressType>k__BackingField": 0,
      "<Active>k__BackingField": false,
      "<IsCreatedInUS>k__BackingField": 20,
      "<IsCreatedInCA>k__BackingField": 21,
      "<IsUpdatedInUS>k__BackingField": 22,
      "<IsUpdatedInCA>k__BackingField": 23
    }
  ],
  "UserInfo": {
    "Name": "sample string 1",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "CardCode": "sample string 4",
    "Active": "tYES",
    "U_MADDID": "sample string 7",
    "U_IsAddSync": "sample string 8",
    "U_IsSyncReq": "sample string 9"
  },
  "BankAccount": null
}

application/xml, text/xml

Sample:
<Account xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Univera.Data">
  <AccountInfo i:nil="true" />
  <Addresses>
    <Address>
      <_x003C_Active_x003E_k__BackingField>false</_x003C_Active_x003E_k__BackingField>
      <_x003C_AddressLine1_x003E_k__BackingField>sample string 11</_x003C_AddressLine1_x003E_k__BackingField>
      <_x003C_AddressLine2_x003E_k__BackingField>sample string 12</_x003C_AddressLine2_x003E_k__BackingField>
      <_x003C_AddressName_x003E_k__BackingField>sample string 3</_x003C_AddressName_x003E_k__BackingField>
      <_x003C_AddressType_x003E_k__BackingField>Shipping</_x003C_AddressType_x003E_k__BackingField>
      <_x003C_AddresseeFirstName_x003E_k__BackingField>sample</_x003C_AddresseeFirstName_x003E_k__BackingField>
      <_x003C_AddresseeLastName_x003E_k__BackingField> string 10</_x003C_AddresseeLastName_x003E_k__BackingField>
      <_x003C_City_x003E_k__BackingField>sample string 13</_x003C_City_x003E_k__BackingField>
      <_x003C_Country_x003E_k__BackingField>sample string 16</_x003C_Country_x003E_k__BackingField>
      <_x003C_IsAddressSync_x003E_k__BackingField>sample string 4</_x003C_IsAddressSync_x003E_k__BackingField>
      <_x003C_IsCreatedInCA_x003E_k__BackingField>21</_x003C_IsCreatedInCA_x003E_k__BackingField>
      <_x003C_IsCreatedInUS_x003E_k__BackingField>20</_x003C_IsCreatedInUS_x003E_k__BackingField>
      <_x003C_IsUpdatedInCA_x003E_k__BackingField>23</_x003C_IsUpdatedInCA_x003E_k__BackingField>
      <_x003C_IsUpdatedInUS_x003E_k__BackingField>22</_x003C_IsUpdatedInUS_x003E_k__BackingField>
      <_x003C_MagentoAddressId_x003E_k__BackingField>sample string 1</_x003C_MagentoAddressId_x003E_k__BackingField>
      <_x003C_PostalCode_x003E_k__BackingField>sample string 15</_x003C_PostalCode_x003E_k__BackingField>
      <_x003C_RowNum_x003E_k__BackingField>9</_x003C_RowNum_x003E_k__BackingField>
      <_x003C_ShipToDef_x003E_k__BackingField>sample string 2</_x003C_ShipToDef_x003E_k__BackingField>
      <_x003C_State_x003E_k__BackingField>sample string 14</_x003C_State_x003E_k__BackingField>
      <_x003C_U_AddressSource_x003E_k__BackingField>sample string 6</_x003C_U_AddressSource_x003E_k__BackingField>
      <_x003C_U_MAddressID_x003E_k__BackingField>sample string 5</_x003C_U_MAddressID_x003E_k__BackingField>
    </Address>
    <Address>
      <_x003C_Active_x003E_k__BackingField>false</_x003C_Active_x003E_k__BackingField>
      <_x003C_AddressLine1_x003E_k__BackingField>sample string 11</_x003C_AddressLine1_x003E_k__BackingField>
      <_x003C_AddressLine2_x003E_k__BackingField>sample string 12</_x003C_AddressLine2_x003E_k__BackingField>
      <_x003C_AddressName_x003E_k__BackingField>sample string 3</_x003C_AddressName_x003E_k__BackingField>
      <_x003C_AddressType_x003E_k__BackingField>Shipping</_x003C_AddressType_x003E_k__BackingField>
      <_x003C_AddresseeFirstName_x003E_k__BackingField>sample</_x003C_AddresseeFirstName_x003E_k__BackingField>
      <_x003C_AddresseeLastName_x003E_k__BackingField> string 10</_x003C_AddresseeLastName_x003E_k__BackingField>
      <_x003C_City_x003E_k__BackingField>sample string 13</_x003C_City_x003E_k__BackingField>
      <_x003C_Country_x003E_k__BackingField>sample string 16</_x003C_Country_x003E_k__BackingField>
      <_x003C_IsAddressSync_x003E_k__BackingField>sample string 4</_x003C_IsAddressSync_x003E_k__BackingField>
      <_x003C_IsCreatedInCA_x003E_k__BackingField>21</_x003C_IsCreatedInCA_x003E_k__BackingField>
      <_x003C_IsCreatedInUS_x003E_k__BackingField>20</_x003C_IsCreatedInUS_x003E_k__BackingField>
      <_x003C_IsUpdatedInCA_x003E_k__BackingField>23</_x003C_IsUpdatedInCA_x003E_k__BackingField>
      <_x003C_IsUpdatedInUS_x003E_k__BackingField>22</_x003C_IsUpdatedInUS_x003E_k__BackingField>
      <_x003C_MagentoAddressId_x003E_k__BackingField>sample string 1</_x003C_MagentoAddressId_x003E_k__BackingField>
      <_x003C_PostalCode_x003E_k__BackingField>sample string 15</_x003C_PostalCode_x003E_k__BackingField>
      <_x003C_RowNum_x003E_k__BackingField>9</_x003C_RowNum_x003E_k__BackingField>
      <_x003C_ShipToDef_x003E_k__BackingField>sample string 2</_x003C_ShipToDef_x003E_k__BackingField>
      <_x003C_State_x003E_k__BackingField>sample string 14</_x003C_State_x003E_k__BackingField>
      <_x003C_U_AddressSource_x003E_k__BackingField>sample string 6</_x003C_U_AddressSource_x003E_k__BackingField>
      <_x003C_U_MAddressID_x003E_k__BackingField>sample string 5</_x003C_U_MAddressID_x003E_k__BackingField>
    </Address>
  </Addresses>
  <BankAccount i:nil="true" />
  <UserInfo>
    <AccountId>sample string 4</AccountId>
    <Active>false</Active>
    <ActiveString>tYES</ActiveString>
    <FirstName>sample string 2</FirstName>
    <LastName>sample string 3</LastName>
    <U_IsAddSync>sample string 8</U_IsAddSync>
    <U_IsSyncReq>sample string 9</U_IsSyncReq>
    <U_MADDID>sample string 7</U_MADDID>
    <UserName>sample string 1</UserName>
  </UserInfo>
</Account>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IPostXMLResult
NameDescriptionTypeAdditional information
PostResult

RequestResult

None.

Message

string

None.

Status

string

None.

Identifier

string

None.

Timestamp

date

None.

EntityObject

Object

None.

DocNum

integer

None.

CardCode

string

None.

IsCreatedInUS

integer

None.

IsCreatedInCA

integer

None.

IsUpdatedInUS

integer

None.

IsUpdatedInCA

integer

None.

AddressName

string

None.

USAccountToken

string

None.

CAAccountToken

string

None.

AcountPaymentToken

string

None.

CPTotal

decimal number

None.

ShippingCharge

decimal number

None.

ShippingTax

decimal number

None.

Tax

decimal number

None.

Response Formats

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

Sample:

Sample not available.