Luxor Documentation Hub Logo
Energy/API Documentation/Contracts

Create a new contract

Creates a new contract for a site with the provided details.

POST
/api/v1/energy/contracts

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
contractRequiredContractCreate
curl -X POST "https://app.luxor.tech/api/v1/energy/api/v1/energy/contracts" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "contract": {
      "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
      "origin_iso_name": "string",
      "origin_settlement_point_name": "string",
      "type": "PPA",
      "subtype": "FIXED",
      "quantity_kw": "string",
      "price": "string",
      "strike_quantity_kw": "string",
      "strike_price": "string",
      "start_time": "2019-08-24T14:15:22Z",
      "end_time": "2019-08-24T14:15:22Z",
      "eligible_hours": [
        0
      ],
      "counterparty": "string",
      "comments": "string"
    }
  }'

Successful Response

{
  "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
  "origin_iso_name": "string",
  "origin_settlement_point_name": "string",
  "type": "PPA",
  "subtype": "FIXED",
  "quantity_kw": "string",
  "price": "string",
  "strike_quantity_kw": "string",
  "strike_price": "string",
  "start_time": "2019-08-24T14:15:22Z",
  "end_time": "2019-08-24T14:15:22Z",
  "eligible_hours": [
    0
  ],
  "counterparty": "string",
  "comments": "string",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "url": "string"
}