Skip to main content

List orders

Returns the account's paginated orders in reverse order (most recent first).
Query Parameters
limitstring^\d+$

Maximum number of resources to return, between 1 and 100.


afterstring

A cursor for use in pagination.

after is an object ID that defines your place in the list.

For instance, if you make a list request and receive 100 objects, ending with foo, your subsequent call can include after=foo in order to fetch the next page of the list.


offset_link_idstring

Filter orders by offset_link_id.

If offset_link_id is set, the response will only include orders belonging to the particular offset link.

Returns
has_morebooleanrequired

Whether or not there are more elements available after this set. If false, this set comprises the end of the array.


dataarray of allOfrequired

Paginated Order objects ordered by creation date descending.

  • GET /orders
  • curl 'https://api.lune.co/v1/orders' \
      -H 'Authorization: Bearer <API_KEY>'
  • Response
  • {
      "has_more": true,
      "data": [
        {
          "id": "va1BER4JZqnzPkYxJgALg0GeQDoXlWO5",
          "idempotency_key": "5bd808a954e",
          "type": "quantity",
          "status": "complete",
          "currency": "GBP",
          "offset_cost": "7176.00",
          "total_cost": "7696.00",
          "commission": "520.00",
          "quantity": "1040",
          "created_at": "created_at",
          "bundles": [
            {
              "bundle_id": "va1BEV2VZqnzPkYxJgALg0GeQDoXlWO5",
              "bundle_name": "Latin America Forestry",
              "primary_image": "https://assets.lune.co/bundles/latin-america-forestry.png",
              "quantity": "1040",
              "unit_price": "6.90",
              "gross_unit_price": "7.90",
              "offset_cost": "7176.00",
              "insufficient_available_quantity": true
            }
          ],
          "projects": [
            {
              "quantity": "600",
              "unit_price": "6.90",
              "offset_cost": "4140.00",
              "project_id": "gMbvJoOaX54V1wpNaRY8dWDGQ7m239Bx",
              "project_name": "Madre De Dios",
              "project_type": "Forest Conservation",
              "project_slug": "madre-de-dios"
            },
            {
              "quantity": "440",
              "unit_price": "6.90",
              "offset_cost": "3036.00",
              "project_id": "xe1BEV2VZqnzPkYxJgALg0GeQDoXlWO5",
              "project_name": "Alto Mayo",
              "project_type": "Forest Conservation",
              "project_slug": "alto-mayo"
            }
          ],
          "certificate": "https://api.lune.co/v1/orders/08QD7GPaBx5b6Y60ndAONXLvrZljRE2e/certificate",
          "offset_link_id": "UwjfkXjfksoHXzA1qjANL58GhjwqkxpB",
          "email": "[email protected]",
          "requested_quantity": "1045",
          "requested_value": "7700",
          "estimate_id": "90ng23MKvLqbkpMwMw7yMBD4wJQrV6O6"
        }
      ]
    }