Skip to content

Create Distribution

Request

Creates a new distribution with the specified data. Icon file accepts a PNG or JPEG image up to 2 MB.

Security
oauth2(Required scopes: distributions:create)
Body
namestringrequired
externalIdstringrequired
welcomeHeadlinestringrequired
distributionDescriptionstring or null
distributionManagerstring or null
welcomeTextstringrequired
iconFilestring, (binary)required
payoutMethodIdsArray of strings, (uuid)
expiryDatestring or null, (date)
displayEndDatestring or null, (date)
emailTemplatesobject
bankAccountIdstring, (uuid)
automaticRemindersstring(AutomaticReminders)
Enum:"None""FixedIntervals"
subClientIdstring or null, (uuid)
taxCollectionModestring(TaxCollectionMode)
Enum:"None""Standard"
curl -i -X POST \
  https://docs.talli.ai/_mock/referencev3/swagger/v3/distribution-manager/distributions \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: multipart/form-data' \
  -F name=string \
  -F externalId=string \
  -F welcomeHeadline=string \
  -F distributionDescription=string \
  -F distributionManager=string \
  -F welcomeText=string \
  -F iconFile=@iconFile.bin \
  -F payoutMethodIds=497f6eca-6276-4993-bfeb-53cbbbba6f08 \
  -F expiryDate=2019-08-24 \
  -F displayEndDate=2019-08-24 \
  -F 'emailTemplates="{\"property1\":\"497f6eca-6276-4993-bfeb-53cbbbba6f08\",\"property2\":\"497f6eca-6276-4993-bfeb-53cbbbba6f08\"}";type=application/json' \
  -F bankAccountId=5b26b598-a880-4e32-8c41-126aa0206857 \
  -F automaticReminders=None \
  -F subClientId=0cbd3b85-fa44-4475-a987-1d9ee2a6e610 \
  -F taxCollectionMode=None

Responses

Accepted

Response
No content