---
updatedAt: 2026-10-21T11:44:02.000Z
agentTools:
  projectIndex: https://dev.daisybill.com/llms.txt
---

# Create Place of Service

Creates a place of service. Validation failures (for example a ZIP code that is not 9 digits or an unknown `place_of_service_type_code`) return 400; a missing required field returns 403.

> 📘 Using Addresses with Places of Service
>
> Creating a `PlaceOfService` requires assigning a valid `Address` instance to the `address` attribute of the `PlaceOfService`. Note that `Address` objects can only be persisted and retrieved in the context of their parent.

> 📘 Valid Place of Service Type Codes
>
> Ensure that the `place_of_service_type_code` you are using is valid. A list of valid codes can be found here:

Use 9 digits zip codes

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "api",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://go.daisybill.com/api/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-default": "",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/billing_providers/{billing_provider_id}/places_of_service": {
      "post": {
        "summary": "Create Place of Service",
        "description": "Creates a place of service. Validation failures (for example a ZIP code that is not 9 digits or an unknown `place_of_service_type_code`) return 400; a missing required field returns 403.",
        "operationId": "create-place-of-service",
        "parameters": [
          {
            "name": "billing_provider_id",
            "in": "path",
            "description": "ID of the billing provider.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "place_of_service"
                ],
                "properties": {
                  "place_of_service": {
                    "type": "object",
                    "required": [
                      "name",
                      "nick_name",
                      "place_of_service_type_code",
                      "address_attributes"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "maxLength": 60,
                        "description": "Name."
                      },
                      "nick_name": {
                        "type": "string",
                        "maxLength": 60,
                        "description": "Nickname."
                      },
                      "place_of_service_type_code": {
                        "type": "string",
                        "description": "Place of service type code, for example `11` (office) or `02` (telehealth). Must be a known code."
                      },
                      "county": {
                        "type": "string",
                        "description": "County."
                      },
                      "address_attributes": {
                        "type": "object",
                        "description": "Address.",
                        "properties": {
                          "address_1": {
                            "type": "string",
                            "maxLength": 55,
                            "description": "Address line 1."
                          },
                          "address_2": {
                            "type": "string",
                            "maxLength": 55,
                            "description": "Address line 2."
                          },
                          "city": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 30,
                            "description": "City."
                          },
                          "state": {
                            "type": "string",
                            "description": "Two-letter US state code, for example `CA`."
                          },
                          "zip_code": {
                            "type": "string",
                            "pattern": "^[0-9]{9}$",
                            "description": "ZIP code. Exactly 9 digits (ZIP+4 without the dash), for example `900019998`."
                          }
                        },
                        "required": [
                          "address_1",
                          "city",
                          "state",
                          "zip_code"
                        ]
                      },
                      "npi": {
                        "type": "string",
                        "description": "National Provider Identifier (10 digits). Required for pharmacy billing providers."
                      },
                      "telephone": {
                        "type": "string",
                        "description": "Telephone number. Non-digits are removed. Required for pharmacy billing providers."
                      },
                      "active": {
                        "type": "boolean",
                        "default": true,
                        "description": "Whether the place of service is active."
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"created_at\": \"2024-10-21T10:08:19.015-07:00\",\n  \"updated_at\": \"2024-10-21T10:08:19.015-07:00\",\n  \"context\": {\n    \"create_source\": \"API\"\n  },\n  \"id\": 29,\n  \"name\": \"Murray, Pollich and Balistreri\",\n  \"nick_name\": \"Murray, Pollich and Balistreri\",\n  \"county\": \"Sierra\",\n  \"telephone\": \"3105550123\",\n  \"place_of_service_type_code\": \"11\",\n  \"address\": {\n    \"created_at\": \"2024-10-21T10:08:19.015-07:00\",\n    \"updated_at\": \"2024-10-21T10:08:19.015-07:00\",\n    \"context\": {\n      \"create_source\": \"API\"\n    },\n    \"id\": 31,\n    \"address_1\": \"1 Main Street\",\n    \"city\": \"Anywhere\",\n    \"state\": \"CA\",\n    \"zip_code\": \"900019998\"\n  },\n  \"active\": true,\n  \"links\": [\n    {\n      \"rel\": \"billing_provider\",\n      \"href\": \"/api/v1/billing_providers/25\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "created_at": {
                      "type": "string",
                      "example": "2024-10-21T10:08:19.015-07:00",
                      "description": "Creation timestamp."
                    },
                    "updated_at": {
                      "type": "string",
                      "example": "2024-10-21T10:08:19.015-07:00",
                      "description": "Last update timestamp."
                    },
                    "context": {
                      "type": "object",
                      "description": "How the record was created. Omitted when unknown.",
                      "properties": {
                        "create_source": {
                          "type": "string",
                          "enum": [
                            "API",
                            "Web",
                            "CSV Import",
                            "837 Import",
                            "Background",
                            "Internal"
                          ],
                          "example": "API"
                        }
                      }
                    },
                    "id": {
                      "type": "integer",
                      "example": 29,
                      "description": "Place of service ID."
                    },
                    "name": {
                      "type": "string",
                      "example": "Murray, Pollich and Balistreri",
                      "description": "Name."
                    },
                    "nick_name": {
                      "type": "string",
                      "example": "Murray, Pollich and Balistreri",
                      "description": "Nickname."
                    },
                    "county": {
                      "type": "string",
                      "example": "Sierra",
                      "description": "County."
                    },
                    "telephone": {
                      "type": "string",
                      "example": "3105550123",
                      "description": "Telephone number (digits only)."
                    },
                    "place_of_service_type_code": {
                      "type": "string",
                      "example": "11",
                      "description": "Place of service type code, for example `11` (office)."
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "created_at": {
                          "type": "string",
                          "example": "2024-10-21T10:08:19.015-07:00",
                          "description": "Creation timestamp."
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2024-10-21T10:08:19.015-07:00",
                          "description": "Last update timestamp."
                        },
                        "context": {
                          "type": "object",
                          "description": "How the record was created. Omitted when unknown.",
                          "properties": {
                            "create_source": {
                              "type": "string",
                              "enum": [
                                "API",
                                "Web",
                                "CSV Import",
                                "837 Import",
                                "Background",
                                "Internal"
                              ],
                              "example": "API"
                            }
                          }
                        },
                        "id": {
                          "type": "integer",
                          "example": 31,
                          "description": "Place of service ID."
                        },
                        "address_1": {
                          "type": "string",
                          "example": "1 Main Street",
                          "description": "Address line 1."
                        },
                        "city": {
                          "type": "string",
                          "example": "Anywhere",
                          "description": "City."
                        },
                        "state": {
                          "type": "string",
                          "example": "CA",
                          "description": "Two-letter state code."
                        },
                        "zip_code": {
                          "type": "string",
                          "example": "900019998",
                          "description": "9-digit ZIP code."
                        },
                        "address_2": {
                          "type": "string",
                          "description": "Address line 2."
                        }
                      },
                      "description": "Address of the place of service."
                    },
                    "active": {
                      "type": "boolean",
                      "example": true,
                      "description": "Whether the place of service is active."
                    },
                    "links": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "rel": {
                            "type": "string",
                            "example": "billing_provider"
                          },
                          "href": {
                            "type": "string",
                            "example": "/api/v1/billing_providers/25"
                          }
                        }
                      },
                      "description": "Related resources."
                    },
                    "npi": {
                      "type": "string",
                      "description": "National Provider Identifier."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The model failed validation (`{\"errors\": {field: [messages]}}`), the JSON body could not be parsed, or a POST/PUT/PATCH request carried URL query parameters (`{\"error\": \"...\"}`).",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": {\n    \"field_name\": [\n      \"can't be blank\"\n    ]\n  }\n}"
                  },
                  "Invalid ZIP code": {
                    "value": "{\n  \"errors\": {\n    \"address.zip_code\": [\n      \"must be exactly 9 digits\"\n    ]\n  }\n}"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized. The API token is missing or invalid, the user is not active, or the organization does not have API access.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"API Token provided is not valid\"\n}"
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment required. The organization is locked for an overdue invoice.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"Your organization is locked for overdue invoice.\"\n}"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden. A required parameter is missing or a parameter is invalid (wrong type, value outside the allowed range, `per_page` above the maximum, bad date filter), or the path is not a valid endpoint.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"per_page must be less than or equal 25\"\n}"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found. The record does not exist or your user cannot access it.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"404 not found\"\n}"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. The rate limit (100 requests per minute per user by default) was exceeded. Check the `X-Rate-Limit-Limit`, `X-Rate-Limit-Remaining` and `X-Rate-Limit-Reset` headers, which are sent on every response.",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"Rate limit exceeded\"\n}"
                  }
                }
              }
            },
            "headers": {
              "X-Rate-Limit-Limit": {
                "description": "Requests allowed per minute",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Rate-Limit-Remaining": {
                "description": "Requests remaining in the current minute",
                "schema": {
                  "type": "integer"
                }
              },
              "X-Rate-Limit-Reset": {
                "description": "UTC time when the window resets",
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl \\\n  https://go.daisybill.com/api/v1/billing_providers/25/places_of_service \\\n  -s \\\n  -X POST \\\n  -H 'Authorization: Bearer {API_TOKEN}' \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"place_of_service\": {\n    \"name\": \"Murray, Pollich and Balistreri\",\n    \"nick_name\": \"Murray, Pollich and Balistreri\",\n    \"place_of_service_type_code\": \"11\",\n    \"county\": \"Sierra\",\n    \"telephone\": \"3105550123\",\n    \"address_attributes\": {\n      \"address_1\": \"1 Main Street\",\n      \"city\": \"Anywhere\",\n      \"state\": \"CA\",\n      \"zip_code\": \"900019998\"\n    }\n  }\n}'",
              "name": "cURL"
            },
            {
              "language": "ruby",
              "code": "address = DaisybillApi::Models::Address.new(\n  address_1: \"26643 Lakin Track\",\n  city: \"East Emmitt\",\n  state: \"CA\",\n  zip_code: \"900019998\"\n)\n\nplace_of_service = DaisybillApi::Models::PlaceOfService.create(\n  billing_provider_id: 25,\n  name: \"Murray, Pollich and Balistreri\",\n  nick_name: \"Murray, Pollich and Balistreri\",\n  place_of_service_type_code: \"03\",\n  county: \"Sierra\",\n  address: address\n)"
            }
          ],
          "samples-languages": [
            "curl",
            "ruby"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```