# BPJS Membership

These endpoints let you manage BPJS memberships for employees in the system. It allows you to retrieve, create, update, and delete BPJS membership records.

## Get BPJS Healthcare Membership

> Return the BPJS healthcare memberships.

```json
{"openapi":"3.0.0","info":{"title":"CATAPA API","version":"1.0.0"},"tags":[{"name":"employee-bpjs-membership","description":"These endpoints let you manage BPJS memberships for employees in the system.\nIt allows you to retrieve, create, update, and delete BPJS membership records.\n"}],"servers":[{"url":"https://api.catapa.com","description":"Production server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication header of the form `Bearer <token>`."}}},"paths":{"/core/v1/employees/{employeeId}/bpjs-healthcare-memberships":{"get":{"tags":["employee-bpjs-membership"],"summary":"Get BPJS Healthcare Membership","description":"Return the BPJS healthcare memberships.","parameters":[{"in":"path","name":"employeeId","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"ID of the BPJS Healthcare Membership"},"employeeId":{"type":"string"},"membershipNumber":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"effectiveDate":{"type":"string"},"firstLevelHealthcareFacility":{"type":"string"},"dentalHealthcareFacility":{"type":"string"},"bpjsHealthcareProvider":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"registrationNumber":{"type":"string"},"reportSignatoryName":{"type":"string"},"reportSignatoryJobTitle":{"type":"string"}}},"bpjsHealthcareTemplate":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"salaryType":{"type":"string"},"linkToPayroll":{"type":"boolean"}}},"bpjsHealthcareTreatmentClass":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"minSalaryType":{"type":"string"},"minSalaryValue":{"type":"string"},"maxSalaryType":{"type":"string"},"maxSalaryValue":{"type":"string"}}},"additionalFamilyMemberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"familyMemberName":{"type":"string"},"familyMemberRelation":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"code":{"type":"string"},"relationType":{"type":"string","enum":["MOTHER","FATHER","SPOUSE","FIRST_CHILD","SECOND_CHILD","THIRD_CHILD","OTHER_CHILD","OTHER"]}}},"firstLevelHealthcareFacility":{"type":"string"},"dentalHealthcareFacility":{"type":"string"}}}}}}}}},"400":{"description":"Bad Request"}}}}}}
```

## Update BPJS Healthcare Membership

> Update the BPJS healthcare membership.

```json
{"openapi":"3.0.0","info":{"title":"CATAPA API","version":"1.0.0"},"tags":[{"name":"employee-bpjs-membership","description":"These endpoints let you manage BPJS memberships for employees in the system.\nIt allows you to retrieve, create, update, and delete BPJS membership records.\n"}],"servers":[{"url":"https://api.catapa.com","description":"Production server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication header of the form `Bearer <token>`."}}},"paths":{"/core/v1/employees/{employeeId}/bpjs-healthcare-memberships":{"put":{"tags":["employee-bpjs-membership"],"summary":"Update BPJS Healthcare Membership","description":"Update the BPJS healthcare membership.","parameters":[{"in":"path","name":"employeeId","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"ID of the BPJS Healthcare Membership"},"employeeId":{"type":"string"},"membershipNumber":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"effectiveDate":{"type":"string"},"firstLevelHealthcareFacility":{"type":"string"},"dentalHealthcareFacility":{"type":"string"},"bpjsHealthcareProvider":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"registrationNumber":{"type":"string"},"reportSignatoryName":{"type":"string"},"reportSignatoryJobTitle":{"type":"string"}}},"bpjsHealthcareTemplate":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"salaryType":{"type":"string"},"linkToPayroll":{"type":"boolean"}}},"bpjsHealthcareTreatmentClass":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"minSalaryType":{"type":"string"},"minSalaryValue":{"type":"string"},"maxSalaryType":{"type":"string"},"maxSalaryValue":{"type":"string"}}},"additionalFamilyMemberships":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"familyMemberName":{"type":"string"},"familyMemberRelation":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"code":{"type":"string"},"relationType":{"type":"string","enum":["MOTHER","FATHER","SPOUSE","FIRST_CHILD","SECOND_CHILD","THIRD_CHILD","OTHER_CHILD","OTHER"]}}},"firstLevelHealthcareFacility":{"type":"string"},"dentalHealthcareFacility":{"type":"string"}}}}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"status":{"type":"integer","description":"HTTP status code"},"timestamp":{"type":"string","description":"Timestamp when the error occurred"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"additionalFamilyMemberships":{"type":"array","items":{"type":"object","properties":{"dentalHealthcareFacility":{"type":"string"},"familyMemberName":{"type":"string"},"familyMemberRelationId":{"type":"string"},"firstLevelHealthcareFacility":{"type":"string"},"id":{"type":"string"}},"required":["familyMemberName","familyMemberRelationId","id"]}},"bpjsHealthcareProviderId":{"type":"string"},"bpjsHealthcareTemplateId":{"type":"string"},"bpjsHealthcareTreatmentClassId":{"type":"string"},"dentalHealthcareFacility":{"type":"string"},"firstLevelHealthcareFacility":{"type":"string"},"membershipNumber":{"type":"string"},"startDate":{"type":"string"},"effectiveDate":{"type":"string","description":"Effective Date of the BPJS Healthcare Membership default to start date"}},"required":["additionalFamilyMemberships","bpjsHealthcareProviderId","bpjsHealthcareTemplateId","membershipNumber","startDate"]}}}}}}}}
```

## Get BPJS Manpower Membership

> Return the BPJS manpower memberships.

```json
{"openapi":"3.0.0","info":{"title":"CATAPA API","version":"1.0.0"},"tags":[{"name":"employee-bpjs-membership","description":"These endpoints let you manage BPJS memberships for employees in the system.\nIt allows you to retrieve, create, update, and delete BPJS membership records.\n"}],"servers":[{"url":"https://api.catapa.com","description":"Production server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication header of the form `Bearer <token>`."}}},"paths":{"/core/v1/employees/{employeeId}/bpjs-manpower-memberships":{"get":{"tags":["employee-bpjs-membership"],"summary":"Get BPJS Manpower Membership","description":"Return the BPJS manpower memberships.","parameters":[{"in":"path","name":"employeeId","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"ID of the BPJS Manpower Membership"},"membershipNumber":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"effectiveDate":{"type":"string"},"pensionEnd":{"type":"string"},"bpjsManpowerProvider":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"registrationNumber":{"type":"string"},"reportSignatoryName":{"type":"string"},"reportSignatoryJobTitle":{"type":"string"}}},"bpjsManpowerTemplate":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"salaryType":{"type":"string"},"linkToPayroll":{"type":"boolean"}}}}}}}},"400":{"description":"Bad Request"}}}}}}
```

## Update BPJS Manpower Membership

> Update the BPJS manpower membership.

```json
{"openapi":"3.0.0","info":{"title":"CATAPA API","version":"1.0.0"},"tags":[{"name":"employee-bpjs-membership","description":"These endpoints let you manage BPJS memberships for employees in the system.\nIt allows you to retrieve, create, update, and delete BPJS membership records.\n"}],"servers":[{"url":"https://api.catapa.com","description":"Production server"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer authentication header of the form `Bearer <token>`."}}},"paths":{"/core/v1/employees/{employeeId}/bpjs-manpower-memberships":{"put":{"tags":["employee-bpjs-membership"],"summary":"Update BPJS Manpower Membership","description":"Update the BPJS manpower membership.","parameters":[{"in":"path","name":"employeeId","schema":{"type":"string"},"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"ID of the BPJS Manpower Membership"},"membershipNumber":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"effectiveDate":{"type":"string"},"pensionEnd":{"type":"string"},"bpjsManpowerProvider":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"registrationNumber":{"type":"string"},"reportSignatoryName":{"type":"string"},"reportSignatoryJobTitle":{"type":"string"}}},"bpjsManpowerTemplate":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"name":{"type":"string"},"salaryType":{"type":"string"},"linkToPayroll":{"type":"boolean"}}}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","description":"Error code"},"message":{"type":"string","description":"Error message"},"status":{"type":"integer","description":"HTTP status code"},"timestamp":{"type":"string","description":"Timestamp when the error occurred"}}}}}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"bpjsManpowerProviderId":{"type":"string"},"bpjsManpowerTemplateId":{"type":"string"},"membershipNumber":{"type":"string"},"startDate":{"type":"string"},"effectiveDate":{"type":"string","description":"Effective Date of the BPJS Manpower Membership default value is start date"}},"required":["bpjsManpowerProviderId","bpjsManpowerTemplateId","startDate"]}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gdplabs.gitbook.io/catapa-api/endpoints-and-methods/payroll/bpjs-membership.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
