Skip to content
Invitations

Create Invitationexperimental

POST/api/invitations

This endpoint allows you to create an Invitation.

Request body

  • paramsrequired object
    Params depending on the Invitation type.
  • recipientAliasrequired string
    The email address of the user accepting the Invitation.
  • resourceIdrequired string
    The id of the related resource.
  • resourceTyperequired enum
    The type of the related resource.
    • account
      The related resource is an Account.
  • typerequired enum
    The type of invitation.
    • account-membership
      Invites the recipient to become a member of an Account.

Responses

Request
curl -X POST https://service.centrapay.com/api/invitations \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"params": {
"role": "cashier"
},
"recipientAlias": "user@org.com",
"resourceId": "Hopo4g34sLVdjEMBs2p19F",
"resourceType": "account",
"type": "account-membership"
}'