Skip to content

Get order by ID

Request

Returns a JSON with order records.

How to use: provide the product type and an order id of the order you want to find. Use the product type ALL to get the order regardless of the order type.

Path
productstringrequired

Product scope. "XBID" covers XBID and Intraday; "EXPOST", "GOPACS" and "INTRADAY" each cover only themselves; ALL covers every product.

Enum:"XBID""REGULAR""EXPOST""GOPACS""INTRADAY""ALL"
orderIdstring, non-emptyrequired

Identifier of the order to return.

GET
/public-api/4.0/electricity/reporting/{product}/orders/{orderId}
curl -i -X GET \
  'https://acc-trading.etpa.nl/public-api/4.0/electricity/reporting/{product}/orders/{orderId}'

Responses

Success. JSON array of the order's records; each element is either an Intraday/Ex-post order (RegularOrderDto), a Gopacs order (GopacsOrderDto) or an XBID order (XbidOrderDto).

Bodyapplication/json
Array [
One of:

Order representation for the regular (non-XBID) markets. Returned for Intraday and Ex-post orders. Extends the base order with the ean field. All base order fields also apply. Fields that are null are omitted from the response.

]
Response
[ { "id": "string", "product": "XBID", "orderType": "BUY", "participantId": "string", "participantName": "string", "individualId": "string", "individualName": "string", "orderId": "string", "originalCapacity": 0, "capacity": 0, "totalQuantity": 0, "metadata": {}, "orderStatus": "ACT", "tradeId": "string", "reverted": true, "counterpartyId": "string", "counterpartyName": "string", "duration": 0, "unitPrice": 0, "originalTotalPrice": 0, "totalPrice": 0, "created": 0, "start": 0, "end": 0, "transactionDate": 0, "customExpirationTime": 0, "basketId": "string", "executionRole": "INITIATOR", "ean": "string" } ]