Skip to content

Update Order

Request

Updates existing GOPACS order by id.

Security
api-key
Path
idstringrequired
Bodyapplication/jsonrequired
quantitynumberrequired

The quantity can not be negative and 0. Also the decimal limit of the quantity is 1. The capacity is required field.

Example:2
pricenumberrequired

The price is required field.

Example:35
eanstringrequired

The ean is required field.

Example:871685920001768800
metaDataobject
Example:
{ "key1": "value1", "key2": "value2" }
customExpirationTimeinteger, (int64)

Custom expiration time of an order. If no value is provided then the order will expire 15 minutes before the start time. The time must be a time in the future and must not be later than 15 minutes before the start time. The time provided must be a multiple of 15 minutes. For example 03:00, 03:15, 03:30 and 03:45.

Example:1465682400000
marketBasedbooleanrequired

The markedBased field is mandatory

facilityTypestring

The facilityType field is required when marketBased is set to false.

Example:"B01"
contractIdstring

The contractId field is not mandatory

usageFractionnumber, [ 0 .. 1 ]

The usageFraction field is not mandatory

Example:0.28
PUT
/public-api/2.0/electricity/orders/gopacs/{id}
curl -i -X PUT \
  'https://acc-trading.etpa.nl/public-api/2.0/electricity/orders/gopacs/{id}' \
  -H 'Content-Type: application/json' \
  -H 'api_key: YOUR_API_KEY_HERE' \
  -d '{
    "quantity": 2,
    "price": 35,
    "ean": 871685920001768800,
    "metaData": {
      "key1": "value1",
      "key2": "value2"
    },
    "customExpirationTime": 1465682400000,
    "marketBased": true,
    "facilityType": "B01",
    "contractId": "string",
    "usageFraction": 0.28
  }'

Responses

OK

Bodyapplication/json
hrefstring
hreflangstring
titlestring
typestring
deprecationstring
profilestring
namestring
templatedboolean
Response
{ "href": "string", "hreflang": "string", "title": "string", "type": "string", "deprecation": "string", "profile": "string", "name": "string", "templated": true }