/
Create a client account t...
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
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/deposits_operations/{location_id}
- Productionhttps://api.alteg.io/api/v1/deposits_operations/{location_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
}'OK
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": [ { … } ] }
Response
{ "success": true, "data": { "document": { … }, "deposits_transactions": [ … ], "payment_transactions": [ … ] }, "meta": [] }