Skip to content

Create a client account topup operation

Request

Creating a transaction with a client account involves creating a document, a transaction with a client account, and a financial transaction within a single API request.

Security
BearerPartnerUser
Path
location_idnumberrequired

Location ID

Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Content-Typestringrequired

application/json

Authorizationstringrequired

Bearer partner_token, User user_token

Body*/*
account_idnumberrequired

Checkout ID for payment

amountnumberrequired

replenishment amount

client_idnumberrequired

ID of the client, the owner of the client account

deposit_idnumberrequired

client account ID

team_member_idnumber

Team Member ID

curl -i -X POST \
  'https://developer.alteg.io/_mock/en/b2b-v1/openapi/deposits_operations/{location_id}' \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
  -H 'Content-Type: */*' \
  -d '{
    "client_id": 0,
    "deposit_id": 0,
    "amount": 0,
    "team_member_id": 0,
    "account_id": 0
  }'

Responses

OK

Bodyapplication/json
successboolean

Execution success status (true)

Example:true
dataobject

Object with data

Example:
{ "document": { "id": 1, "user_id": 1, "salon_id": 1, "type_id": 9, "type": { … }, "comment": "", "number": 1, "salon": { … }, "user": { … } }, "deposits_transactions": [ { … } ], "payment_transactions": [ { … } ] }
metaArray of objects

Metadata (empty array)

Example:
[]
Response
{ "success": true, "data": { "document": { … }, "deposits_transactions": [ … ], "payment_transactions": [ … ] }, "meta": [] }