Create Account

Create a new Client or Vendor Account object.

post

/v1/accounts/accounts

Body
idstring
auditobject
$metaobject
hrefstring
externalIdstring · max: 250 | nullable
externalNamestring | nullable
typeobjectrequired
statusobject
serviceLevelobjectrequired
addressobject
iconstring | nullable
technicalSupportEmailstring · email · max: 320 | nullable
websitestring · max: 2000 | nullable
descriptionstring · max: 2000 | nullable
namestring · min: 1 · max: 500required
groupsobject[] | nullable
buyersobject[] | nullable
Responses
curl -L \
  --request POST \
  --url 'https://api.platform.softwareone.com/public/v1/accounts/accounts' \
  --header 'Content-Type: application/json' \
  --data '{"audit":{},"$meta":{},"type":{},"status":{},"serviceLevel":{},"address":{},"name":"text","groups":[{"audit":{},"$meta":{},"account":{},"modules":[{"audit":{},"$meta":{},"accountTypes":[null]}],"users":[{"audit":{},"$meta":{},"phone":{},"settings":{},"currentAccount":{},"accounts":["[Circular Reference]"]}]}],"buyers":[{"audit":{},"$meta":{},"contact":{},"externalIds":{},"status":{},"address":{},"account":{},"name":"text","sellers":[{"audit":{},"$meta":{},"status":{},"address":{},"currencies":[null]}]}]}'
{
  "id": "text",
  "audit": {},
  "$meta": {},
  "href": "text",
  "externalId": "text",
  "externalName": "text",
  "type": {},
  "status": {},
  "serviceLevel": {},
  "address": {},
  "icon": "text",
  "technicalSupportEmail": "hello@example.com",
  "website": "text",
  "description": "text",
  "name": "text",
  "groups": [
    {
      "id": "text",
      "audit": {},
      "$meta": {},
      "href": "text",
      "name": "text",
      "description": "text",
      "account": {},
      "logo": "text",
      "isDefault": true,
      "modules": [
        {
          "audit": {},
          "$meta": {},
          "accountTypes": [
            null
          ]
        }
      ],
      "users": [
        {
          "audit": {},
          "$meta": {},
          "phone": {},
          "settings": {},
          "currentAccount": {},
          "accounts": [
            "[Circular Reference]"
          ]
        }
      ]
    }
  ],
  "buyers": [
    {
      "id": "text",
      "audit": {},
      "$meta": {},
      "href": "text",
      "contact": {},
      "externalIds": {},
      "status": {},
      "icon": "text",
      "address": {},
      "taxId": "text",
      "account": {},
      "name": "text",
      "sellers": [
        {
          "audit": {},
          "$meta": {},
          "status": {},
          "address": {},
          "currencies": [
            null
          ]
        }
      ]
    }
  ]
}

Was this helpful?


#227:

Change request updated