Skip to content

Orders v2

The following things are changed from version 1:

  • You will get an error code and an error message when the order is incorrect.
  • You will get an orderId back from the post request to check the status of your order.

NOTE: "Intraday" orders will be rejected from this endpoints when "XBID" functionality is enabled. Creating "Intraday" orders with this endpoint should be only done when XBID platform is down.

Get Order

Request

Get order by id.

Security
api-key
Path
idstringrequired
GET
/public-api/2.0/electricity/orders/{id}
curl -i -X GET \
  'https://acc-trading.etpa.nl/public-api/2.0/electricity/orders/{id}' \
  -H 'api_key: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
idstring
orderTypestring
Enum:"BUY""SELL""DIRECT"
participantIdstring
individualIdstring
productTypestring
Enum:"ELECTRICITY""GAS"
typestring
quantitynumber
originalQuantitynumber
createdinteger, (int64)
Example:1517406300000
priorityinteger, (int64)
Example:1517406300000
startinteger, (int64)
Example:1517406300000
endinteger, (int64)
Example:1517406300000
timeblockstring
Enum:"BASELOAD""PEAK""OFFPEAK""INTRADAY""EXPOST""GOPACS"
pricenumber
eanstring
customExpirationTimeinteger, (int64)
Example:1517406300000
metadataobject
durationnumber
allowedToBeUsedForIdconsboolean
totalPricenumber
Response
{ "id": "string", "orderType": "BUY", "participantId": "string", "individualId": "string", "productType": "ELECTRICITY", "type": "string", "quantity": 0, "originalQuantity": 0, "created": 1517406300000, "priority": 1517406300000, "start": 1517406300000, "end": 1517406300000, "timeblock": "BASELOAD", "price": 0, "ean": "string", "customExpirationTime": 1517406300000, "metadata": { "property1": "string", "property2": "string" }, "duration": 0, "allowedToBeUsedForIdcons": true, "totalPrice": 0 }