How to get the list the number of an order via API?

URL: http://www.namedoseusite.com.br/api_orders.php?oid=ordernumber&



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. = ' & amp; oid = ' $ oid;
}

$ URL = $ tabain_url. ' /api_orders.php? Action = orders_id '.

$ 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),
' password1: ' . base64_encode ($ password1)))
);

$ 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 < br /> reorder
cc_type
cc_owner
custom_id
custom_RG
customers_name
custom_street_address
customer customers_completion Customers_Suburb
custom_city
custom_state
custom_country
custom_postcode
custom_cnpj
Customers_nompany
Customers_Telephone
Customer
custom s_telephone_commercial << br /> custom_telephone_mobile
custom_skype
custom_email_address
delivery_RG
Delivery_Name
deliveret_address
deliver
deliverction
Completion Y_SUBURB < br /> delivery_city
delivery_state
delivery_country
delivery_postcode
delivery_cnpj
delivery_company
quantity_discount
discount_coupon
Custom < br /> Products- & gt; qty
Products- & gt; name
Products- & gt; final_price
Products- & gt; attributes- & gt; ; VALUE
Products- & gt; Attributes- & gt; price_prefix
Products- & gt; -& gt; text

Leave a Reply 0