Customers

Create a new facility for an account

post/accounts/public/{accountId}/facilities

Request

Path parameters

accountIdinteger required

The account id

Request body

namestring nullable

Name of Facility

attentionstring nullable

The person or department to ship packages to at the facility

Example request

{
  "name": "Boston Office",
  "address": {
    "address1": "137 Portland St.",
    "address2": "Unit 1",
    "city": "Boston",
    "country": "USA",
    "postal_code": "02114",
    "state": "MA",
    "erp_code": "B1234"
  },
  "salesperson": {
    "email": "careers@paperlessparts.com"
  }
}

Response

Successful response

account_idinteger
attentionstring
idinteger
namestring

Example response

{
  "account_id": 55123,
  "address": {
    "address1": "1 City Hall Sq.",
    "city": "Boston",
    "state": "MA",
    "postal_code": "02114",
    "country": "USA",
    "erp_code": "B1234"
  },
  "attention": "Gordon Moore",
  "id": 12,
  "name": "Boston Office"
}

Changes

No recorded changes to this operation across all 1 revision of this API.