Get transaction fee details
Fetch breakdown of a fee transaction
Authentication from public API requests
curl --request GET \
--url https://api.joinslash.com/transaction/{transactionId}/fee-details \
--header 'X-API-Key: <api-key>'
{
"items": [
{
"id": "<string>",
"dateCharged": "<string>",
"feeAmountCents": 123,
"feeType": "<string>",
"accountId": "<string>",
"originalTransaction": {
"id": "<string>",
"date": "<string>",
"description": "<string>",
"merchantDescription": "<string>",
"amountCents": 123,
"status": "pending",
"detailedStatus": "pending",
"accountId": "<string>",
"accountSubtype": "cash",
"cardId": "<string>",
"originalCurrency": {
"code": "<string>",
"amountCents": 123,
"conversionRate": 123
},
"orderId": "<string>",
"authorizedAt": "<string>",
"declineReason": "<string>"
},
"card": {
"id": "<string>",
"accountId": "<string>",
"last4": "<string>",
"name": "<string>",
"expiryMonth": "<string>",
"expiryYear": "<string>",
"status": "active",
"isPhysical": true,
"pan": "<string>",
"cvv": "<string>",
"cardGroupId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"spendingConstraint": {
"merchantCategoryRule": {
"merchantCategories": [
"<string>"
],
"restriction": "allowlist"
},
"merchantRule": {
"merchants": [
"<string>"
],
"restriction": "allowlist"
},
"spendingRule": {
"utilizationLimit": {
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
},
"utilizationLimitV2": [
{
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
}
],
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
}
},
"avsAddress": {
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"country": "<string>"
},
"userData": {}
}
}
]
}
Authorizations
Authentication from public API requests
Path Parameters
Response
The date in UTC time when the transaction was posted. If the transaction is pending or failed, this is the date the transaction was created.
For card transactions, the description of the transaction as reported by the merchant. For other transactions, this field is undefined.
The amount of the transaction in cents in USD. If the transaction amount is negative, the transaction is a debit. If the transaction amount is positive, the transaction is a credit.
pending
: The transaction is pending and has not been posted to the account yet (the account's posted balance doesn't reflect the transaction yet, but the account's available balance does).posted
: The transaction has been posted to the account and the account's posted balance and available balances both reflect the transaction.failed
: The transaction failed to post to the account and no longer affects the account's available or posted balances.
pending
, posted
, failed
pending
: Used for any transaction type that has not posted to the account yet, but is affecting the account's available balance.canceled
: Used for any transaction that was canceled.failed
: Used for any transaction that failed to post to the account.settled
: Used for any transaction that has posted to the account, except for card refunds, which use therefund
status, and ACH returns, which use thereturned
status.declined
: Used for card transactions that were declined.refund
: Used for card transactions that were refunded, increasing the account's available and posted balances.reversed
: Used for card transactions that were authorized, but reversed by the merchant.returned
: Used for ACH returns. In the case of an ACH return, there are two possibilities: (1) if the ACH settled and then returned, then there will be one transaction with statussettled
for the ACH settling, and one transaction with statusreturned
for the ACH return. Both of these are posted transactions. (2) if the ACH returned before settling, then there will only be one transaction with statuscanceled
.dispute
: Used for disputed card transactions.
pending
, canceled
, failed
, settled
, declined
, refund
, reversed
, returned
, dispute
The account ID associated with the transaction
For charge cards, specifies if the transaction belongs to the cash or credit account. For debit accounts, this field is always cash.
cash
, credit
The card ID associated with the transaction. If the transaction is not associated with a card, this field is not sent.
The original currency of the transaction. This is only applicable to transactions. If this field is not sent, the original currency is in USD.
The original currency code of the transaction
The amount of the transaction in its original currency in cents.
The conversion rate used to convert the transaction amount from its original currency to the account currency. The currency rate is computed at the time of the transaction.
The order ID, as reported by the merchant, associated with the specific transaction.
The UTC timestamp of when the transaction was authorized. Only exists for card transactions.
The reason for the decline. Only exists for card transactions with detailedStatus
= declined
.
The account that this card is associated with
The last 4 digits of the card number
The name assigned to the card that appears on the user dashboard
The month the card expires formatted as MM (01, 02, ..., 12)
The year the card expires formatted as YYYY (2024, 2025, ...)
The status of the card
active
, paused
, inactive
, closed
When true, a physical card has been issued. Otherwise, this is a virtual card.
This field contains the full PAN which will only be sent on a request for a single card when you set the query param "include_pan" to "true"
This field will contain full CVV which will only be sent on a request for a single card when you set the query param "include_pan" to "true"
The card group the card belongs to.
The spending constraint applied to the card
allowlist
, blacklist
allowlist
, blacklist
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
Represents a monetary value
The amount in cents
daily
, weekly
, monthly
, yearly
, collective
Format ISO-8601. A day that equals today or the past. This is optional.If the preset
is "daily", this value is ignored. If the preset
is "weekly", "monthly" or "yearly", then the this value is used to compute when the limit should start limit.
IANA timezone string. Limits always reset at midnight of the timezone specified. If no timezone is specified, then UTC time is used.
Represents a monetary value
The amount in cents
daily
, weekly
, monthly
, yearly
, collective
Format ISO-8601. A day that equals today or the past. This is optional.If the preset
is "daily", this value is ignored. If the preset
is "weekly", "monthly" or "yearly", then the this value is used to compute when the limit should start limit.
Represents a monetary value
The amount in cents
Represents a monetary value
The amount in cents
The avs address locked applied to this card
ISO region code recommended.
Postal code.
2-character ISO country code.
Arbitrary information that can be attached to the card. See the PATCH /card/{cardId}
endpoint for more details on how to add user data.
curl --request GET \
--url https://api.joinslash.com/transaction/{transactionId}/fee-details \
--header 'X-API-Key: <api-key>'
{
"items": [
{
"id": "<string>",
"dateCharged": "<string>",
"feeAmountCents": 123,
"feeType": "<string>",
"accountId": "<string>",
"originalTransaction": {
"id": "<string>",
"date": "<string>",
"description": "<string>",
"merchantDescription": "<string>",
"amountCents": 123,
"status": "pending",
"detailedStatus": "pending",
"accountId": "<string>",
"accountSubtype": "cash",
"cardId": "<string>",
"originalCurrency": {
"code": "<string>",
"amountCents": 123,
"conversionRate": 123
},
"orderId": "<string>",
"authorizedAt": "<string>",
"declineReason": "<string>"
},
"card": {
"id": "<string>",
"accountId": "<string>",
"last4": "<string>",
"name": "<string>",
"expiryMonth": "<string>",
"expiryYear": "<string>",
"status": "active",
"isPhysical": true,
"pan": "<string>",
"cvv": "<string>",
"cardGroupId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"spendingConstraint": {
"merchantCategoryRule": {
"merchantCategories": [
"<string>"
],
"restriction": "allowlist"
},
"merchantRule": {
"merchants": [
"<string>"
],
"restriction": "allowlist"
},
"spendingRule": {
"utilizationLimit": {
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
},
"utilizationLimitV2": [
{
"timezone": "<string>",
"limitAmount": {
"amountCents": 123
},
"preset": "daily",
"startDate": "<string>"
}
],
"transactionSizeLimit": {
"minimum": {
"amountCents": 123
},
"maximum": {
"amountCents": 123
}
}
}
},
"avsAddress": {
"addressLine1": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>",
"country": "<string>"
},
"userData": {}
}
}
]
}