Skip to main content

Payment

Collects money from a payment method and deposits it into one or more Rapyd Wallets

Properties

NameTypeRequiredDescription
addressAddressaddress associated with this specific Rapyd entity Payment/Customer etc...
amountfloatThe amount received by the recipient, in units of the currency defined in currency. Decimal, including the correct number of decimal places for the currency exponent, as defined in ISO 2417:2015. To verify a card, set to 0.
auth_codestrIndicates that the card payment was authorized by the card network.
cancel_reasonstrReason for cancellation or reversal of a payment. Response only.
capturedboolIndicates whether the payment has been successfully captured. Response only.
complete_payment_urlstrURL where the customer is redirected for final steps in completing the operation. Provided by the clientRelevant to bank redirect payment methods
country_codestr
created_atintTime of creation of the payment, in Unix time. Response only.
currency_codestr
customer_tokenstrID of the customer who is making the payment. String starting with cus_. When a payment is created without an existing customer, the platform creates an anonymous customer with no payment methods. Response only.
descriptionstrDescription of the payment
disputeDisputeDescribes the fields contained in REST messages and webhooks for disputes of payments.
error_codestrRelevant error message (with an underscore between words) and ID number of the error. Response only.
error_payment_urlstrURL where the customer is redirected in case of an error in the operation. Provided by the client.Relevant to bank redirect payment methods
escrowdictDescribes the escrow. Relevant when the payment is created with escrow set to true. Response only.
ewallet_idstrID of the wallet that the money is paid into. String starting with ewallet_. Relevant when the request includes a single wallet. Response only.
ewalletsList[PaymentEwallets]Specifies the wallets that the money is collected into. If this is left blank, the money goes into the oldest 'collection'-type client wallet. If there is no 'collection' client wallet, the money goes into the oldest 'general'-type client wallet.
expirationfloatEnd of the time allowed for customer to make this payment, in Unix time. Must be after the current time
failure_codestrError code explaining the reason for failure of the payment. Response only.
failure_messagestrMessage to the merchant, explaining the reason for failure of the payment. Response only.
fixed_sidestrIndicates whether the FX rate is fixed for the buy side (seller) or for the sell side (buyer). _ buy - The currency that the Rapyd Wallet receives for goods or services. Fixed side buy relates to the seller (merchant) funds. For example, a US-based merchant wants to charge 100 USD. The buyer (customer) pays the amount in MXN that converts to 100 USD. This is the default. _ sell - The currency that the buyer is charged for purchasing goods or services. Fixed side sell relates to the buyer (customer) funds. For example, a US-based merchant wants to charge a buyer 2,000 MXN and will accept whatever amount in USD that is converted from 2,000 MXN.
flow_typestrReserved.
fx_ratefloatExchange rate for the transaction. When fixed_side is buy, fx_rate is the buy rate. When fixed_side is sell, fx_rate is the sell rate. Decimal number as string. Response only.
group_paymentstrID of the group payment. String starting with gp_. Relevant when the payment is part of a group payment.
id_strID of the payment. String starting with payment_. Response only
initiation_typestrReason for cancellation or reversal of a payment. Response only.
instructionsList[PaymentInstructions]Describes how the customer makes the payment. Read-only. Contains the following fields - _ name - Description of the payment method. _ steps - A steps object containing a list of steps for the customer to take. Each step is named stepN, where N is an integer.
invoicestrID of the invoice that this payment is for. String starting with inv_. Response only.
is_partialboolIndicates whether the payment has been partially paid. When false, indicates that the payment is unpaid or fully paid. Response only.
merchant_reference_idstrID defined by the client. Limited to 255 characters.
merchant_requested_amountstrIndicates the amount paid by the payer, in units of the currency defined in merchant_requested_currency. Relevant to payments with FX. Read only.
merchant_requested_currencystrIndicates the currency that merchant receives. Three-letter ISO 4217 code. Uppercase. Relevant to payments with FX. Response only.
metadatadictA JSON object defined by the client in the Customer Payment Method object. Response only.
midstrReserved
next_actionNextActionIndicates the next action for completing the payment. Response only. One of the following values are - _ 3d_verification - The next action is 3DS authentication. To simulate 3DS authentication in the sandbox, see Simulating 3DS Authentication. Relevant only to card payments. _ pending_capture - The next action is pending the capture of the amount. Relevant only to card payments when the amount is not zero. _ pending_confirmation - The next action is pending the confirmation for the payment. Relevant to all payment methods excluding card payment. _ not_applicable - The payment has completed or the next action is not relevant.
orderstrID of the order that this payment is for. Read-only. Relevant when the payment is for an order.
original_amountfloat_ Foreign exchange payments - The amount paid by the sender, in units of the currency defined in requested_currency, including gross transaction fees and gross FX fees. _ Payments not involving foreign exchange - The amount of the payment, in units of the currency defined in currency, including gross transaction fees. Response only.
outcomeOutcomeThe outcome object describes the outcome of the Rapyd Protect risk assessment
paidboolIndicates whether the payment has been fully captured. Response only.
paid_atfloatTime of the last capture, in Unix time. Response only.
payment_feesFee
payment_methodstrpayment_method ID or object. If not specified in this field, the payment method is the default payment method specified for the customer. Mandatory when there is no default payment method. For a description of the fields in the payment_method object, see Customer Payment Method Object.
payment_method_datadictDetails of the payment_method_data object. See Payment Method Data Object. Response only.
payment_method_optionsdictObject describing additional payment method fields required for the payment. These values are not saved as part of the payment method object. To determine the fields required, run Get Payment Method Required Fields.
payment_method_typestrA type of payment method that a customer can use for making payments. The payment method type has a suffix with one of the following values [_bank, _card, _cash, _ewallet]
payment_method_type_categoryPaymentMethodTypeCategoryCategory of payment method type. Read-only.
receipt_emailstrEmail address that the receipt for this transaction is sent to
receipt_numberstrReserved. Response only
redirect_urlstrURL where the customer is redirected for additional steps required for the payment. Response only. To simulate 3DS authentication in the sandbox, see Simulating 3DS Authentication
refundedboolIndicates whether there was a refund against this payment. Response only.
refunded_amountfloatThe total amount refunded against this payment, in units of the currency defined in currency. Response only.
refundsPaymentRefundsRefunds object
remitter_informationdictContains the customer name and the associated bank account. This includes - _ name - Name of the customer. _ account_id - ID of the customer's bank account. * bank_code - SWIFT code for the customer's bank. Response only.
save_payment_methodbool_ true - Saves the card for future use. This is the default. _ false - Does not save the card. Relevant when payment_method_type_category is card and the "Create Payment" request includes full card details.
statement_descriptorstrA text description suitable for a customer's payment statement. Limited to 22 characters. If this field is not specified, Rapyd populates it with the name of the merchant
statusPaymentStatus
textual_codesdictA set of text codes for the customer to use to complete the steps described in the instructions field. Response only. The name of the field is the local name of the code, or some other label. For example _ code _ paycode _ pay_code _ payid _ pairing_code _ payment_code * response_code
transaction_idstrID of the associated transaction. Response only
visual_codesdictA set of images for the customer to use to complete the steps described in the instructions field. For example, a QR code or barcode. Response only.

PaymentMethodTypeCategory

Category of payment method type. Read-only.

Properties

NameTypeRequiredDescription
BANKTRANSFERstr"bank_transfer"
BANKREDIRECTstr"bank_redirect"
CARDstr"card"
CASHstr"cash"
EWALLETstr"ewallet"

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →