Wallet

A Wallet is an external object for payment gateway.

GET a list of wallets

Query a list of wallets. Parameters for pagination, query condition and sort order can be used for this method, see pagination and query pages for details.

Get a list of wallets example

curl /v2/wallets?page=1&per_page=20&filter=&sort=  -H "X-Api-Key:.." -H "Authorization:JWT .."

Successful return object:

{
    "page": 1,
    "per_page": 20,
    "data": []
}

GET a single wallets by ID

Query a wallets object by ID.

Get a single wallets example

curl /v2/wallets/1 -H "X-Api-Key:.." -H "Authorization:JWT .."

Successful return object:

{
    "id": 12,
    "user_id": 1234,
    "currency": "USD",
    "wallet": "12345"
}

POST a wallets

Create a wallets entity.

Field Type Description
user_id int user's ID
currency string
wallet string

POST to create a wallets:

curl -X POST -d '{"user_id":100,"currency":"EUR"}' /v2/wallets -H "X-Api-Key:.." -H "Authorization:JWT .."

Successful return:

{
    "status": "OK",
    "id": 123
}

PUT a wallets

Update a wallets entity.

Update a wallets example

curl -X PUT -d '{"email":"make@it.so"}' /v2/wallets/1 -H "X-Api-Key:.." -H "Authorization:JWT .."

Successful return:

{
    "status": "OK"
}

DELETE a wallets

Delete a wallets entity. Only system admin role can make this request.

Delete a wallets example

curl -X DELETE /v2/wallets/1 -H "X-Api-Key:.." -H "Authorization:JWT .."

Successful return:

{
    "status": "OK"
}

results matching ""

    No results matching ""