Sumup.Receipts (Sumup v1.0.0)

Copy Markdown View Source

Receipts: detailed, receipt-formatted view of a transaction, keyed by transaction id plus the merchant id (mid). API version v1.1.

Summary

Functions

Retrieves the receipt for a transaction by transaction_id.

Functions

get(config, transaction_id, opts)

@spec get(Sumup.Config.t(), String.t(), keyword()) ::
  {:ok, Sumup.Receipt.t()} | {:error, Sumup.Error.t()}

Retrieves the receipt for a transaction by transaction_id.

  • :mid (String.t/0) - Required. Merchant id/code that owns the transaction.

  • :tx_event_id (integer/0) - Fetch the receipt for a specific refund/event rather than the original charge.