- Home
- /
- MFORMULA ELEKTRONISCHER KATALOG
- /
- API
- /
- Page 2
URL: http://www.namedoseusiten.com.br/api_customers.php?cid=& such = & amp; date_from = & amp; date_to = & amp; status = & am;
Suche nach Kundenname, Nachname oder E -Mail -Adresse PHP -Probe: return: Hinweis: Limit von 1000 Kunden pro Konsultation customer_id
Parameter
Format
Beschreibung
Suche
Get
Es ist nur Text erforderlich < /p>
date_from
Get
Datum von für Filterbestellungen
Beispiel: DD/MM/JJJJ
date_to
Get
Datum für Filterbestellungen
Beispiel: DD/MM/JJJJ
Status
Get
Status für Filterbestellungen
1 = aktiv oder 0 = inaktiv
Nur Zahl ist erforderlich < /td>
customer_groups_id
Get
Kundengruppen für Filterbestellungen
Überprüfen Sie die API, um die Kundengruppen -ID zu erhalten.
Nur Nummer ist erforderlich < /td>
customer_language
Get
Englisch, Spanisch, Japanisch oder Portugiesisch
// Beispielkundenliste
$ add_query_order = ' ' ;;
$ Search = ' ' ;;
if ($ search! = ' ') {
$ add_query_order.
}
$ date_from = ' ' ;;
if ($ date_from! = ' ') {
$ add_query_order.
}
$ date_to = ' ' ;;
if ($ date_to! = ' ') {
$ add_query_order.
}
$ status = ' ' ;;
if ($ status! = ' ') {
$ add_query_order. = ' & amp; status = ' $ status;
}
$ Customs_Groups_id = ' ' ;;
if ($ Customs_groups_id! = ' ') {
$ add_query_order. = ' & amp; Customs_groups_id = '
}
$ Customs_Language = ' ' ;;
if ($ Customs_Language! = ' ') {
$ add_query_order.
}
$ Url = $ tabain_url. ' /api_customers.php? Action = Customs ' $ add_query_order;
$ Ch = curl_init ($ url);
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)))
);
$ result = curl_exec ($ ch);
Curl_close ($ ch);
print_r ($ result);
// Beispielkunden listen eof auf
customer_lastname
customer_firstname
DATE_ACCOUNT_Created
Empfehlung
customer_status < /p>
URL: http://www.namedoseusiten.com.br/api_customers.php?action=customers_groups
PHP -Probe:
// Beispielliste für Zollpräparate $ Url = $ tabain_url. ' /api_customers.php? Action = customer_groups ' ;; $ Ch = curl_init ($ url); 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))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Probe Kundengruppenliste EOF
return:
id
Text
< /p>
URL: http://www.namedoseusiten.com.br/api_customers.php?cid=customernumber&
Anzahl der Kunden -ID PHP -Probe return: Eintragung_Person_kind
Parameter
Format
Beschreibung
cid
Get
Die Zahl ist nur erforderlich
Format: int (11)
* Feld erforderlich < /p>
// Beispielliste für Zoll-Zoll-ID
$ add_query_order = ' ' ;;
$ cid = ' ' ;;
if ($ cid! = ' ') {
$ add_query_order. = ' & amp; cid = ' $ cid;
}
$ Url = $ tabain_url. ' /api_customers.php? Action = customer_id ' $ add_query_order;
$ Ch = curl_init ($ url);
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)))
);
$ result = curl_exec ($ ch);
Curl_close ($ ch);
print_r ($ result);
// Beispiele für Zoll -ID -Liste EOF
customer_gender
customer_firstname
Eintrag_RG
customer_email_address
Eintrag_CNPJ
Eintragung_ie
Eintriebseintrieb
Eintragung_Postcode
/> Eintrag_Street_address
Eintrag_Number
Eintragung_Completion
Vorort
Eintragsstate
customer_telephone
Telefon_Commercial
customer_telephone_telephone_telephone_telephone_telephone_ Mobile_Telephone
mobile_mobile_mobile_fax
mobile_mobile_fax
mobile_mobile_fax
mobile_mobile_fax
mobile_mobile_fax
mobile_fax
mobile_mobile_fax BR /> MSN
COSPAL_NEWSLETTER
COSPALS_GROUPS_ID
Sprache < /p>
Post: http://www.namedoseusiten.com.br/api_products_others.php?af?
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
Anzahl von Products_id
Format: int ()
* Feld erforderlich < /p>
Anzahl der products_options_id
Format: int ()
* Feld erforderlich < /p>
Anzahl der products_options_values_id
Format: int ()
* Feld erforderlich < /p>
Hinweis: Bei der Bearbeitung müssen Sie alle Attribut- und Werteoptionen aufgrund aller Attribute und Werte im Bearbeitungsprozess erneut senden.
PHP -Probe
// Beispiele für Produktoptionen und Werte für Beispiele hinzufügen Listenliste hinzufügen $ Url = $ tabain_url. ' /api_products_ors.php? Action = add_products_options_values ' ;; $ dATA_OPTIONS_VALUES [0] = Array ("products_options_values_id" = & gt; "35" ); $ DATA_OPTIONS_VALUES [1] = Array ("products_options_values_id" = & gt; "30" ); $ DATA_OSSES [0] = array ("products_options_id" = & gt; "4" "Products_options_values" = & gt; $ dATA_OPTIONS_VALUES ); $ data = array ("products_id" = & gt; "430", // Produkt -ID (nur die Zahl ist erforderlich) * Feld erforderlich "Products_options" = & gt; $ Data_osses ); $ 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); // Beispielliste Produktoptionen und Werte 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 erforderlichEintrag_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 eofRückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>URL: http://www.namedoseusiten.com.br/api_customers.php?action=customers_country
PHP -Probe:
// Beispielkunden Länderliste $ Url = $ tabain_url. ' /api_customers.php? Action = customer_country ' ;; $ Ch = curl_init ($ url); 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))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Probe Kunden Länderliste eof
return:
country_id
Country_Name < /p>Post: http://www.namedoseusiten.com.br/api_products_others.php?action=add_suppliers
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
Hauptname der Lieferanten
Format: varchar (255)
* Feld erforderlich < /p>
Format: Text
* Feld erforderlich < /td>
PHP -Probe
// Probe Addieren Sie Lieferanten hinzufügen $ Url = $ tabain_url. ' /api_products_ors.php? Action = add_suppliers ' ;; $ data = array ("Lieferanten_Group_Name" = & gt; "Hauptname der Lieferanten", // Hauptname des Feldes * Feld erforderlich "Lieferanten_Description" = & gt; "Beschreibung der Lieferanten" // Beschreibung des Lieferanten * 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); // Probe addieren Lieferanten EOF
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
id
Nachricht < /p>URL: http://www.namedoseusiten.com.br/api_customers.php?country_id=country_id&
Parameter Format Beschreibung country_id Get Anzahl der Land -ID
Überprüfen Sie die API, um die Liste der Landes zu erhalten.PHP -Probe:
// Beispielliste für Zollzustand $ add_query_order = ' ' ;; $ country_id = ' ' ;; if ($ country_id! = ' ') { $ add_query_order. } $ Url = $ tabain_url. ' /api_customers.php? Action = Customs_State ' $ Ch = curl_init ($ url); 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))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Probe Kunden staatliche Liste eofreturn:
id
text < /p>Post: http://www.namedoseusiten.com.br/api_products_others.php?action=edit_suppliers
Header Parameter | Format |
Usuario1 | Base64_encode () |
password1 | Base64_encode () |
Format: int (11)
* Feld erforderlich < /td>
Hauptname der Lieferanten
Format: varchar (255)
* Feld erforderlich < /p>
Format: Text
* Feld erforderlich < /td>
PHP -Probe
// Beispiele für die Bearbeitungslieferanten bearbeiten $ Url = $ tabain_url. ' /api_products_ors.php? Action = edit_suppliers ' ;; $ data = array ("Lieferanten_ID" = & gt; "ID der Lieferanten", // ID des Lieferanten * Feld erforderlich "Lieferanten_Group_Name" = & gt; "Hauptname der Lieferanten", // Hauptname des Lieferanten * Feld erforderlich "Lieferanten_Description" = & gt; "Beschreibung der Lieferanten" // Beschreibung des Lieferanten * 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); // Beispiele bearbeiten Lieferanten eof
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg: