Update a business invitation

Update a business invitation.

patch

Update the properties of the specified business invitation. Handles updates partially, i.e. properties missing in the request body will not be changed. Use this endpoint to update the status of the business invitation, i.e. to ACCEPTED or REJECTED.

If you have sent the invitation, you can also cancel it with this endpoint and the status CANCELLED.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired
Body
statusall ofRequired

new status for this invitation

string · enumOptional

status of this invitation

Possible values:
customDataobjectOptional

A customizable metadata field for storing additional information related to a business invitation in TradeAware. This field allows customers to associate their own identifiers or data with TradeAware's system.

  The `customData` field is returned unchanged and is visible only to the owners of the business invitation.

  Constraints:
    - Up to 10 keys per object
    - Key length: Maximum 255 characters
    - String value length: Maximum 255 characters
    - Values must be of type: string, number, or boolean
    - Nested objects are not allowed
    - Keys cannot contain: '__proto__', 'constructor', or 'prototype'
Example: {"key1":"someValue","key2":true,"key3":1234}
Responses
chevron-right
200Success
application/json
idstringRequired

id of this entity

Example: 123e4567-e89b-12d3-a456-426614174000
emailstringRequired

email of the user that this invitation is for

Example: [email protected]
statusall ofRequired

status of this invitation

string · enumOptional

status of this invitation

Possible values:
createdAtstringRequired

date this entity was created

Example: 2020-01-01T00:00:00.000Z
updatedAtstringRequired

date this entity was last updated

Example: 2020-01-01T00:00:00.000Z
sourceIsInviteebooleanRequired

describes if the invited business will share or receive data

Example: true
customDataobjectOptional

A customizable metadata field for storing additional information related to a business invitation in TradeAware. This field allows customers to associate their own identifiers or data with TradeAware's system.

  The `customData` field is returned unchanged and is visible only to the owners of the business invitation.

  Constraints:
    - Up to 10 keys per object
    - Key length: Maximum 255 characters
    - String value length: Maximum 255 characters
    - Values must be of type: string, number, or boolean
    - Nested objects are not allowed
    - Keys cannot contain: '__proto__', 'constructor', or 'prototype'
Example: {"key1":"someValue","key2":true,"key3":1234}
patch
/business-invitations/{id}

Last updated