Make payout account default

Endpoint to make a specific payout account the default payout account.

Request:

FieldTypeDescription
businessIdIntegerUnique identifier of business
idIntegerUnique identifier of payout account

Example request

curl --location 'https://api.vendy.money/payout-account/active' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqd3RpZCI6Ijc1NWU5Njg4LTk1NzgtNGYyZi05NTM3LTQ3NDFhYzIzYjEyZSIsImlhdCI6MTY4NTM2MTE0NCwiZXhwIjoxNjg2NTcwNzQ0LCJpc3MiOiJodHRwczovL3ZlbmR5Lm1vbmV5LmNvbS8iLCJqdGkiOiI3NTVlOTY4OC05NTc4LTRmMmYtOTUzNy00NzQxYWMyM2IxMmUifQ.sOp2MGo9HLeytMmSpS3XAOQlJ84jPxZcPnp9OipClwOcxHoTNcYR-Vnmw1tEJdw5X62gF3B0z8ZN_dr4uCKPTRZnPE22NiL45y0467A0Dkxrnag3LgUic8jp0sdpKakYxnFvC7uKJQSP52BEYTpC8EPG8bYogH0V6jHWtpCJcPU' \
--data '{
		"businessId":3,
    "id": 5
}'

Response:

FieldTypeDescription
statusBooleanStates if request was successfully executed or not
codeIntegerInternal code, success if 200
msgStringA description of the status of the request
dataJSON

Example response

{
    "code": 200,
    "data": {},
    "msg": "bank now active",
    "status": true
}
Language
Authorization
Header
Click Try It! to start a request and see the response here!