External order information Via Rest

Tags

About 

This page discusses how to tell us about your orders that take place on other sites. While it's not necessary you share this information with us, it helps our algorithms under stand your products and customers better.

X-CSRF Token

To get and use your you API you need to login and user your X-CSRF Token. Please visit here for more information

Add external order information Via Rest

Address

POST

 

https://tejo.ca/cosmetic_company_controls/external_order/RESTAPI

 

Here is a list of all possible fields. All feilds are optional.

Field NameDescription
field_address

uses the following feilds (all text) none required:

langcode
country_code              : 2 letter country code.
administrative_area    : Province/state/terrritory
locality
dependent_locality
postal_code
sorting_code
address_line1
address_line2
organization

field_brand_nodebrand id that is provided to you (to help distinguish which retailer created the sale)
field_countrystring, country name
field_emailstring, consumer e-mail
field_product_boughtarray of product variation ids
field_refferal_idany refferal id (from Tejo) that generated sale
field_time_leave blank to use current time. else format : yyyy-mm-dd hh:mm:ss

 

This will just return the word "success" if everything went well.

 

 

Tejo runs on Drupal 8. You can always consult D8 documentation for more information.