Customers
Create a new facility for an account
post/accounts/public/{accountId}/facilities
Request
- Base URLhttps://api.paperlessparts.com/v1
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
accountIdinteger required
The account id
Request body
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
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.