Page cover

Deposit

This page covers how to manage deposits through the API, including initiating and confirming payments. It provides necessary parameters, responses, and error handling strategies for successful transactions.

Request address

https://api.carouseller.com/v1/payments/deposit/

Headers

{β€œContent-Type: β€œapplication/json”}

Request example

 {
    "session_key": "eyJybmQiOiAiNjEwMjk4YjQtMTNiYy00ZTFkLWJmMDYtOTQxOTBlNzY1ZjMwIn0.ZNT0BQ.b4yavFYV_A-Z1dptn53ZJsMl8MY",
    "group": 1019, 
    "order_ref": "123454567",
    "amount": 10,
    "card_number": "4111111111111111",
    "valid_thru_month": "04",
    "valid_thru_year": "2027",
    "cvv": "123",
    "card_holder": "SOME GUY",
    "screen_width": 2880,
    "screen_height": 1620,
    "color_depth": 24,
    "time_zone_offset": "-180",
    "browser_language": "en-US",
}

Main request parameters

Parameter
Mandatory
Format
Description
Example

session_key

Yes

String

From /api/v1/get_session_key/

external_id

Yes

String

Client side order id

β€œ1234512123124”

group

Yes

int

Groups list

501

amount

Yes

float

Amount

20.5, 20.55, 20

minor_amount

No

int

Minor Amount

2050

card_number

Yes

String

Card number

4111111111111111

valid_thru_month

Yes

String(2)

Expire month

β€œ02”, β€œ12”

valid_thru_year

Yes

String(4)

Expire year

β€œ2024”

cvv

Yes

String(3-4)

Security code

β€œ123”, β€œ1234”

card_holder

Yes

String

Card holder name

β€œGood Fella”

circle-info

Either 'amount' or 'minor_amount' is required.

Please, note when sending minor_amount - some of the currencies on our side have no coins: KRW, VND, JPY. In this cases - minor_amount: 1000 will be treated as 1000 and not 10.00

Additional request parameters

Parameter
Mandatory
Format
Description
Example

screen_width

No

int

Window screen width

2880

screen_height

No

int

Window screen height

1620

color_depth

No

int

Window screen color depth

24

time_zone_offset

No

int

new Date().getTimezoneOffset()

-180

browser_language

No

String

Browsers language

'en-US'

redirect_success_url

No

String

Redirect of a successful deposit

redirect_fail_url

No

String

Redirect of a failed deposit

Request examples for specific payment methods

Korea - Virtual Accounts

Initial deposit request

Deposit request after the initial request

Response examples

3ds_redirect_url

Last updated