Transactions

Get and refund transactions.

Ready to Pay

Get available payment methods for a specific transaction or a purchase.

The payment methods order shown to a customer SHOULD be the same as the order in the response.

The list of available methods is generated from available Gateway Accounts intersected with the last matched Rules Engine adjust-ready-to-pay action on ready-to-pay-requested event.

If there were no actions matched for the specific request – all methods supported by the Gateway Accounts are sent.

To invert this behavior – place an all-matching rule at the very end of the ready-to-pay-requested event in Rules Engine with an empty paymentMethods property of the adjust-ready-to-pay action.

Request
Security:
header Parameters
Organization-Id
string (ResourceId) <= 50 characters

Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).

Example: 4f6cf35x-2c4y-483z-a0a9-158621f77a21
Request Body schema: application/json
One of:
currency
required
string (CurrencyCode) 3 characters

ISO 4217 alphabetic currency code.

amount
required
number <double>

The amount.

customerId
string <= 50 characters

The customer identifier string.

websiteId
required
string <= 50 characters

The website identifier string.

object

The billing address.

required
object (Risk metadata)

Risk metadata used for 3DS and risk scoring.

Responses
200Payment methods retrieved.
Response Schema: application/json
Array
One of:
method
required
string

The payment method.

Value: "payment-card"
(Digital Wallet (object or null))

The specific feature (eg. digital wallet or a processor) of this method. If method doesn't have any features – will be null.

brands
Array of strings (PaymentCardBrand) non-empty

The list of supported brands.

Items Enum: "Visa" "MasterCard" "American Express" "Discover" "Maestro" "Solo" "Electron" "JCB" "Voyager" "Diners Club" "Switch" "Laser" "China UnionPay" "AstroPay Card"
filters
Array of strings

For the method to be applicable any of the following filters should match. If no filters sent – no restrictions applied. This follows our standard filter format.

401Unauthorized access, invalid credentials was used.
403Access forbidden.
422Invalid data was sent.
post/ready-to-pay
Request samples
application/json
{
  • "currency": "USD",
  • "amount": 0,
  • "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "websiteId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "billingAddress": {
    },
  • "riskMetadata": {
    }
}
Response samples
application/json
[
  • {
    },
  • {
    },
  • {
    },
  • {
    },
  • {
    },
  • {
    }
]

Create a transaction

Create a transaction of type sale or authorize. This endpoint supports two main styles of transactions:

  1. A real-time decision and response.
  2. User approval/interaction is required.

A real-time decision is very familiar. You send a request, and inspect the result of the response for approved or declined.

However, many transactions, especially those for alternative methods, require the user to interact with a 3rd party. You may be able to envision PayPal, for example, the user must give permission to complete the payment (or accept the billing agreement).

Even payment cards may require user approval in the case of 3D secure authentication. In the event that approval is required, you will receive a response back and notice that the result is unknown. You will find that the status is waiting-approval. And you will find in the _links section of the response a link for the approvalUrl.

In this case you would either open the approvalUrl in an iframe or in a pop (better workflow for mobile).

Request
Security:
query Parameters
expand
string

Expand a response to get a full related object included inside of the _embedded path in the response. It accepts a comma-separated list of objects to expand. See the expand guide for more info.

header Parameters
Organization-Id
string (ResourceId) <= 50 characters

Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).

Example: 4f6cf35x-2c4y-483z-a0a9-158621f77a21
Request Body schema: application/json

Transaction resource.

websiteId
required
string <= 50 characters

The website identifier string.

customerId
required
string <= 50 characters

The customer identifier string.

currency
required
string 3 characters

ISO 4217 alphabetic currency code.

amount
required
number <double>

The transaction amount.

invoiceIds
Array of strings or null (ResourceId)

The array of invoice identifiers.

Payment Token (object) or Payment Instrument (object) or Payment Methods (object)

Payment instruction. If not supplied, customer's default payment instrument will be used.

Vaulted instrument (object) or Alternative Instrument (object) or Cash (object) or Check (object)
Deprecated
object or null

Billing address. If not supplied, we use the billing address associated with the payment instrument, and then customer.

requestId
string or null <= 50 characters ^[\-\w]+$

The request id is recommended. It prevents duplicate transaction requests within a short period of time. If a duplicate request is sent with the same requestId it will be ignored to prevent double-billing anyone. It must be unique within a 24-hour period. We recommend generating a UUID v4 as its value.

gatewayAccountId
string or null <= 50 characters

Rebilly will select the appropriate payment gateway account for the transaction based on the properties of the transaction and the gateway-account-requested event rules configurations. If you wish to prevent Rebilly from making the gateway account selection, you may supply a gateway account id here, and it will be used instead. Only use this field if you intend to override the settings.

description
string or null <= 255 characters

The payment description.

notificationUrl
string or null <uri>

The URL where a server-to-server notification request type POST with a transaction payload will be sent when the transaction's result is finalized. Do not trust the notification; follow with a GET request to confirm the result of the transaction. Please respond with a 2xx HTTP status code, or we will reattempt the request again. You may use {id} or {result} as placeholders in the URL and we will replace them with the transaction's id and result accordingly.

redirectUrl
string or null <uri>

The URL to redirect the end-user when an offsite transaction is completed. Defaults to the website's configured URL. You may use {id} or {result} as placeholders in the URL and we will replace them with the transaction's id and result accordingly.

customFields
object (ResourceCustomFields)
Default: {}

Custom Fields list as a map {"custom field name": "custom field value", ...}. The format must follow the saved format (see Custom Fields section for the formats).

object (Risk metadata)

Risk metadata used for 3DS and risk scoring.

isProcessedOutside
boolean
Default: false

True if transaction was processed outside Rebilly.

isMerchantInitiated
boolean
Default: false

True if the transaction was initiated by the merchant.

processedTime
string <date-time>

The time the transaction was processed. Can be specified only if transaction was processed outside Rebilly.

type
required
string

The type of transaction requested. You should always include the type within your API request. This supports a limited subset of Transaction types. To refund or void, use the refund endpoint. To capture use the sale type. If any existing authorize transactions are eligible, then they will be captured and the sale will be converted to a capture type.

Enum: "3ds-authentication" "sale" "authorize"
Responses
201Transaction was created.
Response Schema: application/json
id
string <= 50 characters

The transaction ID.

websiteId
string <= 50 characters

The website ID.

customerId
string <= 50 characters

The сustomer's ID.

type
string

Transaction type.

Enum: "3ds-authentication" "authorize" "capture" "credit" "refund" "sale" "void"
status
string

Transaction status.

Enum: "completed" "conn-error" "disputed" "never-sent" "offsite" "partially-refunded" "pending" "refunded" "sending" "suspended" "timeout" "voided" "waiting-approval" "waiting-capture" "waiting-gateway" "waiting-refund"
result
string

Transaction result.

Enum: "abandoned" "approved" "canceled" "declined" "unknown"
amount
number <double>

The transaction's amount.

currency
string 3 characters

ISO 4217 alphabetic currency code.

purchaseAmount
number <double>

The amount actually purchased which may have differed from the originally requested amount in case of an adjustment.

purchaseCurrency
string 3 characters

ISO 4217 alphabetic currency code.

requestAmount
number <double>

The amount in the payment request. If adjusted, the purchase amount and billing amount may vary from it.

requestCurrency
string 3 characters

ISO 4217 alphabetic currency code.

parentTransactionId
string <= 50 characters

The parent's transaction ID.

childTransactions
Array of strings (ResourceId)

The child transaction IDs.

invoiceIds
Array of strings (ResourceId)

The invoice IDs related to transaction.

subscriptionIds
Array of strings (ResourceId)

The orders IDs related to transaction's invoice(s).

planIds
Array of strings (ResourceId)

The plan IDs related to transaction's order(s).

isRebill
boolean
rebillNumber
integer

The transaction's rebill number.

Vaulted instrument (object) or Alternative Instrument (object) or Cash (object) or Check (object)
object

Billing address.

has3ds
boolean
object
redirectUrl
string <uri>

The URL to redirect the end-user when an offsite transaction is completed. Defaults to the website's configured URL.

retryNumber
integer

The position in the sequence of retries.

isRetry
boolean

True if this transaction is retry.

billingDescriptor
string

The billing descriptor that appears on the periodic billing statement. Commonly 12 or fewer characters for a credit card statement.

description
string <= 255 characters

The payment description.

requestId
string

The transaction's request ID. This ID must be unique within a 24 hour period. Use this field to prevent duplicated transactions.

hasAmountAdjustment
boolean

True if transaction has amount adjustment.

gatewayName
string

Payment Gateway name, available only after the gateway is selected for the transaction.

Enum: "A1Gateway" "Adyen" "Airpay" "AmazonPay" "AmexVPC" "ApcoPay" "AsiaPaymentGateway" "AstroPayCard" "AuthorizeNet" "Bambora" "BitPay" "BlueSnap" "BraintreePayments" "Cardknox" "Cashflows" "CASHlib" "CashToCode" "CauriPayment" "Cayan" "CCAvenue" "Chase" "CheckoutCom" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "DataCash" "Dengi" "Dragonphoenix" "Directa24" "dLocal" "EBANX" "ecoPayz" "EcorePay" "Elavon" "Euteller" "eMerchantPay" "EMS" "EPG" "EPro" "eZeeWallet" "ezyEFT" "Finrax" "Flexepin" "FinTecSystems" "FundSend" "Forte" "GET" "Gigadat" "GlobalOnePay" "Gooney" "Gpaysafe" "Greenbox" "HiPay" "iCanPay" "ICEPAY" "iCheque" "iDebit" "Ilixium" "Ingenico" "INOVAPAY" "Inovio" "Intuit" "InstaDebit" "IpayOptions" "JetPay" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "MiFinity" "Moneris" "MtaPay" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "NGenius" "NinjaWallet" "NMI" "NuaPay" "OchaPay" "Onlineueberweisen" "OnRamp" "Pagsmile" "Panamerican" "ParamountEft" "ParamountInterac" "PandaGateway" "Pay4Fun" "PayCash" "PayClub" "Payeezy" "Payflow" "Paynote" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "PayPal" "Payr" "Paysafe" "Paysafecash" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Plugnpay" "PostFinance" "Prosa" "Rapyd" "Realex" "Realtime" "Redsys" "Rotessa" "RPN" "Safecharge" "SaltarPay" "Sagepay" "SeamlessChex" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "StaticGateway" "Stripe" "Telr" "TestProcessor" "ToditoCash" "Truevo" "TrustPay" "TrustsPay" "Trustly" "TWINT" "UPayCard" "USAePay" "VantivLitle" "vegaaH" "VCreditos" "Wallet88" "Walpay" "Wirecard" "WorldlineAtosFrankfurt" "Worldpay" "XPay" "Zimpler" "Zotapay"
customFields
object (ResourceCustomFields)
Default: {}

Custom Fields list as a map {"custom field name": "custom field value", ...}. The format must follow the saved format (see Custom Fields section for the formats).

processedTime
string <date-time>

Transaction processed time.

createdTime
string <date-time>

Transaction created time.

updatedTime
string <date-time>

Transaction updated time.

gatewayAccountId
string <= 50 characters

The transaction's Gateway Account ID.

gatewayTransactionId
string <= 50 characters

The gateway's transaction ID.

object

The related gateway information.

acquirerName
string

Acquirer name, available only when transaction use gateway, else null.

Enum: "Adyen" "Alipay" "AIB" "Airpay" "AmazonPay" "ApcoPay" "AsiaPaymentGateway" "AstroPay Card" "Ipay Options" "B+S" "Bambora" "BitPay" "Bank of America" "Bank of Moscow" "Bank of Rebilly" "Bank One" "BMO Harris Bank" "Borgun" "BraintreePayments" "Cardknox" "CASHlib" "CashToCode" "Catalunya Caixa" "CCAvenue" "Chase" "CheckoutCom" "ChinaUnionPay" "CIM" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "dLocal" "Dragonphoenix" "EBANX" "ecoPayz" "EcorePay" "Elavon" "EMS" "EPG" "Euteller" "eZeeWallet" "ezyEFT" "Fifth Third Bank" "Finrax" "First Data Buypass" "First Data Nashville" "First Data North" "First Data Omaha" "FinTecSystems" "Flexepin" "Forte" "FundSend" "Gigadat" "Global East" "Gooney" "Gpaysafe" "Heartland" "HiPay" "HSBC" "iCanPay" "ICEPAY" "iCheque" "Ilixium" "Ingenico" "INOVAPAY" "Intuit" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "Masapay" "Merrick" "Mission Valley Bank" "MiFinity" "Moneris" "MuchBetter" "MyFatoorah" "NATWEST" "Neosurf" "Netbanking" "Neteller" "NinjaWallet" "NMI" "NuaPay" "Nuvei" "OchaPay" "Onlineueberweisen" "OnRamp" "Other" "Panamerican" "Panda Bank" "Paramount" "ParamountEft" "ParamountInterac" "Pay4fun" "PayCash" "PayClub" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "Paynetics" "PayPal" "Payr" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Peoples Trust Company" "PostFinance" "Privatbank" "Prosa" "QQPay" "Rapyd" "RBC" "RBS WorldPay" "RealTime" "Rotessa" "Safecharge" "SaltarPay" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "State Bank of Mauritius" "Stripe" "TBI" "Telr" "TestProcessor" "ToditoCash" "Truevo" "Trustly" "TrustPay" "TrustsPay" "TSYS" "TWINT" "UPayCard" "Vantiv" "VCreditos" "VoicePay" "Wallet88" "WeChat Pay" "Wells Fargo" "Wing Hang Bank" "Wirecard" "WorldPay" "XPay" "Zimpler" "Zotapay"
method
string
Deprecated

Payment Method. Use paymentInstrument.method instead.

Enum: "payment-card" "ach" "cash" "check" "paypal" "AdvCash" "Airpay" "Alfa-click" "Alipay" "AmazonPay" "Apple Pay" "AstroPay Card" "AstroPay-GO" "BankReferenced" "bank-transfer" "bank-transfer-2" "bank-transfer-3" "bank-transfer-4" "bank-transfer-5" "bank-transfer-6" "bank-transfer-7" "bank-transfer-8" "bank-transfer-9" "Baloto" "Beeline" "Belfius-direct-net" "bitcoin" "Blik" "Boleto" "Boleto-2" "Boleto-3" "cash-deposit" "CASHlib" "CashToCode" "CCAvenue" "China UnionPay" "CODVoucher" "Conekta-oxxo" "Conekta-spei" "cryptocurrency" "Cupon-de-pagos" "CyberSource" "domestic-cards" "Efecty" "echeck" "ecoPayz" "ecoVoucher" "EPS" "ePay.bg" "Ethereum" "e-wallet" "ezyEFT" "eZeeWallet" "Flexepin" "Giropay" "Google Pay" "Gpaysafe" "iDebit" "iDEAL" "ING-homepay" "INOVAPAY-pin" "INOVAPAY-wallet" "InstaDebit" "instant-bank-transfer" "Interac-online" "Interac-eTransfer" "Interac-express-connect" "Interac" "invoice" "iWallet" "Jeton" "jpay" "Khelocard" "Klarna" "Litecoin" "loonie" "LPG-online" "LPG-payment-card" "Matrix" "Megafon" "MiFinity-eWallet" "miscellaneous" "Bancontact" "Bancontact-mobile" "MTS" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "Nordea-Solo" "OchaPay" "online-bank-transfer" "Onlineueberweisen" "oriental-wallet" "OXXO" "P24" "PagoEffectivo" "Pagsmile-lottery" "Pagsmile-deposit-express" "PayCash" "Payeer" "PaymentAsia-crypto" "Paysafecard" "PayTabs" "Pay4Fun" "Paynote" "Paymero" "Paymero-QR" "PayU" "PayULatam" "Perfect-money" "Piastrix" "PIX" "PinPay" "phone" "PhonePe" "POLi" "PostFinance-card" "PostFinance-e-finance" "Przelewy24" "QIWI" "QQPay" "rapyd-checkout" "Resurs" "SEPA" "Siirto" "Skrill" "Skrill Rapid Transfer" "SMSVoucher" "Sofort" "SparkPay" "swift-dbt" "Tele2" "Telr" "Terminaly-RF" "Tether" "ToditoCash-card" "Trustly" "TWINT" "UniCrypt" "UPayCard" "UPI" "VCreditos" "VenusPoint" "voucher" "voucher-2" "voucher-3" "voucher-4" "Webmoney" "Webpay" "Webpay-2" "Webpay Card" "WeChat Pay" "XPay-P2P" "XPay-QR" "Yandex-money" "Zotapay" "Zimpler"
velocity
integer

The number of transactions by the same customer in the past 24 hours.

revision
integer

The number of times the transaction data has been modified. The revision is useful when analyzing webhook data to determine if the change takes precedence over the current representation.

object or null

Transaction reference data.

bin
string <bin>

Payment Card BIN.

hasDcc
boolean

True if transaction has Dynamic Currency Conversion applied.

object

Dynamic Currency Conversion detailed information. Null if hasDcc is false.

hasBumpOffer
boolean

True if transaction has a Bump offer.

object

Bump offer information. Null if hasBumpOffer is false.

riskScore
integer

The transaction's risk score.

object

Risk metadata.

notificationUrl
string <uri> (TransactionNotificationUrl)

The URL where a server-to-server POST notification will be sent. It will be sent when the transaction's result is finalized after a timeout or an offsite interaction. Do not trust the notification; follow with a GET request to confirm the result of the transaction. Please respond with a 2xx HTTP status code, or we will reattempt the request again. The 2 placeholders are available to use in this URI: {id} and {result}.

isDisputed
boolean

True if transaction is disputed.

disputeTime
string or null <date-time>

Time the dispute was created, else null.

disputeStatus
string or null

The dispute's status, else null.

Enum: "response-needed" "under-review" "forfeited" "won" "lost" "unknown"
isReconciled
boolean

True if the transaction has been verified with gateway batch data.

isProcessedOutside
boolean

True if the transaction was processed outside of Rebilly.

isMerchantInitiated
boolean

True if the transaction was initiated by the merchant.

hadDiscrepancy
boolean

True if the transaction has been updated due to a discrepancy with its. source of truth.

orderId
string
Deprecated

The transaction's order ID. This ID must be unique within a 24 hour period. This field was renamed to the requestId.

arn
string

The acquirer reference number.

reportAmount
number <double>

Transaction amount converted to organization selected report currency.

reportCurrency
string 3 characters

ISO 4217 alphabetic currency code.

settlementTime
string or null <date-time>

The time that the transaction was settled by the banking instuition.

discrepancyTime
string or null <date-time>

The time of the most recent discrepancy on the transaction.

Array of SelfLink (object) or WebsiteLink (object) or CustomerLink (object) or GatewayAccountLink (object) or PaymentCardLink (object) or ParentTransactionLink (object) or LeadSourceLink (object) or ApprovalUrlLink (object) or RefundUrlLink (object) or TransactionUpdateUrlLink (object) or DisputeLink (object) or InvoicesLink (object) or QueryUrlLink (object) non-empty

The links related to resource.

Array of ParentTransactionEmbed (object) or GatewayAccountEmbed (object) or CustomerEmbed (object) or LeadSourceEmbed (object) or WebsiteEmbed (object) or PaymentCardEmbed (object) or BankAccountEmbed (object) or InvoicesEmbed (object) non-empty

Any embedded objects available that are requested by the expand querystring parameter.

401Unauthorized access, invalid credentials was used.
403Access forbidden.
409Conflict.
422Invalid data was sent.
post/transactions
Request samples
application/json
{
  • "websiteId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "currency": "USD",
  • "amount": 97.97,
  • "invoiceIds": [
    ],
  • "paymentInstruction": {
    },
  • "paymentInstrument": {
    },
  • "billingAddress": {
    },
  • "requestId": "44433322-2c4y-483z-a0a9-158621f77a21",
  • "gatewayAccountId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "description": "string",
  • "notificationUrl": "http://example.com",
  • "redirectUrl": "http://example.com",
  • "customFields": {
    },
  • "riskMetadata": {
    },
  • "isProcessedOutside": false,
  • "isMerchantInitiated": false,
  • "processedTime": "2019-08-24T14:15:22Z",
  • "type": "3ds-authentication"
}
Response samples
application/json
{
  • "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "websiteId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "type": "3ds-authentication",
  • "status": "completed",
  • "result": "abandoned",
  • "amount": 0,
  • "currency": "USD",
  • "purchaseAmount": 0,
  • "purchaseCurrency": "USD",
  • "requestAmount": 0,
  • "requestCurrency": "USD",
  • "parentTransactionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "childTransactions": [
    ],
  • "invoiceIds": [
    ],
  • "subscriptionIds": [
    ],
  • "planIds": [
    ],
  • "isRebill": true,
  • "rebillNumber": 0,
  • "paymentInstrument": {
    },
  • "billingAddress": {
    },
  • "has3ds": true,
  • "3ds": {
    },
  • "redirectUrl": "http://example.com",
  • "retryNumber": 0,
  • "isRetry": true,
  • "billingDescriptor": "string",
  • "description": "string",
  • "requestId": "string",
  • "hasAmountAdjustment": true,
  • "gatewayName": "A1Gateway",
  • "customFields": {
    },
  • "processedTime": "2019-08-24T14:15:22Z",
  • "createdTime": "2019-08-24T14:15:22Z",
  • "updatedTime": "2019-08-24T14:15:22Z",
  • "gatewayAccountId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "gatewayTransactionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "gateway": {
    },
  • "acquirerName": "Adyen",
  • "method": "payment-card",
  • "velocity": 0,
  • "revision": 0,
  • "referenceData": {
    },
  • "bin": "string",
  • "hasDcc": true,
  • "dcc": {
    },
  • "hasBumpOffer": true,
  • "bumpOffer": {
    },
  • "riskScore": 0,
  • "riskMetadata": {
    },
  • "notificationUrl": "http://example.com",
  • "isDisputed": true,
  • "disputeTime": "2019-08-24T14:15:22Z",
  • "disputeStatus": "response-needed",
  • "isReconciled": true,
  • "isProcessedOutside": true,
  • "isMerchantInitiated": true,
  • "hadDiscrepancy": true,
  • "orderId": "string",
  • "arn": "74836950144358910018150",
  • "reportAmount": 0,
  • "reportCurrency": "USD",
  • "settlementTime": "2019-08-24T14:15:22Z",
  • "discrepancyTime": "2019-08-24T14:15:22Z",
  • "_links": [
    ],
  • "_embedded": [
    ]
}

Retrieve a list of transactions

Retrieve a list of transactions.

Request
Security:
query Parameters
limit
integer [ 0 .. 1000 ]

The collection items limit.

offset
integer >= 0

The collection items offset.

filter
string

The collection items filter requires a special format. Use "," for multiple allowed values. Use ";" for multiple fields. See the filter guide for more options and examples about this format.

q
string

The partial search of the text fields.

sort
Array of strings

The collection items sort field and order (prefix with "-" for descending sort).

expand
string

Expand a response to get a full related object included inside of the _embedded path in the response. It accepts a comma-separated list of objects to expand. See the expand guide for more info.

header Parameters
Organization-Id
string (ResourceId) <= 50 characters

Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).

Example: 4f6cf35x-2c4y-483z-a0a9-158621f77a21
Responses
200A list of transactions was retrieved successfully.
Response Headers
Pagination-Total
integer

Total items count.

Pagination-Limit
integer

Items per page limit.

Pagination-Offset
integer

Pagination offset.

Response Schema: application/json
Array
id
string <= 50 characters

The transaction ID.

websiteId
string <= 50 characters

The website ID.

customerId
string <= 50 characters

The сustomer's ID.

type
string

Transaction type.

Enum: "3ds-authentication" "authorize" "capture" "credit" "refund" "sale" "void"
status
string

Transaction status.

Enum: "completed" "conn-error" "disputed" "never-sent" "offsite" "partially-refunded" "pending" "refunded" "sending" "suspended" "timeout" "voided" "waiting-approval" "waiting-capture" "waiting-gateway" "waiting-refund"
result
string

Transaction result.

Enum: "abandoned" "approved" "canceled" "declined" "unknown"
amount
number <double>

The transaction's amount.

currency
string 3 characters

ISO 4217 alphabetic currency code.

purchaseAmount
number <double>

The amount actually purchased which may have differed from the originally requested amount in case of an adjustment.

purchaseCurrency
string 3 characters

ISO 4217 alphabetic currency code.

requestAmount
number <double>

The amount in the payment request. If adjusted, the purchase amount and billing amount may vary from it.

requestCurrency
string 3 characters

ISO 4217 alphabetic currency code.

parentTransactionId
string <= 50 characters

The parent's transaction ID.

childTransactions
Array of strings (ResourceId)

The child transaction IDs.

invoiceIds
Array of strings (ResourceId)

The invoice IDs related to transaction.

subscriptionIds
Array of strings (ResourceId)

The orders IDs related to transaction's invoice(s).

planIds
Array of strings (ResourceId)

The plan IDs related to transaction's order(s).

isRebill
boolean
rebillNumber
integer

The transaction's rebill number.

Vaulted instrument (object) or Alternative Instrument (object) or Cash (object) or Check (object)
object

Billing address.

has3ds
boolean
object
redirectUrl
string <uri>

The URL to redirect the end-user when an offsite transaction is completed. Defaults to the website's configured URL.

retryNumber
integer

The position in the sequence of retries.

isRetry
boolean

True if this transaction is retry.

billingDescriptor
string

The billing descriptor that appears on the periodic billing statement. Commonly 12 or fewer characters for a credit card statement.

description
string <= 255 characters

The payment description.

requestId
string

The transaction's request ID. This ID must be unique within a 24 hour period. Use this field to prevent duplicated transactions.

hasAmountAdjustment
boolean

True if transaction has amount adjustment.

gatewayName
string

Payment Gateway name, available only after the gateway is selected for the transaction.

Enum: "A1Gateway" "Adyen" "Airpay" "AmazonPay" "AmexVPC" "ApcoPay" "AsiaPaymentGateway" "AstroPayCard" "AuthorizeNet" "Bambora" "BitPay" "BlueSnap" "BraintreePayments" "Cardknox" "Cashflows" "CASHlib" "CashToCode" "CauriPayment" "Cayan" "CCAvenue" "Chase" "CheckoutCom" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "DataCash" "Dengi" "Dragonphoenix" "Directa24" "dLocal" "EBANX" "ecoPayz" "EcorePay" "Elavon" "Euteller" "eMerchantPay" "EMS" "EPG" "EPro" "eZeeWallet" "ezyEFT" "Finrax" "Flexepin" "FinTecSystems" "FundSend" "Forte" "GET" "Gigadat" "GlobalOnePay" "Gooney" "Gpaysafe" "Greenbox" "HiPay" "iCanPay" "ICEPAY" "iCheque" "iDebit" "Ilixium" "Ingenico" "INOVAPAY" "Inovio" "Intuit" "InstaDebit" "IpayOptions" "JetPay" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "MiFinity" "Moneris" "MtaPay" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "NGenius" "NinjaWallet" "NMI" "NuaPay" "OchaPay" "Onlineueberweisen" "OnRamp" "Pagsmile" "Panamerican" "ParamountEft" "ParamountInterac" "PandaGateway" "Pay4Fun" "PayCash" "PayClub" "Payeezy" "Payflow" "Paynote" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "PayPal" "Payr" "Paysafe" "Paysafecash" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Plugnpay" "PostFinance" "Prosa" "Rapyd" "Realex" "Realtime" "Redsys" "Rotessa" "RPN" "Safecharge" "SaltarPay" "Sagepay" "SeamlessChex" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "StaticGateway" "Stripe" "Telr" "TestProcessor" "ToditoCash" "Truevo" "TrustPay" "TrustsPay" "Trustly" "TWINT" "UPayCard" "USAePay" "VantivLitle" "vegaaH" "VCreditos" "Wallet88" "Walpay" "Wirecard" "WorldlineAtosFrankfurt" "Worldpay" "XPay" "Zimpler" "Zotapay"
customFields
object (ResourceCustomFields)
Default: {}

Custom Fields list as a map {"custom field name": "custom field value", ...}. The format must follow the saved format (see Custom Fields section for the formats).

processedTime
string <date-time>

Transaction processed time.

createdTime
string <date-time>

Transaction created time.

updatedTime
string <date-time>

Transaction updated time.

gatewayAccountId
string <= 50 characters

The transaction's Gateway Account ID.

gatewayTransactionId
string <= 50 characters

The gateway's transaction ID.

object

The related gateway information.

acquirerName
string

Acquirer name, available only when transaction use gateway, else null.

Enum: "Adyen" "Alipay" "AIB" "Airpay" "AmazonPay" "ApcoPay" "AsiaPaymentGateway" "AstroPay Card" "Ipay Options" "B+S" "Bambora" "BitPay" "Bank of America" "Bank of Moscow" "Bank of Rebilly" "Bank One" "BMO Harris Bank" "Borgun" "BraintreePayments" "Cardknox" "CASHlib" "CashToCode" "Catalunya Caixa" "CCAvenue" "Chase" "CheckoutCom" "ChinaUnionPay" "CIM" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "dLocal" "Dragonphoenix" "EBANX" "ecoPayz" "EcorePay" "Elavon" "EMS" "EPG" "Euteller" "eZeeWallet" "ezyEFT" "Fifth Third Bank" "Finrax" "First Data Buypass" "First Data Nashville" "First Data North" "First Data Omaha" "FinTecSystems" "Flexepin" "Forte" "FundSend" "Gigadat" "Global East" "Gooney" "Gpaysafe" "Heartland" "HiPay" "HSBC" "iCanPay" "ICEPAY" "iCheque" "Ilixium" "Ingenico" "INOVAPAY" "Intuit" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "Masapay" "Merrick" "Mission Valley Bank" "MiFinity" "Moneris" "MuchBetter" "MyFatoorah" "NATWEST" "Neosurf" "Netbanking" "Neteller" "NinjaWallet" "NMI" "NuaPay" "Nuvei" "OchaPay" "Onlineueberweisen" "OnRamp" "Other" "Panamerican" "Panda Bank" "Paramount" "ParamountEft" "ParamountInterac" "Pay4fun" "PayCash" "PayClub" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "Paynetics" "PayPal" "Payr" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Peoples Trust Company" "PostFinance" "Privatbank" "Prosa" "QQPay" "Rapyd" "RBC" "RBS WorldPay" "RealTime" "Rotessa" "Safecharge" "SaltarPay" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "State Bank of Mauritius" "Stripe" "TBI" "Telr" "TestProcessor" "ToditoCash" "Truevo" "Trustly" "TrustPay" "TrustsPay" "TSYS" "TWINT" "UPayCard" "Vantiv" "VCreditos" "VoicePay" "Wallet88" "WeChat Pay" "Wells Fargo" "Wing Hang Bank" "Wirecard" "WorldPay" "XPay" "Zimpler" "Zotapay"
method
string
Deprecated

Payment Method. Use paymentInstrument.method instead.

Enum: "payment-card" "ach" "cash" "check" "paypal" "AdvCash" "Airpay" "Alfa-click" "Alipay" "AmazonPay" "Apple Pay" "AstroPay Card" "AstroPay-GO" "BankReferenced" "bank-transfer" "bank-transfer-2" "bank-transfer-3" "bank-transfer-4" "bank-transfer-5" "bank-transfer-6" "bank-transfer-7" "bank-transfer-8" "bank-transfer-9" "Baloto" "Beeline" "Belfius-direct-net" "bitcoin" "Blik" "Boleto" "Boleto-2" "Boleto-3" "cash-deposit" "CASHlib" "CashToCode" "CCAvenue" "China UnionPay" "CODVoucher" "Conekta-oxxo" "Conekta-spei" "cryptocurrency" "Cupon-de-pagos" "CyberSource" "domestic-cards" "Efecty" "echeck" "ecoPayz" "ecoVoucher" "EPS" "ePay.bg" "Ethereum" "e-wallet" "ezyEFT" "eZeeWallet" "Flexepin" "Giropay" "Google Pay" "Gpaysafe" "iDebit" "iDEAL" "ING-homepay" "INOVAPAY-pin" "INOVAPAY-wallet" "InstaDebit" "instant-bank-transfer" "Interac-online" "Interac-eTransfer" "Interac-express-connect" "Interac" "invoice" "iWallet" "Jeton" "jpay" "Khelocard" "Klarna" "Litecoin" "loonie" "LPG-online" "LPG-payment-card" "Matrix" "Megafon" "MiFinity-eWallet" "miscellaneous" "Bancontact" "Bancontact-mobile" "MTS" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "Nordea-Solo" "OchaPay" "online-bank-transfer" "Onlineueberweisen" "oriental-wallet" "OXXO" "P24" "PagoEffectivo" "Pagsmile-lottery" "Pagsmile-deposit-express" "PayCash" "Payeer" "PaymentAsia-crypto" "Paysafecard" "PayTabs" "Pay4Fun" "Paynote" "Paymero" "Paymero-QR" "PayU" "PayULatam" "Perfect-money" "Piastrix" "PIX" "PinPay" "phone" "PhonePe" "POLi" "PostFinance-card" "PostFinance-e-finance" "Przelewy24" "QIWI" "QQPay" "rapyd-checkout" "Resurs" "SEPA" "Siirto" "Skrill" "Skrill Rapid Transfer" "SMSVoucher" "Sofort" "SparkPay" "swift-dbt" "Tele2" "Telr" "Terminaly-RF" "Tether" "ToditoCash-card" "Trustly" "TWINT" "UniCrypt" "UPayCard" "UPI" "VCreditos" "VenusPoint" "voucher" "voucher-2" "voucher-3" "voucher-4" "Webmoney" "Webpay" "Webpay-2" "Webpay Card" "WeChat Pay" "XPay-P2P" "XPay-QR" "Yandex-money" "Zotapay" "Zimpler"
velocity
integer

The number of transactions by the same customer in the past 24 hours.

revision
integer

The number of times the transaction data has been modified. The revision is useful when analyzing webhook data to determine if the change takes precedence over the current representation.

object or null

Transaction reference data.

bin
string <bin>

Payment Card BIN.

hasDcc
boolean

True if transaction has Dynamic Currency Conversion applied.

object

Dynamic Currency Conversion detailed information. Null if hasDcc is false.

hasBumpOffer
boolean

True if transaction has a Bump offer.

object

Bump offer information. Null if hasBumpOffer is false.

riskScore
integer

The transaction's risk score.

object

Risk metadata.

notificationUrl
string <uri> (TransactionNotificationUrl)

The URL where a server-to-server POST notification will be sent. It will be sent when the transaction's result is finalized after a timeout or an offsite interaction. Do not trust the notification; follow with a GET request to confirm the result of the transaction. Please respond with a 2xx HTTP status code, or we will reattempt the request again. The 2 placeholders are available to use in this URI: {id} and {result}.

isDisputed
boolean

True if transaction is disputed.

disputeTime
string or null <date-time>

Time the dispute was created, else null.

disputeStatus
string or null

The dispute's status, else null.

Enum: "response-needed" "under-review" "forfeited" "won" "lost" "unknown"
isReconciled
boolean

True if the transaction has been verified with gateway batch data.

isProcessedOutside
boolean

True if the transaction was processed outside of Rebilly.

isMerchantInitiated
boolean

True if the transaction was initiated by the merchant.

hadDiscrepancy
boolean

True if the transaction has been updated due to a discrepancy with its. source of truth.

orderId
string
Deprecated

The transaction's order ID. This ID must be unique within a 24 hour period. This field was renamed to the requestId.

arn
string

The acquirer reference number.

reportAmount
number <double>

Transaction amount converted to organization selected report currency.

reportCurrency
string 3 characters

ISO 4217 alphabetic currency code.

settlementTime
string or null <date-time>

The time that the transaction was settled by the banking instuition.

discrepancyTime
string or null <date-time>

The time of the most recent discrepancy on the transaction.

Array of SelfLink (object) or WebsiteLink (object) or CustomerLink (object) or GatewayAccountLink (object) or PaymentCardLink (object) or ParentTransactionLink (object) or LeadSourceLink (object) or ApprovalUrlLink (object) or RefundUrlLink (object) or TransactionUpdateUrlLink (object) or DisputeLink (object) or InvoicesLink (object) or QueryUrlLink (object) non-empty

The links related to resource.

Array of ParentTransactionEmbed (object) or GatewayAccountEmbed (object) or CustomerEmbed (object) or LeadSourceEmbed (object) or WebsiteEmbed (object) or PaymentCardEmbed (object) or BankAccountEmbed (object) or InvoicesEmbed (object) non-empty

Any embedded objects available that are requested by the expand querystring parameter.

401Unauthorized access, invalid credentials was used.
403Access forbidden.
422Invalid data was sent.
get/transactions
Request samples
$transactions = $client->transactions()->search([
    'filter' => 'result:approved',
]);
Response samples
application/json
[
  • {
    }
]

Retrieve a Transaction

Retrieve a Transaction with specified identifier string.

Request
Security:
path Parameters
id
required
string <= 50 characters ^[@~\-\.\w]+$

The resource identifier string.

query Parameters
expand
string

Expand a response to get a full related object included inside of the _embedded path in the response. It accepts a comma-separated list of objects to expand. See the expand guide for more info.

header Parameters
Organization-Id
string (ResourceId) <= 50 characters

Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).

Example: 4f6cf35x-2c4y-483z-a0a9-158621f77a21
Responses
200Transaction was retrieved successfully.
Response Schema: application/json
id
string <= 50 characters

The transaction ID.

websiteId
string <= 50 characters

The website ID.

customerId
string <= 50 characters

The сustomer's ID.

type
string

Transaction type.

Enum: "3ds-authentication" "authorize" "capture" "credit" "refund" "sale" "void"
status
string

Transaction status.

Enum: "completed" "conn-error" "disputed" "never-sent" "offsite" "partially-refunded" "pending" "refunded" "sending" "suspended" "timeout" "voided" "waiting-approval" "waiting-capture" "waiting-gateway" "waiting-refund"
result
string

Transaction result.

Enum: "abandoned" "approved" "canceled" "declined" "unknown"
amount
number <double>

The transaction's amount.

currency
string 3 characters

ISO 4217 alphabetic currency code.

purchaseAmount
number <double>

The amount actually purchased which may have differed from the originally requested amount in case of an adjustment.

purchaseCurrency
string 3 characters

ISO 4217 alphabetic currency code.

requestAmount
number <double>

The amount in the payment request. If adjusted, the purchase amount and billing amount may vary from it.

requestCurrency
string 3 characters

ISO 4217 alphabetic currency code.

parentTransactionId
string <= 50 characters

The parent's transaction ID.

childTransactions
Array of strings (ResourceId)

The child transaction IDs.

invoiceIds
Array of strings (ResourceId)

The invoice IDs related to transaction.

subscriptionIds
Array of strings (ResourceId)

The orders IDs related to transaction's invoice(s).

planIds
Array of strings (ResourceId)

The plan IDs related to transaction's order(s).

isRebill
boolean
rebillNumber
integer

The transaction's rebill number.

Vaulted instrument (object) or Alternative Instrument (object) or Cash (object) or Check (object)
object

Billing address.

has3ds
boolean
object
redirectUrl
string <uri>

The URL to redirect the end-user when an offsite transaction is completed. Defaults to the website's configured URL.

retryNumber
integer

The position in the sequence of retries.

isRetry
boolean

True if this transaction is retry.

billingDescriptor
string

The billing descriptor that appears on the periodic billing statement. Commonly 12 or fewer characters for a credit card statement.

description
string <= 255 characters

The payment description.

requestId
string

The transaction's request ID. This ID must be unique within a 24 hour period. Use this field to prevent duplicated transactions.

hasAmountAdjustment
boolean

True if transaction has amount adjustment.

gatewayName
string

Payment Gateway name, available only after the gateway is selected for the transaction.

Enum: "A1Gateway" "Adyen" "Airpay" "AmazonPay" "AmexVPC" "ApcoPay" "AsiaPaymentGateway" "AstroPayCard" "AuthorizeNet" "Bambora" "BitPay" "BlueSnap" "BraintreePayments" "Cardknox" "Cashflows" "CASHlib" "CashToCode" "CauriPayment" "Cayan" "CCAvenue" "Chase" "CheckoutCom" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "DataCash" "Dengi" "Dragonphoenix" "Directa24" "dLocal" "EBANX" "ecoPayz" "EcorePay" "Elavon" "Euteller" "eMerchantPay" "EMS" "EPG" "EPro" "eZeeWallet" "ezyEFT" "Finrax" "Flexepin" "FinTecSystems" "FundSend" "Forte" "GET" "Gigadat" "GlobalOnePay" "Gooney" "Gpaysafe" "Greenbox" "HiPay" "iCanPay" "ICEPAY" "iCheque" "iDebit" "Ilixium" "Ingenico" "INOVAPAY" "Inovio" "Intuit" "InstaDebit" "IpayOptions" "JetPay" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "MiFinity" "Moneris" "MtaPay" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "NGenius" "NinjaWallet" "NMI" "NuaPay" "OchaPay" "Onlineueberweisen" "OnRamp" "Pagsmile" "Panamerican" "ParamountEft" "ParamountInterac" "PandaGateway" "Pay4Fun" "PayCash" "PayClub" "Payeezy" "Payflow" "Paynote" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "PayPal" "Payr" "Paysafe" "Paysafecash" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Plugnpay" "PostFinance" "Prosa" "Rapyd" "Realex" "Realtime" "Redsys" "Rotessa" "RPN" "Safecharge" "SaltarPay" "Sagepay" "SeamlessChex" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "StaticGateway" "Stripe" "Telr" "TestProcessor" "ToditoCash" "Truevo" "TrustPay" "TrustsPay" "Trustly" "TWINT" "UPayCard" "USAePay" "VantivLitle" "vegaaH" "VCreditos" "Wallet88" "Walpay" "Wirecard" "WorldlineAtosFrankfurt" "Worldpay" "XPay" "Zimpler" "Zotapay"
customFields
object (ResourceCustomFields)
Default: {}

Custom Fields list as a map {"custom field name": "custom field value", ...}. The format must follow the saved format (see Custom Fields section for the formats).

processedTime
string <date-time>

Transaction processed time.

createdTime
string <date-time>

Transaction created time.

updatedTime
string <date-time>

Transaction updated time.

gatewayAccountId
string <= 50 characters

The transaction's Gateway Account ID.

gatewayTransactionId
string <= 50 characters

The gateway's transaction ID.

object

The related gateway information.

acquirerName
string

Acquirer name, available only when transaction use gateway, else null.

Enum: "Adyen" "Alipay" "AIB" "Airpay" "AmazonPay" "ApcoPay" "AsiaPaymentGateway" "AstroPay Card" "Ipay Options" "B+S" "Bambora" "BitPay" "Bank of America" "Bank of Moscow" "Bank of Rebilly" "Bank One" "BMO Harris Bank" "Borgun" "BraintreePayments" "Cardknox" "CASHlib" "CashToCode" "Catalunya Caixa" "CCAvenue" "Chase" "CheckoutCom" "ChinaUnionPay" "CIM" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "dLocal" "Dragonphoenix" "EBANX" "ecoPayz" "EcorePay" "Elavon" "EMS" "EPG" "Euteller" "eZeeWallet" "ezyEFT" "Fifth Third Bank" "Finrax" "First Data Buypass" "First Data Nashville" "First Data North" "First Data Omaha" "FinTecSystems" "Flexepin" "Forte" "FundSend" "Gigadat" "Global East" "Gooney" "Gpaysafe" "Heartland" "HiPay" "HSBC" "iCanPay" "ICEPAY" "iCheque" "Ilixium" "Ingenico" "INOVAPAY" "Intuit" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "Masapay" "Merrick" "Mission Valley Bank" "MiFinity" "Moneris" "MuchBetter" "MyFatoorah" "NATWEST" "Neosurf" "Netbanking" "Neteller" "NinjaWallet" "NMI" "NuaPay" "Nuvei" "OchaPay" "Onlineueberweisen" "OnRamp" "Other" "Panamerican" "Panda Bank" "Paramount" "ParamountEft" "ParamountInterac" "Pay4fun" "PayCash" "PayClub" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "Paynetics" "PayPal" "Payr" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Peoples Trust Company" "PostFinance" "Privatbank" "Prosa" "QQPay" "Rapyd" "RBC" "RBS WorldPay" "RealTime" "Rotessa" "Safecharge" "SaltarPay" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "State Bank of Mauritius" "Stripe" "TBI" "Telr" "TestProcessor" "ToditoCash" "Truevo" "Trustly" "TrustPay" "TrustsPay" "TSYS" "TWINT" "UPayCard" "Vantiv" "VCreditos" "VoicePay" "Wallet88" "WeChat Pay" "Wells Fargo" "Wing Hang Bank" "Wirecard" "WorldPay" "XPay" "Zimpler" "Zotapay"
method
string
Deprecated

Payment Method. Use paymentInstrument.method instead.

Enum: "payment-card" "ach" "cash" "check" "paypal" "AdvCash" "Airpay" "Alfa-click" "Alipay" "AmazonPay" "Apple Pay" "AstroPay Card" "AstroPay-GO" "BankReferenced" "bank-transfer" "bank-transfer-2" "bank-transfer-3" "bank-transfer-4" "bank-transfer-5" "bank-transfer-6" "bank-transfer-7" "bank-transfer-8" "bank-transfer-9" "Baloto" "Beeline" "Belfius-direct-net" "bitcoin" "Blik" "Boleto" "Boleto-2" "Boleto-3" "cash-deposit" "CASHlib" "CashToCode" "CCAvenue" "China UnionPay" "CODVoucher" "Conekta-oxxo" "Conekta-spei" "cryptocurrency" "Cupon-de-pagos" "CyberSource" "domestic-cards" "Efecty" "echeck" "ecoPayz" "ecoVoucher" "EPS" "ePay.bg" "Ethereum" "e-wallet" "ezyEFT" "eZeeWallet" "Flexepin" "Giropay" "Google Pay" "Gpaysafe" "iDebit" "iDEAL" "ING-homepay" "INOVAPAY-pin" "INOVAPAY-wallet" "InstaDebit" "instant-bank-transfer" "Interac-online" "Interac-eTransfer" "Interac-express-connect" "Interac" "invoice" "iWallet" "Jeton" "jpay" "Khelocard" "Klarna" "Litecoin" "loonie" "LPG-online" "LPG-payment-card" "Matrix" "Megafon" "MiFinity-eWallet" "miscellaneous" "Bancontact" "Bancontact-mobile" "MTS" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "Nordea-Solo" "OchaPay" "online-bank-transfer" "Onlineueberweisen" "oriental-wallet" "OXXO" "P24" "PagoEffectivo" "Pagsmile-lottery" "Pagsmile-deposit-express" "PayCash" "Payeer" "PaymentAsia-crypto" "Paysafecard" "PayTabs" "Pay4Fun" "Paynote" "Paymero" "Paymero-QR" "PayU" "PayULatam" "Perfect-money" "Piastrix" "PIX" "PinPay" "phone" "PhonePe" "POLi" "PostFinance-card" "PostFinance-e-finance" "Przelewy24" "QIWI" "QQPay" "rapyd-checkout" "Resurs" "SEPA" "Siirto" "Skrill" "Skrill Rapid Transfer" "SMSVoucher" "Sofort" "SparkPay" "swift-dbt" "Tele2" "Telr" "Terminaly-RF" "Tether" "ToditoCash-card" "Trustly" "TWINT" "UniCrypt" "UPayCard" "UPI" "VCreditos" "VenusPoint" "voucher" "voucher-2" "voucher-3" "voucher-4" "Webmoney" "Webpay" "Webpay-2" "Webpay Card" "WeChat Pay" "XPay-P2P" "XPay-QR" "Yandex-money" "Zotapay" "Zimpler"
velocity
integer

The number of transactions by the same customer in the past 24 hours.

revision
integer

The number of times the transaction data has been modified. The revision is useful when analyzing webhook data to determine if the change takes precedence over the current representation.

object or null

Transaction reference data.

bin
string <bin>

Payment Card BIN.

hasDcc
boolean

True if transaction has Dynamic Currency Conversion applied.

object

Dynamic Currency Conversion detailed information. Null if hasDcc is false.

hasBumpOffer
boolean

True if transaction has a Bump offer.

object

Bump offer information. Null if hasBumpOffer is false.

riskScore
integer

The transaction's risk score.

object

Risk metadata.

notificationUrl
string <uri> (TransactionNotificationUrl)

The URL where a server-to-server POST notification will be sent. It will be sent when the transaction's result is finalized after a timeout or an offsite interaction. Do not trust the notification; follow with a GET request to confirm the result of the transaction. Please respond with a 2xx HTTP status code, or we will reattempt the request again. The 2 placeholders are available to use in this URI: {id} and {result}.

isDisputed
boolean

True if transaction is disputed.

disputeTime
string or null <date-time>

Time the dispute was created, else null.

disputeStatus
string or null

The dispute's status, else null.

Enum: "response-needed" "under-review" "forfeited" "won" "lost" "unknown"
isReconciled
boolean

True if the transaction has been verified with gateway batch data.

isProcessedOutside
boolean

True if the transaction was processed outside of Rebilly.

isMerchantInitiated
boolean

True if the transaction was initiated by the merchant.

hadDiscrepancy
boolean

True if the transaction has been updated due to a discrepancy with its. source of truth.

orderId
string
Deprecated

The transaction's order ID. This ID must be unique within a 24 hour period. This field was renamed to the requestId.

arn
string

The acquirer reference number.

reportAmount
number <double>

Transaction amount converted to organization selected report currency.

reportCurrency
string 3 characters

ISO 4217 alphabetic currency code.

settlementTime
string or null <date-time>

The time that the transaction was settled by the banking instuition.

discrepancyTime
string or null <date-time>

The time of the most recent discrepancy on the transaction.

Array of SelfLink (object) or WebsiteLink (object) or CustomerLink (object) or GatewayAccountLink (object) or PaymentCardLink (object) or ParentTransactionLink (object) or LeadSourceLink (object) or ApprovalUrlLink (object) or RefundUrlLink (object) or TransactionUpdateUrlLink (object) or DisputeLink (object) or InvoicesLink (object) or QueryUrlLink (object) non-empty

The links related to resource.

Array of ParentTransactionEmbed (object) or GatewayAccountEmbed (object) or CustomerEmbed (object) or LeadSourceEmbed (object) or WebsiteEmbed (object) or PaymentCardEmbed (object) or BankAccountEmbed (object) or InvoicesEmbed (object) non-empty

Any embedded objects available that are requested by the expand querystring parameter.

401Unauthorized access, invalid credentials was used.
403Access forbidden.
404Resource was not found.
get/transactions/{id}
Request samples
$transaction = $client->transactions()->load('transactionId');
Response samples
application/json
{
  • "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "websiteId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "type": "3ds-authentication",
  • "status": "completed",
  • "result": "abandoned",
  • "amount": 0,
  • "currency": "USD",
  • "purchaseAmount": 0,
  • "purchaseCurrency": "USD",
  • "requestAmount": 0,
  • "requestCurrency": "USD",
  • "parentTransactionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "childTransactions": [
    ],
  • "invoiceIds": [
    ],
  • "subscriptionIds": [
    ],
  • "planIds": [
    ],
  • "isRebill": true,
  • "rebillNumber": 0,
  • "paymentInstrument": {
    },
  • "billingAddress": {
    },
  • "has3ds": true,
  • "3ds": {
    },
  • "redirectUrl": "http://example.com",
  • "retryNumber": 0,
  • "isRetry": true,
  • "billingDescriptor": "string",
  • "description": "string",
  • "requestId": "string",
  • "hasAmountAdjustment": true,
  • "gatewayName": "A1Gateway",
  • "customFields": {
    },
  • "processedTime": "2019-08-24T14:15:22Z",
  • "createdTime": "2019-08-24T14:15:22Z",
  • "updatedTime": "2019-08-24T14:15:22Z",
  • "gatewayAccountId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "gatewayTransactionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "gateway": {
    },
  • "acquirerName": "Adyen",
  • "method": "payment-card",
  • "velocity": 0,
  • "revision": 0,
  • "referenceData": {
    },
  • "bin": "string",
  • "hasDcc": true,
  • "dcc": {
    },
  • "hasBumpOffer": true,
  • "bumpOffer": {
    },
  • "riskScore": 0,
  • "riskMetadata": {
    },
  • "notificationUrl": "http://example.com",
  • "isDisputed": true,
  • "disputeTime": "2019-08-24T14:15:22Z",
  • "disputeStatus": "response-needed",
  • "isReconciled": true,
  • "isProcessedOutside": true,
  • "isMerchantInitiated": true,
  • "hadDiscrepancy": true,
  • "orderId": "string",
  • "arn": "74836950144358910018150",
  • "reportAmount": 0,
  • "reportCurrency": "USD",
  • "settlementTime": "2019-08-24T14:15:22Z",
  • "discrepancyTime": "2019-08-24T14:15:22Z",
  • "_links": [
    ],
  • "_embedded": [
    ]
}

Update a transaction

Update a transaction's custom fields.

Request
Security:
path Parameters
id
required
string <= 50 characters ^[@~\-\.\w]+$

The resource identifier string.

header Parameters
Organization-Id
string (ResourceId) <= 50 characters

Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).

Example: 4f6cf35x-2c4y-483z-a0a9-158621f77a21
Request Body schema: application/json

Use the patch transaction request to modify custom fields.

customFields
object (ResourceCustomFields)
Default: {}

Custom Fields list as a map {"custom field name": "custom field value", ...}. The format must follow the saved format (see Custom Fields section for the formats).

Responses
200Transaction was updated successfully.
Response Schema: application/json
id
string <= 50 characters

The transaction ID.

websiteId
string <= 50 characters

The website ID.

customerId
string <= 50 characters

The сustomer's ID.

type
string

Transaction type.

Enum: "3ds-authentication" "authorize" "capture" "credit" "refund" "sale" "void"
status
string

Transaction status.

Enum: "completed" "conn-error" "disputed" "never-sent" "offsite" "partially-refunded" "pending" "refunded" "sending" "suspended" "timeout" "voided" "waiting-approval" "waiting-capture" "waiting-gateway" "waiting-refund"
result
string

Transaction result.

Enum: "abandoned" "approved" "canceled" "declined" "unknown"
amount
number <double>

The transaction's amount.

currency
string 3 characters

ISO 4217 alphabetic currency code.

purchaseAmount
number <double>

The amount actually purchased which may have differed from the originally requested amount in case of an adjustment.

purchaseCurrency
string 3 characters

ISO 4217 alphabetic currency code.

requestAmount
number <double>

The amount in the payment request. If adjusted, the purchase amount and billing amount may vary from it.

requestCurrency
string 3 characters

ISO 4217 alphabetic currency code.

parentTransactionId
string <= 50 characters

The parent's transaction ID.

childTransactions
Array of strings (ResourceId)

The child transaction IDs.

invoiceIds
Array of strings (ResourceId)

The invoice IDs related to transaction.

subscriptionIds
Array of strings (ResourceId)

The orders IDs related to transaction's invoice(s).

planIds
Array of strings (ResourceId)

The plan IDs related to transaction's order(s).

isRebill
boolean
rebillNumber
integer

The transaction's rebill number.

Vaulted instrument (object) or Alternative Instrument (object) or Cash (object) or Check (object)
object

Billing address.

has3ds
boolean
object
redirectUrl
string <uri>

The URL to redirect the end-user when an offsite transaction is completed. Defaults to the website's configured URL.

retryNumber
integer

The position in the sequence of retries.

isRetry
boolean

True if this transaction is retry.

billingDescriptor
string

The billing descriptor that appears on the periodic billing statement. Commonly 12 or fewer characters for a credit card statement.

description
string <= 255 characters

The payment description.

requestId
string

The transaction's request ID. This ID must be unique within a 24 hour period. Use this field to prevent duplicated transactions.

hasAmountAdjustment
boolean

True if transaction has amount adjustment.

gatewayName
string

Payment Gateway name, available only after the gateway is selected for the transaction.

Enum: "A1Gateway" "Adyen" "Airpay" "AmazonPay" "AmexVPC" "ApcoPay" "AsiaPaymentGateway" "AstroPayCard" "AuthorizeNet" "Bambora" "BitPay" "BlueSnap" "BraintreePayments" "Cardknox" "Cashflows" "CASHlib" "CashToCode" "CauriPayment" "Cayan" "CCAvenue" "Chase" "CheckoutCom" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "DataCash" "Dengi" "Dragonphoenix" "Directa24" "dLocal" "EBANX" "ecoPayz" "EcorePay" "Elavon" "Euteller" "eMerchantPay" "EMS" "EPG" "EPro" "eZeeWallet" "ezyEFT" "Finrax" "Flexepin" "FinTecSystems" "FundSend" "Forte" "GET" "Gigadat" "GlobalOnePay" "Gooney" "Gpaysafe" "Greenbox" "HiPay" "iCanPay" "ICEPAY" "iCheque" "iDebit" "Ilixium" "Ingenico" "INOVAPAY" "Inovio" "Intuit" "InstaDebit" "IpayOptions" "JetPay" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "MiFinity" "Moneris" "MtaPay" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "NGenius" "NinjaWallet" "NMI" "NuaPay" "OchaPay" "Onlineueberweisen" "OnRamp" "Pagsmile" "Panamerican" "ParamountEft" "ParamountInterac" "PandaGateway" "Pay4Fun" "PayCash" "PayClub" "Payeezy" "Payflow" "Paynote" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "PayPal" "Payr" "Paysafe" "Paysafecash" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Plugnpay" "PostFinance" "Prosa" "Rapyd" "Realex" "Realtime" "Redsys" "Rotessa" "RPN" "Safecharge" "SaltarPay" "Sagepay" "SeamlessChex" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "StaticGateway" "Stripe" "Telr" "TestProcessor" "ToditoCash" "Truevo" "TrustPay" "TrustsPay" "Trustly" "TWINT" "UPayCard" "USAePay" "VantivLitle" "vegaaH" "VCreditos" "Wallet88" "Walpay" "Wirecard" "WorldlineAtosFrankfurt" "Worldpay" "XPay" "Zimpler" "Zotapay"
customFields
object (ResourceCustomFields)
Default: {}

Custom Fields list as a map {"custom field name": "custom field value", ...}. The format must follow the saved format (see Custom Fields section for the formats).

processedTime
string <date-time>

Transaction processed time.

createdTime
string <date-time>

Transaction created time.

updatedTime
string <date-time>

Transaction updated time.

gatewayAccountId
string <= 50 characters

The transaction's Gateway Account ID.

gatewayTransactionId
string <= 50 characters

The gateway's transaction ID.

object

The related gateway information.

acquirerName
string

Acquirer name, available only when transaction use gateway, else null.

Enum: "Adyen" "Alipay" "AIB" "Airpay" "AmazonPay" "ApcoPay" "AsiaPaymentGateway" "AstroPay Card" "Ipay Options" "B+S" "Bambora" "BitPay" "Bank of America" "Bank of Moscow" "Bank of Rebilly" "Bank One" "BMO Harris Bank" "Borgun" "BraintreePayments" "Cardknox" "CASHlib" "CashToCode" "Catalunya Caixa" "CCAvenue" "Chase" "CheckoutCom" "ChinaUnionPay" "CIM" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "dLocal" "Dragonphoenix" "EBANX" "ecoPayz" "EcorePay" "Elavon" "EMS" "EPG" "Euteller" "eZeeWallet" "ezyEFT" "Fifth Third Bank" "Finrax" "First Data Buypass" "First Data Nashville" "First Data North" "First Data Omaha" "FinTecSystems" "Flexepin" "Forte" "FundSend" "Gigadat" "Global East" "Gooney" "Gpaysafe" "Heartland" "HiPay" "HSBC" "iCanPay" "ICEPAY" "iCheque" "Ilixium" "Ingenico" "INOVAPAY" "Intuit" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "Masapay" "Merrick" "Mission Valley Bank" "MiFinity" "Moneris" "MuchBetter" "MyFatoorah" "NATWEST" "Neosurf" "Netbanking" "Neteller" "NinjaWallet" "NMI" "NuaPay" "Nuvei" "OchaPay" "Onlineueberweisen" "OnRamp" "Other" "Panamerican" "Panda Bank" "Paramount" "ParamountEft" "ParamountInterac" "Pay4fun" "PayCash" "PayClub" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "Paynetics" "PayPal" "Payr" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Peoples Trust Company" "PostFinance" "Privatbank" "Prosa" "QQPay" "Rapyd" "RBC" "RBS WorldPay" "RealTime" "Rotessa" "Safecharge" "SaltarPay" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "State Bank of Mauritius" "Stripe" "TBI" "Telr" "TestProcessor" "ToditoCash" "Truevo" "Trustly" "TrustPay" "TrustsPay" "TSYS" "TWINT" "UPayCard" "Vantiv" "VCreditos" "VoicePay" "Wallet88" "WeChat Pay" "Wells Fargo" "Wing Hang Bank" "Wirecard" "WorldPay" "XPay" "Zimpler" "Zotapay"
method
string
Deprecated

Payment Method. Use paymentInstrument.method instead.

Enum: "payment-card" "ach" "cash" "check" "paypal" "AdvCash" "Airpay" "Alfa-click" "Alipay" "AmazonPay" "Apple Pay" "AstroPay Card" "AstroPay-GO" "BankReferenced" "bank-transfer" "bank-transfer-2" "bank-transfer-3" "bank-transfer-4" "bank-transfer-5" "bank-transfer-6" "bank-transfer-7" "bank-transfer-8" "bank-transfer-9" "Baloto" "Beeline" "Belfius-direct-net" "bitcoin" "Blik" "Boleto" "Boleto-2" "Boleto-3" "cash-deposit" "CASHlib" "CashToCode" "CCAvenue" "China UnionPay" "CODVoucher" "Conekta-oxxo" "Conekta-spei" "cryptocurrency" "Cupon-de-pagos" "CyberSource" "domestic-cards" "Efecty" "echeck" "ecoPayz" "ecoVoucher" "EPS" "ePay.bg" "Ethereum" "e-wallet" "ezyEFT" "eZeeWallet" "Flexepin" "Giropay" "Google Pay" "Gpaysafe" "iDebit" "iDEAL" "ING-homepay" "INOVAPAY-pin" "INOVAPAY-wallet" "InstaDebit" "instant-bank-transfer" "Interac-online" "Interac-eTransfer" "Interac-express-connect" "Interac" "invoice" "iWallet" "Jeton" "jpay" "Khelocard" "Klarna" "Litecoin" "loonie" "LPG-online" "LPG-payment-card" "Matrix" "Megafon" "MiFinity-eWallet" "miscellaneous" "Bancontact" "Bancontact-mobile" "MTS" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "Nordea-Solo" "OchaPay" "online-bank-transfer" "Onlineueberweisen" "oriental-wallet" "OXXO" "P24" "PagoEffectivo" "Pagsmile-lottery" "Pagsmile-deposit-express" "PayCash" "Payeer" "PaymentAsia-crypto" "Paysafecard" "PayTabs" "Pay4Fun" "Paynote" "Paymero" "Paymero-QR" "PayU" "PayULatam" "Perfect-money" "Piastrix" "PIX" "PinPay" "phone" "PhonePe" "POLi" "PostFinance-card" "PostFinance-e-finance" "Przelewy24" "QIWI" "QQPay" "rapyd-checkout" "Resurs" "SEPA" "Siirto" "Skrill" "Skrill Rapid Transfer" "SMSVoucher" "Sofort" "SparkPay" "swift-dbt" "Tele2" "Telr" "Terminaly-RF" "Tether" "ToditoCash-card" "Trustly" "TWINT" "UniCrypt" "UPayCard" "UPI" "VCreditos" "VenusPoint" "voucher" "voucher-2" "voucher-3" "voucher-4" "Webmoney" "Webpay" "Webpay-2" "Webpay Card" "WeChat Pay" "XPay-P2P" "XPay-QR" "Yandex-money" "Zotapay" "Zimpler"
velocity
integer

The number of transactions by the same customer in the past 24 hours.

revision
integer

The number of times the transaction data has been modified. The revision is useful when analyzing webhook data to determine if the change takes precedence over the current representation.

object or null

Transaction reference data.

bin
string <bin>

Payment Card BIN.

hasDcc
boolean

True if transaction has Dynamic Currency Conversion applied.

object

Dynamic Currency Conversion detailed information. Null if hasDcc is false.

hasBumpOffer
boolean

True if transaction has a Bump offer.

object

Bump offer information. Null if hasBumpOffer is false.

riskScore
integer

The transaction's risk score.

object

Risk metadata.

notificationUrl
string <uri> (TransactionNotificationUrl)

The URL where a server-to-server POST notification will be sent. It will be sent when the transaction's result is finalized after a timeout or an offsite interaction. Do not trust the notification; follow with a GET request to confirm the result of the transaction. Please respond with a 2xx HTTP status code, or we will reattempt the request again. The 2 placeholders are available to use in this URI: {id} and {result}.

isDisputed
boolean

True if transaction is disputed.

disputeTime
string or null <date-time>

Time the dispute was created, else null.

disputeStatus
string or null

The dispute's status, else null.

Enum: "response-needed" "under-review" "forfeited" "won" "lost" "unknown"
isReconciled
boolean

True if the transaction has been verified with gateway batch data.

isProcessedOutside
boolean

True if the transaction was processed outside of Rebilly.

isMerchantInitiated
boolean

True if the transaction was initiated by the merchant.

hadDiscrepancy
boolean

True if the transaction has been updated due to a discrepancy with its. source of truth.

orderId
string
Deprecated

The transaction's order ID. This ID must be unique within a 24 hour period. This field was renamed to the requestId.

arn
string

The acquirer reference number.

reportAmount
number <double>

Transaction amount converted to organization selected report currency.

reportCurrency
string 3 characters

ISO 4217 alphabetic currency code.

settlementTime
string or null <date-time>

The time that the transaction was settled by the banking instuition.

discrepancyTime
string or null <date-time>

The time of the most recent discrepancy on the transaction.

Array of SelfLink (object) or WebsiteLink (object) or CustomerLink (object) or GatewayAccountLink (object) or PaymentCardLink (object) or ParentTransactionLink (object) or LeadSourceLink (object) or ApprovalUrlLink (object) or RefundUrlLink (object) or TransactionUpdateUrlLink (object) or DisputeLink (object) or InvoicesLink (object) or QueryUrlLink (object) non-empty

The links related to resource.

Array of ParentTransactionEmbed (object) or GatewayAccountEmbed (object) or CustomerEmbed (object) or LeadSourceEmbed (object) or WebsiteEmbed (object) or PaymentCardEmbed (object) or BankAccountEmbed (object) or InvoicesEmbed (object) non-empty

Any embedded objects available that are requested by the expand querystring parameter.

401Unauthorized access, invalid credentials was used.
403Access forbidden.
404Resource was not found.
patch/transactions/{id}
Request samples
application/json
{
  • "customFields": {
    }
}
Response samples
application/json
{
  • "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "websiteId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "type": "3ds-authentication",
  • "status": "completed",
  • "result": "abandoned",
  • "amount": 0,
  • "currency": "USD",
  • "purchaseAmount": 0,
  • "purchaseCurrency": "USD",
  • "requestAmount": 0,
  • "requestCurrency": "USD",
  • "parentTransactionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "childTransactions": [
    ],
  • "invoiceIds": [
    ],
  • "subscriptionIds": [
    ],
  • "planIds": [
    ],
  • "isRebill": true,
  • "rebillNumber": 0,
  • "paymentInstrument": {
    },
  • "billingAddress": {
    },
  • "has3ds": true,
  • "3ds": {
    },
  • "redirectUrl": "http://example.com",
  • "retryNumber": 0,
  • "isRetry": true,
  • "billingDescriptor": "string",
  • "description": "string",
  • "requestId": "string",
  • "hasAmountAdjustment": true,
  • "gatewayName": "A1Gateway",
  • "customFields": {
    },
  • "processedTime": "2019-08-24T14:15:22Z",
  • "createdTime": "2019-08-24T14:15:22Z",
  • "updatedTime": "2019-08-24T14:15:22Z",
  • "gatewayAccountId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "gatewayTransactionId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
  • "gateway": {
    },
  • "acquirerName": "Adyen",
  • "method": "payment-card",
  • "velocity": 0,
  • "revision": 0,
  • "referenceData": {
    },
  • "bin": "string",
  • "hasDcc": true,
  • "dcc": {
    },
  • "hasBumpOffer": true,
  • "bumpOffer": {
    },
  • "riskScore": 0,
  • "riskMetadata": {
    },
  • "notificationUrl": "http://example.com",
  • "isDisputed": true,
  • "disputeTime": "2019-08-24T14:15:22Z",
  • "disputeStatus": "response-needed",
  • "isReconciled": true,
  • "isProcessedOutside": true,
  • "isMerchantInitiated": true,
  • "hadDiscrepancy": true,
  • "orderId": "string",
  • "arn": "74836950144358910018150",
  • "reportAmount": 0,
  • "reportCurrency": "USD",
  • "settlementTime": "2019-08-24T14:15:22Z",
  • "discrepancyTime": "2019-08-24T14:15:22Z",
  • "_links": [
    ],
  • "_embedded": [
    ]
}

Create a credit transaction

Create a transaction of type credit.

Request
Security:
header Parameters
Organization-Id
string (ResourceId) <= 50 characters

Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).

Example: 4f6cf35x-2c4y-483z-a0a9-158621f77a21
Request Body schema: application/json

Transaction resource.

websiteId
required
string <= 50 characters

The website identifier string.

customerId
required
string <= 50 characters

The customer identifier string.

currency
required
string 3 characters

ISO 4217 alphabetic currency code.

amount
required
number <double>

The transaction amount.

invoiceIds
Array of strings or null (ResourceId)

The array of invoice identifiers.

Payment Token (object) or Payment Instrument (object) or Payment Methods (object)

Payment instruction. If not supplied, customer's default payment instrument will be used.

Vaulted instrument (object) or Alternative Instrument (object) or Cash (object) or Check (object)
Deprecated
object or null

Billing address. If not supplied, we use the billing address associated with the payment instrument, and then customer.

requestId
string or null <= 50 characters ^[\-\w]+$

The request id is recommended. It prevents duplicate transaction requests within a short period of time. If a duplicate request is sent with the same requestId it will be ignored to prevent double-billing anyone. It must be unique within a 24-hour period. We recommend generating a UUID v4 as its value.

gatewayAccountId
string or null <= 50 characters

Rebilly will select the appropriate payment gateway account for the transaction based on the properties of the transaction and the gateway-account-requested event rules configurations. If you wish to prevent Rebilly from making the gateway account selection, you may supply a gateway account id here, and it will be used instead. Only use this field if you intend to override the settings.

description
string or null <= 255 characters

The payment description.

notificationUrl
string or null <uri>

The URL where a server-to-server notification request type POST with a transaction payload will be sent when the transaction's result is finalized. Do not trust the notification; follow with a GET request to confirm the result of the transaction. Please respond with a 2xx HTTP status code, or we will reattempt the request again. You may use {id} or {result} as placeholders in the URL and we will replace them with the transaction's id and result accordingly.

redirectUrl
string or null <uri>

The URL to redirect the end-user when an offsite transaction is completed. Defaults to the website's configured URL. You may use {id} or {result} as placeholders in the URL and we will replace them with the transaction's id and result accordingly.

customFields
object (ResourceCustomFields)
Default: {}

Custom Fields list as a map {"custom field name": "custom field value", ...}. The format must follow the saved format (see Custom Fields section for the formats).

object (Risk metadata)

Risk metadata used for 3DS and risk scoring.

isProcessedOutside
boolean
Default: false

True if transaction was processed outside Rebilly.

isMerchantInitiated
boolean
Default: false

True if the transaction was initiated by the merchant.

processedTime
string <date-time>

The time the transaction was processed. Can be specified only if transaction was processed outside Rebilly.

Responses
201Transaction was created.
Response Schema: application/json
id
string <= 50 characters

The transaction ID.

websiteId
string <= 50 characters

The website ID.

customerId
string <= 50 characters

The сustomer's ID.

type
string

Transaction type.

Enum: "3ds-authentication" "authorize" "capture" "credit" "refund" "sale" "void"
status
string

Transaction status.

Enum: "completed" "conn-error" "disputed" "never-sent" "offsite" "partially-refunded" "pending" "refunded" "sending" "suspended" "timeout" "voided" "waiting-approval" "waiting-capture" "waiting-gateway" "waiting-refund"
result
string

Transaction result.

Enum: "abandoned" "approved" "canceled" "declined" "unknown"
amount
number <double>

The transaction's amount.

currency
string 3 characters

ISO 4217 alphabetic currency code.

purchaseAmount
number <double>

The amount actually purchased which may have differed from the originally requested amount in case of an adjustment.

purchaseCurrency
string 3 characters

ISO 4217 alphabetic currency code.

requestAmount
number <double>

The amount in the payment request. If adjusted, the purchase amount and billing amount may vary from it.

requestCurrency
string 3 characters

ISO 4217 alphabetic currency code.

parentTransactionId
string <= 50 characters

The parent's transaction ID.

childTransactions
Array of strings (ResourceId)

The child transaction IDs.

invoiceIds
Array of strings (ResourceId)

The invoice IDs related to transaction.

subscriptionIds
Array of strings (ResourceId)

The orders IDs related to transaction's invoice(s).

planIds
Array of strings (ResourceId)

The plan IDs related to transaction's order(s).

isRebill
boolean
rebillNumber
integer

The transaction's rebill number.

Vaulted instrument (object) or Alternative Instrument (object) or Cash (object) or Check (object)
object

Billing address.

has3ds
boolean
object
redirectUrl
string <uri>

The URL to redirect the end-user when an offsite transaction is completed. Defaults to the website's configured URL.

retryNumber
integer

The position in the sequence of retries.

isRetry
boolean

True if this transaction is retry.

billingDescriptor
string

The billing descriptor that appears on the periodic billing statement. Commonly 12 or fewer characters for a credit card statement.

description
string <= 255 characters

The payment description.

requestId
string

The transaction's request ID. This ID must be unique within a 24 hour period. Use this field to prevent duplicated transactions.

hasAmountAdjustment
boolean

True if transaction has amount adjustment.

gatewayName
string

Payment Gateway name, available only after the gateway is selected for the transaction.

Enum: "A1Gateway" "Adyen" "Airpay" "AmazonPay" "AmexVPC" "ApcoPay" "AsiaPaymentGateway" "AstroPayCard" "AuthorizeNet" "Bambora" "BitPay" "BlueSnap" "BraintreePayments" "Cardknox" "Cashflows" "CASHlib" "CashToCode" "CauriPayment" "Cayan" "CCAvenue" "Chase" "CheckoutCom" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "DataCash" "Dengi" "Dragonphoenix" "Directa24" "dLocal" "EBANX" "ecoPayz" "EcorePay" "Elavon" "Euteller" "eMerchantPay" "EMS" "EPG" "EPro" "eZeeWallet" "ezyEFT" "Finrax" "Flexepin" "FinTecSystems" "FundSend" "Forte" "GET" "Gigadat" "GlobalOnePay" "Gooney" "Gpaysafe" "Greenbox" "HiPay" "iCanPay" "ICEPAY" "iCheque" "iDebit" "Ilixium" "Ingenico" "INOVAPAY" "Inovio" "Intuit" "InstaDebit" "IpayOptions" "JetPay" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "MiFinity" "Moneris" "MtaPay" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "NGenius" "NinjaWallet" "NMI" "NuaPay" "OchaPay" "Onlineueberweisen" "OnRamp" "Pagsmile" "Panamerican" "ParamountEft" "ParamountInterac" "PandaGateway" "Pay4Fun" "PayCash" "PayClub" "Payeezy" "Payflow" "Paynote" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "PayPal" "Payr" "Paysafe" "Paysafecash" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Plugnpay" "PostFinance" "Prosa" "Rapyd" "Realex" "Realtime" "Redsys" "Rotessa" "RPN" "Safecharge" "SaltarPay" "Sagepay" "SeamlessChex" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "StaticGateway" "Stripe" "Telr" "TestProcessor" "ToditoCash" "Truevo" "TrustPay" "TrustsPay" "Trustly" "TWINT" "UPayCard" "USAePay" "VantivLitle" "vegaaH" "VCreditos" "Wallet88" "Walpay" "Wirecard" "WorldlineAtosFrankfurt" "Worldpay" "XPay" "Zimpler" "Zotapay"
customFields
object (ResourceCustomFields)
Default: {}

Custom Fields list as a map {"custom field name": "custom field value", ...}. The format must follow the saved format (see Custom Fields section for the formats).

processedTime
string <date-time>

Transaction processed time.

createdTime
string <date-time>

Transaction created time.

updatedTime
string <date-time>

Transaction updated time.

gatewayAccountId
string <= 50 characters

The transaction's Gateway Account ID.

gatewayTransactionId
string <= 50 characters

The gateway's transaction ID.

object

The related gateway information.

acquirerName
string

Acquirer name, available only when transaction use gateway, else null.

Enum: "Adyen" "Alipay" "AIB" "Airpay" "AmazonPay" "ApcoPay" "AsiaPaymentGateway" "AstroPay Card" "Ipay Options" "B+S" "Bambora" "BitPay" "Bank of America" "Bank of Moscow" "Bank of Rebilly" "Bank One" "BMO Harris Bank" "Borgun" "BraintreePayments" "Cardknox" "CASHlib" "CashToCode" "Catalunya Caixa" "CCAvenue" "Chase" "CheckoutCom" "ChinaUnionPay" "CIM" "Circle" "Citadel" "Clearhaus" "CODVoucher" "CoinGate" "CoinPayments" "Conekta" "Coppr" "Credorax" "Cryptonator" "CyberSource" "dLocal" "Dragonphoenix" "EBANX" "ecoPayz" "EcorePay" "Elavon" "EMS" "EPG" "Euteller" "eZeeWallet" "ezyEFT" "Fifth Third Bank" "Finrax" "First Data Buypass" "First Data Nashville" "First Data North" "First Data Omaha" "FinTecSystems" "Flexepin" "Forte" "FundSend" "Gigadat" "Global East" "Gooney" "Gpaysafe" "Heartland" "HiPay" "HSBC" "iCanPay" "ICEPAY" "iCheque" "Ilixium" "Ingenico" "INOVAPAY" "Intuit" "Jeton" "Khelocard" "Konnektive" "loonie" "LPG" "Masapay" "Merrick" "Mission Valley Bank" "MiFinity" "Moneris" "MuchBetter" "MyFatoorah" "NATWEST" "Neosurf" "Netbanking" "Neteller" "NinjaWallet" "NMI" "NuaPay" "Nuvei" "OchaPay" "Onlineueberweisen" "OnRamp" "Other" "Panamerican" "Panda Bank" "Paramount" "ParamountEft" "ParamountInterac" "Pay4fun" "PayCash" "PayClub" "PaymentAsia" "PaymenTechnologies" "PaymentsOS" "Paymero" "Paynetics" "PayPal" "Payr" "PayTabs" "PayULatam" "Payvision" "Piastrix" "Peoples Trust Company" "PostFinance" "Privatbank" "Prosa" "QQPay" "Rapyd" "RBC" "RBS WorldPay" "RealTime" "Rotessa" "Safecharge" "SaltarPay" "SecureTrading" "SecurionPay" "Skrill" "SmartInvoice" "SMSVoucher" "Sofort" "SparkPay" "State Bank of Mauritius" "Stripe" "TBI" "Telr" "TestProcessor" "ToditoCash" "Truevo" "Trustly" "TrustPay" "TrustsPay" "TSYS" "TWINT" "UPayCard" "Vantiv" "VCreditos" "VoicePay" "Wallet88" "WeChat Pay" "Wells Fargo" "Wing Hang Bank" "Wirecard" "WorldPay" "XPay" "Zimpler" "Zotapay"
method
string
Deprecated

Payment Method. Use paymentInstrument.method instead.

Enum: "payment-card" "ach" "cash" "check" "paypal" "AdvCash" "Airpay" "Alfa-click" "Alipay" "AmazonPay" "Apple Pay" "AstroPay Card" "AstroPay-GO" "BankReferenced" "bank-transfer" "bank-transfer-2" "bank-transfer-3" "bank-transfer-4" "bank-transfer-5" "bank-transfer-6" "bank-transfer-7" "bank-transfer-8" "bank-transfer-9" "Baloto" "Beeline" "Belfius-direct-net" "bitcoin" "Blik" "Boleto" "Boleto-2" "Boleto-3" "cash-deposit" "CASHlib" "CashToCode" "CCAvenue" "China UnionPay" "CODVoucher" "Conekta-oxxo" "Conekta-spei" "cryptocurrency" "Cupon-de-pagos" "CyberSource" "domestic-cards" "Efecty" "echeck" "ecoPayz" "ecoVoucher" "EPS" "ePay.bg" "Ethereum" "e-wallet" "ezyEFT" "eZeeWallet" "Flexepin" "Giropay" "Google Pay" "Gpaysafe" "iDebit" "iDEAL" "ING-homepay" "INOVAPAY-pin" "INOVAPAY-wallet" "InstaDebit" "instant-bank-transfer" "Interac-online" "Interac-eTransfer" "Interac-express-connect" "Interac" "invoice" "iWallet" "Jeton" "jpay" "Khelocard" "Klarna" "Litecoin" "loonie" "LPG-online" "LPG-payment-card" "Matrix" "Megafon" "MiFinity-eWallet" "miscellaneous" "Bancontact" "Bancontact-mobile" "MTS" "MuchBetter" "MyFatoorah" "Neosurf" "Netbanking" "Neteller" "Nordea-Solo" "OchaPay" "online-bank-transfer" "Onlineueberweisen" "oriental-wallet" "OXXO" "P24" "PagoEffectivo" "Pagsmile-lottery" "Pagsmile-deposit-express" "PayCash" "Payeer" "PaymentAsia-crypto" "Paysafecard" "PayTabs" "Pay4Fun" "Paynote" "Paymero" "Paymero-QR" "PayU" "PayULatam" "Perfect-money" "Piastrix" "PIX" "PinPay" "phone" "PhonePe" "POLi" "PostFinance-card" "PostFinance-e-finance" "Przelewy24" "QIWI" "QQPay" "rapyd-checkout" "Resurs" "SEPA" "Siirto" "Skrill" "Skrill Rapid Transfer" "SMSVoucher" "Sofort" "SparkPay" "swift-dbt" "Tele2" "Telr" "Terminaly-RF" "Tether" "ToditoCash-card" "Trustly" "TWINT" "UniCrypt" "UPayCard" "UPI" "VCreditos" "VenusPoint" "voucher" "voucher-2" "voucher-3" "voucher-4" "Webmoney" "Webpay" "Webpay-2" "Webpay Card" "WeChat Pay" "XPay-P2P" "XPay-QR" "Yandex-money" "Zotapay" "Zimpler"
velocity
integer

The number of transactions by the same customer in the past 24 hours.

revision
integer

The number of times the transaction data has been modified. The revision is useful when analyzing webhook data to determine if the change takes precedence over the current representation.

object or null

Transaction reference data.

bin
string <bin>

Payment Card BIN.

hasDcc
boolean

True if transaction has Dynamic Currency Conversion applied.

object

Dynamic Currency Conversion detailed information. Null if hasDcc is false.

hasBumpOffer
boolean

True if transaction has a Bump offer.

object

Bump offer information. Null if hasBumpOffer is false.

riskScore
integer

The transaction's risk score.

object

Risk metadata.

notificationUrl
string <uri> (TransactionNotificationUrl)

The URL where a server-to-server POST notification will be sent. It will be sent when the transaction's result is finalized after a timeout or an offsite interaction. Do not trust the notification; follow with a GET request to confirm the result of the transaction. Please respond with a 2xx HTTP status code, or we will reattempt the request again. The 2 placeholders are available to use in this URI: {id} and {result}.

isDisputed
boolean

True if transaction is disputed.

disputeTime
string or null <date-time>

Time the dispute was created, else null.

disputeStatus
string or null

The dispute's status, else null.

Enum: "response-needed" "under-review" "forfeited" "won" "lost" "unknown"
isReconciled
boolean

True if the transaction has been verified with gateway batch data.

isProcessedOutside
boolean

True if the transaction was processed outside of Rebilly.

isMerchantInitiated
boolean

True if the transaction was initiated by the merchant.

hadDiscrepancy
boolean

True if the transaction has been updated due to a discrepancy with its. source of truth.

orderId
string
Deprecated

The transaction's order ID. This ID must be unique within a 24 hour period. This field was renamed to the requestId.

arn
string

The acquirer reference number.

reportAmount
number <double>

Transaction amount converted to organization selected report currency.

reportCurrency
string 3 characters

ISO 4217 alphabetic currency code.

settlementTime
string or null <date-time>

The time that the transaction was settled by the banking instuition.

discrepancyTime
string or null <date-time>

The time of the most recent discrepancy on the transaction.

Array of SelfLink (object) or WebsiteLink (object) or CustomerLink (object) or GatewayAccountLink (object) or PaymentCardLink (object) or ParentTransactionLink (object) or LeadSourceLink (object) or ApprovalUrlLink (object) or RefundUrlLink (object) or TransactionUpdateUrlLink (object) or DisputeLink (object) or InvoicesLink (object) or QueryUrlLink (object) non-empty

The links related to resource.

Array of ParentTransactionEmbed (object) or GatewayAccountEmbed (object) or CustomerEmbed (object) or LeadSourceEmbed (object) or WebsiteEmbed (object) or PaymentCardEmbed (object) or BankAccountEmbed (object) or InvoicesEmbed (object) non-empty

Any embedded objects available that are requested by the expand querystring parameter.

401Unauthorized access, invalid credentials was used.