Skip to main content
POST
Create a card onramp session

Authorizations

Authorization
string
header
default:easner_sk_test_…
required

A secret key, easner_sk_test_… or easner_sk_live_…, as Authorization: Bearer. Each key has one business, one mode and fixed scopes. Transfer routes also accept a transfer's easner_ta_… secret for the customer.

Path Parameters

id
string
required

The object id, as the API returned it.

Body

application/json
amount
integer
required

Amount in cents, above zero.

Required range: x >= 1
currency
string

Defaults to the account currency.

return_url
string<uri>

Where the customer returns after the hosted page. Must be a full https address.

Response

The onramp session. Open its url to take the payment.

Express Deposit session. Its url opens the Easner hosted funnel; client_secret also powers the inline embed.

id
string
required
Pattern: ^ors_
status
enum<string>
required
Available options:
open
amount
integer
required
currency
string
required
livemode
boolean
required
client_secret
string
required

The session's access secret. Shown on create.

url
string<uri>
required
express_deposit_session_id
string | null

Linked canonical Express Deposit session when created.

provider
string | null

Server-chosen processor code. Informational only; do not branch on it in integrations.

stage
string | null

Express Deposit stage when linked.