Syntch Gateway API

<back to all web services

PutCustomer

Administration - Customer Management
Requires Authentication
Requires any of the roles:Reseller, Merchant
The following routes are available for this service:
PUT/customers/{customerKey}Replaces a customer for a merchant
PutCustomer Parameters:
NameParameterData TypeRequiredDescription
CustomerKeypathintYesThe key of the customer to be edited.
CustomerNamemodelstringYesThe name of the customer. Cannot exceed 100 characters.
CustomerIdmodelstringNoThe ID of the customer. Cannot exceed 50 characters.
ActivationStatusmodelActivationStatus?YesThe customer status.

Allowable Values

  • Pending
  • Active
  • Inactive
  • Deleted
DefaultContactmodelContactYesThe default contact for the customer.
ShippingAddressmodelAddressNoThe shipping address for the customer. Either a shipping address, a billing address, or both are required.
BillingAddressmodelAddressNoThe billing address for the customer. Either a shipping address, a billing address, or both are required.
ActivationStatus Enum:
Pending
Active
Inactive
Deleted
Contact Parameters:
NameParameterData TypeRequiredDescription
LastNamemodelstringNoThe last name, max 50 chars
FirstNamemodelstringNoThe first name, max 50 chars
JobTitlemodelstringNoThe job title, max 50 chars
DepartmentNamemodelstringNoThe department name, max 50 chars
EmailAddressmodelstringNoThe e-mail address, max 100 chars
DaytimeTelephoneNumbermodelstringNoThe daytime telephone number, max 25 chars
NighttimeTelephoneNumbermodelstringNoThe nighttime telephone number, max 25 chars
FaxNumbermodelstringNoThe fax number, max 25 chars
MobileTelephoneNumbermodelstringNoThe mobile telephone number, max 25 chars
BillingAddressmodelAddressNoBilling address for the primary contact.
ShippingAddressmodelAddressNoShipping address for the primary contact
Address Parameters:
NameParameterData TypeRequiredDescription
StreetAddress1modelstringYesThe street address, max 50 chars
StreetAddress2modelstringNoThe street address 2, max 50 chars
StreetAddress3modelstringNoThe street address 3, max 50 chars
CitymodelstringNoThe city, max 50 chars
StateOrProvinceCodemodelstringYesThe CHAR-2 USA state and CAN province codes

Allowable Values

  • AK
  • AL
  • AR
  • AZ
  • CA
  • CO
  • CT
  • DC
  • DE
  • FL
  • GA
  • HI
  • IA
  • ID
  • IL
  • IN
  • KS
  • KY
  • LA
  • MA
  • MD
  • ME
  • MI
  • MN
  • MO
  • MS
  • MT
  • NC
  • ND
  • NE
  • NH
  • NJ
  • NM
  • NV
  • NY
  • OH
  • OK
  • OR
  • PA
  • RI
  • SC
  • SD
  • TN
  • TX
  • UT
  • VA
  • VT
  • WA
  • WI
  • WV
  • WY
  • AB
  • BC
  • MB
  • NB
  • NL
  • NS
  • NT
  • NU
  • ON
  • PE
  • QC
  • SK
  • YT
PostalCodemodelstringYesThe postal code, max 30 chars
CountryCodemodelstringYesThe ISO Alpha-3 USA or CAN country codes

Allowable Values

  • USA
  • CAN
CustomerDetail Parameters:
NameParameterData TypeRequiredDescription
CustomerKeymodelintNoUnique identifier generated by the system for the customer
CustomerIDmodelstringYesUnique identifier, assigned by the merchant, as a friendly way to identify the customer
CustomerNamemodelstringNoCustomer's full name. Can be first+last name for an individual, or the business name if applicable.
ActivationStatusmodelActivationStatus?YesIndicates whether the customer is currently active or inactive. Valid values are: 1: ACTIVE – Customers contracts are reviewed each day for pending payments 2: INACTIVE – Customer is not reviewed for pending payments
MerchantKeymodelint?YesThe merchant key for the customer
CreationTimestampformDateTimeNoCustomer creation timestamp.
LastUpdateTimestampformDateTimeNoLast customer update timestamp.
DefaultContactmodelContactNoThe link to this customer's default contact
BillingAddressmodelBillingAddressNoThe link to this customer's billing address
ShippingAddressmodelShippingAddressNoThe link to this customer's shipping address

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.

PUT /customers/{customerKey} HTTP/1.1 
Host: syntch.simpay.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<PutCustomer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Customers.BindingModels">
  <ActivationStatus>Pending</ActivationStatus>
  <BillingAddress xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Common.DTO">
    <d2p1:City>String</d2p1:City>
    <d2p1:CountryCode>String</d2p1:CountryCode>
    <d2p1:PostalCode>String</d2p1:PostalCode>
    <d2p1:StateOrProvinceCode>String</d2p1:StateOrProvinceCode>
    <d2p1:StreetAddress1>String</d2p1:StreetAddress1>
    <d2p1:StreetAddress2>String</d2p1:StreetAddress2>
    <d2p1:StreetAddress3>String</d2p1:StreetAddress3>
  </BillingAddress>
  <CustomerId>String</CustomerId>
  <CustomerKey>0</CustomerKey>
  <CustomerName>String</CustomerName>
  <DefaultContact xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Common.DTO">
    <d2p1:BillingAddress>
      <d2p1:City>String</d2p1:City>
      <d2p1:CountryCode>String</d2p1:CountryCode>
      <d2p1:PostalCode>String</d2p1:PostalCode>
      <d2p1:StateOrProvinceCode>String</d2p1:StateOrProvinceCode>
      <d2p1:StreetAddress1>String</d2p1:StreetAddress1>
      <d2p1:StreetAddress2>String</d2p1:StreetAddress2>
      <d2p1:StreetAddress3>String</d2p1:StreetAddress3>
    </d2p1:BillingAddress>
    <d2p1:DaytimeTelephoneNumber>String</d2p1:DaytimeTelephoneNumber>
    <d2p1:DepartmentName>String</d2p1:DepartmentName>
    <d2p1:EmailAddress>String</d2p1:EmailAddress>
    <d2p1:FaxNumber>String</d2p1:FaxNumber>
    <d2p1:FirstName>String</d2p1:FirstName>
    <d2p1:JobTitle>String</d2p1:JobTitle>
    <d2p1:LastName>String</d2p1:LastName>
    <d2p1:MobileTelephoneNumber>String</d2p1:MobileTelephoneNumber>
    <d2p1:NighttimeTelephoneNumber>String</d2p1:NighttimeTelephoneNumber>
    <d2p1:ShippingAddress>
      <d2p1:City>String</d2p1:City>
      <d2p1:CountryCode>String</d2p1:CountryCode>
      <d2p1:PostalCode>String</d2p1:PostalCode>
      <d2p1:StateOrProvinceCode>String</d2p1:StateOrProvinceCode>
      <d2p1:StreetAddress1>String</d2p1:StreetAddress1>
      <d2p1:StreetAddress2>String</d2p1:StreetAddress2>
      <d2p1:StreetAddress3>String</d2p1:StreetAddress3>
    </d2p1:ShippingAddress>
  </DefaultContact>
  <ShippingAddress xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Common.DTO">
    <d2p1:City>String</d2p1:City>
    <d2p1:CountryCode>String</d2p1:CountryCode>
    <d2p1:PostalCode>String</d2p1:PostalCode>
    <d2p1:StateOrProvinceCode>String</d2p1:StateOrProvinceCode>
    <d2p1:StreetAddress1>String</d2p1:StreetAddress1>
    <d2p1:StreetAddress2>String</d2p1:StreetAddress2>
    <d2p1:StreetAddress3>String</d2p1:StreetAddress3>
  </ShippingAddress>
</PutCustomer>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomerDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Customers.BindingModels">
  <ActivationStatus>Pending</ActivationStatus>
  <BillingAddress xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Common.DTO">
    <d2p1:City>String</d2p1:City>
    <d2p1:CountryCode>String</d2p1:CountryCode>
    <d2p1:PostalCode>String</d2p1:PostalCode>
    <d2p1:StateOrProvinceCode>String</d2p1:StateOrProvinceCode>
    <d2p1:StreetAddress1>String</d2p1:StreetAddress1>
    <d2p1:StreetAddress2>String</d2p1:StreetAddress2>
    <d2p1:StreetAddress3>String</d2p1:StreetAddress3>
  </BillingAddress>
  <CreationTimestamp>0001-01-01T00:00:00</CreationTimestamp>
  <CustomerID>String</CustomerID>
  <CustomerKey>0</CustomerKey>
  <CustomerName>String</CustomerName>
  <DefaultContact xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Common.DTO">
    <d2p1:BillingAddress>
      <d2p1:City>String</d2p1:City>
      <d2p1:CountryCode>String</d2p1:CountryCode>
      <d2p1:PostalCode>String</d2p1:PostalCode>
      <d2p1:StateOrProvinceCode>String</d2p1:StateOrProvinceCode>
      <d2p1:StreetAddress1>String</d2p1:StreetAddress1>
      <d2p1:StreetAddress2>String</d2p1:StreetAddress2>
      <d2p1:StreetAddress3>String</d2p1:StreetAddress3>
    </d2p1:BillingAddress>
    <d2p1:DaytimeTelephoneNumber>String</d2p1:DaytimeTelephoneNumber>
    <d2p1:DepartmentName>String</d2p1:DepartmentName>
    <d2p1:EmailAddress>String</d2p1:EmailAddress>
    <d2p1:FaxNumber>String</d2p1:FaxNumber>
    <d2p1:FirstName>String</d2p1:FirstName>
    <d2p1:JobTitle>String</d2p1:JobTitle>
    <d2p1:LastName>String</d2p1:LastName>
    <d2p1:MobileTelephoneNumber>String</d2p1:MobileTelephoneNumber>
    <d2p1:NighttimeTelephoneNumber>String</d2p1:NighttimeTelephoneNumber>
    <d2p1:ShippingAddress>
      <d2p1:City>String</d2p1:City>
      <d2p1:CountryCode>String</d2p1:CountryCode>
      <d2p1:PostalCode>String</d2p1:PostalCode>
      <d2p1:StateOrProvinceCode>String</d2p1:StateOrProvinceCode>
      <d2p1:StreetAddress1>String</d2p1:StreetAddress1>
      <d2p1:StreetAddress2>String</d2p1:StreetAddress2>
      <d2p1:StreetAddress3>String</d2p1:StreetAddress3>
    </d2p1:ShippingAddress>
  </DefaultContact>
  <LastUpdateTimestamp>0001-01-01T00:00:00</LastUpdateTimestamp>
  <MerchantKey>0</MerchantKey>
  <ShippingAddress xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gateway.RestApi.Common.DTO">
    <d2p1:City>String</d2p1:City>
    <d2p1:CountryCode>String</d2p1:CountryCode>
    <d2p1:PostalCode>String</d2p1:PostalCode>
    <d2p1:StateOrProvinceCode>String</d2p1:StateOrProvinceCode>
    <d2p1:StreetAddress1>String</d2p1:StreetAddress1>
    <d2p1:StreetAddress2>String</d2p1:StreetAddress2>
    <d2p1:StreetAddress3>String</d2p1:StreetAddress3>
  </ShippingAddress>
</CustomerDetail>