Difference between revisions of "Orders"

From Advice Local Wiki
Jump to: navigation, search
(Create an Order)
(Create an Order)
Line 1: Line 1:
 
== Create an Order ==
 
== Create an Order ==
You must [Trigger a Report] first before creating an order.
+
You must [Trigger a Report] before creating an order.
 
=== API Endpoint ===
 
=== API Endpoint ===
 
<syntaxhighlight lang="html">
 
<syntaxhighlight lang="html">
Line 8: Line 8:
 
=== Example Request ===
 
=== Example Request ===
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
 +
POST /legacyorders HTTP/1.1
 +
Host: p.lssdev.com
 +
x-api-token: YOUR_API_KEY
 +
Content-Type: application/json
  
 +
 +
{"client":12345,"products":[3021,3047,3063,3230]}
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 14:01, 13 December 2017

Create an Order

You must [Trigger a Report] before creating an order.

API Endpoint

http://p.lssdev.com/legacyorders

Example Request

POST /legacyorders HTTP/1.1
Host: p.lssdev.com
x-api-token: YOUR_API_KEY
Content-Type: application/json


{"client":12345,"products":[3021,3047,3063,3230]}

Example Response