Skip to main content
POST
Create a deposit request
This deposit creation endpoint is used for
  • 💳 Credit and debit card deposits with the following integrations:
    • ✔️ Fragments all-in-one solution
    • ✔️ OneShot redirect
  • 💵 Alternative payment methods.

Error codes

For more information regarding error codes, please visit API Codes page

Headers

Content-Type
string
default:application/json
required

Media type of the body sent to the API.

X-Date
string<date-time>
required

ISO8601 Datetime with Timezone (yyyy-MM-dd'T'HH:mm:ssZ)

X-Login
string
required

Merchant X-Login API Key.

Authorization
string
required

Authorization control hash.

X-Idempotency-Key
string

Unique idempotency key for ensuring that the same request is not processed more than once.

Body

application/json
country
string
required

Country of the deposit.

amount
number<double>
required

Amount of the deposit.

invoice_id
string
required

Unique deposit ID on your side.

currency
string
required

Currency of the deposit.

payer
object
required

Object containing details about the payer.

payment_method
string
required

Payment method code. Codes can be obtained from payment methods endpoint, or our coverage page

token_requested
string

Used to define if merchant want to receive the checkout_token in response in order to display Fragments SDK all-in-one.

card_identifier
string

Used to generate a transaction in the payer's card stored in our vault.

allow_installments
boolean

Used to indicate if the deposit should allow installments (in a credit card transaction). The options will be displayed to the user.

sub_merchant_id
integer<int64>

Used to specify for which SubMerchant ID the deposit will be created.

back_url
string<url>

HTTPS URL used to redirect the customer in case of cancelling the deposit.

success_url
string<url>

HTTPS URL used to redirect the customer in case of success.

error_url
string<url>

HTTPS URL used to redirect the customer in case of error while generating the payment.

notification_url
string<url>

HTTPS URL used to send the notifications about deposit's change of status.

payment_types
string[]
request_payer_data_on_validation_failure
boolean

Flag specifying if you want to ignore errors because of invalid phone, zip_code and/or city's state.

bonus_amount
number<double>

Used to show the customer a bonus amount (Pay 100, receive 120).

bonus_relative
boolean

Used to define if the bonus_amount was specified as an absolute value or as a percentage.

strikethrough_price
number<double>

Used to show the customer a strikethrough amount.

description
string

Description of the deposit.

client_ip
string<ip>

Valid IPv4/6 Address of the customer.

device_id
string

Unique customer's device ID created using our JS library.

language
string

Language of the view page.

HTTPS URL used as the Merchant logo on our cashier page.

test
boolean

Used to mark a deposit as test. If true, the deposit will not affect the merchant's balance.

mobile
boolean

Used to specify if the redirection will be made on a mobile device.

expiration
number

Used to express, in minutes, how long after its creation the deposit should expire. Cannot be more than the default expiration of the payment method.

early_release
boolean

Used to specify if the deposit should be released earlier.

fee_on_payer
boolean

Used to specify if you want to let the customer assume the deposit fee.

Response

Deposit successfully initiated. The response structure varies based on the checkout type (e.g., HOSTED or ONE_SHOT).

Response structure for a successfully initiated deposit with a ONE_SHOT checkout type, including payment information.

checkout_type
string

The type of checkout flow initiated.

redirect_url
string<url>

The URL to redirect the user to, if applicable.

deposit_id
integer<int64>

The unique identifier for the deposit transaction.

user_id
string

The unique identifier for the user associated with the deposit.

merchant_invoice_id
string

The merchant's unique invoice identifier for this deposit.

payment_info
object

Detailed information about the payment method and transaction specifics.