post https://api.merits.com/v2/merits/send_access
Sends an auto-accepted Access Merit to a recipient and returns the Access Merit. This endpoint can only be used to send an AccessMerit to a user who has accepted another AccessMerit from your App, and the requestedPermissions can only be less than or equal to the ones they've already accepted. Either recipientEmail or recipientMemberId must be provided, but not both.
200 OK Response Schema
Key Name | Value Type | Description |
---|---|---|
id | ID | The Merit ID |
sendDateTime | date | The DateTime the Merit was sent to the recipient |
active | boolean | Returns the active or inactive state of a merit |
status | MeritStatus | Returns the status os a merit (e.g. sent, pending, accepted, etc) |
meritTemplateId | ID | The ID of the MeritTemplate for this Merit |
meritTemplateTitle | string | The Title of the MeritTemplate for this Merit |
email | string | The email this Merit was sent to. |
name | Name | The first and last name this Merit was sent to. |
fieldValues | Array<FieldValue> | An object containing the field values within the merit |
permissionsGrantedToSender | Array<Permission> | An object containing the permissions (merits) that is being requested |
recipientMember | null | The recipientMember property on a Merit will always be null at the moment it's sent since the user cannot possibly have already accepted it. |
editable | boolean | Returns true of the merit is editable. |