POST Account/Register

Registers a Customer.

Request Information

URI Parameters

None.

Body Parameters

RegisterBinding
NameDescriptionTypeAdditional information
StoreID

The ID of the store to be registered with

integer

None.

Email

string

Required

Password

string

Required

Data type: Password

String length: inclusive between 6 and 100

CustomerTypeID

integer

Required

NewsletterIDs

List of newslettertypes this customer registers to

Collection of integer

None.

Lang

string

Required

Contact

ContactBinding

Required

VatIdentifier

string

None.

BusinessName

string

None.

BacCode

Business activity code

string

None.

InvoiceRequired

boolean

None.

BusinessID

A customer related to a business uses BusinessContacts as Shipping Contacts

integer

None.

BusinessAuthToken

Business authorization code for customer enrollment and gathering business details or contacts

string

None.

ShippingBusinessContactID

Default BusinessContact for this customer used for Shipping

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "StoreID": 1,
  "Email": "sample string 2",
  "Password": "sample string 3",
  "CustomerTypeID": 4,
  "NewsletterIDs": [
    1,
    2
  ],
  "Lang": "sample string 5",
  "Contact": {
    "Name": "sample string 1",
    "Surnames": "sample string 2",
    "DateOfBirth": "2024-04-06T06:46:35.184147+02:00",
    "Alias": "sample string 3",
    "Phone": "sample string 4",
    "Addressee": "sample string 5",
    "Street": "sample string 6",
    "PostalCode": "sample string 7",
    "PlaceID": 8,
    "CountryID": 9
  },
  "VatIdentifier": "sample string 6",
  "BusinessName": "sample string 7",
  "BacCode": "sample string 8",
  "InvoiceRequired": true,
  "BusinessID": 1,
  "BusinessAuthToken": "sample string 10",
  "ShippingBusinessContactID": 1
}

application/xml, text/xml

Sample:
<RegisterBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Account">
  <BacCode>sample string 8</BacCode>
  <BusinessAuthToken>sample string 10</BusinessAuthToken>
  <BusinessID>1</BusinessID>
  <BusinessName>sample string 7</BusinessName>
  <Contact>
    <Addressee xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">sample string 5</Addressee>
    <CountryID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">9</CountryID>
    <PlaceID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">8</PlaceID>
    <PostalCode xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">sample string 7</PostalCode>
    <Street xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Web.Models.Binding.Location">sample string 6</Street>
    <Alias>sample string 3</Alias>
    <DateOfBirth>2024-04-06T06:46:35.184147+02:00</DateOfBirth>
    <Name>sample string 1</Name>
    <Phone>sample string 4</Phone>
    <Surnames>sample string 2</Surnames>
  </Contact>
  <CustomerTypeID>4</CustomerTypeID>
  <Email>sample string 2</Email>
  <InvoiceRequired>true</InvoiceRequired>
  <Lang>sample string 5</Lang>
  <NewsletterIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </NewsletterIDs>
  <Password>sample string 3</Password>
  <ShippingBusinessContactID>1</ShippingBusinessContactID>
  <StoreID>1</StoreID>
  <VatIdentifier>sample string 6</VatIdentifier>
</RegisterBinding>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.