PATCH
/
v1
curl --request PATCH \
  --url https://integration-api-cat2./%7B{environment}%7D.ext.%7B{realm}%7D.cia.enfuce.com/purchase-detail/v1/ \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "amount": {
      "amount": 3.14,
      "currency": "EUR"
    },
    "code": "<string>",
    "description": "<string>",
    "externalId": "<string>",
    "matchingAttributes": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "promptedData": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "quantity": 123,
    "transactionId": "<string>",
    "type": "FUEL",
    "unitPrice": 123,
    "VAT": {
      "percentage": 123,
      "amount": {
        "amount": 3.14,
        "currency": "EUR"
      }
    },
    "unit": "KG",
    "id": "<string>"
  }
]'
{
  "description": "<string>",
  "ids": [
    {
      "externalId": "<string>",
      "id": "<string>"
    }
  ]
}

Query Parameters

auditUser
string
required

The audit user to log the request

Body

application/json · object[]

Request information needed to update the purchase detail

Response

200
application/json

Successfully updated

The response is of type object.