How to get the list the number of a request via API?


URL: http://www.nomedoseusite.com.br/api_orders.php?oID=ORDERNUMBER&action=orders_id

Parameter Format Description
oID GET

Number of the Order ID
Only number is required
Format: bigint(11)
* FIELD REQUIRED

PHP Sample

 

	// sample list orders id
	
	$add_query_order = '';
	$oID = '12302006081624';
	if ($oID != '') {
		$add_query_order .= '&oID='.$oID;
	}
	
	$url = $domain_url . '/api_orders.php?action=orders_id'.$add_query_order;

	$ch = curl_init($url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);                                                                   
	curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                                                          
		'Content-Type: application/json',
		"Cache-Control: no-cache", 
		'Usuario1: ' . base64_encode($usuario1),
		'Senha1: ' . base64_encode($senha1))                                                                       
	);                                                                                                                   
																														 
	$result = curl_exec($ch);
	curl_close($ch);

	print_r($result);

	// sample list orders id eof

 

Return Error:

code
oID
message

Return Success:

oID
date_purchased
currency
orders_status
last_modified
total
total_shipping
shipping_method
payment_method
repayment
reorder
cc_type
cc_owner
customers_id
customers_rg
customers_cpf
customers_name
customers_street_address
customers_number
customers_completion
customers_suburb
customers_city
customers_state
customers_country
customers_postcode
customers_cnpj
customers_ie
customers_company
customers_telephone
customers_telephone_commercial
customers_telephone_mobile
customers_skype
customers_email_address
delivery_rg
delivery_cpf
delivery_name
delivery_street_address
delivery_number
delivery_completion
delivery_suburb
delivery_city
delivery_state
delivery_country
delivery_postcode
delivery_cnpj
delivery_ie
delivery_company
quantity_discount
discount_coupon
custom
products->qty
products->name
products->final_price
products->attributes->option
products->attributes->value
products->attributes->price_prefix
products->attributes->price
products->totals->title
products->totals->text

2018-08-30 13:07 MFORMULA {writeRevision}
Average rating: 0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

{debugMessages}