Users
Invite a user with labels
POST/v1/applications/{app_id}/invitationsHenüz kullanılamıyor
Not available yet. Would create an invite link. Labels in the invite would be set automatically when the user signs up (e.g. the store they belong to). Label groups set to "user picks" would still be shown on the sign-up page.
country is required. MVP rule: the user is stored in the application's
region; with country_restriction.mode: only_listed, an unlisted
country returns 422 country_not_allowed.
Yol parametreleri
app_idstringzorunluÖrnek:
app_seller
Gövde application/json
emailstring (email)zorunlucountrystringzorunluISO 3166-1 alpha-2. Decides the data region.
Örnek:
TRlabelsLabelssend_emailbooleanVarsayılan:
trueexpires_in_daysintegerVarsayılan:
7
Yanıtlar
201Createdobject
Invite created
idstringurlstringÖrnek:
https://auth.seller.anka.io/invite/inv_7Gk2expires_atstring (date-time)
400Bad RequestError
Invalid request
errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject
422Unprocessable ContentError
country_not_allowed: the application only accepts users from the countries listed incountry_restriction.countries.errorobjectzorunlu5 alan
codestringzorunluStable machine code, e.g. email_exists, country_not_allowed, user_moved, method_not_available, region_unavailable
Örnek:
region_unavailablemessagestringzorunluPlain English, for developers
regionstringboş olabilirRegion that produced the error, if any
Değerler:
EUTRretryablebooleanzorunludetailsobject