URL: http://www.namedoseusiten.com.br/api_ds_orders.php?action=payment_method
Header Parameter | Format |
Token | Base64_encode () |
Secret | Base64_encode () |
E -Mail | Base64_encode () |
Nur Zahl ist erforderlich < /td>
PHP -Probe:
// Beispiel Payment_Method $ Url = $ tabain_url. ' /api_ds_orders.php? Action = payment_method & amp; Country = ' $ _ Get [' Country ']; $ Data_products [0] = array ("products_id" = & gt; $ _get [' products_id '], // Beispiel: 130 (nur die Nummer ist erforderlich) * Feld erforderlich "Products_quantity" = & gt; $ _Get [' Products_quantity '] // Beispiel: 1 (nur Nummer ist erforderlich) * Feld erforderlich ); $ Data_products [1] = array ("products_id" = & gt; $ _get [' products_id1 '], // Beispiel: 130 (nur die Nummer ist erforderlich) * Feld erforderlich "Products_quantity" = & gt; $ _Get [' Products_quantity1 '] // Beispiel: 1 (nur Nummer ist erforderlich) * Feld erforderlich ); $ Data = array ("products" = & gt; $ data_products // * 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", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispiel Payment_method EOF
return:
id
text < /p>URL: http://www.namedoseusiten.com.br/api_ds_orders.php?action=calculate_shipping&amntry= l.
Header Parameter | Format |
Token | Base64_encode () |
Secret | Base64_encode () |
E -Mail | Base64_encode () |
Nur Zahl ist erforderlich < /td>
Format zu erhalten: int (11) < /td>
Nur Zahl ist erforderlich < /td>
PHP -Probe:
// Beispiel Calculate_Shipping $ Url = $ tabain_url. ' /api_ds_orders.php? Action = calculate_shipping & amp; Country = ' $ _ Get [' Country ']. ' & amp; post_code = '###### 39; post_code ']; $ Data_products [0] = array ("products_id" = & gt; $ _get [' products_id '], // Beispiel: 130 (nur die Nummer ist erforderlich) * Feld erforderlich "Products_quantity" = & gt; $ _Get [' Products_quantity '] // Beispiel: 1 (nur Nummer ist erforderlich) * Feld erforderlich ); $ Data_products [1] = array ("products_id" = & gt; $ _get [' products_id1 '], // Beispiel: 130 (nur die Nummer ist erforderlich) * Feld erforderlich "Products_quantity" = & gt; $ _Get [' Products_quantity1 '] // Beispiel: 1 (nur Nummer ist erforderlich) * Feld erforderlich ); $ Data = array ("products" = & gt; $ data_products // * 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", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispiel calculate_shipping eof
return:
id
text < /p>Post: http://www.namedoseusiten.com.br/api_ds_orders.php?action=add_orders
Header Parameter | Format |
Token | Base64_encode () |
Secret | Base64_encode () |
E -Mail | Base64_encode () |
Format zu erhalten: int (11) < /td>
Nur Zahl ist erforderlich < /td>
Format: varchar (255)
* Feld erforderlich < /td>
Format: varchar (255)
* Feld erforderlich < /td>
Format: varchar (255)
* Feld erforderlich < /td>
Format: varchar (255)
* Feld erforderlich < /td>
Format: varchar (255)
* Feld erforderlich < /td>
Format: varchar (255)
* Feld erforderlich < /td>
Format: varchar (11)
* Feld erforderlich < /td>
Format: varchar (255)
* Feld erforderlich < /td>
Format: varchar (2)
* Feld erforderlich < /td>
Format: varchar (255)
* Feld erforderlich < /td>
PHP -Probe
// Beispiel add_orders $ Url = $ tabain_url. ' /api_ds_orders.php? Action = add_orders ' ;; $ Data_products [0] = array ("products_id" = & gt; "215", // Beispiel: 130 (nur Nummer ist erforderlich) * Feld erforderlich "Products_quantity" = & gt; "1" // Beispiel: 1 (nur Zahl ist erforderlich) * Feld erforderlich ); $ Data_products [1] = array ("products_id" = & gt; "215", // Beispiel: 130 (nur die Zahl ist erforderlich) * Feld erforderlich "Products_quantity" = & gt; "1" // Beispiel: 1 (nur Zahl ist erforderlich) * Feld erforderlich ); $ Data = array ("products" = & gt; $ data_products, // * Feld erforderlich "Lieferung_firstname" = & gt; UTF8_CODE ("Name"), // Beispiel: Name (FirstName) * Feld erforderlich "Delivery_LastName" = & gt; UTF8_CODE ("Nachname"), // Beispiel: Nachname (LastName) * Feld erforderlich "lieferung_street_address" = & gt; UTF8_CODE ("Straßenadresse"), // Beispiel: Straßenadresse (Straßenadresse) * Feld erforderlich "lieferung_number" = & gt; "123", // Beispiel: 123 (Liefernummer) * Feld erforderlich "Delivery_Suburb" = & gt; UTF8_CODE ("Vorort"), // Beispiel: Vorort (Vorort) * Feld erforderlich "lieferung_city" = & gt; UTF8_CODE ("SAO PAULO"), // Beispiel: Sao Paulo (Stadt) * Feld erforderlich "Lieferung_postcode" = & gt; "04267000", // Beispiel: 04267000 (Postleitzahl) * Feld erforderlich "lieferung_country" = & gt; UTF8_CODE ("Brasilien"), // Beispiel: Brasilien (Land) * Feld erforderlich "lieferung_state" = & gt; utf8_encode ("sp"), // Beispiel: SP (Status) * Feld erforderlich "Payment_method" = & gt; "Paypal_standard", // Beispiel: paypal_standard (Zahlungsmethode) * Feld erforderlich "Shipping_method" = & gt; "Seetex" // Beispiel: SEDEX (Versandmethode) * Feld erforderlich ); $ data_string = json_encode ($ date); // print_r ($ data_string); // Sterben; $ 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", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispiel add_orders eof
Rückgabefehler:
Code
Nachricht < /p>Erfolgserfolg:
Code
products_model
products_id
Nachricht < /p>URL: http://www.namedoseusiten.com.br/api_ds_orders.php?cid=& postalcode = & am; ; Action = ordners_list
Header Parameter | Format |
Token | Base64_encode () |
Secret | Base64_encode () |
E -Mail | Base64_encode () |
Kunden -ID
Nur Nummer ist erforderlich
Überprüfen Sie die API, um die Kunden -ID zu erhalten. < /p>
Es ist nur Nummer erforderlich
Beispiel: 04267000 < /td>
Überprüfen Sie die API, um den Status zu erhalten. < /td>
Beispiel: DD/MM/JJJJ
Beispiel: DD/MM/JJJJ
PHP -Probe:
// Beispiellistenbestellungen $ add_query_order = ' ' ;; if ($ _get [' Status ']! = ' ') { $ add_query_order. } anders { $ add_query_order. = ' ' ;; } $ Url = $ tabain_url. ' /api_ds_orders.php? Action = orders_list ' $ 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", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispiellistenbestellungen EOF
return:
ordners_id
customer_name
customer_email_address
order_total
DATE_PURCHBASIS
ordners_status_name
payment_method < /p>URL: http://www.namedoseusiten.com.br/api_ds_orders.php?oid=ordernumber&
Header Parameter | Format |
Token | Base64_encode () |
Secret | Base64_encode () |
E -Mail | Base64_encode () |
Anzahl der Bestell -ID
Die Zahl ist nur erforderlich
Format: Bigint (11)
* Feld erforderlich < /p>
PHP -Probe
// Beispiellistenbestellungen ID ID $ add_query_order = ' ' ;; if ($ _get [' oid ']! = ' ') { $ add_query_order. = ' & amp; oid = ' } $ Url = $ tabain_url. ' /api_ds_orders.php? Action = Bestellungen_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", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispiellistenbestellungen ID EOF
Rückgabefehler:
Code
oid
Nachricht < /p>Erfolgserfolg:
oid
date_purchased
Währung
orders_status
last_modified
Total
Total_Shipping
Shipping_Method
Custom_RG
customer_cpf < br /> customs_name
Customers_street_address
custom_number
custom_completion
Customers_city
customer
custom_postcode
Customers_postcode
Customers_CNPJ < br /> Customs_ie
Custom_company
Custom_telephone
Custom_telephone_Commercial
Custom_Telephone_Mobile
customer_skype
lieferung_cpf
lieferung_name
lieferung_street_address
lieferung
lieferung
lieferung
lieferung
lieferung
/> lieferung_completion
lieferung_suburb
lieferung_city
lieferung_state
lieferung_country
lieferung_postcode
lieferung_cnpj
lieferung_company
quantitus_discount
Rabatt_coupon
/> Custom
Produkte- & gt;- & gt; Option
Produkte- & gt; Attribute- & gt; Wert
Produkte- & gt;URL: http://www.namedoseusiten.com.br/api_ds_products_ots.php?action=countries
Header Parameter | Format |
Token | Base64_encode () |
Secret | Base64_encode () |
E -Mail | Base64_encode () |
PHP -Probe:
// Beispielland $ Url = $ tabain_url. ' /api_ds_products_ors.php? Action = Länder ' ;; $ 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", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispiele für Länder
return:
id
text < /p>
URL: http://www.namedoseusiten.com.br/api_ds_products_ots.php?action=zones
Header Parameter | Format |
Token | Base64_encode () |
Secret | Base64_encode () |
E -Mail | Base64_encode () |
PHP -Probe:
// Beispielzonen $ Url = $ tabain_url. ' /api_ds_products_ors.php? Action = Zones ' ;; $ data = array ("country_id" = & gt; $ _get [' Country_id '] // Country ID (nur die Zahl wird bewertet) * 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", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispielzonen EOF
return:
id
text < /p>