Looking for ePay classic docs? Go to docs.epay.dk
ePay documentationDocsePay documentation

Operation

idstring

The ID of the operation

Format:
uuid
referenceTransactionOperationIdstring
Nullable

The ID of another operation that this operation depends on.
For example, a REFUND must reference the CAPTURE it is refunding.
Other operation types may also reference a prior operation if required.

Format:
uuid
amountinteger

The operation amount in minor units (e.g., 1095 = 10.95 DKK)

statestring

The state of the operation.

  • PROCESSING: The operation has been received and is being handled.
  • SUCCESS: The operation completed successfully.
  • FAILED: The operation could not be completed. See errorCode for rejection reason.
Possible values:
"PROCESSING""SUCCESS""FAILED"
transactionIdstring

The ID of the associated transaction

Example:
"LDG7M4WW44G"
typestring

The type of operation.

  • AUTHORIZATION: Reserve funds on the payment method.
  • CAPTURE: Transfer previously authorized funds.
  • SALE: A combined operation that performs both AUTHORIZATION and CAPTURE in a single step.
  • REFUND: Return funds to the customer.
  • VOID: Releases previously authorized funds.
  • PAYOUT: Transfer funds to a recipient.

SALE operations are only available for certain acquirers and will be used when available and instant capture is enabled.

Possible values:
"AUTHORIZATION""SALE""CAPTURE""REFUND""VOID""PAYOUT"
errorCodestring
Nullable

When state is equal to FAILED, this will contain the explaining error code.

createdAtstring

The time of creation

Format:
date-time
finalizedAtstring
Nullable

The timestamp when the operation reached a terminal state.
An operation is terminal once it transitions from PROCESSING to either SUCCESS or FAILED.

Format:
date-time
Operation
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "referenceTransactionOperationId": "09c60a7b-397b-4797-a5c8-792dc558cbed",  "amount": 0,  "state": "PROCESSING",  "transactionId": "LDG7M4WW44G",  "type": "AUTHORIZATION",  "errorCode": "string",  "createdAt": "2019-08-24T14:15:22Z",  "finalizedAt": "2019-08-24T14:15:22Z"}