Wiki

Clone wiki

OCAPI / testplan / nl_testplan_klantaccount_ophalen

Ophalen nieuwe klantaccounts

OCAPI controller

customerController

Interne componenten dge

  • Proc: gp30OCWebshopGetRelaties()
  • DB: ocwebshopkoppelrelatie

Testprocedure

Webshop

  • Maak een nieuw klantaccount aan op de webshop.

dgeDetailhandel/dgeGroothandel

  • Activeer met de sneltoets CTRL-ALT-D de OCAPI log. Zie Testplan.
  • Kies voor de menu-optie "Webshop" - "Webshop beheren"
  • Klik op de knop "Ophalen nieuwe klanten uit de webshop"

dge_klantaccount_ophalen.png

Communicatie

GET

URL: /customer.xml?start=<start>&limit=<limit>

GET https://odemo.dgewebshopsystem.nl/ocapi/customer.xml?start=0&limit=100
Log: /logs/ocapi/*OCAPI_customer_request_*.log

RESPONS HTTP STATUSCODE 200

Alle klantaccounts dienen aan dgeDetailhandel/dgeGroothandel te worden aangeboden. dgeDetailhandel/dgeGroothandel bepaalt aan de hand van het "customer_id" welke klantaccounts nieuw zijn. Van deze klantaccounts zullen de gegevens worden ingelezen.

<?xml version="1.0" encoding="UTF-8"?>
<response>
  <customer>
    <customer_id>17</customer_id>
    <customer_group_id>4</customer_group_id>
    <store_id>0</store_id>
    <firstname>Pietje</firstname>
    <lastname>Puk</lastname>
    <email>pietje@puk.nl</email>
    <telephone>0111-418000</telephone>
    <fax></fax>
    <newsletter>0</newsletter>
    <address_id>21</address_id>
    <custom_field></custom_field>
    <status>1</status>
    <approved>1</approved>
    <safe>0</safe>
    <date_added>2016-09-07 13:17:05</date_added>
    <language_id>2</language_id>
    <name>Pietje Puk</name>
    <description>DEFAULT DGE</description>
    <customer_group>DEFAULT DGE</customer_group>
    <address>
      <address_id>21</address_id>
      <customer_id>17</customer_id>
      <firstname>Pietje</firstname>
      <lastname>Puk</lastname>
      <company>data group europe bv</company>
      <address_1>De Weel 12</address_1>
      <address_2></address_2>
      <postcode>4306 NW</postcode>
      <city>Nieuwerkerk</city>
      <zone_id>2339</zone_id>
      <zone>Zeeland</zone>
      <zone_code>ZE</zone_code>
      <country_id>150</country_id>
      <country>Netherlands</country>
      <iso_code_2>NL</iso_code_2>
      <iso_code_3>NLD</iso_code_3>
      <address_format></address_format>
      <custom_field>false</custom_field>
    </address>
  </customer>
</response>
Log: /logs/ocapi/*OCAPI_customergroup_request_response_*.log

RESPONS HTTP STATUSCODE 404

Een HTTP statuscode 404 geeft aan dat er geen gegevens zijn voor de gevraagde selectie.

Log: /logs/ocapi/*OCAPI_customergroup_request_response_*.log

index

Updated