Skip to main content
POST
Create a deposit (credit card operations only)
This deposit creation endpoint is used only for
  • Credit and debit cards deposits with the following integrations:
    • ✔️ Server2Server
    • ✔️ Fragments Lite

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

Request body for creating a PCI deposit.

Details for creating a PCI deposit.

country
string
required

Country code of the deposit in ISO 3166-1 alpha-2 code format.

Required string length: 2
amount
number<double>
required

Deposit amount in the currency specified. Up to 18 integers and 2 decimal places.

currency
string
required

Currency code of the amount in ISO 4217 format.

Required string length: 3
invoice_id
string
required

Unique deposit ID on the merchant end.

Maximum string length: 128
Pattern: ^[A-Za-z0-9-_]*$
payer
object
required

Object containing details about the payer.

client_ip
string
required

Valid IPv4 or IPv6 Address of the customer.

installments
integer<int32>

Number of installments in which the deposit will take place. *Check eligibility with your commercial contact.

Required range: 1 <= x <= 12
external_subscription_id
string

ID of the generated subscription on your end, that will be charged to the card_identifier. This field is mandatory when creating a subscription with card_identifier.

Maximum string length: 128
credit_card
object

Object containing the credit card details.

card_token
string

Card Token generated with Cards SDK Without User Interface. Typically used if credit_card object is not provided.

Maximum string length: 50
card_identifier
string

Card Identifier generated with Cards-on-file API. Typically used if credit_card object is not provided.

Maximum string length: 50
sub_merchant_id
integer<int64>

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

three_domain_secure
object

Object containing the 3DS Authentication details from external provider.

description
string

Transaction description. It could be shown on the customer's credit card extract.

Maximum string length: 100
device_id
string

Unique customer's device ID. Used to identify and prevent fraud.

Maximum string length: 100
fee_on_payer
boolean
default:false

Choose if the deposit's fee will be paid by the customer or debited from your balance.

Response

Successful operation. The transaction outcome is indicated by the payment_info.result field. Refer to the PaymentInfo schema, specifically the result field description, for detailed explanations of possible transaction statuses and their implications (e.g., SUCCESS, REJECTED, PENDING_AUTHENTICATION).

Response structure for a PCI deposit creation request.

deposit_id
integer<int64>
required

ID of the deposit generated on our end. Store this ID for future reference.

merchant_invoice_id
string
required

ID of the deposit on your end. If you didn't send it, it is generated by us.

payment_info
PaymentInfo · object
required

Object containing the information about the payment.

user_id
string

ID of the user. If you didn't send it, it is generated by us.

authentication_url
string<url> | null

URL to display to the end-user to complete 3DS Authentication. Present if 3DS authentication is required (e.g., when payment_info.result is PENDING_AUTHENTICATION).