POST
/
v1
/
wallets
curl --request POST \
  --url https://api.hyperline.co/v1/wallets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "cus_QalW2vTAdkR6IY",
  "is_auto_load_enabled": true,
  "auto_load_type": "paid",
  "auto_load_amount": 20000,
  "auto_load_interval": {
    "period": "months",
    "count": 1
  },
  "auto_load_next_date": "2024-12-20T16:04:11Z",
  "auto_load_reset": false
}'
{
  "id": "wal_PPpxP5d3uvgiTT",
  "customer_id": "cus_QalW2vTAdkR6IY",
  "state": "active",
  "currency": "EUR",
  "balance": {
    "amount": 2400
  },
  "projected_balance": {
    "amount": 2400
  },
  "created_at": "2024-12-20T16:04:11Z",
  "is_auto_load_enabled": true,
  "auto_load_type": "paid",
  "auto_load_amount": 20000,
  "auto_load_interval": {
    "period": "months",
    "count": 1
  },
  "auto_load_next_date": "2024-12-20T16:04:11Z",
  "auto_load_reset": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Create wallet payload
customer_id
string
required

Wallet customer ID.

is_auto_load_enabled
boolean
required

Indicates if the wallet is auto-loaded regularly.

auto_load_type
enum<string>
required

Indicates if the auto-load is free or paid.

Available options:
free,
paid
auto_load_amount
number
required

Amount to auto-load. Expressed in currency's smallest unit.

auto_load_interval
object
required

Interval indicating how often the wallet is auto-loaded.

auto_load_next_date
string
required

Date on which the next auto-load will be executed. UTC date time string in the ISO 8601 format.

auto_load_reset
boolean
required

Indicates if the wallet amount must be reset before auto-load.

Response

201 - application/json
The newly created wallet
id
string
required

Wallet ID.

customer_id
string
required

Wallet customer ID.

state
enum<string>
required

Wallet state.

Available options:
active,
paused
currency
enum<string>
required

Currency code. See ISO 4217.

Available options:
EUR,
AED,
AFN,
XCD,
ALL,
AMD,
AOA,
ARS,
USD,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
XOF,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTN,
NOK,
BWP,
BYR,
BZD,
CAD,
CDF,
XAF,
CHF,
NZD,
CLP,
CNY,
COP,
CRC,
CUP,
CVE,
ANG,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
MAD,
ERN,
ETB,
FJD,
FKP,
GBP,
GEL,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HRK,
HTG,
HUF,
IDR,
ILS,
INR,
IQD,
IRR,
ISK,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LYD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRO,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
XPF,
NGN,
NIO,
NPR,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
SSP,
STD,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
UYU,
UZS,
VEF,
VND,
VUV,
WST,
YER,
ZAR,
ZMW,
ZWL
balance
object
required

Wallet actual balance. Expressed in currency's smallest unit.

projected_balance
object
required

Wallet projected balance. Automatically computed by Hyperline depending on the customer's active subscriptions and future payments. Expressed in currency's smallest unit.

created_at
string
required

Wallet creation date.

is_auto_load_enabled
boolean
required

Indicates if the wallet is auto-loaded regularly.

auto_load_type
enum<string>
required

Indicates if the auto-load is free or paid.

Available options:
free,
paid
auto_load_amount
number
required

Amount to auto-load. Expressed in currency's smallest unit.

auto_load_interval
object
required

Interval indicating how often the wallet is auto-loaded.

auto_load_next_date
string
required

Date on which the next auto-load will be executed. UTC date time string in the ISO 8601 format.

auto_load_reset
boolean
required

Indicates if the wallet amount must be reset before auto-load.