Create deposit (credit card operations)
This deposit creation endpoint is used only for
Credit and debit cards deposits with the following integrations:
✔️ Server2Server
✔️ Fragments Lite
Allow merchants to create credit card operations by sending credit card details, card token or card identifier.
Media type of the body sent to the API.
application/json
ISO8601 Datetime with Timezone (yyyy-MM-dd'T'HH:mm:ssZ).
Merchant X-Login API Key.
Authorization control hash.
Unique idempotency key for ensuring that the same request is not processed more than once.
Details for creating a PCI deposit.
Country code of the deposit in ISO 3166-1 alpha-2 code format.
BR
Deposit amount in the currency specified. Up to 18 integers and 2 decimal places.
1000
Currency code of the amount in ISO 4217 format.
BRL
Number of installments in which the deposit will take place. *Check eligibility with your commercial contact.
1
Unique deposit ID on the merchant end.
800000001
Pattern: ^[A-Za-z0-9-_]*$
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.
Card Token generated with Cards SDK Without User Interface. Typically used if credit_card
object is not provided.
Card Identifier generated with Cards-on-file API. Typically used if credit_card
object is not provided.
Used to specify for which SubMerchant ID the deposit will be created.
Transaction description. It could be shown on the customer's credit card extract.
Test transaction
Valid IPv4 or IPv6 Address of the customer.
123.123.123.123
Unique customer's device ID. Used to identify and prevent fraud.
knakvuejffkiebyab
Choose if the deposit's fee will be paid by the customer or debited from your balance.
false
Example: false
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
).
Bad Request - Field validation error or invalid request structure.
POST /v3/deposits HTTP/1.1
Host: cc-api-stg.directa24.com
Content-Type: application/json
X-Date: 2025-08-29T16:53:24.498Z
X-Login: text
Authorization: text
Accept: */*
Content-Length: 598
{
"invoice_id": "800000001",
"amount": 1000,
"country": "BR",
"currency": "BRL",
"payer": {
"id": "11111",
"document": "84932568207",
"document_type": "CPF",
"email": "[email protected]",
"first_name": "John",
"last_name": "Smith",
"phone": "+233852662222",
"birth_date": "19880910",
"address": {
"street": "Calle 13",
"city": "bahia",
"state": "SP",
"zip_code": "12345-678"
}
},
"credit_card": {
"cvv": "123",
"card_number": "4111111111111111",
"expiration_month": "10",
"expiration_year": "25",
"holder_name": "JOHN SMITH"
},
"description": "Test transaction",
"client_ip": "123.123.123.123",
"device_id": "knakvuejffkiebyab",
"fee_on_payer": false
}
{
"deposit_id": 300604089,
"user_id": "80000001",
"merchant_invoice_id": "test766106146",
"payment_info": {
"type": "CREDIT_CARD",
"result": "SUCCESS",
"payment_method": "AE",
"payment_method_name": "American Express",
"amount": 505.95,
"currency": "MXN",
"created_at": "2021-02-05T22:10:45Z"
}
}
Last updated
Was this helpful?