Change a buyer
Needs the buyers:write scope. About scopes
Changes the fields sent and leaves the rest: name, contact, time zone, modules, concurrency cap, API access and the account’s own externalId. With ifVersion, a change based on an older version is refused.
keyAuthorizationBearer <traki_account_…>id*stringuuidapplication/json- body
externalId?|nullname?string2 <= length <= 120companyName?|nullcontactName?|nullcontactEmail?|nullcontactPhone?|nulltimezone?stringAn IANA time zone, such as America/Chicago.
length <= 64modules?Which modules the party works in: call leads, form leads or both.
concurrencyCap?|nullapiAccess?booleanWhether the buyer may use machine access (needs the buyer API feature).
ifVersion?stringThe version the change is based on. When the record has changed since, the change is refused with 409 version_conflict.
^\d{1,16}$Success
application/json- response
id*stringuuidexternalId*string|nullcode*stringname*stringstatus*stringcompanyName*string|nullcontactName*string|nullcontactEmail*string|nullcontactPhone*string|nulltimezone*stringmodules*available*booleanconcurrencyCap*|nullapiAccess*booleanversion*stringcreatedAt*stringupdatedAt*stringcurl -X PATCH 'https://api.traki.io/v1/account/buyers/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "code": "string", "name": "string", "status": "string", "companyName": "string", "contactName": "string", "contactEmail": "string", "contactPhone": "string", "timezone": "string", "modules": { "calls": true, "leads": true }, "available": true, "concurrencyCap": -9007199254740991, "apiAccess": true, "version": "string", "createdAt": "string", "updatedAt": "string"}One buyer GET
Previous Page
Create or update a buyer by the account’s own id POST
Creates the buyer when no buyer of the account has this `externalId`, else updates it, so running the same sync twice never makes a duplicate. `created` says which happened. `invite` applies only when the buyer is created.