A User
resource represents a pair of API keys which are used to perform authenticated requests against the Finix API. When making authenticated requests via HTTP basic access authentication the ID of a User
resource maps to the username, while the password
corresponds to the password (i.e. secret key).
The password field for a User
resource is only returned during the initial creation. Any following GET requests to the resource returns the password
field as null for security purposes.
Related Guides: Account Structure
Creating an application user is the equivalent of provisioning API keys (i.e. credentials) for an Application
.
Each Application can have multiple
Users
which allows each seller to have multiple API keys that can be independently enabled and disabled. Merchants only have read access to the API.
Single User
object.
Error
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl "https://finix.sandbox-payments-api.com/applications/APgPDQrLD52TYvqazjHJJchM/users" \ -H "Content-Type: application/json" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X POST \ -d '{}'
{- "id": "USvVu9MXHz7hVzwDXwbx3UCL",
- "created_at": "2022-01-27T07:37:14.65Z",
- "updated_at": "2022-01-27T07:37:15.47Z",
- "enabled": true,
- "identity": "IDpYDM7J9n57q849o9E9yNrG",
- "password": null,
- "role": "ROLE_MERCHANT",
- "tags": {
- "card_name": "New Employee"
}, - "_links": {
- "application": {
}
}
}
Retrieve a list of all Users
.
For details on how to query endpoints using the available parameters, see Query Parameters.
List of User
objects.
Authentication information is missing or invalid
Forbidden
Not Acceptable
curl "https://finix.sandbox-payments-api.com/users" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "_embedded": {
- "users": [
- {
- "id": "USsRhsHYZGBPnQw8CByJyEQW",
- "created_at": "2022-01-27T07:36:32.91Z",
- "updated_at": "2022-01-27T07:36:33.78Z",
- "enabled": true,
- "identity": "IDuquemzE7UkUJioGJfVKBKt",
- "password": null,
- "role": "ROLE_PARTNER",
- "tags": { },
- "_links": {
- "application": {
}
}
}, - {
- "id": "USjDY98nG9tn5n271vwNcNc9",
- "created_at": "2022-10-11T04:45:54.56Z",
- "updated_at": "2022-10-11T04:45:54.56Z",
- "enabled": true,
- "identity": "IDuquemzE7UkUJioGJfVKBKt",
- "password": null,
- "role": "ROLE_PARTNER",
- "tags": { },
- "_links": {
- "application": {
}
}
}
]
}, - "_links": {
}, - "page": {
- "offset": 0,
- "limit": 20,
- "count": 8
}
}
Retrieve a specific user with the ID of the User
.
Single User
object.
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl "https://finix.sandbox-payments-api.com/users/USvVu9MXHz7hVzwDXwbx3UCL" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "id": "USvVu9MXHz7hVzwDXwbx3UCL",
- "created_at": "2022-01-27T07:37:14.65Z",
- "updated_at": "2022-01-27T07:37:15.47Z",
- "enabled": true,
- "identity": "IDpYDM7J9n57q849o9E9yNrG",
- "password": null,
- "role": "ROLE_MERCHANT",
- "tags": {
- "card_name": "New Employee"
}, - "_links": {
- "application": {
}
}
}
Update a User
with new tags or disable the User
and their credentials.
Single User
object.
Authentication information is missing or invalid
Forbidden
Not Acceptable
curl "https://finix.sandbox-payments-api.com/users/USvVu9MXHz7hVzwDXwbx3UCL" \ -H "Content-Type: application/json" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e \ -X PUT \ -d ' { "tags": { "card_name": "New Employee" } }'
{- "id": "USvVu9MXHz7hVzwDXwbx3UCL",
- "created_at": "2022-01-27T07:37:14.65Z",
- "updated_at": "2022-01-27T07:37:15.47Z",
- "enabled": true,
- "identity": "IDpYDM7J9n57q849o9E9yNrG",
- "password": null,
- "role": "ROLE_MERCHANT",
- "tags": {
- "card_name": "New Employee"
}, - "_links": {
- "application": {
}
}
}