1. Courses
  2. arrow-right
  3. ItemPath API
  4. arrow-right
  5. Section 2: Formatting Requests

Section 2: Formatting Requests

API calls require very particular formatting. A misplaced comma or missing bracket will return an error, and while the error message may explain the issue, you'll want to be aware of these format requirements to avoid common pitfalls.

Because arrays are used for order lines, and at least one order line is required to create an order, it's especially helpful to know how to format those requests, as well as adding order lines to existing orders.

Date formats are also useful in conjunction with the [gt] and [lt] operators you'll learn about in section 3.