1. Home
  2. /
  3. MFORMULA ELEKTRONISCHER KATALOG
  4. /
  5. API
  6. /
  7. Kunden
  8. /
  9. Post: http://www.namedoseusiten.com.br/api_customers.php?action=add_customers ...

Post: http://www.namedoseusiten.com.br/api_customers.php?action=add_customers

Parameter Format Beschreibung customer_firstname json

Kunden FirstName
Es ist nur Text erforderlich
Format: varchar (32)
* Feld erforderlich < /p> customer_lastname json Kunden LastName
Es ist nur Text erforderlich
Format: varchar (32)
* Feld erforderlich < /td> customer_email_address json E -Mail -Adresse
Beispiel: name@sit.com.br
Format: Varchar (96)
* Feld erforderlich < /td> customer_password json Passwort
Minimum: 8 Zeichen
Format: varchar (40)
* Feld erforderlich < /td> customer_telephone json Telefon
Beispiel: (11) 3230-6255
Format: Varchar (32)
* Feld erforderlich < /td> customer_telephone_commercial json kommerzielles Telefon
Beispiel: (11) 3230-6255
Format: Varchar (32) < /td> customer_telephone_mobile json Telefon mobil
Beispiel: (11) 3230-6255
Format: Varchar (32) < /td> Skype json Skype -Name
Format: varchar (32) < /td> msn json msn name
Format: varchar (32) < /td> customer_fax json Fax Telefon
Beispiel: (11) 3230-6255
Format: Varchar (32) < /td> customer_newsletter json Verwenden Sie 1 bis Ja oder 0 bis Nein
Nur Zahl ist erforderlich
Format: int (1)
* Feld erforderlich < /td> customer_groups_id json Überprüfen Sie die API, um die Liste der Kundengruppen zu erhalten customer_language json

Englisch, Spanisch, Japanisch oder Portugiesisch
* Feld erforderlich < /p> customer_gender json m oder f
* Feld erforderlich < /td> customer_dob json dd/mm/jyyy
* Feld erforderlich Eintrag_street_address json Straßenadresse
Format: varchar (64)
* Feld erforderlich < /td> Eintragung_Number json Nummer Straßenadresse
Nur Nummer erforderlich
* Feld erforderlich < /td> Eintrag_completion json Fertigstellung Straßenadresse Eintrag_Suburb json Vorort Eintrag_Postcode json Postcode
Es ist nur Nummer erforderlich
* Feld erforderlich < /td> Eintragung_City json Stadt
Es ist nur Text erforderlich
* Feld erforderlich < /td> Eintragung_State json Überprüfen Sie die API, um die Statusliste zu erhalten.
* Erforderliches Feld < /td> Eintrag_country_id json Überprüfen Sie die API, um die Liste der Landes zu erhalten Eintrag_rg json rg Eintrag_cpf json cpf Eintragung_Company json Firmenname Eintrag_cnpj json cnpj Eintrag_ie json ie person_kind json pj oder pf
Format: varchar (2)
* Feld erforderlich < /td>

PHP -Probe

 // Muster hinzufügen Kunden hinzufügen
 
 $ Url = $ tabain_url. ' /api_customers.php? Action = add_customers ' ;;

 $ data = array ("Customs_firstname" = & gt; "Kunden FirstName", // Kunden FirstName * Feld erforderlich
 "Customs_LastName" = & gt; "Lastname -Kunden", // Kunden LastName * Field erforderlich
 "Customer_email_address" = & gt; "E -Mail@mformula.com.br", // E -Mail -Adresse * Feld erforderlich
 "Customer_password" = & gt; "Test", // Passwort * Feld erforderlich
 "Customer_telephone" = & gt; "(11) 3230-6255", // Telefon Beispiel: (11) 3230-6255 * Feld erforderlich
 "COPPER_TELEPHONE_COMMERCIAL" = & GT; "(11) 3230-6255", // kommerzielles Telefon Beispiel: (11) 3230-6255
 "Customer_telephone_mobile" = & gt; "(11) 3230-6255", // Telefon mobiles Beispiel: (11) 3230-6255
 "Skype" = & gt; "", // Skype Name
 "msn" = & gt; "", // msn
 "Customer_fax" = & gt; Beispiel: (11) 3230-6255 // Fax Telefon.
 "Customer_Newsletter" = & gt; "1", // Verwenden Sie das Feld 1 bis Ja oder 0 bis (Es ist nur eine Zahl erforderlich) * Feld erforderlich
 "Customer_groups_id" = & gt; "", // Überprüfen Sie die API, um die Liste der Kundengruppen zu erhalten
 "Customer_Language" = & gt; "Portugiesisch", // Englisch, Spanisch, Japanisch oder Portugiesisch * Feld erforderlich
 "COPPER_GENDER" = & GT; "m", // m oder f * Feld erforderlich
 "COPPER_DOB" = & GT; "01/02/1980", // dd/mm/yjyy * Feld erforderlich
 "Eintrag_Street_Address" = & gt; "Av Paulista", // Straßenadresse * Feld erforderlich
 "Eintrag_Number" = & gt; "1500", // Nummer Straßenadresse * Feld erforderlich
 "Eintrag_Completion" = & gt; "", // Abschluss Straßenadresse
 "Eintrag_Suburb" = & gt; "Gärten", // Vorort
 "Eintrag_Postcode" = & gt; "04206000", // Postleitzahl
 "Eintrag_City" = & gt; "Sao Paulo", // Stadt * Feld erforderlich
 "Eintrag_State" = & gt; "Sao Paulo", // Überprüfen Sie die API, um die Liste des Zustands * zu erhalten *
 "Eintrag_country_id" = & gt; "30", // Überprüfen Sie die API, um die Liste des Landes zu erhalten
 "Eintrag_Rg" = & gt; "", // rg
 "Eintrag_CPF" = & gt; "28240621856", // CPF
 "Eintrag_company" = & gt; "", // Name der Firma
 "Eintrag_cnpj" = & gt; "", // cnpj
 "Eintrag_ie" = & gt; "", // dh
 "Person_kind" = & gt; "Pf" // PJ oder Pf * Feld erforderlich
 );
 
 $ data_string = json_encode ($ date);

 $ Ch = curl_init ($ url);
 Curl_setopt ($ ch, curlopt_customrequest, "post");
 Curl_setopt ($ ch, curlopt_postfields, $ data_string);
 Curl_setopt ($ ch, curlopt_returntransfer, true);
 curl_setopt ($ ch, curlopt_sl_verifypeer, false);
 Curl_setopt ($ ch, curlopt_httpHeader, Array (Array (
 ' Inhaltstyp: Anwendung/JSON ',,
 "Cache-Control: No-Cache",
 ' Usuario1: ' . Basis64_CODE ($ Usuario1),
 ' Passwort1: ' . Basis64_CODE ($ password1),
 ' Inhaltslänge: ' . Strlen ($ data_string))))
 );
 
 $ result = curl_exec ($ ch);
 Curl_close ($ ch);

 print_r ($ result);
 
 // Beispiel für Kunden hinzufügen eof 

Rückgabefehler:

Code
Nachricht < /p>

Erfolgserfolg:

Code
id
Nachricht < /p>

Post: http://www.namedoseusiten.com.br/api_customers.php?action=add_customers

Parameter Format Beschreibung

customer_firstname json

Kunden FirstName
Es ist nur Text erforderlich
Format: varchar (32)
* Feld erforderlich < /p>

customer_lastname json Kunden LastName
Es ist nur Text erforderlich
Format: varchar (32)
* Feld erforderlich < /td>

customer_email_address json E -Mail -Adresse
Beispiel: name@sit.com.br
Format: Varchar (96)
* Feld erforderlich < /td>

customer_password json Passwort
Minimum: 8 Zeichen
Format: varchar (40)
* Feld erforderlich < /td>

customer_telephone json Telefon
Beispiel: (11) 3230-6255
Format: Varchar (32)
* Feld erforderlich < /td>

customer_telephone_commercial json kommerzielles Telefon
Beispiel: (11) 3230-6255
Format: Varchar (32) < /td>

customer_telephone_mobile json Telefon mobil
Beispiel: (11) 3230-6255
Format: Varchar (32) < /td>

Skype json Skype -Name
Format: varchar (32) < /td>

msn json msn name
Format: varchar (32) < /td>

customer_fax json Fax Telefon
Beispiel: (11) 3230-6255
Format: Varchar (32) < /td>

customer_newsletter json Verwenden Sie 1 bis Ja oder 0 bis Nein
Nur Zahl ist erforderlich
Format: int (1)
* Feld erforderlich < /td>

customer_groups_id json Überprüfen Sie die API, um die Liste der Kundengruppen zu erhalten

customer_language json

Englisch, Spanisch, Japanisch oder Portugiesisch
* Feld erforderlich < /p>

customer_gender json m oder f
* Feld erforderlich < /td>

customer_dob json dd/mm/jyyy
* Feld erforderlich

Eintrag_street_address json Straßenadresse
Format: varchar (64)
* Feld erforderlich < /td>

Eintragung_Number json

Nummer Straßenadresse
Nur Nummer erforderlich
* Feld erforderlich < /td>

Eintrag_completion json Fertigstellung Straßenadresse

Eintrag_Suburb json Vorort

Eintrag_Postcode json Postcode
Es ist nur Nummer erforderlich
* Feld erforderlich < /td>

Eintragung_City json Stadt
Es ist nur Text erforderlich
* Feld erforderlich < /td>

Eintragung_State json Überprüfen Sie die API, um die Statusliste zu erhalten.
* Erforderliches Feld < /td>

Eintrag_country_id json Überprüfen Sie die API, um die Liste der Landes zu erhalten

Eintrag_rg json rg

Eintrag_cpf json cpf

Eintragung_Company json Firmenname

Eintrag_cnpj json cnpj

Eintrag_ie json ie

person_kind json pj oder pf
Format: varchar (2)
* Feld erforderlich < /td>

PHP -Probe

 // Muster hinzufügen Kunden hinzufügen

$ Url = $ tabain_url. ' /api_customers.php? Action = add_customers ' ;;

$ data = array ("Customs_firstname" = & gt; "Kunden FirstName", // Kunden FirstName * Feld erforderlich
"Customs_LastName" = & gt; "Lastname -Kunden", // Kunden LastName * Field erforderlich
"Customer_email_address" = & gt; "E -Mail@mformula.com.br", // E -Mail -Adresse * Feld erforderlich
"Customer_password" = & gt; "Test", // Passwort * Feld erforderlich
"Customer_telephone" = & gt; "(11) 3230-6255", // Telefon Beispiel: (11) 3230-6255 * Feld erforderlich
"COPPER_TELEPHONE_COMMERCIAL" = & GT; "(11) 3230-6255", // kommerzielles Telefon Beispiel: (11) 3230-6255
"Customer_telephone_mobile" = & gt; "(11) 3230-6255", // Telefon mobiles Beispiel: (11) 3230-6255
"Skype" = & gt; "", // Skype Name
"msn" = & gt; "", // msn
"Customer_fax" = & gt; Beispiel: (11) 3230-6255 // Fax Telefon.
"Customer_Newsletter" = & gt; "1", // Verwenden Sie das Feld 1 bis Ja oder 0 bis (Es ist nur eine Zahl erforderlich) * Feld erforderlich
"Customer_groups_id" = & gt; "", // Überprüfen Sie die API, um die Liste der Kundengruppen zu erhalten
"Customer_Language" = & gt; "Portugiesisch", // Englisch, Spanisch, Japanisch oder Portugiesisch * Feld erforderlich
"COPPER_GENDER" = & GT; "m", // m oder f * Feld erforderlich
"COPPER_DOB" = & GT; "01/02/1980", // dd/mm/yjyy * Feld erforderlich
"Eintrag_Street_Address" = & gt; "Av Paulista", // Straßenadresse * Feld erforderlich
"Eintrag_Number" = & gt; "1500", // Nummer Straßenadresse * Feld erforderlich
"Eintrag_Completion" = & gt; "", // Abschluss Straßenadresse
"Eintrag_Suburb" = & gt; "Gärten", // Vorort
"Eintrag_Postcode" = & gt; "04206000", // Postleitzahl
"Eintrag_City" = & gt; "Sao Paulo", // Stadt * Feld erforderlich
"Eintrag_State" = & gt; "Sao Paulo", // Überprüfen Sie die API, um die Liste des Zustands * zu erhalten *
"Eintrag_country_id" = & gt; "30", // Überprüfen Sie die API, um die Liste des Landes zu erhalten
"Eintrag_Rg" = & gt; "", // rg
"Eintrag_CPF" = & gt; "28240621856", // CPF
"Eintrag_company" = & gt; "", // Name der Firma
"Eintrag_cnpj" = & gt; "", // cnpj
"Eintrag_ie" = & gt; "", // dh
"Person_kind" = & gt; "Pf" // PJ oder Pf * Feld erforderlich
);

$ data_string = json_encode ($ date);

$ Ch = curl_init ($ url);
Curl_setopt ($ ch, curlopt_customrequest, "post");
Curl_setopt ($ ch, curlopt_postfields, $ data_string);
Curl_setopt ($ ch, curlopt_returntransfer, true);
curl_setopt ($ ch, curlopt_sl_verifypeer, false);
Curl_setopt ($ ch, curlopt_httpHeader, Array (Array (
' Inhaltstyp: Anwendung/JSON ',,
"Cache-Control: No-Cache",
' Usuario1: ' . Basis64_CODE ($ Usuario1),
' Passwort1: ' . Basis64_CODE ($ password1),
' Inhaltslänge: ' . Strlen ($ data_string))))
);

$ result = curl_exec ($ ch);
Curl_close ($ ch);

print_r ($ result);

// Beispiel für Kunden hinzufügen eof

Rückgabefehler:

Code
Nachricht < /p>

Erfolgserfolg:

Code
id
Nachricht < /p>

Schreibe einen Kommentar 0