from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.communication.send_letter(
document={
"id": "id",
"file_name": "fileName",
},
to_address={
"address": {
"city": "city",
"state": "state",
"street_lines": ["string"],
"zip_code": "zipCode",
},
"name": "name",
},
)
print(response.tracking_id){
"trackingId": "<string>"
}Sends a physical letter. The document must be a PDF file. Returns an ID for tracking.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.communication.send_letter(
document={
"id": "id",
"file_name": "fileName",
},
to_address={
"address": {
"city": "city",
"state": "state",
"street_lines": ["string"],
"zip_code": "zipCode",
},
"name": "name",
},
)
print(response.tracking_id){
"trackingId": "<string>"
}A unique identifier for the request. If the same request is sent with the same idempotency key, it will be ignored.
Show child attributes
Recipient's name
Optional sender address (defaults to Sample Healthcare)
Show child attributes
Sender's name
Letter sent successfully
Letter sent successfully
The letter ID for tracking the mail delivery