curl --request GET \
--url '{{BASE_URL}}/v3/order/psc/appointment/cancellation-reasons' \
--header 'accept: application/json' \
--header 'x-vital-api-key: YOUR_API_KEY'
from junction import Junction
from junction.environment import JunctionEnvironment
client = Junction(
api_key="YOUR_API_KEY",
environment=JunctionEnvironment.SANDBOX,
)
data = client.lab_tests.get_psc_appointment_cancellation_reason()
import { JunctionClient, JunctionEnvironment } from "@junction-api/sdk";
const client = new JunctionClient({
apiKey: "YOUR_API_KEY",
environment: JunctionEnvironment.Sandbox,
});
const data = await client.labTests.getPscAppointmentCancellationReason();
import com.junction.api.Junction;
import com.junction.api.core.Environment;
Junction client = Junction.builder()
.apiKey("YOUR_API_KEY")
.environment(Environment.SANDBOX)
.build();
var data = client.labTests().getPscAppointmentCancellationReason();
import (
"context"
junction "github.com/junction-api/junction-go"
"github.com/junction-api/junction-go/client"
"github.com/junction-api/junction-go/option"
)
c := client.NewClient(
option.WithApiKey("YOUR_API_KEY"),
option.WithBaseURL(junction.Environments.Sandbox),
)
response, err := c.LabTests.GetPscAppointmentCancellationReason(context.TODO())
if err != nil {
return err
}
fmt.Printf("Received data %s\n", response)
[
{
"id": "5c0257ef-6fea-4a22-b20a-3ddab573d5c9",
"name": "Other",
"is_refundable": true
}
]
Patient Service Center (PSC)
PSC Appointment Cancellation Reasons
Retrieve order psc appointment cancellation-reasons via the Junction API. Requires authentication with your team API key.
GET
/
v3
/
order
/
psc
/
appointment
/
cancellation-reasons
curl --request GET \
--url '{{BASE_URL}}/v3/order/psc/appointment/cancellation-reasons' \
--header 'accept: application/json' \
--header 'x-vital-api-key: YOUR_API_KEY'
from junction import Junction
from junction.environment import JunctionEnvironment
client = Junction(
api_key="YOUR_API_KEY",
environment=JunctionEnvironment.SANDBOX,
)
data = client.lab_tests.get_psc_appointment_cancellation_reason()
import { JunctionClient, JunctionEnvironment } from "@junction-api/sdk";
const client = new JunctionClient({
apiKey: "YOUR_API_KEY",
environment: JunctionEnvironment.Sandbox,
});
const data = await client.labTests.getPscAppointmentCancellationReason();
import com.junction.api.Junction;
import com.junction.api.core.Environment;
Junction client = Junction.builder()
.apiKey("YOUR_API_KEY")
.environment(Environment.SANDBOX)
.build();
var data = client.labTests().getPscAppointmentCancellationReason();
import (
"context"
junction "github.com/junction-api/junction-go"
"github.com/junction-api/junction-go/client"
"github.com/junction-api/junction-go/option"
)
c := client.NewClient(
option.WithApiKey("YOUR_API_KEY"),
option.WithBaseURL(junction.Environments.Sandbox),
)
response, err := c.LabTests.GetPscAppointmentCancellationReason(context.TODO())
if err != nil {
return err
}
fmt.Printf("Received data %s\n", response)
[
{
"id": "5c0257ef-6fea-4a22-b20a-3ddab573d5c9",
"name": "Other",
"is_refundable": true
}
]
curl --request GET \
--url '{{BASE_URL}}/v3/order/psc/appointment/cancellation-reasons' \
--header 'accept: application/json' \
--header 'x-vital-api-key: YOUR_API_KEY'
from junction import Junction
from junction.environment import JunctionEnvironment
client = Junction(
api_key="YOUR_API_KEY",
environment=JunctionEnvironment.SANDBOX,
)
data = client.lab_tests.get_psc_appointment_cancellation_reason()
import { JunctionClient, JunctionEnvironment } from "@junction-api/sdk";
const client = new JunctionClient({
apiKey: "YOUR_API_KEY",
environment: JunctionEnvironment.Sandbox,
});
const data = await client.labTests.getPscAppointmentCancellationReason();
import com.junction.api.Junction;
import com.junction.api.core.Environment;
Junction client = Junction.builder()
.apiKey("YOUR_API_KEY")
.environment(Environment.SANDBOX)
.build();
var data = client.labTests().getPscAppointmentCancellationReason();
import (
"context"
junction "github.com/junction-api/junction-go"
"github.com/junction-api/junction-go/client"
"github.com/junction-api/junction-go/option"
)
c := client.NewClient(
option.WithApiKey("YOUR_API_KEY"),
option.WithBaseURL(junction.Environments.Sandbox),
)
response, err := c.LabTests.GetPscAppointmentCancellationReason(context.TODO())
if err != nil {
return err
}
fmt.Printf("Received data %s\n", response)
[
{
"id": "5c0257ef-6fea-4a22-b20a-3ddab573d5c9",
"name": "Other",
"is_refundable": true
}
]
Was this page helpful?
⌘I