worldline Direct
Sign up

Creating the initial transaction is just the start of a transaction's life cycle. Following-up on existing transactions (i.e. by capturing an authorisation or performing a refund) is part of your daily business routine.

Use our dedicated endpoints or the Merchant Portal to perform maintenance operations on existing transactions for any given scenario.

  • Depending on the transaction's status, different maintenance operations are possible. Refer to the transaction’s status to learn which options you have.
  • All samples feature the bare minimum of mandatory/strongly recommended parameters. Find detailed information about these objects and properties in our API reference.
  • You can perform all maintenance operations described below manually in the Merchant Portal. Read the dedicated chapter in our Merchant Portal guide to learn more.

Capture payments

If you have initially processed your transactions as authorisations (which have status.Output.statusCode=5), you need to capture them eventually to receive the funds. To do so, send a request to our dedicated CapturePayment endpoint:

{
  "amount": 1000,
  "isFinal": false
}
Property Description
{merchantId} Your account on our platform through which the initial transaction was processed.
Add it as a path parameter to the CapturePayment endpoint Url.
{paymentId} The payment.Id of the initial transaction which our platform returned in the CreatePayment/GetHostedCheckout request.
Add it as a path parameter to the CapturePayment endpoint Url.
amount The gross amount you want to capture for the original authorisation.
If left empty, our platform will capture the full original amount.
isFinal

Define whether to close the transaction for subsequent captures if you only partially capture the amount.

  • "true": The transaction will be closed for any further capture requests.
  • "false": The transaction will remain open for subsequent (partial) capture requests for uncaptured amounts.

If left empty, the default value is "false".

Cancel payments

If you have initially processed your transactions as authorisations (which have status.Output.statusCode=5), you can cancel them to unblock the funds. To do so, send a request to our dedicated CancelPayment endpoint:

{
  "amountOfMoney": {
    "amount": 1000,
    "currencyCode": "EUR"
  },
  "isFinal": false
}
Property Description
{merchantId} Your account on our platform through which the initial transaction was processed.
Add it as a path parameter to the CancelPayment endpoint Url.
{paymentId} The payment.Id of the initial transaction which our platform returned in the CreatePayment/GetHostedCheckout request.
Add it as a path parameter to the CancelPayment endpoint Url.
order.amountOfMoney
     amount
     currencyCode

amount: The gross amount you want to cancel for the original authorisation.

currencyCode: The ISO 4217 currency code for this amount.

If left empty, our platform will cancel the full original amount.

isFinal

Define whether to close the transaction for subsequent cancellations if you only partially cancel the amount.

  • "true": The transaction will be closed for any further cancellation requests.
  • "false": The transaction will remain open for subsequent (partial) cancellation requests for uncaptured amounts.

If left empty, the default value is "false".

Refund payments

You can reimburse successfully processed payments (which have status.Output.statusCode=9). To do so, send a request to our dedicated RefundPayment endpoint:

{
  "amountOfMoney": {
    "amount": 1000,
    "currencyCode": "EUR"
  }
}
Property Description
{merchantId} Your account on our platform through which the initial transaction was processed.
Add it as a path parameter to the RefundPayment endpoint Url.
{paymentId} The payment.Id of the initial transaction which our platform returned in the CreatePayment/GetHostedCheckout request.
Add it as a path parameter to the RefundPayment endpoint Url.
order.amountOfMoney
     amount
     currencyCode

amount: The gross amount you want to refund for the original authorisation.

currencyCode: The ISO 4217 currency code for this amount.

If left empty, our platform will refund the full original amount.

Was this page helpful?

Do you have any comments?

Thank you for your response.