Skip to main content

Transaction

Represents a wallet transaction.

idstringrequired

Transaction id

Example: 544232
slipIdstringrequired

Transaction slip Id.

Example: 5009964049
customerIdstringrequired

Wallet customer id.

Example: 5435323362
accountIdstringrequired

Account Id associated with this transaction.

Example: 212345
typeTransactionType (string)

Represents the type of the transaction.

Possible values: [DEPOSIT, WITHDRAWAL, PAYOUT, CHARGEBACK_REVERSAL, RETURNED_WITHDRAWAL, CHARGEBACK, MERCHANT_FEE, TRANSACTION_FEE, STANDALONE_FEE, DAILY_TRANSACTIONS_FEE, TRANSFER_IN, TRANSFER_OUT, TRANSFER_RETURN, REFUND, CURRENCY_EXCHANGE, PAYSAFE_FEE, PREPAID_CARD, PREPAID_CARD_AUTHORIZATION, APPLICATION_FEE, SET_UP_FEE, MONTHLY_MAINTENANCE_FEE]

Example: DEPOSIT
amountint64

Transaction amount in minor units.

Example: 1000
currencyCodeCurrency (string)

Currency alphabetic code as specified by ISO 4217

Possible values: >= 3 characters and <= 3 characters

Example: EUR
feeint64deprecated

Transaction fee in minor units. Deprecated in favor of fees field.

Example: 100
fees object[]

Customer fees attached to the transaction.

  • Array [
  • amountint64required

    Amount of the merchant payment, in mintor units. If currency is not specified, then the main transaction currency is used.

    Default value: 0
    Example: 1000
    currencyCurrency (string)

    Currency alphabetic code as specified by ISO 4217

    Possible values: >= 3 characters and <= 3 characters

    Example: EUR
    paymentReasonFeePaymentReason (string)required

    Fee payment reason.

    • SENDER_FEE - Fee that will be applied to sender party of transfer collected into partner merchant wallet.
    • RECIPIENT_FEE - Fee that will be applied to recipient client of transfer collected into partner merchant wallet.
    • DEPOSIT_FEE - Fee charged for deposit transactions collected into partner merchant wallet.
    • WITHDRAWAL_FEE - Fee charged for withdrawal transactions collected into partner merchant wallet.
    • MERCHANT_FEE - Fee for the payment service collected into partner merchant wallet.
    • PAYSAFE_FEE - Fee collected by Paysafe for the provided payment service. Usually Paysafe Fee is not directly applied to customer transactions.
    • ATM_FEE - Fee for ATM service, when using prepaid cards.
    • FX_FEE - Fee applied, when payment requires currency exchange.
    • OTHER_FEE - It could be used for any additional, unspecified fees that may be applied to a transaction

    Possible values: [MERCHANT_FEE, ATM_FEE, FX_FEE, PAYSAFE_FEE, OTHER_FEE, SENDER_FEE, RECIPIENT_FEE, DEPOSIT_FEE, WITHDRAWAL_FEE]

    Default value: OTHER_FEE
  • ]
  • creationTimedate-time

    Represents RFC 3339, section 5.6 date-time.

    Example: 2021-07-15T17:54:12Z
    lastChangeDatedate-time

    Represents RFC 3339, section 5.6 date-time.

    Example: 2021-07-15T17:54:12Z
    directionstringrequired

    Transaction direction.

    Possible values: [CREDIT, DEBIT]

    instrumentIdstringdeprecated

    ID of the payment instrument. Deprecated in favour of instrumentDetails.instrumentId field.

    instrumentTypeInstrumentType (string)deprecated

    Type of the instrument. Deprecated in favour of instrumentDetails.instrumentType field.

    Possible values: [SEPA_BANK_ACCOUNT, UK_BANK_ACCOUNT, US_BANK_ACCOUNT, CCI_BANK_ACCOUNT, CARD]

    Example: CARD
    paymentTypePaymentType (string)

    Type of instrument. Used as discriminator for different Payment types.

    • CARD
    • BANK_TRANSFER
    • RAPID_TRANSFER
    • TRANSFER

    Possible values: [CARD, BANK_TRANSFER, RAPID_TRANSFER, TRANSFER]

    statusTransactionStatus (string)required

    Represents the status of a transaction.

    • PENDING - Transaction is created and further action is required by the customer.
    • PROCESSING - Transaction is scheduled for processing by the payment provider.
    • COMPLETED - Transaction is completed. Note that some transactions might be completed from Embedded Wallet point of view, but not from customer point of view, since money movement might take some time outside of the Embedded Wallet network.
    • FAILED - Transaction is failed. Check STATUS_REASON property for details.
    • CANCELLED - Transaction have been cancelled
    • REFUNDED - Valid only for deposit transactions.
    • DECLINED - Transaction is declined.
    • REVERSED - An approved authorization was reversed by merchant's acquiring bank. On rare occasions, an authorization can also be reversed due to the approval taking longer than expected. As a result, Paysafe reverses a previously approved authorization to update the balance accordingly.

    Possible values: [PENDING, PROCESSING, COMPLETED, FAILED, CANCELLED, REFUNDED, DECLINED, REVERSED]

    Example: COMPLETED
    statusReasonstring

    Status reason for FAILED transactions. See TransactionStatusReason for available values.

    Possible values: <= 60 characters

    merchantRefNumExternalId (string)

    Customer identifier used in Partner system.

    Possible values: non-empty and <= 40 characters

    Example: af5c8b52-0afd-4799-85ab-fe659a076932
    balanceint64

    Balance of the account after the transaction in minor currency units.

    recipientReferencestring

    Additional reference information for the recipient passed by the sender of the transaction. This information is not valid or present for all transaction types.

    fxAmount object

    (In Development)

    Contains the amount in converted currency during currency conversion.

    amountinteger

    Converted amount (in minor units).

    ratenumber

    Currency conversion rate.

    currencyCurrency (string)

    Currency alphabetic code as specified by ISO 4217

    Possible values: >= 3 characters and <= 3 characters

    Example: EUR
    transferDetails object

    Represents the details of a transfer.

    reasonTransferReason (string)required

    The actual purpose of the transfer.

    • INITIAL_BALANCE_MIGRATION - After customer onboarding, migrations of existing balances.
    • CRYPTO_BUY - The customer is buying crypto or other assets.
    • CRYPTO_SELL - The customer is selling crypto or other assets.
    • TRADING_PAIR - The transfer represents a trading pair transaction between customers with wallets.
    • DEPOSIT - Crediting the customer's wallet via non-Paysafe deposit options.
    • WITHDRAWAL - Debiting the customer's wallet via non-Paysafe withdrawal options.
    • MERCHANT_FEE - Charging a merchant fee.
    • REFUND - Refunding the customer on a previous transaction.
    • CANCELATION - Cancelation of a previous transaction.
    • BONUS - Customer is granted a bonus.
    • CURRENCY_EXCHANGE - Converting one currency to another.
    • PURCHASE - The customer is purchasing goods or services from a merchant.
    • PAYOUT - The merchant is compensating a customer for goods or services.
    • PEER_TRANSFER - Money transfer between customers with wallets.
    • OTHER - Any reason not explicitly mentioned in the transfers.
    • CARD_REPLACEMENT_FEE - Fee for replacing a card that is lost, stolen, or damaged.
    • CARD_FEE - Fee charged on funds paid on to the card.
    • ATM_FEE - Fee for funds withdrawal on ATM.
    • INACTIVITY_FEE - Fee charged for lack of transactions or authorizations.
    • FX_FEE - Fee related to currency exchange.
    • DISPUTE_FEE - Fee charged for resolving disputes related to payments, such as suspected fraud or unfulfilled goods/services.

    Possible values: [INITIAL_BALANCE_MIGRATION, CRYPTO_BUY, CRYPTO_SELL, TRADING_PAIR, DEPOSIT, WITHDRAWAL, MERCHANT_FEE, REFUND, CANCELATION, BONUS, CURRENCY_EXCHANGE, PURCHASE, PAYOUT, PEER_TRANSFER, OTHER, CARD_REPLACEMENT_FEE, CARD_FEE, ATM_FEE, INACTIVITY_FEE, FX_FEE, DISPUTE_FEE]

    descriptionstring

    Human readable description for the transfer.

    Possible values: <= 200 characters

    cardPaymentDetails objectdeprecated

    Details about a payment with customer's card.

    This class is deprecated because it is now part of 'PaymentInstrumentTransactionDetails' with new name 'PrepaidCardInstrumentTransactionDetails'.

    cardIdstring

    Prepaid card ID.

    mobileWalletTypestring

    Mobile wallet type.

    Possible values: [GOOGLE_PAY, APPLE_PAY, SAMSUNG_PAY]

    obfuscatedCardNumberstring

    Obfuscated card number.

    Example: *1234
    merchantDetails object
    namestring

    Merchant name.

    Example: Starbucks
    location object
    citystring

    Merchant location city.

    statestring

    Merchant location state.

    zipstring

    Merchant location zip.

    mcc object
    idstring

    Merchant category id.

    namestring

    Merchant category name.

    paymentAmountint64

    Amount paid with customer's card, in minor units.

    Example: 1200
    paymentAmountCurrencyCodeCurrency (string)

    Currency alphabetic code as specified by ISO 4217

    Possible values: >= 3 characters and <= 3 characters

    Example: EUR
    peerDetails object

    Represents the details of a peer.

    firstNamestring

    Peer first name.

    Example: John
    lastNamestring

    Peer last name.

    Example: Doe
    instrumentDetails object

    Represents details about a customer's payment instrument.

    instrumentIdstring

    Instrument ID.

    Example: 123456789
    instrumentTypestring

    Represents the type of an instrument.

    | Value | Description| |---|---| | CARD | Card | | PREPAID_CARD | Prepaid Card | | SEPA_BANK_ACCOUNT| SEPA Bank account | | US_BANK_ACCOUNT | US Bank account | | UK_BANK_ACCOUNT | UK Bank account | | CCI_BANK_ACCOUNT | CCI Bank account |

    Possible values: [CARD, PREPAID_CARD, SEPA_BANK_ACCOUNT, US_BANK_ACCOUNT, UK_BANK_ACCOUNT, CCI_BANK_ACCOUNT]

    Transaction
    {
    "id": "544232",
    "slipId": "5009964049",
    "customerId": "5435323362",
    "accountId": "212345",
    "type": "DEPOSIT",
    "amount": 1000,
    "currencyCode": "EUR",
    "fees": [
    {
    "amount": 1000,
    "currency": "EUR",
    "paymentReason": "OTHER_FEE"
    }
    ],
    "creationTime": "2021-07-15T17:54:12Z",
    "lastChangeDate": "2021-07-15T17:54:12Z",
    "direction": "CREDIT",
    "instrumentType": "CARD",
    "paymentType": "CARD",
    "status": "COMPLETED",
    "statusReason": "string",
    "merchantRefNum": "af5c8b52-0afd-4799-85ab-fe659a076932",
    "balance": 0,
    "recipientReference": "string",
    "fxAmount": {
    "amount": 0,
    "rate": 0,
    "currency": "EUR"
    },
    "transferDetails": {
    "reason": "INITIAL_BALANCE_MIGRATION",
    "description": "string"
    },
    "peerDetails": {
    "firstName": "John",
    "lastName": "Doe"
    },
    "instrumentDetails": {
    "instrumentId": "123456789",
    "instrumentType": "CARD"
    }
    }