PATCH
/
v1
/

Query Parameters

auditUser
string
required

The audit user to log the request

Body

application/json · object[]
amount
object

Purchase amount of given purchase detail.

code
string

Issuer defined code for purchase detail. Code can e.g. represent a product category like “newspapers”. Code is utilised if item is processed through repricing.

description
string

Issuer defined description of purchase detail. The description is set when creating purchase details and is available when fetching purchase details via API and in the invoicing file.

externalId
string

Issuer defined external id. Issuer can store an external id to each purchase detail as a common key between Enfuce and issuer systems.

matchingAttributes
object[]

Attributes that enable Enfuce to link purchase detail to a financial transaction. The most suitable matching attributes are agreed with issuer during implementation.

promptedData
object[]

Prompted data linked to the purchase detail

quantity
number

The quantity purchased. This can be a number or in combination with unit define e.g. how many liters or kilograms have been purchased.

transactionId
string

Id of the financial transaction the purchase detail is linked to. The transactionId is updated by Enfuce after a match is found between financial transaction and purchase detail.

type
enum<string>

The type of item

Available options:
FUEL,
OTHER
unitPrice
number

Price per unit

VAT
object

The applicable value-add tax of the purchase detail.

unit
enum<string>

Unit of measurement of quantity. Obsolete in cases where the purchase detail represents one item or a number of the same items.

Available options:
KG,
KWH,
LITRE,
GALLON
id
string

Unique id that represents this purchase detail

Response

200 - application/json
description
string

Short description of the result of the action

ids
object[]
required

Ids of the purchase details that has been created or updated.