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

Post: http://www.namedoseusiten.com.br/api_products_others.php?action=add_cfop

Header Parameter Format
Usuario1 Base64_encode ()
password1 Base64_encode ()

Parameter Format Beschreibung cfop_id json id von CFOP
Format: int (11)
* Feld erforderlich < /td> cfop_name_text json

Hauptname von CFOP
Format: varchar (255)
* Feld erforderlich < /p> cfop_code json Code von CFOP
Format: varchar (255)
* Feld erforderlich < /td>

PHP -Probe

 // Beispiel bearbeiten CFOP
 
 $ Url = $ tabain_url. ' /api_products_ots.php? Action = edit_cfop ' ;;

 $ data = array ("cfop_id" = & gt; "id of cfop", // id des CFOP * -Feldes gemeldet
 "cfop_name_text" = & gt; "Hauptname von CFOP", // Hauptname des Feldes CFOP * erforderlich
 "cfop_code" = & gt; "Code von CFOP" // Code des CFOP * -Feldes 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 bearbeiten CFOP EOF 

Rückgabefehler:

Code
Nachricht < /p>

Erfolgserfolg:

Code
id
Nachricht < /p>

Post: http://www.namedoseusiten.com.br/api_products_others.php?action=add_cfop


Header Parameter Format
Usuario1 Base64_encode ()
password1 Base64_encode ()

Parameter Format Beschreibung

cfop_id json id von CFOP
Format: int (11)
* Feld erforderlich < /td>

cfop_name_text json

Hauptname von CFOP
Format: varchar (255)
* Feld erforderlich < /p>

cfop_code json Code von CFOP
Format: varchar (255)
* Feld erforderlich < /td>

PHP -Probe

 // Beispiel bearbeiten CFOP

$ Url = $ tabain_url. ' /api_products_ots.php? Action = edit_cfop ' ;;

$ data = array ("cfop_id" = & gt; "id of cfop", // id des CFOP * -Feldes gemeldet
"cfop_name_text" = & gt; "Hauptname von CFOP", // Hauptname des Feldes CFOP * erforderlich
"cfop_code" = & gt; "Code von CFOP" // Code des CFOP * -Feldes 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 bearbeiten CFOP EOF

Rückgabefehler:

Code
Nachricht < /p>

Erfolgserfolg:

Code
id
Nachricht < /p>

Schreibe einen Kommentar 0