Wallet Resource
Get wallet information
This method returns information about the wallet.Requesting wallet by ID
GET https://wallet.paysera.com/rest/v1/wallet/:id
Parameters
- id
- id of the wallet. Can be integer or
me
(if access token is used)
Requesting wallet by other information
GET https://wallet.paysera.com/rest/v1/wallet?phone=:phone&email=:email&account_number=:account_number&person_code[:nationality]=:person_code&company_code[:country_code]=:company_code&barcode=:barcode&licence_plate=:licence_plate&card[:card_issuer]=:card_number&user_id=:user_id
Parameters
- phone
- phone of the user; must start with country code and without
00
or+
sign - email address of the user
- account_number
- account number of the user
- person_code
- person's identification code
- nationality
- person's nationality (country to which person code belongs) in ISO 3166-1 alpha-2 format
- company_code
- code of the company
- country_code
- country in which company is registered; in ISO 3166-1 alpha-2 format
- barcode
- special barcode, generated for identifying wallet
- licence_plate
- text on a licence plate of a car without any special symbols
- card_number
- card's number
- card_issuer
- card's issuer, for example "vilniecio"
- user_id
- unique user's ID
86
is country code for China
Response data structure
id
owner
account
Account data structure
number
order_id
owner_display_name
wallet_list
or scope wallet_list_offline
was confirmed
owner_title
wallet_list
or scope wallet_list_offline
was confirmed and only if user has confirmed identity
owner_display_name
description
wallet_list
or scope wallet_list_offline
was confirmed and only if one exists for this account and user
user_id
wallet_list
or scope wallet_list_offline
was confirmed
type
wallet_list
or scope wallet_list_offline
was confirmed
local
, technical
, card
.
ibans
Example request
GET /rest/v1/wallet/14471 HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="I0URYjGzh9YHvI8KCidOt8uY/PH5puC2ZFKPcBb6L+U="
Example request by phone number
GET /rest/v1/wallet?phone=37066612345 HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="miBUIRAV3U/ModO8I5W6tm8PgSygPMkqr+01SnCImak="
Example request by company code
GET /rest/v1/wallet?company_code%5Blt%5D=300060819 HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="TRRL6hNc9lK1ynjK/p3fNwnjSJ0GWiQz4Bv3QmGSGvY="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "id": 14471, "owner": 221, "account": { "number": "EVP0010001000101" } }
beneficiary
, which
is ID of some wallet in Paysera system. You can get access token and get wallet information using it or get
wallet ID by user-provided phone number.
Get balance of a wallet
This method returns information about the balance in the wallet.Requesting wallet balance by ID
GET https://wallet.paysera.com/rest/v1/wallet/:walletId/balance?convert_to=:convertToCurrency&show_historical_currencies=:showHistoricalCurrencies
Parameters
- walletId
- id of the wallet. Can be integer or
me
(if access token is used) - convertToCurrency
- optional; currency code to convert all currencies to (result is extended with additional info if this parameter is provided)
- showHistoricalCurrencies
- optional; boolean. Whether to show or not currencies with 0 balance
balance_offline
scope confirmed to use this method.
Request can be authenticated either by project credentials or by current access token.
Response data structure
Response is an object with keys as currency codes. Each item in the array is of the following structure:at_disposal
at_disposal_decimal
reserved
reserved_decimal
converted
convert_to
was provided
at_disposal
and reserved
with amouts for currency, provided in
parameter convert_to
Example request
GET /rest/v1/wallet/14471/balance HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="Qj0PSwlPicgVGbJ54uvVd6nX3t6bTl8mz1S0x5tLsKY="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "EUR": { "at_disposal": 2299, "at_disposal_decimal": "22.99", "reserved": 0, "reserced_decimal": "0" }, "USD": { "at_disposal": 100, "at_disposal_decimal": "1.00", "reserved": 9800, "reserced_decimal": "98.00" } }
Example request with currency conversion
GET /rest/v1/wallet/14471/balance?convert_to=EUR HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="aorVIfC2tL6XoiX4dQbqt99w4TNX8qdSs68bCZPGpxk="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "EUR": { "at_disposal": 2299, "at_disposal_decimal": "22.99", "reserved": 0, "reserced_decimal": "0", "converted": { "at_disposal": 2299, "at_disposal_decimal": "22.99", "reserved": 0, "reserced_decimal": "0" } }, "USD": { "at_disposal": 100, "at_disposal_decimal": "1.00", "reserved": 9800, "reserced_decimal": "98.00", "converted": { "at_disposal": 75, "at_disposal_decimal": "0.75", "reserved": 7339, "reserced_decimal": "73.39" } } }
Getting balance receipt for a wallet
In case user is identified at some location (for offline
or gateway
clients),
receipt with balance can be printed for the user. It is not allowed for the client to save
receipt's text or display it for anyone else except the user herself.
Same permissions are needed as when accessing balance itself.
Request
GET https://wallet.paysera.com/rest/v1/wallet/:walletId/receipt/balance?locale=:locale&width=:width
Parameters
- userId
- id of the wallet. Can be integer or
me
(if access token is used) - locale
- optional parameter; locale for the text translation. Currently available locales:
en
,lt
,ru
- width
- optional parameter; maximum symbol count in one line. Longer lines will be broken into separate ones
Response data structure
text
\r\n
characters (CR + LF)
Example request
GET /rest/v1/wallet/14471/receipt/balance?locale=en HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="u7Km4ut2BgQ5UEtK3nngD6PP/FZCG4pnsBS5hiPE1g4="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "text": "Your balance: 22.99 EUR, 1.00 USD" }
Specification
To obtain information about user account in Paysera system you need to use oAuth, read more info about this: Getting User's Information.
In order to obtain information if the user has enough funds, you should send a request to our system.
Request
GET https://wallet.paysera.com/rest/v1/wallet/:walletId/sufficient-amount?amount=:amountInCents¤cy=:currency
URI parameters:
-
walletId
- id of the wallet.me
must be used, as access token is used.
Query parameters:
amount
- amount in cents to be paid.currency
- currency to be used.
Response body
{ "is_sufficient": true }
Check if enough balance
This method returns information if wallet has sufficient money in balance.Requesting by ID
GET https://wallet.paysera.com/rest/v1/wallet/:walletId/sufficient-amount?amount=:amountInCents¤cy=:currency
URI parameters:
-
walletId
- id of the wallet. Can be integer orme
(if access token is used).
Query parameters:
amount
- amount in cents to be paid.currency
- currency to be used.
check_has_sufficient_balance
scope confirmed to use this method.
Request can be authenticated either by project credentials or by current access token.
Response data structure
Response is an object with boolean answer:{ "is_sufficient": true }
Example request
GET /rest/v1/wallet/me/sufficient-amount?amount=100000¤cy=EUR HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="9SCOHfL8j/OSLMjQAMQL9F2sp6uru+eRQr6UH8RUgLo="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "is_sufficient": false }
Get wallet statements
This method returns account statements related to the wallet. Client must have special permission and an access token with scopestatements
or statements_offline
to access this method.
Requesting statements for a wallet
GET https://wallet.paysera.com/rest/v1/wallet/:id/statements?currency=:currency&from=:from&to=:to&limit=:limit&offset=:offset
Parameters
- id
- id of the wallet. Can be integer or
me
(if access token is used) - currency
- optional; currency list, separated by commas. For example:
USD,EUR
- direction
- optional; one of
in
orout
- text
- optional; text to be found in statement details or other information
- from
- optional; date from which statements should be provided in UNIX timestamp. Defaults to week before
to
- to
- optional; date from which statements should be provided in UNIX timestamp. Defaults to current time
- limit
- optional; maximum number of statements to be returned in one response. Defaults to
20
, maximum available is200
. - offset
- optional; number of statements to skip. Defaults to
0
user_id
and display_name
parameters are not visible or accessible to PSD2 clients.
statements
or statements_offline
scope confirmed
to use this method.
4
every 4
minutes or 50
per day. Exceeding the limit results in rate_limit_exceeded
error.
Response data structure
statements
_metadata
Statement data structure
id
amount
currency
amount_decimal
details
reference_number
direction
in
for incoming payments, out
for outgoing
date
other_party
type
transfer_id
ibans
Other party data structure
display_name
wallet_id
user_id
code
account_number
phone
email
bic
ibans
Available statement types
- transfer
- Indicates money transfer to or from some party
- commission
- Indicates commission for transfer or of other kind
- cash
- Indicates operation with cash
- currency
- Indicates currency convert
- tax
- Indicates transfer for taxes
- return
- Indicates returned amount, which was added or subtracted earlier. Could be revoked transfer, partially returned transfer etc.
- automatic_payment
- Indicates transfer made with Paysera wallet
- card_transaction
- Indicates transfer made with payment card
Metadata information structure
total
limit
and offset
parameters
offset
limit
Example request
GET /rest/v1/wallet/14471/statements?currency=EUR,USD&from=1357052400&limit=50 HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="jElAhqr+zF3MlJCYd6zQV03lWlg7SSzHNweBQ5CvKK4="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "statements": [ { "id": 59418, "amount": 100, "currency": "EUR", "amount_decimal": "1.00", "direction": "in", "date": 1363340355, "details": "Currency exchange 1.23 USD -> 1.00 EUR (Exchange rate 10 USD : 8.81142 EUR; 1.23 USD : 1 EUR)", "type": "currency", "transfer_id": 45375, "ibans": [ "LT007300010022221111" ] }, { "id": 59392, "amount": 3000, "currency": "USD", "amount_decimal": "30.00", "direction": "in", "date": 1361370936, "details": "Partial transfer return", "other_party": { "name": "EVP", "code": "300060819", "account_number": "123135123" }, "type": "return", "transfer_id": 45353, "ibans": [ "LT007300010022221111" ] }, { "id": 59390, "amount": 12000, "currency": "USD", "amount_decimal": "120.00", "direction": "in", "date": 1361370929, "details": "Transfer for some items", "other_party": { "name": "EVP", "code": "300060819", "account_number": "EVP6910001000362", "user_id": 2, "wallet_id": 211, "ibans": [ "LT007300010022221111" ] }, "type": "transfer", "transfer_id": 45353, "ibans": [ "LT007300010022221111" ] }, { "id": 59327, "amount": 20, "currency": "EUR", "amount_decimal": "0.20", "direction": "out", "date": 1358523243, "details": "Transfer commission", "type": "commission", "transfer_id": 45122, "ibans": [ "LT007300010022221111" ] }, { "id": 59326, "amount": 5000, "currency": "EUR", "amount_decimal": "50.00", "direction": "out", "date": 1358523243, "details": "50 EUR transfer to bank account", "other_party": { "name": "John Smith", "code": "38001010000", "account_number": "LT007300010022221111", "bic": "HABALT22XXX", "ibans": [ "LT007300010022221111" ] }, "type": "transfer", "transfer_id": 45122, "ibans": [ "LT007300010022221111" ] } ], "_metadata": { "total": 5, "offset": 0, "limit": 50 } }
Get wallet reservation statements
This method returns account reservation statements related to the wallet. Client must have special permission and an access token with scopestatements
or statements_offline
to access this method.
Requesting reservation statements for a wallet
GET https://wallet.paysera.com/rest/v1/wallet/:id/reservation-statements
Parameters
- id
- id of the wallet. Can be integer or
me
(if access token is used)
statements
or statements_offline
scope confirmed
to use this method.
Response data structure
reservation_statements
_metadata
Reservation statement data structure
type
amount
currency
details
reference_number
date
other_party
transfer_id
transfer_out
, transfer_in
Other party data structure
API returns other party object. See other party structure for more info.Available reservation statement types
- transfer_out
- Indicates money transfer reservation to some party
- transfer_in
- Indicates money transfer reservation from some party
- hold
- Indicates held money transfer
- credit_card_pending_transaction
- Indicates credit card reservation
Metadata information structure
total
limit
and offset
parameters
offset
limit
Example request
GET /rest/v1/wallet/14471/reservation-statements HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="YX2q6J/Kl/xTc1EAftiv7sgFMQG7VCnD+FbuRoFkpnw="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "reservation_statements": [ { "type": "transfer_out", "amount": "1.00", "currency": "EUR", "details": "Name Surname. Transfer out", "date": 1373449733, "other_party": { "display_name": "Name Surname", "account_number": "LT000000000000000000" } }, { "type": "transfer_in", "amount": "1.00", "currency": "EUR", "details": "cash out", "date": 1453973739, "other_party": { "display_name": "Name Surname", "account_number": "EVP0000000000000", "wallet_id": 12345, "user_id": 123456 } } ], "_metadata": { "total": 2, "offset": 0, "limit": 50 } }
Get pending payments
This method returns incoming and/or outgoing payments to or from the wallet. Client must have special permission and an access token with scopeincoming_payments
and/or outgoing_payments
to access
this method.
Requesting pending payments for a wallet
GET https://wallet.paysera.com/rest/v1/wallet/:walletId/pending-payments?type=:type&direction=:direction&limit=:limit&offset=:offset
Parameters
- walletId
- ID of the wallet. Can be integer or
me
(if access token is used) - type
- optional; currently only
password
is available - direction
- optional; one of
in
orout
- limit
- optional; maximum number of pending payments to be returned in one response. Defaults to
20
, maximum available is200
- offset
- optional; number of pending payments to skip. Defaults to
0
incoming_payments
scope to get pending payments with in
direction, and with outgoing_payments
scope to get pending payments with out
direction.
Response data structure
pending_payments
_metadata
Pending payment data structure
id
amount
currency
amount_decimal
details
type
password
(payment, pending for password), beneficiary
, transaction_request
direction
in
or out
cancelable
other_party
date
valid_until
password
type
is password
and direction
is out
transfer_id
password
, beneficiary
transaction_key
transaction_request
Metadata information structure
total
limit
and offset
parameters
offset
limit
Example request
GET /rest/v1/wallet/14471/pending-payments?type=password&direction=in&limit=50 HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="kEsBCn6TViaKISptT5PPLo6pFqlXwOqGhIl1fx1ThNo="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "pending_payments": [ { "id": 59418, "amount": 100, "currency": "EUR", "amount_decimal": "1.00", "details": "Payment with password from John", "type": "password", "direction": "in", "cancelable": true, "date": 1363340355, "other_party": { "wallet_id": 78441, "user_id": 44587, "display_name": "John Smith" } } ], "_metadata": { "total": 1, "offset": 0, "limit": 50 } }
Cancel pending payment
This method allows to cancel pending payment. Both incoming and outgoing pending payments can be canceled ifcancelable
for that payment is true
. When the status is set to false
always wait for the statuses ready
, processing
, or done
, as these are the transfer statuses from which this parameter starts working.
Cancel pending payment
DELETE https://wallet.paysera.com/rest/v1/wallet/:walletId/pending-payment/:pendingPaymentId
Parameters
- walletId
- id of the wallet. Can be integer or
me
(if access token is used) - pendingPaymentId
- id of the pending payment
Response data structure
On success API returns corresponding pending payment object. See get pending payments for more info.Provide password for pending incoming payment
This method allows to provide password for incoming payment. Client must have special permission and an access token with scopeincoming_payments
to access
this method. Limit Transfer Password requests to a maximum of 10
per hour.
Providing the password
PUT https://wallet.paysera.com/rest/v1/wallet/:walletId/pending-payment/:pendingPaymentId
Parameters
- walletId
- id of the wallet. Can be integer or
me
(if access token is used) - pendingPaymentId
- id of the pending payment
Request body structure
password
Response data structure
On success API returns corresponding pending payment object. See get pending payments for more info.Example request
PUT /rest/v1/wallet/14471/pending-payment/59418 HTTP/1.1 Host: wallet.paysera.com Content-Type: application/json;charset=utf-8 User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="Y90qXv/AX0NghCY9n0Yc25t1hJN3fAwghExh8GNRjwU=", ext="body_hash=AGR2TJUZ%2BQBepUliLhilu7TBof4cYOrF7mFQdqwZO4o%3D"
{ "password": "some secret" }
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "id": 59418, "amount": 100, "currency": "EUR", "amount_decimal": "1.00", "details": "Currency exchange 1.23 USD -> 1.00 EUR (Exchange rate 10 USD : 8.81142 EUR; 1.23 USD : 1 EUR)", "type": "password", "direction": "in", "cancelable": false, "date": 1363340355, "other_party": { "wallet_id": 78441, "user_id": 44587, "display_name": "John Smith" } }
Get favourite beneficiaries
This method returns information about Paysera users for which user makes most of the payments.Requesting favourites for a wallet
GET https://wallet.paysera.com/rest/v1/wallet/:walletId/favourites?limit=:limit&offset=:offset
Parameters
- walletId
- id of the wallet. Can be integer or
me
(if access token is used) - limit
- optional; maximum number of statements to be returned in one response. Defaults to
20
, maximum available is200
. - offset
- optional; number of statements to skip. Defaults to
0
Response data structure
favourites
_metadata
Favourite data structure
payment_count
user_info
User info data structure
wallet_id
account_number
user_id
display_name
phone
email
phone
or email
is only provided when display_name
is unavailable.
Metadata information structure
total
limit
and offset
parameters
offset
limit
Example request
GET /rest/v1/wallet/14471/favourites HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="W8jg3Glch8itZ11zENWa59Z01k31EYO4GZ86HEZHHwc="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "favourites": [ { "payment_count": 5, "user_info": { "display_name": "John Smith", "user_id": 54, "wallet_id": 4558, "account_number": "EVP7010001000101" } }, { "payment_count": 2, "user_info": { "display_name": "Some Company", "user_id": 4457, "wallet_id": 25487, "account_number": "EVP6310001000103" } } ], "_metadata": { "total": 2, "offset": 0, "limit": 50 } }
Relating card to a wallet
- Client makes request to API providing card information
- Paysera system sends user SMS or email with confirmation code and card information
- User inputs the code into the client
- Client confirms the card by making API request with the confirmation code
It's also possible to confirm related card in the Paysera system, instructions are included in the email. Client should include a way to skip card confirmation for this use-case.
Card relation request
PUT https://wallet.paysera.com/rest/v1/wallet/:walletId/card
Parameters
- walletId
- id of the wallet. Can be integer or
me
(if access token is used)
Request body structure
issuer
vilniecio
, paysera
number
Response data structure
On success API returns wallet object. See get wallet information for more info.
Errors
card_already_assigned
Example request
PUT /rest/v1/wallet/14471/card HTTP/1.1 Host: wallet.paysera.com Content-Type: application/json;charset=utf-8 User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="fv+osiplm+JL6klKGTlRdLRxb1QeCrLvuLqlWaqbkyY=", ext="body_hash=AmsFMTy%2FcahppWNuBi4AosyH8S%2B%2B4Wm54DiCwTniHZA%3D"
{ "issuer": "paysera", "number": "5487963154" }
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "id": 254789, "owner": 221 }
Confirm card request
PUT https://wallet.paysera.com/rest/v1/wallet/:walletId/confirm
Parameters
- walletId
- id of the wallet
Request body structure
code
Response data structure
On success API returns user object. See get user information for more info.
Errors
invalid_code
(if code is incorrect), rate_limit_exceeded
(if current client made too
many invalid code attempts in some period of time)
Example request
PUT /rest/v1/wallet/254789/confirm HTTP/1.1 Host: wallet.paysera.com Content-Type: application/json;charset=utf-8 User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="0EvGMwVZ+PQ2UBJkIrEUeBp/41vl1k4rElhHg86gu/Y=", ext="body_hash=sc%2BZyvNgEganUAKIuipczDh2Bd7WT3KE78M3tnuFdoU%3D"
{ "code": "ABCDEF" }
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "id": 254789, "owner": 221 }
Changing description of an account
This method allows to change description of an account for specific user.
Changing description requires manage_account
OAuth scope.
Request
PUT https://wallet.paysera.com/rest/v1/wallet/:walletId
Parameters
- walletId
- id of the wallet. Can be integer or
me
(if access token is used)
Request body structure
description
Response data structure
On success API returns wallet structure.
Errors
invalid_parameters
if description is too long
Example request
PUT /rest/v1/wallet/14471 HTTP/1.1 Host: wallet.paysera.com Content-Type: application/json;charset=utf-8 User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="nasr/gsN3kKUYKuewK7xPYVxa9Rmc5+xUHxZi5KDRGY=", ext="body_hash=JLdNooXtAqBdU9VUQxtnkx%2BLkGPXaThfOj%2FR2CO3QEo%3D"
{ "description": "My personal account" }
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "id": 14471, "owner": 221, "account": { "number": "EVP0010001000101", "description": "My personal account" } }
Deleting description
DELETE https://wallet.paysera.com/rest/v1/wallet/:walletId/description
Parameters
- walletId
- id of the wallet. Can be integer or
me
(if access token is used)
Example request
DELETE /rest/v1/wallet/14471/description HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="wkV5RddQ0uTLSRxuJTHu5EhF7gotqmzRwiTRljzwrQU="
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "id": 14471, "owner": 221, "account": { "number": "EVP0010001000101" } }
Search wallets
This method returns wallet list by provided filters.Request
GET https://wallet.paysera.com/rest/v1/wallets?email=:email_list&phone=:phone_list&email_hash=:email_hash_list&phone_hash=:phone_hash_list
Parameters
- email_list
- optional; comma separated list of emails to search for
- phone_list
- optional; comma separated list of phones to search for; each phone must start with country code without 00 or + sign and contain only digits
- email_hash_list
- optional; comma separated list of SHA1 email hashes to search for; each email address must be lower-cased before hashing
- phone_hash_list
- optional; comma separated list of SHA1 phone hashes to search for; each phone must start with country code without 00 or + sign and contain only digits before hashing
Response data structure
Response is an object. Keys of this object are search criteria, by which result was found. Values are Wallet objects. See Wallet data structure for more information.Example request
GET /rest/v1/wallets?email=john@example.com,smith@example.com&phone=37066612345&email_hash=9395988394d4568df3c54c2645ddb1d0753a0c20 HTTP/1.1 Host: wallet.paysera.com User-Agent: Paysera WalletApi PHP library Authorization: MAC id="wkVd93h2uS", ts="1343811600", nonce="nQnNaSNyubfPErjRO55yaaEYo9YZfKHN", mac="dReJK0HvKhJbcs2P4hujkpG9KMpJ2zAAilFRMOY2+Us="
9395988394d4568df3c54c2645ddb1d0753a0c20
is SHA1 hash for email@example.com.
Example response
HTTP/1.1 200 OK Content-type: application/json;charset=utf-8
{ "smith@example.com": { "id": 887, "owner": 5547 }, "9395988394d4568df3c54c2645ddb1d0753a0c20": { "id": 45, "owner": 8879 } }
404
error is not returned.