POST
/
v1
/
access-management
/
accesses
Grant access to an account and/or card
curl --request POST \
  --url https://api.next.orenda.finance/v1/access-management/accesses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-program-id: <api-key>' \
  --data '
{
  "customerId": "cust_3f9a2b7e",
  "accountId": "acc_4e8a1c6d",
  "cardId": "card_2a7f9b3e",
  "accountAccess": true,
  "cardAccess": true
}
'
const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'x-program-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customerId: 'cust_3f9a2b7e',
accountId: 'acc_4e8a1c6d',
cardId: 'card_2a7f9b3e',
accountAccess: true,
cardAccess: true
})
};

fetch('https://api.next.orenda.finance/v1/access-management/accesses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.next.orenda.finance/v1/access-management/accesses"

payload = {
"customerId": "cust_3f9a2b7e",
"accountId": "acc_4e8a1c6d",
"cardId": "card_2a7f9b3e",
"accountAccess": True,
"cardAccess": True
}
headers = {
"Authorization": "Bearer <token>",
"x-program-id": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "success": true,
  "data": {
    "message": "Operation completed successfully"
  }
}
{
"success": false,
"code": "<string>",
"message": "<string>"
}
{
"success": false,
"code": "<string>",
"message": "<string>"
}
{
"success": false,
"code": "<string>",
"message": "<string>"
}
{
"success": false,
"code": "<string>",
"message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

x-program-id
string
header
required

The program the request acts on.

Body

application/json
customerId
string
required
Minimum string length: 1
accountId
string
required
Minimum string length: 1
cardId
string

Required when cardAccess is true.

accountAccess
boolean
cardAccess
boolean

Response

Done

success
boolean
Example:

true

data
object