Skip to main content

Operation

iduuid

The ID of the operation

referenceTransactionOperationIduuidnullable

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.

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]

errorCodestringnullable

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

createdAtdate-time

The time of creation

finalizedAtdate-timenullable

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

Operation
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"referenceTransactionOperationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"amount": 0,
"state": "PROCESSING",
"transactionId": "LDG7M4WW44G",
"type": "AUTHORIZATION",
"errorCode": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"finalizedAt": "2024-07-29T15:51:28.071Z"
}