### Example Request (cURL) Source: https://documenter.getpostman.com/view/11316657/2s9YypE3FC/index Example of how to call the GetClinic endpoint using cURL. This demonstrates the HTTP method and the endpoint URL. ```curl curl --location -g '{{api_gateway}}/openapi/v1/clinic/' ``` -------------------------------- ### Example Response (JSON) Source: https://documenter.getpostman.com/view/11316657/2s9YypE3FC/index A sample JSON response for the GetClinic endpoint, illustrating the structure of clinic and branch data returned by the API. ```json { "uuid": "02b1ef3c-9774-5173-b1f8-39ce5c9fda58", "name": "JERA Clinicnic ไทย", "name_en": "JERA Clinic Eng", "tax_id": null, "address": null, "subdistrict": null, "district": null, "province": "กรุงเทพมหานคร", "postcode": null, "tel": "", "fax": null, "mobile": "", "update_by": "Theeranop Nuchnum", "update_date": "2024-01-04T18:40:04.480743+07:00", "branches": [ { "uuid": "e5d4f721-b328-5d14-a8e0-b27e65745b42", "code": "J4538", "name": "JERA-4538", "short_name": "4538", "address": "245/68 ซ.รามคำแหง 112 ถ.รามคำแหง", "address_en": "245/68 Ramkhamhaeng Rd", "subdistrict": "ปากน้ำ", "district": "เมืองสมุทรปราการ", "postcode": "10270", "province": "สมุทรปราการ", "country": "TH", "tel": "020556285", "permit_number": "1234567890", "sso_number": "1234567890123", "mobile": "0123456789", "update_date": "2024-01-08T14:12:26.211697+07:00", "update_by": "Theeranop Nuchnum", "end_date": "2032-09-01", "package": "Premium", "tax_id": "1234567890123", "clinic_name": "คลินิก 4538", "receipt_address": "1/1 ถ.ทดสอบ ต.ทดสอบ อ.ทดสอบ จ.ทดสอบ", "clinic_name_en": "Clinic 4538", "receipt_address_en": "1/1 Tester City", "branch_location_url": "https://www.jeracloud.com" }, { "uuid": "bb5a76a3-dee8-5e77-98b5-66999bd80ddf", "code": "BranchCode02", "name": "BRANCH-2", "short_name": null, "address": null, "address_en": null, "subdistrict": "ดูนสาด", "district": "กระนวน", "postcode": "40170", "province": "ขอนแก่น", "country": "TH", "tel": "", "permit_number": null, "sso_number": null, "mobile": "", "update_date": "2023-10-30T09:54:51.836138+07:00", "update_by": "Theeranop Nuchnum", "end_date": "2031-12-31", "package": "Premium", "tax_id": "", "clinic_name": "คลินิก JERA Clinicnic (ชื่อไทยแสดงในใบเสร็จ) สาขา 2", "receipt_address": "200 หมู่ 10 ต.หางดง อ.ป่าตอง\nรหัสไปรษณีย์ 50240 (ที่อยู่ไทยแสดงในใบเสร็จ) สาขา 2", "clinic_name_en": "JERA (ชื่อ Eng แสดงในใบเสร็จ) สาขา 2", "receipt_address_en": "JERA (ชื่อ Eng แสดงในใบเสร็จ) สาขา 2", "branch_location_url": null }, { "uuid": "2953a6bc-f11b-5f97-8e99-f7c9946d261b", "code": null, "name": "BA01", "short_name": null, "address": null, "address_en": null, "subdistrict": null, "district": null, "postcode": "", "province": null, "country": "TH", "tel": "", "permit_number": null, "sso_number": null, "mobile": "", "update_date": "2023-11-10T14:32:29.986884+07:00", "update_by": "Theeranop Nuchnum", "end_date": "2048-02-01", "package": "Elegance", "tax_id": "", "clinic_name": "JERA Clinicnic 3", "receipt_address": null, "clinic_name_en": null, "receipt_address_en": null, "branch_location_url": null }, { "uuid": "d3bd8478-e779-5e72-8acf-35780689f7b9", "code": null, "name": "BRANCH-3", "short_name": null, "address": null, "address_en": null, "subdistrict": null, "district": null, "postcode": null, "province": null, "country": "TH", "tel": "", "permit_number": null, "sso_number": null, "mobile": "", "update_date": "2023-10-26T17:42:41.991890+07:00", "update_by": "TC sarun Admin", "end_date": "2025-05-17", "package": "Elegance", "tax_id": "", "clinic_name": "JERA Clinicnic 4", "receipt_address": null, "clinic_name_en": null, "receipt_address_en": null, "branch_location_url": null } ] } ``` -------------------------------- ### Cloudflare NEL Configuration Source: https://documenter.getpostman.com/view/11316657/2s9YypE3FC/index Defines the configuration for Cloudflare's Network Error Logging (NEL). This includes the reporting endpoint, grouping strategy, maximum age for reports, and the fraction of successful requests to report. ```APIDOC NEL Configuration: group: "cf-nel" max_age: 604800 success_fraction: 0 report_to: "cf-nel" endpoints: - url: "https://a.nel.cloudflare.com/report/v3?s=UGI8mjUW3I%2FYxc5jwic%2Bswpu3HEXYcSb0FbOMDhPVwdctDAMnOF%2FA0eVklTtjvbG%2BfeeGIkr9dX064bjQhw2wvQXOArqNyr%2BbBMUJYBR8tgmnju9JXALNdmaNwXVY6tXwrNQ6j1kZIc%3D" Server Information: Server: "cloudflare" CF-RAY: "843b182b68c026f9-BKK" Content-Encoding: "br" alt-svc: h3=":443"; ma=86400 ``` -------------------------------- ### JERA OpenAPI Authorization Source: https://documenter.getpostman.com/view/11316657/2s9YypE3FC/index All JERA OpenAPI APIs require an 'Authorization' header with a Bearer Token. This section details how to obtain a token using the POST /openapi/v1/token/ endpoint. The token is valid for a limited time and must be refreshed if it expires. ```APIDOC API Key: Authorization: Bearer {{token}} POST /openapi/v1/token/ Description: Request a token for accessing JERA OpenAPI APIs. Notes: - Must be called before using any other API. - Token has a limited validity period; re-request if it expires. Parameters: Body (urlencoded): grant_type: client_credentials Responses: 200 OK: Content-Type: application/json Body: access_token: string (The obtained Bearer Token) expires_in: integer (Token expiration time in seconds) token_type: string (Type of token, e.g., 'Bearer') scope: string (Permissions granted by the token, e.g., 'read write') Example Request: curl --location -g '{{api_gateway}}/openapi/v1/token/' \ --data-urlencode 'grant_type=client_credentials' Example Response: { "access_token": "79Dw9gJdkf3UxYOQxBKkIBJOiafk5X", "expires_in": 36000, "token_type": "Bearer", "scope": "read write" } ``` -------------------------------- ### Clinic Information API Source: https://documenter.getpostman.com/view/11316657/2s9YypE3FC/index This group of APIs is used to retrieve and modify clinic information within the JERA Cloud system. It requires Bearer Token authorization, inherited from the collection's settings. ```APIDOC Clinic Information: Description: APIs for retrieving and modifying clinic information. Authorization: Bearer Token (inherited from collection) Endpoints: - GET /clinics: Retrieve a list of clinics. - POST /clinics: Create a new clinic. - GET /clinics/{id}: Retrieve a specific clinic by ID. - PUT /clinics/{id}: Update a specific clinic by ID. - DELETE /clinics/{id}: Delete a specific clinic by ID. ``` -------------------------------- ### GetClinic Endpoint Source: https://documenter.getpostman.com/view/11316657/2s9YypE3FC/index Retrieves all clinics and their branches within the system. This endpoint provides UUIDs for use with other APIs, clinic names, branch details (full and short names), and contact information such as addresses and phone numbers. Authorization is required via a Bearer Token. ```APIDOC GET /openapi/v1/clinic/ Description: Uses to retrieve all clinics and branches that exist in the system. Data that can be retrieved: * UUID of clinics and branches (for use with UpdateBranch API) * Clinic name information * All branch name information for that clinic (both full name and short name) * Contact information for each branch (e.g., address, phone number, license numbers) Authorization: Bearer Token Example Request: curl --location -g '{{api_gateway}}/openapi/v1/clinic/' Example Response (200 OK): { "uuid": "02b1ef3c-9774-5173-b1f8-39ce5c9fda58", "name": "JERA Clinicnic ไทย", "name_en": "JERA Clinic Eng", "tax_id": null, "address": null, "subdistrict": null, "district": null, "province": "กรุงเทพมหานคร", "postcode": null, "tel": "", "fax": null, "mobile": "", "update_by": "Theeranop Nuchnum", "update_date": "2024-01-04T18:40:04.480743+07:00", "branches": [ { "uuid": "e5d4f721-b328-5d14-a8e0-b27e65745b42", "code": "J4538", "name": "JERA-4538", "short_name": "4538", "address": "245/68 ซ.รามคำแหง 112 ถ.รามคำแหง", "address_en": "245/68 Ramkhamhaeng Rd", "subdistrict": "ปากน้ำ", "district": "เมืองสมุทรปราการ", "postcode": "10270", "province": "สมุทรปราการ", "country": "TH", "tel": "020556285", "permit_number": "1234567890", "sso_number": "1234567890123", "mobile": "0123456789", "update_date": "2024-01-08T14:12:26.211697+07:00", "update_by": "Theeranop Nuchnum", "end_date": "2032-09-01", "package": "Premium", "tax_id": "1234567890123", "clinic_name": "คลินิก 4538", "receipt_address": "1/1 ถ.ทดสอบ ต.ทดสอบ อ.ทดสอบ จ.ทดสอบ", "clinic_name_en": "Clinic 4538", "receipt_address_en": "1/1 Tester City", "branch_location_url": "https://www.jeracloud.com" } // ... other branches ] } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.