POST
/
v1
/
integrations
/
accounts
curl --request POST \
  --url https://us-central1-siro-prod.cloudfunctions.net/api-externalApi/v1/integrations/accounts \
  --header 'Content-Type: application/json' \
  --data '{
  "externalId": "<string>",
  "name": "<string>",
  "latitude": 123,
  "longitude": 123,
  "addresses": [
    {
      "country": "<string>",
      "street": "<string>",
      "city": "<string>",
      "state": "<string>",
      "zip": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "externalId": "<string>",
  "latitude": 123,
  "longitude": 123,
  "addresses": [
    "<any>"
  ],
  "name": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Body

application/json
externalId
string
required

The ID of the account in the external system (e.g. Salesforce)

latitude
number
required
longitude
number
required
name
string
addresses
object[]

Response

200 - application/json
Create an account
id
string
required
externalId
string
required

The ID of the account in the external system (e.g. Salesforce)

addresses
(any | null)[]
required
createdAt
string
required

The date the account was created

updatedAt
string
required

The date the account was last updated

latitude
number
longitude
number
name
string