Payerworks writes and explains files; it sends nothing to a payer. What that means
A payer sends a provider’s eligibility answers, claim status answers, claims or remittances through a clearinghouse only after it is asked to: that is transaction enrollment. Create the provider once (its name, NPI and tax id), then request enrollment per payer and transaction, answer the tasks it raises, and follow it to the end.
Payerworks is registered with no payer yet, so a live request waits with Payerworks. Only the sandbox payer PWSANDBOX runs the whole path, and every sandbox status word starts with “Sandbox:”.
New here? Start with The enrollment sandbox.
Routes
- POST
/v1/providersCreate a provider - GET
/v1/providersList your providers - GET
/v1/providers/{id}One provider - POST
/v1/providers/{id}Change a provider - DELETE
/v1/providers/{id}Delete a provider - POST
/v1/enrollmentsRequest an enrollment - GET
/v1/enrollmentsList your enrollments - GET
/v1/enrollments/{id}One enrollment - POST
/v1/enrollments/{id}Change an enrollment - DELETE
/v1/enrollments/{id}Delete an enrollment - POST
/v1/enrollments/{id}/submitSubmit a draft - POST
/v1/enrollments/{id}/cancelCancel an enrollment - POST
/v1/tasks/{id}Answer a task - POST
/v1/enrollments/{id}/documentsUpload a PDF for a task - POST
/v1/documents/{id}/confirmConfirm an upload - GET
/v1/documents/{id}Download a document - DELETE
/v1/documents/{id}Delete a document - GET
/v1/enrollment-requirementsPayers with published steps - GET
/v1/enrollment-requirements/{payer_id}What a payer asks - POST
/v1/sandbox/enrollments/{id}/advanceAdvance a sandbox enrollment - POST
/v1/enrollments/import/checkCheck an enrollment import - POST
/v1/enrollments/importImport enrollment requests - GET
/v1/enrollments/exportExport your enrollments - GET
/v1/enrollments/durationsHow long your requests took
Each route shows its call with curl and with the two clients, then its real answer, shortened, and the fields it holds. The client calls assume one client made once, const pw = new Payerworks() in JavaScript or pw = payerworks.Payerworks() in Python, each reading PAYERWORKS_API_KEY and PAYERWORKS_BASE_URL, and body is the request.json shown.
POST/v1/providers
Create a provider
A provider record: its name, billing NPI, tax id (an EIN, never a Social Security number) and contacts. One per NPI and tax id pair: a second is refused, naming the first. With a live key the answer also says what the NPI registry holds for the NPI: whether it is there, Type 1 or 2, and whether the provider’s name matches (its own name only, never a contact’s; a warning, never a refusal; a lookup that fails says so, and is never read as not found).
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/providers" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonWith the JavaScript client
const answer = await pw.postProviders(body);With the Python client
answer = pw.post_providers(body){
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id": "12-3456789",
"tax_id_type": "ein",
"contacts": [
{
"first_name": "Jane",
"last_name": "Doe",
"email": "enrollment@sampleclinic.example",
"phone": "8015550100"
}
]
}{
"object": "provider",
"id": "prv_01a154ad358043763d71b95c",
"mode": "test",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id": "123456789",
"tax_id_type": "ein",
"contacts": [
{
"organization_name": null,
"first_name": "Jane",
"last_name": "Doe",
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": null
}
],
"identifiers_locked": false,
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z"
}| Field | Type | What it is |
|---|---|---|
object | Typethe value "provider" | |
id | Typestring | What it isprv_ and 24 hexadecimal characters. |
mode | Typeone of "test", "live" | |
name | Typestring | |
npi | Typestring | |
tax_id | Typestring | |
tax_id_type | Typeone of "ein" | |
contacts | Typelist of Contact | |
identifiers_locked | Typeboolean | What it isTrue once a request for this provider has gone to a payer: the NPI and tax id no longer change. |
created_at | Typestring | |
updated_at | Typestring | |
npi_registry | Typeobject | What it isA live key’s new provider (wave 4): what the NPI registry holds for the NPI, found, holding no active record, or not asked (with why). Never stored. |
warnings | Typelist of FieldProblem | What it isA live key’s new provider: what the NPI registry answer warns of. Never a refusal. |
GET/v1/providers
List your providers
Newest first. Page with limit (up to 100) and starting_after, and filter with npi, tax_id or q (part of the name).
Request
curl -sS -X GET "$PAYERWORKS_BASE_URL/v1/providers" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.getProviders();With the Python client
answer = pw.get_providers(){
"data": [
{
"object": "provider",
"id": "prv_01a154ad358043763d71b95c",
"mode": "test",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id": "123456789",
"tax_id_type": "ein",
"contacts": [
{
"organization_name": null,
"first_name": "Jane",
"last_name": "Doe",
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": null
}
],
"identifiers_locked": false,
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z"
}
],
"has_more": false,
"next_cursor": null
}| Field | Type | What it is |
|---|---|---|
object | Typethe value "list" | |
data | Typelist of Provider | What it isNewest first. |
has_more | Typeboolean | |
next_cursor | Typestring or null | What it isPass as starting_after. |
GET/v1/providers/{id}
One provider
The provider, and whether its NPI and tax id are locked because a request for it has gone to a payer.
Request
curl -sS -X GET "$PAYERWORKS_BASE_URL/v1/providers/prv_01a154ad358043763d71b95c" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.getProvidersById("prv_01a154ad358043763d71b95c");With the Python client
answer = pw.get_providers_by_id("prv_01a154ad358043763d71b95c"){
"object": "provider",
"id": "prv_01a154ad358043763d71b95c",
"mode": "test",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id": "123456789",
"tax_id_type": "ein",
"contacts": [
{
"organization_name": null,
"first_name": "Jane",
"last_name": "Doe",
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": null
}
],
"identifiers_locked": false,
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z"
}| Field | Type | What it is |
|---|---|---|
object | Typethe value "provider" | |
id | Typestring | What it isprv_ and 24 hexadecimal characters. |
mode | Typeone of "test", "live" | |
name | Typestring | |
npi | Typestring | |
tax_id | Typestring | |
tax_id_type | Typeone of "ein" | |
contacts | Typelist of Contact | |
identifiers_locked | Typeboolean | What it isTrue once a request for this provider has gone to a payer: the NPI and tax id no longer change. |
created_at | Typestring | |
updated_at | Typestring | |
npi_registry | Typeobject | What it isA live key’s new provider (wave 4): what the NPI registry holds for the NPI, found, holding no active record, or not asked (with why). Never stored. |
warnings | Typelist of FieldProblem | What it isA live key’s new provider: what the NPI registry answer warns of. Never a refusal. |
POST/v1/providers/{id}
Change a provider
Only the fields you send change. The NPI and tax id can be corrected until a request for the provider has gone to a payer.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/providers/prv_01a154ad358043763d71b95c" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonWith the JavaScript client
const answer = await pw.postProvidersById("prv_01a154ad358043763d71b95c", body);With the Python client
answer = pw.post_providers_by_id("prv_01a154ad358043763d71b95c", body){
"name": "Sample Family Clinic TASKS"
}{
"object": "provider",
"id": "prv_01a154ad358043763d71b95c",
"mode": "test",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id": "123456789",
"tax_id_type": "ein",
"contacts": [
{
"organization_name": null,
"first_name": "Jane",
"last_name": "Doe",
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": null
}
],
"identifiers_locked": false,
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z"
}| Field | Type | What it is |
|---|---|---|
object | Typethe value "provider" | |
id | Typestring | What it isprv_ and 24 hexadecimal characters. |
mode | Typeone of "test", "live" | |
name | Typestring | |
npi | Typestring | |
tax_id | Typestring | |
tax_id_type | Typeone of "ein" | |
contacts | Typelist of Contact | |
identifiers_locked | Typeboolean | What it isTrue once a request for this provider has gone to a payer: the NPI and tax id no longer change. |
created_at | Typestring | |
updated_at | Typestring | |
npi_registry | Typeobject | What it isA live key’s new provider (wave 4): what the NPI registry holds for the NPI, found, holding no active record, or not asked (with why). Never stored. |
warnings | Typelist of FieldProblem | What it isA live key’s new provider: what the NPI registry answer warns of. Never a refusal. |
DELETE/v1/providers/{id}
Delete a provider
Its drafts go with it. A provider with a request that is open or live is kept, and the refusal names those requests. Deleting again answers the same.
Request
curl -sS -X DELETE "$PAYERWORKS_BASE_URL/v1/providers/prv_01a154ad358043763d71b95c" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.deleteProvidersById("prv_01a154ad358043763d71b95c");With the Python client
answer = pw.delete_providers_by_id("prv_01a154ad358043763d71b95c"){
"deleted": true,
"id": "prv_01a154ad358043763d71b95c"
}| Field | Type | What it is |
|---|---|---|
deleted | Typethe value true | |
id | Typestring |
POST/v1/enrollments
Request an enrollment
One request per provider, payer and transaction: eligibility, claim_status, professional_claims or remittances. Kept as a draft, or handed to Payerworks with submit: true. Payerworks is not yet registered with any payer, so a live request waits with Payerworks, the answer carries a route_not_open warning, and nothing is sent.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/enrollments" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonWith the JavaScript client
const answer = await pw.postEnrollments(body);With the Python client
answer = pw.post_enrollments(body){
"provider_id": "prv_01a154ad358043763d71b95c",
"payer": {
"id": "PWSANDBOX"
},
"transaction": "remittances",
"primary_contact": {
"organization_name": "Sample Family Clinic LLC",
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"address": {
"line1": "100 Main St",
"city": "Salt Lake City",
"state": "UT",
"zip": "84101"
}
},
"notify_email": "dev@sampleclinic.example",
"submit": true
}{
"object": "enrollment",
"id": "enr_01a154ad35808fafb0295307",
"mode": "test",
"provider": {
"id": "prv_01a154ad358043763d71b95c",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id_last_four": "6789"
},
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER",
"sandbox": true
},
"transaction": "remittances",
"x12": "835",
"status": "provider_action_required",
"status_words": "Waiting on the provider: 2 steps below need the provider. Finish them in order.",
"waiting_on": "provider",
"reason_code": null,
"route": {
"open": true,
"sandbox": true,
"words": "The sandbox payer answers every enrollment in the sandbox. Nothing is sent anywhere."
},
"primary_contact": {
"organization_name": "Sample Family Clinic LLC",
"first_name": null,
"last_name": null,
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": {
"line1": "100 Main St",
"line2": null,
"city": "Salt Lake City",
"state": "UT",
"zip": "84101"
}
},
"notify_email": "dev@sampleclinic.example",
"requested_effective_date": null,
"era_aggregation": null,
"ptan": null,
"note": "",
"tasks": [
{
"id": "tsk_01a154ad35808fafb0295307_01",
"rank": 0,
"responsible": "provider",
"title": "Give the sandbox payer’s packet number",
"instructions": "Sandbox: the payer emailed a packet number when the provider finished its form. Enter it here.",
"fields": [
{
"key": "packet_id",
"label": "Packet number",
"type": "text",
"format": "identifier",
"required": true,
"description": ""
}
],
"links": [],
"template_document_id": null,
"values": [],
"complete": false,
"completed_at": null,
"created_at": "2026-10-19T15:00:00.000Z"
},
{
"id": "tsk_01a154ad35808fafb0295307_02",
"rank": 1,
"responsible": "provider",
"title": "Finish the sandbox payer’s steps",
"instructions": "Sandbox: these steps happen on the payer’s own site. Mark this task complete, with no values, once they are done.",
"fields": [],
"links": [],
"template_document_id": null,
"values": [],
"complete": false,
"completed_at": null,
"created_at": "2026-10-19T15:00:00.000Z"
}
],
"documents": [],
"notes": [],
"rejection": null,
"payer_reference": null,
"history": [
{
"sequence": 1,
"at": "2026-10-19T15:00:00.000Z",
"from": null,
"to": "payerworks_action_required",
"by": "you",
"reason_code": "preparing"
},
{
"sequence": 3,
"at": "2026-10-19T15:00:00.000Z",
"from": "payerworks_action_required",
"to": "provider_action_required",
"by": "sandbox",
"reason_code": null
}
],
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z",
"submitted_at": "2026-10-19T15:00:00.000Z",
"status_changed_at": "2026-10-19T15:00:00.000Z",
"sent_to_payer_at": null,
"live_at": null,
"ended_at": null,
"cancel_requested_at": null,
"requirements_url": "/v1/enrollment-requirements/PWSANDBOX?transaction=remittances",
"warnings": []
}| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment" | |
id | Typestring | What it isenr_ and 24 hexadecimal characters. |
mode | Typeone of "test", "live" | |
provider | Typeobject | |
payer | Typeobject | |
transaction | Typeone of "eligibility", "claim_status", "professional_claims", "remittances" | |
x12 | Typestring | |
status | Typeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended" | |
status_words | Typestring | |
waiting_on | Typestring or null | What it isWhose turn it is; null when nobody’s. |
reason_code | Typestring or null | What it isWhy it is Payerworks’ turn, at payerworks_action_required. |
route | Typeobject | |
notify_email | Typestring or null | |
requested_effective_date | Typestring or null | |
era_aggregation | Typestring or null | |
ptan | Typestring or null | |
note | Typestring | |
tasks | Typelist of Task | What it isIn rank order. |
documents | Typelist of Document | |
rejection | TypeRejection or null | |
payer_reference | Typestring or null | What it isWhat the payer’s confirmation said. |
created_at | Typestring | |
updated_at | Typestring | |
submitted_at | Typestring or null | |
status_changed_at | Typestring or null | |
sent_to_payer_at | Typestring or null | |
live_at | Typestring or null | |
ended_at | Typestring or null | |
cancel_requested_at | Typestring or null | |
requirements_url | Typestring | What it isThe payer’s published steps for this transaction. |
open_tasks | Typeinteger | What it isList items only: tasks not yet finished. |
primary_contact | TypeContact or null | |
notes | Typelist of object | What it isFrom Payerworks. |
history | Typelist of object | What it isEvery status change, oldest first. |
history_truncated | Typeboolean | |
warnings | Typelist of object | What it isOn a create or submit: route_not_open while Payerworks’ route is closed. |
GET/v1/enrollments
List your enrollments
Newest first, each with its status, whose turn it is and its open tasks. Filter with status, transaction, payer_id, provider_id, npi, waiting_on and the created and updated dates. A page may hold fewer than limit, so keep paging while has_more is true.
Request
curl -sS -X GET "$PAYERWORKS_BASE_URL/v1/enrollments" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.getEnrollments();With the Python client
answer = pw.get_enrollments(){
"data": [
{
"object": "enrollment",
"id": "enr_01a154ad35808fafb0295307",
"mode": "test",
"provider": {
"id": "prv_01a154ad358043763d71b95c",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id_last_four": "6789"
},
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER",
"sandbox": true
},
"transaction": "remittances",
"x12": "835",
"status": "provider_action_required",
"status_words": "Waiting on the provider: 2 steps below need the provider. Finish them in order.",
"waiting_on": "provider",
"reason_code": null,
"route": {
"open": true,
"sandbox": true,
"words": "The sandbox payer answers every enrollment in the sandbox. Nothing is sent anywhere."
},
"notify_email": "dev@sampleclinic.example",
"requested_effective_date": null,
"era_aggregation": null,
"ptan": null,
"note": "",
"tasks": [
{
"id": "tsk_01a154ad35808fafb0295307_01",
"rank": 0,
"responsible": "provider",
"title": "Give the sandbox payer’s packet number",
"instructions": "Sandbox: the payer emailed a packet number when the provider finished its form. Enter it here.",
"fields": [
{
"key": "packet_id",
"label": "Packet number",
"type": "text",
"format": "identifier",
"required": true,
"description": ""
}
],
"links": [],
"template_document_id": null,
"values": [],
"complete": false,
"completed_at": null,
"created_at": "2026-10-19T15:00:00.000Z"
},
{
"id": "tsk_01a154ad35808fafb0295307_02",
"rank": 1,
"responsible": "provider",
"title": "Finish the sandbox payer’s steps",
"instructions": "Sandbox: these steps happen on the payer’s own site. Mark this task complete, with no values, once they are done.",
"fields": [],
"links": [],
"template_document_id": null,
"values": [],
"complete": false,
"completed_at": null,
"created_at": "2026-10-19T15:00:00.000Z"
}
],
"documents": [],
"rejection": null,
"payer_reference": null,
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z",
"submitted_at": "2026-10-19T15:00:00.000Z",
"status_changed_at": "2026-10-19T15:00:00.000Z",
"sent_to_payer_at": null,
"live_at": null,
"ended_at": null,
"cancel_requested_at": null,
"requirements_url": "/v1/enrollment-requirements/PWSANDBOX?transaction=remittances",
"open_tasks": 2
},
{
"object": "enrollment",
"id": "enr_01a154ad35802c85a436872c",
"mode": "test",
"provider": {
"id": "prv_01a154ad35807d5d51823b6e",
"name": "Sample Family Clinic SLOW",
"npi": "1234567893",
"tax_id_last_four": "6789"
},
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER",
"sandbox": true
},
"transaction": "remittances",
"x12": "835",
"status": "with_payer",
"status_words": "Sandbox: waiting on the sandbox payer. Nothing was sent anywhere; advance moves it on.",
"waiting_on": "payer",
"reason_code": null,
"route": {
"open": true,
"sandbox": true,
"words": "The sandbox payer answers every enrollment in the sandbox. Nothing is sent anywhere."
},
"notify_email": "dev@sampleclinic.example",
"requested_effective_date": null,
"era_aggregation": null,
"ptan": null,
"note": "",
"tasks": [],
"documents": [],
"rejection": null,
"payer_reference": null,
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z",
"submitted_at": "2026-10-19T15:00:00.000Z",
"status_changed_at": "2026-10-19T15:00:00.000Z",
"sent_to_payer_at": "2026-10-19T15:00:00.000Z",
"live_at": null,
"ended_at": null,
"cancel_requested_at": null,
"requirements_url": "/v1/enrollment-requirements/PWSANDBOX?transaction=remittances",
"open_tasks": 0
}
],
"has_more": false,
"next_cursor": null
}| Field | Type | What it is |
|---|---|---|
object | Typethe value "list" | |
data | Typelist of EnrollmentSummary | What it isNewest first. |
has_more | Typeboolean | What it isA page may hold fewer than limit: keep paging while has_more is true. |
next_cursor | Typestring or null |
GET/v1/enrollments/{id}
One enrollment
Its status and whose turn it is, in words; its tasks in rank order, its documents, notes from Payerworks, a rejection with its remedy, and the history of every status change.
Request
curl -sS -X GET "$PAYERWORKS_BASE_URL/v1/enrollments/enr_01a154ad35808fafb0295307" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.getEnrollmentsById("enr_01a154ad35808fafb0295307");With the Python client
answer = pw.get_enrollments_by_id("enr_01a154ad35808fafb0295307"){
"object": "enrollment",
"id": "enr_01a154ad35808fafb0295307",
"mode": "test",
"provider": {
"id": "prv_01a154ad358043763d71b95c",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id_last_four": "6789"
},
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER",
"sandbox": true
},
"transaction": "remittances",
"x12": "835",
"status": "provider_action_required",
"status_words": "Waiting on the provider: 1 step below needs the provider. Finish it, in rank order after any step before it.",
"waiting_on": "provider",
"reason_code": null,
"route": {
"open": true,
"sandbox": true,
"words": "The sandbox payer answers every enrollment in the sandbox. Nothing is sent anywhere."
},
"primary_contact": {
"organization_name": "Sample Family Clinic LLC",
"first_name": null,
"last_name": null,
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": {
"line1": "100 Main St",
"line2": null,
"city": "Salt Lake City",
"state": "UT",
"zip": "84101"
}
},
"notify_email": "dev@sampleclinic.example",
"requested_effective_date": null,
"era_aggregation": null,
"ptan": null,
"note": "",
"tasks": [
{
"id": "tsk_01a154ad35808fafb0295307_01",
"rank": 0,
"responsible": "provider",
"title": "Give the sandbox payer’s packet number",
"instructions": "Sandbox: the payer emailed a packet number when the provider finished its form. Enter it here.",
"fields": [
{
"key": "packet_id",
"label": "Packet number",
"type": "text",
"format": "identifier",
"required": true,
"description": ""
}
],
"links": [],
"template_document_id": null,
"values": [
{
"key": "packet_id",
"text": "PKT-0001"
}
],
"complete": true,
"completed_at": "2026-10-19T15:00:00.000Z",
"created_at": "2026-10-19T15:00:00.000Z"
},
{
"id": "tsk_01a154ad35808fafb0295307_02",
"rank": 1,
"responsible": "provider",
"title": "Finish the sandbox payer’s steps",
"instructions": "Sandbox: these steps happen on the payer’s own site. Mark this task complete, with no values, once they are done.",
"fields": [],
"links": [],
"template_document_id": null,
"values": [],
"complete": false,
"completed_at": null,
"created_at": "2026-10-19T15:00:00.000Z"
}
],
"documents": [],
"notes": [],
"rejection": null,
"payer_reference": null,
"history": [
{
"sequence": 1,
"at": "2026-10-19T15:00:00.000Z",
"from": null,
"to": "payerworks_action_required",
"by": "you",
"reason_code": "preparing"
},
{
"sequence": 3,
"at": "2026-10-19T15:00:00.000Z",
"from": "payerworks_action_required",
"to": "provider_action_required",
"by": "sandbox",
"reason_code": null
}
],
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z",
"submitted_at": "2026-10-19T15:00:00.000Z",
"status_changed_at": "2026-10-19T15:00:00.000Z",
"sent_to_payer_at": null,
"live_at": null,
"ended_at": null,
"cancel_requested_at": null,
"requirements_url": "/v1/enrollment-requirements/PWSANDBOX?transaction=remittances"
}| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment" | |
id | Typestring | What it isenr_ and 24 hexadecimal characters. |
mode | Typeone of "test", "live" | |
provider | Typeobject | |
payer | Typeobject | |
transaction | Typeone of "eligibility", "claim_status", "professional_claims", "remittances" | |
x12 | Typestring | |
status | Typeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended" | |
status_words | Typestring | |
waiting_on | Typestring or null | What it isWhose turn it is; null when nobody’s. |
reason_code | Typestring or null | What it isWhy it is Payerworks’ turn, at payerworks_action_required. |
route | Typeobject | |
notify_email | Typestring or null | |
requested_effective_date | Typestring or null | |
era_aggregation | Typestring or null | |
ptan | Typestring or null | |
note | Typestring | |
tasks | Typelist of Task | What it isIn rank order. |
documents | Typelist of Document | |
rejection | TypeRejection or null | |
payer_reference | Typestring or null | What it isWhat the payer’s confirmation said. |
created_at | Typestring | |
updated_at | Typestring | |
submitted_at | Typestring or null | |
status_changed_at | Typestring or null | |
sent_to_payer_at | Typestring or null | |
live_at | Typestring or null | |
ended_at | Typestring or null | |
cancel_requested_at | Typestring or null | |
requirements_url | Typestring | What it isThe payer’s published steps for this transaction. |
open_tasks | Typeinteger | What it isList items only: tasks not yet finished. |
primary_contact | TypeContact or null | |
notes | Typelist of object | What it isFrom Payerworks. |
history | Typelist of object | What it isEvery status change, oldest first. |
history_truncated | Typeboolean | |
warnings | Typelist of object | What it isOn a create or submit: route_not_open while Payerworks’ route is closed. |
POST/v1/enrollments/{id}
Change an enrollment
The contact, the notice email, the effective date, the remittance grouping, the PTAN or your note, until the request is sent to a payer; while it is a draft, the payer and the transaction too.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/enrollments/enr_01a154ad35808fafb0295307" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonWith the JavaScript client
const answer = await pw.postEnrollmentsById("enr_01a154ad35808fafb0295307", body);With the Python client
answer = pw.post_enrollments_by_id("enr_01a154ad35808fafb0295307", body){
"note": "Our remittances go to the billing office."
}{
"object": "enrollment",
"id": "enr_01a154ad35808fafb0295307",
"mode": "test",
"provider": {
"id": "prv_01a154ad358043763d71b95c",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id_last_four": "6789"
},
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER",
"sandbox": true
},
"transaction": "remittances",
"x12": "835",
"status": "provider_action_required",
"status_words": "Waiting on the provider: 1 step below needs the provider. Finish it, in rank order after any step before it.",
"waiting_on": "provider",
"reason_code": null,
"route": {
"open": true,
"sandbox": true,
"words": "The sandbox payer answers every enrollment in the sandbox. Nothing is sent anywhere."
},
"primary_contact": {
"organization_name": "Sample Family Clinic LLC",
"first_name": null,
"last_name": null,
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": {
"line1": "100 Main St",
"line2": null,
"city": "Salt Lake City",
"state": "UT",
"zip": "84101"
}
},
"notify_email": "dev@sampleclinic.example",
"requested_effective_date": null,
"era_aggregation": null,
"ptan": null,
"note": "",
"tasks": [
{
"id": "tsk_01a154ad35808fafb0295307_01",
"rank": 0,
"responsible": "provider",
"title": "Give the sandbox payer’s packet number",
"instructions": "Sandbox: the payer emailed a packet number when the provider finished its form. Enter it here.",
"fields": [
{
"key": "packet_id",
"label": "Packet number",
"type": "text",
"format": "identifier",
"required": true,
"description": ""
}
],
"links": [],
"template_document_id": null,
"values": [
{
"key": "packet_id",
"text": "PKT-0001"
}
],
"complete": true,
"completed_at": "2026-10-19T15:00:00.000Z",
"created_at": "2026-10-19T15:00:00.000Z"
},
{
"id": "tsk_01a154ad35808fafb0295307_02",
"rank": 1,
"responsible": "provider",
"title": "Finish the sandbox payer’s steps",
"instructions": "Sandbox: these steps happen on the payer’s own site. Mark this task complete, with no values, once they are done.",
"fields": [],
"links": [],
"template_document_id": null,
"values": [],
"complete": false,
"completed_at": null,
"created_at": "2026-10-19T15:00:00.000Z"
}
],
"documents": [],
"notes": [],
"rejection": null,
"payer_reference": null,
"history": [
{
"sequence": 1,
"at": "2026-10-19T15:00:00.000Z",
"from": null,
"to": "payerworks_action_required",
"by": "you",
"reason_code": "preparing"
},
{
"sequence": 3,
"at": "2026-10-19T15:00:00.000Z",
"from": "payerworks_action_required",
"to": "provider_action_required",
"by": "sandbox",
"reason_code": null
}
],
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z",
"submitted_at": "2026-10-19T15:00:00.000Z",
"status_changed_at": "2026-10-19T15:00:00.000Z",
"sent_to_payer_at": null,
"live_at": null,
"ended_at": null,
"cancel_requested_at": null,
"requirements_url": "/v1/enrollment-requirements/PWSANDBOX?transaction=remittances"
}| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment" | |
id | Typestring | What it isenr_ and 24 hexadecimal characters. |
mode | Typeone of "test", "live" | |
provider | Typeobject | |
payer | Typeobject | |
transaction | Typeone of "eligibility", "claim_status", "professional_claims", "remittances" | |
x12 | Typestring | |
status | Typeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended" | |
status_words | Typestring | |
waiting_on | Typestring or null | What it isWhose turn it is; null when nobody’s. |
reason_code | Typestring or null | What it isWhy it is Payerworks’ turn, at payerworks_action_required. |
route | Typeobject | |
notify_email | Typestring or null | |
requested_effective_date | Typestring or null | |
era_aggregation | Typestring or null | |
ptan | Typestring or null | |
note | Typestring | |
tasks | Typelist of Task | What it isIn rank order. |
documents | Typelist of Document | |
rejection | TypeRejection or null | |
payer_reference | Typestring or null | What it isWhat the payer’s confirmation said. |
created_at | Typestring | |
updated_at | Typestring | |
submitted_at | Typestring or null | |
status_changed_at | Typestring or null | |
sent_to_payer_at | Typestring or null | |
live_at | Typestring or null | |
ended_at | Typestring or null | |
cancel_requested_at | Typestring or null | |
requirements_url | Typestring | What it isThe payer’s published steps for this transaction. |
open_tasks | Typeinteger | What it isList items only: tasks not yet finished. |
primary_contact | TypeContact or null | |
notes | Typelist of object | What it isFrom Payerworks. |
history | Typelist of object | What it isEvery status change, oldest first. |
history_truncated | Typeboolean | |
warnings | Typelist of object | What it isOn a create or submit: route_not_open while Payerworks’ route is closed. |
DELETE/v1/enrollments/{id}
Delete an enrollment
A draft, a canceled or a rejected request. Deleting again answers the same.
Request
curl -sS -X DELETE "$PAYERWORKS_BASE_URL/v1/enrollments/enr_01a154ad35808fafb0295307" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.deleteEnrollmentsById("enr_01a154ad35808fafb0295307");With the Python client
answer = pw.delete_enrollments_by_id("enr_01a154ad35808fafb0295307"){
"deleted": true,
"id": "enr_01a154ad35808fafb0295307"
}| Field | Type | What it is |
|---|---|---|
deleted | Typethe value true | |
id | Typestring |
POST/v1/enrollments/{id}/submit
Submit a draft
The draft is checked again and handed to Payerworks.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/enrollments/enr_01a154ad3580afd6446277eb/submit" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.postEnrollmentsByIdSubmit("enr_01a154ad3580afd6446277eb");With the Python client
answer = pw.post_enrollments_by_id_submit("enr_01a154ad3580afd6446277eb"){
"object": "enrollment",
"id": "enr_01a154ad3580afd6446277eb",
"mode": "test",
"provider": {
"id": "prv_01a154ad35802482aa01ccf0",
"name": "Sample Family Clinic WAITS",
"npi": "1234567893",
"tax_id_last_four": "6789"
},
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER",
"sandbox": true
},
"transaction": "remittances",
"x12": "835",
"status": "payerworks_action_required",
"status_words": "Waiting on Payerworks. Payerworks is not yet registered to exchange 835 files with PAYERWORKS SANDBOX PAYER, so nothing has been sent to the payer. Your request waits here, and you can change or cancel it until it is sent.",
"waiting_on": "payerworks",
"reason_code": "route_not_open",
"route": {
"open": true,
"sandbox": true,
"words": "The sandbox payer answers every enrollment in the sandbox. Nothing is sent anywhere."
},
"primary_contact": {
"organization_name": "Sample Family Clinic LLC",
"first_name": null,
"last_name": null,
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": {
"line1": "100 Main St",
"line2": null,
"city": "Salt Lake City",
"state": "UT",
"zip": "84101"
}
},
"notify_email": "dev@sampleclinic.example",
"requested_effective_date": null,
"era_aggregation": null,
"ptan": null,
"note": "",
"tasks": [],
"documents": [],
"notes": [],
"rejection": null,
"payer_reference": null,
"history": [
{
"sequence": 1,
"at": "2026-10-19T15:00:00.000Z",
"from": null,
"to": "draft",
"by": "you",
"reason_code": null
},
{
"sequence": 2,
"at": "2026-10-19T15:00:00.000Z",
"from": "draft",
"to": "payerworks_action_required",
"by": "you",
"reason_code": "route_not_open"
}
],
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z",
"submitted_at": "2026-10-19T15:00:00.000Z",
"status_changed_at": "2026-10-19T15:00:00.000Z",
"sent_to_payer_at": null,
"live_at": null,
"ended_at": null,
"cancel_requested_at": null,
"requirements_url": "/v1/enrollment-requirements/PWSANDBOX?transaction=remittances",
"warnings": []
}| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment" | |
id | Typestring | What it isenr_ and 24 hexadecimal characters. |
mode | Typeone of "test", "live" | |
provider | Typeobject | |
payer | Typeobject | |
transaction | Typeone of "eligibility", "claim_status", "professional_claims", "remittances" | |
x12 | Typestring | |
status | Typeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended" | |
status_words | Typestring | |
waiting_on | Typestring or null | What it isWhose turn it is; null when nobody’s. |
reason_code | Typestring or null | What it isWhy it is Payerworks’ turn, at payerworks_action_required. |
route | Typeobject | |
notify_email | Typestring or null | |
requested_effective_date | Typestring or null | |
era_aggregation | Typestring or null | |
ptan | Typestring or null | |
note | Typestring | |
tasks | Typelist of Task | What it isIn rank order. |
documents | Typelist of Document | |
rejection | TypeRejection or null | |
payer_reference | Typestring or null | What it isWhat the payer’s confirmation said. |
created_at | Typestring | |
updated_at | Typestring | |
submitted_at | Typestring or null | |
status_changed_at | Typestring or null | |
sent_to_payer_at | Typestring or null | |
live_at | Typestring or null | |
ended_at | Typestring or null | |
cancel_requested_at | Typestring or null | |
requirements_url | Typestring | What it isThe payer’s published steps for this transaction. |
open_tasks | Typeinteger | What it isList items only: tasks not yet finished. |
primary_contact | TypeContact or null | |
notes | Typelist of object | What it isFrom Payerworks. |
history | Typelist of object | What it isEvery status change, oldest first. |
history_truncated | Typeboolean | |
warnings | Typelist of object | What it isOn a create or submit: route_not_open while Payerworks’ route is closed. |
POST/v1/enrollments/{id}/cancel
Cancel an enrollment
In any open status. Before it is sent to a payer it is canceled at once; once it is with a payer, or live, the answer is 202 and Payerworks withdraws it.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/enrollments/enr_01a154ad35808fafb0295307/cancel" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonWith the JavaScript client
const answer = await pw.postEnrollmentsByIdCancel("enr_01a154ad35808fafb0295307", body);With the Python client
answer = pw.post_enrollments_by_id_cancel("enr_01a154ad35808fafb0295307", body){
"reason": "Filed by mistake."
}{
"object": "enrollment",
"id": "enr_01a154ad35808fafb0295307",
"mode": "test",
"provider": {
"id": "prv_01a154ad358043763d71b95c",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id_last_four": "6789"
},
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER",
"sandbox": true
},
"transaction": "remittances",
"x12": "835",
"status": "canceled",
"status_words": "Canceled. Nothing more happens to this request.",
"waiting_on": null,
"reason_code": null,
"route": {
"open": true,
"sandbox": true,
"words": "The sandbox payer answers every enrollment in the sandbox. Nothing is sent anywhere."
},
"primary_contact": {
"organization_name": "Sample Family Clinic LLC",
"first_name": null,
"last_name": null,
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": {
"line1": "100 Main St",
"line2": null,
"city": "Salt Lake City",
"state": "UT",
"zip": "84101"
}
},
"notify_email": "dev@sampleclinic.example",
"requested_effective_date": null,
"era_aggregation": null,
"ptan": null,
"note": "",
"tasks": [
{
"id": "tsk_01a154ad35808fafb0295307_01",
"rank": 0,
"responsible": "provider",
"title": "Give the sandbox payer’s packet number",
"instructions": "Sandbox: the payer emailed a packet number when the provider finished its form. Enter it here.",
"fields": [
{
"key": "packet_id",
"label": "Packet number",
"type": "text",
"format": "identifier",
"required": true,
"description": ""
}
],
"links": [],
"template_document_id": null,
"values": [],
"complete": false,
"completed_at": null,
"created_at": "2026-10-19T15:00:00.000Z"
},
{
"id": "tsk_01a154ad35808fafb0295307_02",
"rank": 1,
"responsible": "provider",
"title": "Finish the sandbox payer’s steps",
"instructions": "Sandbox: these steps happen on the payer’s own site. Mark this task complete, with no values, once they are done.",
"fields": [],
"links": [],
"template_document_id": null,
"values": [],
"complete": false,
"completed_at": null,
"created_at": "2026-10-19T15:00:00.000Z"
}
],
"documents": [],
"notes": [],
"rejection": null,
"payer_reference": null,
"history": [
{
"sequence": 1,
"at": "2026-10-19T15:00:00.000Z",
"from": null,
"to": "payerworks_action_required",
"by": "you",
"reason_code": "preparing"
},
{
"sequence": 3,
"at": "2026-10-19T15:00:00.000Z",
"from": "payerworks_action_required",
"to": "provider_action_required",
"by": "sandbox",
"reason_code": null
}
],
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z",
"submitted_at": "2026-10-19T15:00:00.000Z",
"status_changed_at": "2026-10-19T15:00:00.000Z",
"sent_to_payer_at": null,
"live_at": null,
"ended_at": "2026-10-19T15:00:00.000Z",
"cancel_requested_at": null,
"requirements_url": "/v1/enrollment-requirements/PWSANDBOX?transaction=remittances"
}Shortened here: lists show their first two items and long strings are cut. The whole answer is this route’s example in /openapi.json.
| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment" | |
id | Typestring | What it isenr_ and 24 hexadecimal characters. |
mode | Typeone of "test", "live" | |
provider | Typeobject | |
payer | Typeobject | |
transaction | Typeone of "eligibility", "claim_status", "professional_claims", "remittances" | |
x12 | Typestring | |
status | Typeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended" | |
status_words | Typestring | |
waiting_on | Typestring or null | What it isWhose turn it is; null when nobody’s. |
reason_code | Typestring or null | What it isWhy it is Payerworks’ turn, at payerworks_action_required. |
route | Typeobject | |
notify_email | Typestring or null | |
requested_effective_date | Typestring or null | |
era_aggregation | Typestring or null | |
ptan | Typestring or null | |
note | Typestring | |
tasks | Typelist of Task | What it isIn rank order. |
documents | Typelist of Document | |
rejection | TypeRejection or null | |
payer_reference | Typestring or null | What it isWhat the payer’s confirmation said. |
created_at | Typestring | |
updated_at | Typestring | |
submitted_at | Typestring or null | |
status_changed_at | Typestring or null | |
sent_to_payer_at | Typestring or null | |
live_at | Typestring or null | |
ended_at | Typestring or null | |
cancel_requested_at | Typestring or null | |
requirements_url | Typestring | What it isThe payer’s published steps for this transaction. |
open_tasks | Typeinteger | What it isList items only: tasks not yet finished. |
primary_contact | TypeContact or null | |
notes | Typelist of object | What it isFrom Payerworks. |
history | Typelist of object | What it isEvery status change, oldest first. |
history_truncated | Typeboolean | |
warnings | Typelist of object | What it isOn a create or submit: route_not_open while Payerworks’ route is closed. |
POST/v1/tasks/{id}
Answer a task
Save a task’s values, text or an uploaded document, and finish it with complete: true, in rank order. A task held up by an earlier one is refused naming that task, its rank and who holds it, Payerworks included. complete: false reopens a task finished by mistake while nothing has gone to a payer.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/tasks/tsk_01a154ad35808fafb0295307_01" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonWith the JavaScript client
const answer = await pw.postTasksById("tsk_01a154ad35808fafb0295307_01", body);With the Python client
answer = pw.post_tasks_by_id("tsk_01a154ad35808fafb0295307_01", body){
"values": [
{
"key": "packet_id",
"text": "PKT-0001"
}
],
"complete": true
}{
"task": {
"id": "tsk_01a154ad35808fafb0295307_01",
"rank": 0,
"responsible": "provider",
"title": "Give the sandbox payer’s packet number",
"instructions": "Sandbox: the payer emailed a packet number when the provider finished its form. Enter it here.",
"fields": [
{
"key": "packet_id",
"label": "Packet number",
"type": "text",
"format": "identifier",
"required": true,
"description": ""
}
],
"links": [],
"template_document_id": null,
"values": [
{
"key": "packet_id",
"text": "PKT-0001"
}
],
"complete": true,
"completed_at": "2026-10-19T15:00:00.000Z",
"created_at": "2026-10-19T15:00:00.000Z"
},
"enrollment": {
"object": "enrollment",
"id": "enr_01a154ad35808fafb0295307",
"mode": "test",
"provider": {
"id": "prv_01a154ad358043763d71b95c",
"name": "Sample Family Clinic TASKS",
"npi": "1234567893",
"tax_id_last_four": "6789"
},
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER",
"sandbox": true
},
"transaction": "remittances",
"x12": "835",
"status": "provider_action_required",
"status_words": "Waiting on the provider: 1 step below needs the provider. Finish it, in rank order after any step before it.",
"waiting_on": "provider",
"reason_code": null,
"route": {
"open": true,
"sandbox": true,
"words": "The sandbox payer answers every enrollment in the sandbox. Nothing is sent anywhere."
},
"primary_contact": {
"organization_name": "Sample Family Clinic LLC",
"first_name": null,
"last_name": null,
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": {
"line1": "100 Main St",
"line2": null,
"city": "Salt Lake City",
"state": "UT",
"zip": "84101"
}
},
"notify_email": "dev@sampleclinic.example",
"requested_effective_date": null,
"era_aggregation": null,
"ptan": null,
"note": "",
"tasks": [
{
"id": "tsk_01a154ad35808fafb0295307_01",
"rank": 0,
"responsible": "provider",
"title": "Give the sandbox payer’s packet number",
"instructions": "Sandbox: the payer emailed a packet number when the provider finished its form. Enter it here.",
"fields": [
{
"key": "packet_id",
"label": "Packet number",
"type": "text",
"format": "identifier",
"required": true,
"description": ""
}
],
"links": [],
"template_document_id": null,
"values": [
{
"key": "packet_id",
"text": "PKT-0001"
}
],
"complete": true,
"completed_at": "2026-10-19T15:00:00.000Z",
"created_at": "2026-10-19T15:00:00.000Z"
},
{
"id": "tsk_01a154ad35808fafb0295307_02",
"rank": 1,
"responsible": "provider",
"title": "Finish the sandbox payer’s steps",
"instructions": "Sandbox: these steps happen on the payer’s own site. Mark this task complete, with no values, once they are done.",
"fields": [],
"links": [],
"template_document_id": null,
"values": [],
"complete": false,
"completed_at": null,
"created_at": "2026-10-19T15:00:00.000Z"
}
],
"documents": [],
"notes": [],
"rejection": null,
"payer_reference": null,
"history": [
{
"sequence": 1,
"at": "2026-10-19T15:00:00.000Z",
"from": null,
"to": "payerworks_action_required",
"by": "you",
"reason_code": "preparing"
},
{
"sequence": 3,
"at": "2026-10-19T15:00:00.000Z",
"from": "payerworks_action_required",
"to": "provider_action_required",
"by": "sandbox",
"reason_code": null
}
],
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z",
"submitted_at": "2026-10-19T15:00:00.000Z",
"status_changed_at": "2026-10-19T15:00:00.000Z",
"sent_to_payer_at": null,
"live_at": null,
"ended_at": null,
"cancel_requested_at": null,
"requirements_url": "/v1/enrollment-requirements/PWSANDBOX?transaction=remittances"
}
}| Field | Type | What it is |
|---|---|---|
task | TypeTask | |
enrollment | TypeEnrollment | What it isAn enrollment request: never the tax id, only its last four. |
POST/v1/enrollments/{id}/documents
Upload a PDF for a task
A signed upload address for one PDF of up to 10 MB, good for 15 minutes. Post the file there, then confirm it, or finish the task with its document_id, which confirms it too.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/enrollments/enr_01a154ad358059512fd26707/documents" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonWith the JavaScript client
const answer = await pw.postEnrollmentsByIdDocuments("enr_01a154ad358059512fd26707", body);With the Python client
answer = pw.post_enrollments_by_id_documents("enr_01a154ad358059512fd26707", body){
"task_id": "tsk_01a154ad358059512fd26707_01",
"field_key": "signed_form",
"filename": "signed-form.pdf"
}{
"document": {
"id": "doc_01a154ad358059512fd26707_e8039f84",
"task_id": "tsk_01a154ad358059512fd26707_01",
"field_key": "signed_form",
"filename": "signed-form.pdf",
"status": "pending",
"size": null,
"content_type": "application/pdf",
"source": "you",
"created_at": "2026-10-19T15:00:00.000Z",
"uploaded_at": null
},
"upload": {
"url": "https://uploads.example.com/",
"method": "POST",
"fields": {
"key": "pending/pwk_0123456789abcdef/enr_01a154ad358059512fd26707/doc_01a154ad358059512fd26707_e8039f84.pdf",
"Content-Type": "application/pdf"
},
"expires_at": "2026-10-19T15:15:00.000Z"
}
}| Field | Type | What it is |
|---|---|---|
document | TypeDocument | |
upload | Typeobject | What it isA signed form POST: one PDF, up to 10 MB, within 15 minutes. It takes no key. |
POST/v1/documents/{id}/confirm
Confirm an upload
Checks that the file arrived and is a PDF of up to 10 MB. One that is not is deleted, and the document is marked failed.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/documents/doc_01a154ad358059512fd26707_e8039f84/confirm" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.postDocumentsByIdConfirm("doc_01a154ad358059512fd26707_e8039f84");With the Python client
answer = pw.post_documents_by_id_confirm("doc_01a154ad358059512fd26707_e8039f84"){
"id": "doc_01a154ad358059512fd26707_e8039f84",
"task_id": "tsk_01a154ad358059512fd26707_01",
"field_key": "signed_form",
"filename": "signed-form.pdf",
"status": "uploaded",
"size": 48213,
"content_type": "application/pdf",
"source": "you",
"created_at": "2026-10-19T15:00:00.000Z",
"uploaded_at": "2026-10-19T15:00:00.000Z"
}| Field | Type | What it is |
|---|---|---|
id | Typestring | What it isdoc_, the enrollment’s 24 hexadecimal characters, an underscore and 8 more. |
task_id | Typestring or null | |
field_key | Typestring or null | |
filename | Typestring | |
status | Typeone of "pending", "uploaded", "failed" | |
failure | Typestring | What it isWhy it failed: not_a_pdf, too_large or upload_expired. |
size | Typeinteger or null | What it isBytes. |
content_type | Typethe value "application/pdf" | |
source | Typeone of "you", "payerworks" | What it isWho added it. |
created_at | Typestring | |
uploaded_at | Typestring or null |
GET/v1/documents/{id}
Download a document
A signed download address, good for 15 minutes, for a PDF you uploaded or a form Payerworks attached to a task.
Request
curl -sS -X GET "$PAYERWORKS_BASE_URL/v1/documents/doc_01a154ad358059512fd26707_e8039f84" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.getDocumentsById("doc_01a154ad358059512fd26707_e8039f84");With the Python client
answer = pw.get_documents_by_id("doc_01a154ad358059512fd26707_e8039f84"){
"document": {
"id": "doc_01a154ad358059512fd26707_e8039f84",
"task_id": "tsk_01a154ad358059512fd26707_01",
"field_key": "signed_form",
"filename": "signed-form.pdf",
"status": "uploaded",
"size": 48213,
"content_type": "application/pdf",
"source": "you",
"created_at": "2026-10-19T15:00:00.000Z",
"uploaded_at": "2026-10-19T15:00:00.000Z"
},
"download": {
"url": "https://downloads.example.com/signed-form.pdf",
"expires_at": "2026-10-19T15:15:00.000Z"
}
}| Field | Type | What it is |
|---|---|---|
document | TypeDocument | |
download | Typeobject | What it isA signed GET, good for 15 minutes. |
DELETE/v1/documents/{id}
Delete a document
Refused while a finished task names it: reopen the task first. Deleting again answers the same.
Request
curl -sS -X DELETE "$PAYERWORKS_BASE_URL/v1/documents/doc_01a154ad358059512fd26707_e8039f84" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.deleteDocumentsById("doc_01a154ad358059512fd26707_e8039f84");With the Python client
answer = pw.delete_documents_by_id("doc_01a154ad358059512fd26707_e8039f84"){
"deleted": true,
"id": "doc_01a154ad358059512fd26707_e8039f84"
}| Field | Type | What it is |
|---|---|---|
deleted | Typethe value true | |
id | Typestring |
GET/v1/enrollment-requirements
Payers with published steps
Every payer Payerworks holds published enrollment steps for, the four Medicare DME MACs and CMS’s HETS, and the sandbox payer: per transaction, who files, the fields needed and each step, with its source and the day it was read.
Request
curl -sS -X GET "$PAYERWORKS_BASE_URL/v1/enrollment-requirements" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.getEnrollmentRequirements();With the Python client
answer = pw.get_enrollment_requirements(){
"object": "list",
"data": [
{
"payer": {
"id": "16013",
"name": "Medicare DME MAC Jurisdiction A",
"sandbox": false
},
"transactions": [
{
"transaction": "eligibility",
"x12": "270/271",
"applies": false
},
{
"transaction": "claim_status",
"x12": "276/277",
"applies": true
}
]
},
{
"payer": {
"id": "17013",
"name": "Medicare DME MAC Jurisdiction B",
"sandbox": false
},
"transactions": [
{
"transaction": "eligibility",
"x12": "270/271",
"applies": false
},
{
"transaction": "claim_status",
"x12": "276/277",
"applies": true
}
]
}
],
"checked_on": "2026-10-19",
"scope": "The payers Payerworks holds published enrollment steps for, and the sandbox payer. Every other payer id answers published: false with no steps; that never means nothing is required."
}Shortened here: lists show their first two items and long strings are cut. The whole answer is this route’s example in /openapi.json.
| Field | Type | What it is |
|---|---|---|
object | Typethe value "list" | |
checked_on | Typestring | |
scope | Typestring | |
data | Typelist of object |
GET/v1/enrollment-requirements/{payer_id}
What a payer asks
For any payer id, per transaction: whether Payerworks’ route is open, who files, the fields needed and each published step with its source. A payer Payerworks holds nothing for answers published: false, never not required. Add ?transaction= for one.
Request
curl -sS -X GET "$PAYERWORKS_BASE_URL/v1/enrollment-requirements/19003" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.getEnrollmentRequirementsByPayerId("19003");With the Python client
answer = pw.get_enrollment_requirements_by_payer_id("19003"){
"object": "enrollment_requirements",
"payer": {
"id": "19003",
"name": "Medicare DME MAC Jurisdiction D",
"sandbox": false
},
"published": true,
"checked_on": "2026-10-19",
"transactions": [
{
"transaction": "eligibility",
"x12": "270/271",
"applies": false,
"ask": {
"payer_id": "CMS",
"words": "Traditional Medicare eligibility is asked of CMS’s HETS, not a DME MAC. File eligibility with payer CMS.",
"source": {
"url": "https://www.cms.gov/data-research/cms-information-technology/hipaa-eligibility-transaction-system-hets/hets-electronic-data-interchange-edi-enrollment",
"label": "CMS: HETS EDI Enrollment (page last modified 10/13/2026)",
"checked_on": "2026-10-19"
}
}
},
{
"transaction": "claim_status",
"x12": "276/277",
"applies": true,
"route": {
"open": false,
"waiting_on": "payerworks",
"words": "Payerworks is not yet a CEDI trading partner, so it cannot exchange 276/277 files with any DME MAC. A request for this waits at payerworks_action_required and nothing is sent."
},
"where": {
"name": "CEDI, the front end for all four DME MACs",
"url": "https://cedi.wellpointfederal.com/enrollment"
},
"who_files": "provider",
"fields_required": [
"ptan"
],
"steps": [
{
"key": "npi_active_in_pecos",
"who": "provider",
"words": "The provider’s NPI is active in PECOS, Medicare’s enrollment system. CEDI checks it before it signs the provider up for EDI, and denies the EDI agreement when it cannot find it.",
"source": {
"url": "https://www.cms.gov/regulations-and-guidance/guidance/manuals/downloads/clm104c24.pdf",
"label": "CMS Medicare Claims Processing Manual (Pub. 100-04), chapter 24, section 30.1",
"checked_on": "2026-10-19"
}
},
{
"key": "edi_agreement",
"who": "provider",
"words": "Every provider that exchanges files with Medicare, directly or through a clearinghouse, signs the EDI enrollment agreement before CEDI accepts its claims or sends it any file. For the DME MACs that agreement is CEDI’s online packet.",
"source": {
"url": "https://www.cms.gov/regulations-and-guidance/guidance/manuals/downloads/clm104c24.pdf",
"label": "CMS Medicare Claims Processing Manual (Pub. 100-04), chapter 24, section 30.2",
"checked_on": "2026-10-19"
}
}
],
"timing": {
"words": "CEDI processes a new enrollment request within 5 business days of receipt, and a large request may take longer. A rejected packet is emailed with its reasons, and a new packet is needed.",
"source": {
"url": "https://cedi.wellpointfederal.com/documents/20124/298616/DME_CEDI_FAQ.pdf/5b891dee-4847-d113-e04d-ba5130fb36ae",
"label": "CEDI Frequently Asked Questions (last revision 03/19/2026)",
"checked_on": "2026-10-19"
}
}
}
],
"words": "These are the payer’s own published steps, read on 10/19/2026. Payerworks is not registered with this payer."
}Shortened here: lists show their first two items and long strings are cut. The whole answer is this route’s example in /openapi.json.
| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment_requirements" | |
payer | Typeobject | |
published | Typeboolean | What it isfalse: Payerworks holds no published steps for this payer, which never means nothing is required. |
checked_on | Typestring | |
transactions | Typelist of RequirementTransaction | |
words | Typestring |
POST/v1/sandbox/enrollments/{id}/advance
Advance a sandbox enrollment
The sandbox payer’s next move on a test request, with the events it raised. A test key only; the last word of the provider’s name picks the scenario.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/sandbox/enrollments/enr_01a154ad35802c85a436872c/advance" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.postSandboxEnrollmentsByIdAdvance("enr_01a154ad35802c85a436872c");With the Python client
answer = pw.post_sandbox_enrollments_by_id_advance("enr_01a154ad35802c85a436872c"){
"enrollment": {
"object": "enrollment",
"id": "enr_01a154ad35802c85a436872c",
"mode": "test",
"provider": {
"id": "prv_01a154ad35807d5d51823b6e",
"name": "Sample Family Clinic SLOW",
"npi": "1234567893",
"tax_id_last_four": "6789"
},
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER",
"sandbox": true
},
"transaction": "remittances",
"x12": "835",
"status": "live",
"status_words": "Sandbox: live with the sandbox payer. It is invented, so no files flow.",
"waiting_on": null,
"reason_code": null,
"route": {
"open": true,
"sandbox": true,
"words": "The sandbox payer answers every enrollment in the sandbox. Nothing is sent anywhere."
},
"primary_contact": {
"organization_name": "Sample Family Clinic LLC",
"first_name": null,
"last_name": null,
"email": "enrollment@sampleclinic.example",
"phone": "8015550100",
"phone_extension": null,
"address": {
"line1": "100 Main St",
"line2": null,
"city": "Salt Lake City",
"state": "UT",
"zip": "84101"
}
},
"notify_email": "dev@sampleclinic.example",
"requested_effective_date": null,
"era_aggregation": null,
"ptan": null,
"note": "",
"tasks": [],
"documents": [],
"notes": [],
"rejection": null,
"payer_reference": "PWSENR3814935860",
"history": [
{
"sequence": 1,
"at": "2026-10-19T15:00:00.000Z",
"from": null,
"to": "payerworks_action_required",
"by": "you",
"reason_code": "preparing"
},
{
"sequence": 2,
"at": "2026-10-19T15:00:00.000Z",
"from": "payerworks_action_required",
"to": "with_payer",
"by": "sandbox",
"reason_code": null
}
],
"created_at": "2026-10-19T15:00:00.000Z",
"updated_at": "2026-10-19T15:00:00.000Z",
"submitted_at": "2026-10-19T15:00:00.000Z",
"status_changed_at": "2026-10-19T15:00:00.000Z",
"sent_to_payer_at": "2026-10-19T15:00:00.000Z",
"live_at": "2026-10-19T15:00:00.000Z",
"ended_at": null,
"cancel_requested_at": null,
"requirements_url": "/v1/enrollment-requirements/PWSANDBOX?transaction=remittances"
},
"moved": {
"from": "with_payer",
"to": "live"
},
"events": [
{
"id": "evt_bd653cd8c0654191bf653ffe",
"type": "enrollment.live"
}
]
}Shortened here: lists show their first two items and long strings are cut. The whole answer is this route’s example in /openapi.json.
| Field | Type | What it is |
|---|---|---|
enrollment | TypeEnrollment | What it isAn enrollment request: never the tax id, only its last four. |
moved | Typeobject or null | |
events | Typelist of object |
POST/v1/enrollments/import/check
Check an enrollment import
Send { csv } with the template’s header and up to 100 rows, one enrollment request a row. Each row is checked exactly as POST /v1/providers and POST /v1/enrollments check their bodies, each problem named by its column, and said as ready, invalid or duplicate (a request that already stands, or an earlier row asking the same). With a live key, each NPI is looked up in the NPI registry. Nothing is saved.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/enrollments/import/check" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonWith the JavaScript client
const answer = await pw.postEnrollmentsImportCheck(body);With the Python client
answer = pw.post_enrollments_import_check(body){
"csv": "provider_name,npi,tax_id,tax_id_type,payer_id,payer_name,transaction,contact_organization_name,contact_first_name,contact_last_name,contact_email,contact_phone,contact_phone_extension,contact_address_line1,contact_address_line2,contact_city,contact_state,contact_zip,notify_email,requested_effective_date,era_aggregation,ptan,note,submit\r\nSample Family Clinic,1234567893,12-3456789,,PWSANDBOX,,remittances,SAMPLE FAMILY CLINIC LLC,,,enrollment@example.com,5555550100,,100 MAIN STREET,,SPRINGFIELD,IL,62701,dev@example.com,,,,,\r\nSample Family Clinic,1234567893,12-3456789,,PWSANDBOX,,eligibility,SAMPLE FAMILY CLINIC LLC,,,enrollment@example.com,5555550100,,100 MAIN STREET,,SPRINGFIELD,IL,62701,dev@example.com,,,,,true\r\nSample Family Clinic,1234567890,12-3456789,,PWSANDBOX,,remittances,SAMPLE FAMILY CLINIC LLC,,,enrollment@example.com,5555550100,,100 MAIN STREET,,SPRINGFIELD,IL,6270,dev@example.com,,,,,"
}{
"object": "enrollment_import_check",
"saved": false,
"rows": 3,
"results": {
"ready": 2,
"invalid": 1,
"duplicate": 0
},
"data": [
{
"row": 1,
"line": 2,
"provider": {
"id": null,
"exists": false
},
"enrollment": null,
"problems": [],
"warnings": [],
"npi_registry": {
"checked": false,
"npi": "1234567893",
"reason": "test_key",
"words": "A test key's NPIs are invented, so they are not looked up in the NPI registry. A live key's are."
},
"result": "ready"
},
{
"row": 2,
"line": 3,
"provider": {
"id": null,
"exists": false
},
"enrollment": null,
"problems": [],
"warnings": [],
"npi_registry": {
"checked": false,
"npi": "1234567893",
"reason": "test_key",
"words": "A test key's NPIs are invented, so they are not looked up in the NPI registry. A live key's are."
},
"result": "ready"
}
]
}Shortened here: lists show their first two items and long strings are cut. The whole answer is this route’s example in /openapi.json.
| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment_import_check" | |
saved | Typethe value false | What it isNothing was saved. |
rows | Typeinteger | |
results | Typeobject | What it isHow many rows ended each way. |
data | Typelist of ImportRow |
POST/v1/enrollments/import
Import enrollment requests
The same file, each valid row made into one request, and its provider when your key has none with that NPI and tax id. A provider you already have is used as it is, never changed. Each row answers created, invalid, duplicate, refused or not_run; rows not started in time are not_run from not_run_from_row, so send those again. A row is submitted only when its submit cell says true.
Request
curl -sS -X POST "$PAYERWORKS_BASE_URL/v1/enrollments/import" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY" \
-H "Content-Type: application/json" \
-d @request.jsonWith the JavaScript client
const answer = await pw.postEnrollmentsImport(body);With the Python client
answer = pw.post_enrollments_import(body){
"csv": "provider_name,npi,tax_id,tax_id_type,payer_id,payer_name,transaction,contact_organization_name,contact_first_name,contact_last_name,contact_email,contact_phone,contact_phone_extension,contact_address_line1,contact_address_line2,contact_city,contact_state,contact_zip,notify_email,requested_effective_date,era_aggregation,ptan,note,submit\r\nSample Family Clinic,1234567893,12-3456789,,PWSANDBOX,,remittances,SAMPLE FAMILY CLINIC LLC,,,enrollment@example.com,5555550100,,100 MAIN STREET,,SPRINGFIELD,IL,62701,dev@example.com,,,,,\r\nSample Family Clinic,1234567893,12-3456789,,PWSANDBOX,,eligibility,SAMPLE FAMILY CLINIC LLC,,,enrollment@example.com,5555550100,,100 MAIN STREET,,SPRINGFIELD,IL,62701,dev@example.com,,,,,true\r\nSample Family Clinic,1234567890,12-3456789,,PWSANDBOX,,remittances,SAMPLE FAMILY CLINIC LLC,,,enrollment@example.com,5555550100,,100 MAIN STREET,,SPRINGFIELD,IL,6270,dev@example.com,,,,,"
}{
"object": "enrollment_import",
"saved": true,
"rows": 3,
"results": {
"created": 2,
"invalid": 1,
"duplicate": 0,
"refused": 0,
"not_run": 0
},
"data": [
{
"row": 1,
"line": 2,
"provider": {
"id": "prv_01a1c888826beabbf1056c4e",
"created": true
},
"enrollment": {
"id": "enr_01a1c888826bc925e2480746",
"status": "draft",
"waiting_on": "you"
},
"problems": [],
"warnings": [],
"npi_registry": {
"checked": false,
"npi": "1234567893",
"reason": "test_key",
"words": "A test key's NPIs are invented, so they are not looked up in the NPI registry. A live key's are."
},
"result": "created"
},
{
"row": 2,
"line": 3,
"provider": {
"id": "prv_01a1c888826beabbf1056c4e",
"created": false
},
"enrollment": {
"id": "enr_01a1c888826b50af02bb4634",
"status": "live",
"waiting_on": null
},
"problems": [],
"warnings": [],
"npi_registry": {
"checked": false,
"npi": "1234567893",
"reason": "test_key",
"words": "A test key's NPIs are invented, so they are not looked up in the NPI registry. A live key's are."
},
"result": "created"
}
]
}Shortened here: lists show their first two items and long strings are cut. The whole answer is this route’s example in /openapi.json.
| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment_import" | |
saved | Typeboolean | |
rows | Typeinteger | |
results | Typeobject | What it isHow many rows ended each way. |
data | Typelist of ImportRow | |
not_run_from_row | Typeinteger | What it isThe first row not started in time: send it and the rows after it again. |
GET/v1/enrollments/export
Export your enrollments
Every request matching the list’s filters, as CSV text in the answer, up to 5,000 rows: status, whose turn, provider, payer, transaction and the dates. No contact, note or full tax id. A cell a spreadsheet would run as a formula starts with an apostrophe. It takes no limit or starting_after.
Request
curl -sS -X GET "$PAYERWORKS_BASE_URL/v1/enrollments/export" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.getEnrollmentsExport();With the Python client
answer = pw.get_enrollments_export(){
"object": "enrollment_export",
"content_type": "text/csv",
"filename": "payerworks-enrollments-2026-11-11.csv",
"row_count": 1,
"columns": [
"id",
"status"
],
"csv": "id,status,waiting_on,reason_code,provider_id,provider_name,npi,tax_id_last_four,payer_id,payer_name,transaction,x12,notify_email,requested_effective_date,era_aggregation,ptan,open_tasks,payer_reference,created_at,updated_at,submitted_at,sta…"
}Shortened here: lists show their first two items and long strings are cut. The whole answer is this route’s example in /openapi.json.
| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment_export" | |
content_type | Typethe value "text/csv" | |
filename | Typestring | |
row_count | Typeinteger | |
columns | Typelist of one of "id", "status", "waiting_on", "reason_code", "provider_id", "provider_name", "npi", "tax_id_last_four", "payer_id", "payer_name", "transaction", "x12", "notify_email", "requested_effective_date", "era_aggregation", "ptan", "open_tasks", "payer_reference", "created_at", "updated_at", "submitted_at", "status_changed_at", "sent_to_payer_at", "live_at", "ended_at" | |
csv | Typestring | What it isThe CSV’s text: a cell a spreadsheet would run as a formula starts with an apostrophe. |
GET/v1/enrollments/durations
How long your requests took
By payer and transaction, how long your own requests spent waiting on Payerworks, on the provider and with the payer, and from submitted to live: how many finished, and once at least five did, the median and the middle half in hours. Fewer than five says not enough history. From your key’s own history only: Payerworks has no other figures.
Request
curl -sS -X GET "$PAYERWORKS_BASE_URL/v1/enrollments/durations" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"With the JavaScript client
const answer = await pw.getEnrollmentsDurations();With the Python client
answer = pw.get_enrollments_durations(){
"object": "enrollment_durations",
"basis": "This key's own requests, from their own history: no other key's requests, no figure from anywhere else and no model. A payer's time is shown only once this key has enough finished stays with it.",
"floor": 5,
"as_of": "2026-11-11T02:55:51.924Z",
"statuses": [
"payerworks_action_required",
"provider_action_required"
],
"data": [
{
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER"
},
"transaction": "eligibility",
"requests": 1,
"submitted_to_live": {
"n": 1,
"open": 0,
"enough": false,
"median_hours": null,
"p25_hours": null,
"p75_hours": null,
"words": "Not enough history: 1 finished stay from submitted to live on this key, and 5 are needed before a figure is given."
},
"in_status": {
"payerworks_action_required": {
"n": 1,
"open": 0,
"enough": false,
"median_hours": null,
"p25_hours": null,
"p75_hours": null,
"words": "Not enough history: 1 finished stay in payerworks_action_required on this key, and 5 are needed before a figure is given."
},
"provider_action_required": {
"n": 0,
"open": 0,
"enough": false,
"median_hours": null,
"p25_hours": null,
"p75_hours": null,
"words": "Not enough history: 0 finished stays in provider_action_required on this key, and 5 are needed before a figure is given."
},
"with_payer": {
"n": 1,
"open": 0,
"enough": false,
"median_hours": null,
"p25_hours": null,
"p75_hours": null,
"words": "Not enough history: 1 finished stay in with_payer on this key, and 5 are needed before a figure is given."
}
}
},
{
"payer": {
"id": "PWSANDBOX",
"name": "PAYERWORKS SANDBOX PAYER"
},
"transaction": "remittances",
"requests": 1,
"submitted_to_live": {
"n": 0,
"open": 0,
"enough": false,
"median_hours": null,
"p25_hours": null,
"p75_hours": null,
"words": "Not enough history: 0 finished stays from submitted to live on this key, and 5 are needed before a figure is given."
},
"in_status": {
"payerworks_action_required": {
"n": 0,
"open": 0,
"enough": false,
"median_hours": null,
"p25_hours": null,
"p75_hours": null,
"words": "Not enough history: 0 finished stays in payerworks_action_required on this key, and 5 are needed before a figure is given."
},
"provider_action_required": {
"n": 0,
"open": 0,
"enough": false,
"median_hours": null,
"p25_hours": null,
"p75_hours": null,
"words": "Not enough history: 0 finished stays in provider_action_required on this key, and 5 are needed before a figure is given."
},
"with_payer": {
"n": 0,
"open": 0,
"enough": false,
"median_hours": null,
"p25_hours": null,
"p75_hours": null,
"words": "Not enough history: 0 finished stays in with_payer on this key, and 5 are needed before a figure is given."
}
}
}
]
}Shortened here: lists show their first two items and long strings are cut. The whole answer is this route’s example in /openapi.json.
| Field | Type | What it is |
|---|---|---|
object | Typethe value "enrollment_durations" | |
basis | Typestring | |
floor | Typethe value 5 | |
as_of | Typestring | |
statuses | Typelist of string | |
data | Typelist of object |
Reading the answer
- A request’s
statusis one of eight, withwaiting_onsaying whose turn it is andreason_codewhy. The statuses and what moves each are listed below. - Every change is an event (
enrollment.updatedand the rest) with asequencethat only increases, so a receiver can tell an old event from a new one.
Troubleshooting
provider_exists(409): This key already has a provider with that NPI and tax id; the error names it, so use that one.enrollment_exists(409): The provider already has an open request for that payer and transaction; the error names it and its status.task_blocked(409): Tasks are finished in rank order; the error names the open task before this one and who holds it.upload_missing(409): Confirm only after the PDF reached the upload address the API answered.sandbox_nothing_to_advance(409): The sandbox payer has no move to make now: the next move is yours, or the request has ended.changed_meanwhile(409): The request changed while yours ran, so nothing was saved: read it again and send again.
Every refusal these routes may answer, with its status. Any route may also answer the codes every route shares, on Every error.
| Code | Status | What it means |
|---|---|---|
export_takes_no_paging | Status400 | What it meansAn export holds every request that matches its filters, so it takes no limit or starting_after. |
invalid_date_filter | Status400 | What it meansA date filter is a day, YYYY-MM-DD, or an instant, YYYY-MM-DDTHH:MM:SSZ. |
invalid_document_id | Status400 | What it meansA document id is doc_, the enrollment’s 24 hexadecimal characters, an underscore and 8 more. |
invalid_enrollment_id | Status400 | What it meansAn enrollment id is enr_ followed by 24 lowercase hexadecimal characters. |
invalid_npi_filter | Status400 | What it meansnpi is the provider’s 10-digit NPI, with a valid check digit. |
invalid_payer_filter | Status400 | What it meanspayer_id is 1 to 80 letters and digits. |
invalid_payer_id | Status400 | What it meansA payer id is 1 to 80 letters and digits. |
invalid_provider_filter | Status400 | What it meansprovider_id is prv_ followed by 24 lowercase hexadecimal characters. |
invalid_provider_id | Status400 | What it meansA provider id is prv_ followed by 24 lowercase hexadecimal characters. |
invalid_starting_after | Status400 | What it meansstarting_after is the next_cursor of an earlier page, or the id of an item on an earlier page. |
invalid_status_filter | Status400 | What it meansstatus is one or more of the eight enrollment statuses, separated by commas. |
invalid_task_id | Status400 | What it meansA task id is tsk_, the enrollment’s 24 hexadecimal characters, an underscore and two digits. |
invalid_tax_id_filter | Status400 | What it meanstax_id is the provider’s 9-digit EIN, with or without the hyphen after the second digit. |
invalid_transaction_filter | Status400 | What it meanstransaction is eligibility, claim_status, professional_claims or remittances. |
invalid_waiting_on_filter | Status400 | What it meanswaiting_on is you, provider, payerworks or payer. |
q_too_long | Status400 | What it meansq is at most 100 characters. |
document_not_found | Status404 | What it meansThis key has no document with that id. |
enrollment_not_found | Status404 | What it meansThis key has no enrollment request with that id. |
provider_not_found | Status404 | What it meansThis key has no provider with that id. |
task_not_found | Status404 | What it meansThis key has no task with that id. |
changed_meanwhile | Status409 | What it meansThis request changed while yours ran, so nothing was saved. Send it again. |
document_in_use | Status409 | What it meansA completed task names this document. Reopen the task first (complete: false), then delete it. |
document_limit_reached | Status409 | What it meansAn enrollment request holds at most 20 documents. Delete one you no longer need. |
document_not_uploaded | Status409 | What it meansThis document has not been uploaded and confirmed, so there is nothing to download. |
enrollment_ended | Status409 | What it meansThis request is canceled, rejected or ended; nothing more can change. File a new request. |
enrollment_exists | Status409 | What it meansThis provider already has an open request for this payer and transaction; the error names it and its status. |
enrollment_limit_reached | Status409 | What it meansA key holds at most 5,000 enrollment requests (a test key 500). Delete drafts and ended requests you no longer need. |
enrollment_not_deletable | Status409 | What it meansOnly a draft, canceled or rejected request can be deleted. Cancel it first. |
enrollment_not_draft | Status409 | What it meansOnly a draft is submitted; this request already was. |
enrollment_sent | Status409 | What it meansThis request has gone to the payer, so its fields can no longer change. Cancel it and file a new one. |
provider_exists | Status409 | What it meansThis key already has a provider with this NPI and tax id; the error names it. |
provider_has_enrollments | Status409 | What it meansThis provider has requests that are open or live; cancel them first. The error names them. |
provider_in_use | Status409 | What it meansThe NPI and tax id can no longer change: a request for this provider has gone to a payer. The error names those requests. |
provider_limit_reached | Status409 | What it meansA key holds at most 500 providers (a test key 50). Delete one you no longer use. |
sandbox_nothing_to_advance | Status409 | What it meansThe sandbox payer has no move to make now: the next move is yours, the request has ended, or this scenario never moves. The error says whose turn it is. |
task_blocked | Status409 | What it meansA task ranked before this one is still open; the error names it, its rank and who holds it. Tasks are finished in rank order. |
task_is_payerworks | Status409 | What it meansThis task is Payerworks’ to do, not the provider’s. It is shown so you can see what Payerworks is waiting on. |
task_not_open | Status409 | What it meansThis request is not waiting on the provider, so its tasks cannot change now. |
upload_missing | Status409 | What it meansNothing has arrived at the upload address yet. Upload the PDF, then confirm again. |
export_too_large | Status413 | What it meansEvery request matching these filters does not fit in one export. Narrow the filters (a payer, a transaction, a created range) and export each part. |
document_too_large | Status422 | What it meansA document is at most 10 MB. It was deleted; upload a smaller PDF. |
field_not_a_document | Status422 | What it meansThat field of the task does not take a document. |
invalid_cancel | Status422 | What it meansreason is text of at most 200 characters, with no run of eight or more digits. |
invalid_document_request | Status422 | What it meansSend task_id, field_key and filename (ending .pdf, at most 120 characters); each problem is listed with its field. |
invalid_enrollment | Status422 | What it meansOne or more enrollment fields would be refused; nothing was saved. Each problem is listed with its field. |
invalid_import | Status422 | What it meansThe CSV could not be read as an enrollment import, so no row was checked or saved. Each problem is listed; the columns are in the import template. |
invalid_provider | Status422 | What it meansOne or more provider fields would be refused; nothing was saved. Each problem is listed with its field. |
invalid_task_values | Status422 | What it meansOne or more task values would be refused; nothing was saved. Each problem is listed with its field. |
not_a_pdf | Status422 | What it meansThe uploaded file is not a PDF (it does not start %PDF-). It was deleted; upload the PDF again. |
upload_unavailable | Status503 | What it meansNo upload address could be made just now; nothing was saved. Retry in a moment. |
Code lists
The eight statuses
| Status | Waiting on | What it means | Who moves it |
|---|---|---|---|
draft | Waiting onyou | What it meansBeing written. Only this key sees it. | Who moves itYou: submit, change or delete it. |
payerworks_action_required | Waiting onpayerworks | What it meansSubmitted; Payerworks’ turn. reason_code says why. | Who moves itPayerworks staff on the desk, or the sandbox. |
provider_action_required | Waiting onprovider | What it meansOne or more provider tasks are open. | Who moves itYou, completing the tasks in rank order. |
with_payer | Waiting onpayer | What it meansPayerworks sent the request to the payer and follows up. Never set while the route is not open. | Who moves itPayerworks staff, recording the payer’s answer. |
live | Waiting onnobody | What it meansThe payer confirmed. Files of this kind may flow. | Who moves itPayerworks staff, if the payer later ends it. |
rejected | Waiting onyou | What it meansThe payer, or Payerworks before sending, refused it. rejection holds the words and the remedy. | Who moves itNone: fix it and file a new request. |
canceled | Waiting onnobody | What it meansEnded at your request or by Payerworks before it went live. | Who moves itNone. |
ended | Waiting onnobody | What it meansWas live; the payer ended the route. | Who moves itNone: a new request starts again. |
The transactions a request names
| Transaction | X12 | In words |
|---|---|---|
eligibility | X12270/271 | In wordsEligibility and benefits: Payerworks writes the 270 and reads the 271. |
claim_status | X12276/277 | In wordsClaim status: Payerworks writes the 276 and reads the 277. |
professional_claims | X12837P | In wordsProfessional claims: Payerworks writes and checks the 837P. |
remittances | X12835 | In wordsRemittances: Payerworks reads and explains the 835. |
The enrollment sandbox’s provider name endings
| Name ends in | What it does |
|---|---|
| any other word | What it doesSandbox: a provider whose name ends in any other word goes live in one call: submitting moves it to payerworks_action_required (preparing), then with_payer, then live, with an event for each move. Advance has nothing to do. |
WAITS | What it doesSandbox: a provider whose name ends in WAITS waits at payerworks_action_required (route_not_open) and stays there. That is the state every live request is in today, so build that screen first. |
TASKS | What it doesSandbox: a provider whose name ends in TASKS gets two provider tasks on submit: rank 0 asks for a packet number (an identifier), rank 1 is steps done elsewhere, closed with no values. Once both are complete it waits for review; advance moves it to with_payer, then live. |
SIGN | What it doesSandbox: a provider whose name ends in SIGN gets one task with a document field, signed_form, and an invented one-page form as its template. Download the template, upload a signed PDF, complete the task; advance moves it to with_payer, then live. |
BLOCKED | What it doesSandbox: a provider whose name ends in BLOCKED gets a Payerworks task at rank 0 and a provider task at rank 1. Completing rank 1 first answers 409 task_blocked, naming the Payerworks task. Advance completes the Payerworks task; complete yours; advance moves it to with_payer and live. |
REPLACE | What it doesSandbox: a provider whose name ends in REPLACE starts as TASKS. The first advance deletes the open rank 0 task and adds a new one in its place (enrollment.task.deleted with superseded_by, then enrollment.task.assigned). |
REJECT | What it doesSandbox: a provider whose name ends in REJECT goes with_payer on submit; advance rejects it with the payer’s words and the remedy, carried whole. |
ENDS | What it doesSandbox: a provider whose name ends in ENDS goes live on submit; advance ends the live route. |
SLOW | What it doesSandbox: a provider whose name ends in SLOW goes with_payer on submit and stays there until advance moves it to live. |
What enrollment keeps, and for how long
Enrollment is the one part of the API that keeps what you send: the providers and enrollment requests you create (names, NPIs, tax ids, contacts and notes) and the PDFs you upload for a task, because a request lives for weeks and Payerworks people work it. They are for a practice’s business facts; never put a patient’s information in them. A test key’s providers and requests expire 30 days after their last change, and its PDFs 30 days after each was uploaded, or about a day after you delete one; a PDF uploaded but never confirmed goes after a day, whatever the key. A live key’s are kept until you delete them, and the copy of a deleted live PDF for 30 days more. Apart from that, our backups hold every PDF that was there each night, a test key’s included, for 7 days (35 for a night before 12/03/2026), and each Sunday’s for 14 days (180 for a Sunday before 12/06/2026, a year for one before 11/22/2026).
In detail
Enrollment, the way a payer asks for it
Three things stand between a provider and a payer’s files. Credentialing is the payer checking the provider. Payer enrollment is the provider joining the payer’s plans. Both are the provider’s own work with each payer, and Payerworks does neither. Transaction enrollment registers a provider to exchange one kind of file with one payer through one clearinghouse. That is what these routes ask Payerworks for. Payerworks is not yet registered with any payer, so today a request waits with Payerworks and nothing is sent; the sandbox payer runs the whole path so you can build against it now.
- Make a provider once: its name, billing NPI, tax id and contacts. Then one request per provider, payer and transaction.
- Every request says whose turn it is: yours, the provider’s, Payerworks’ or the payer’s. When it is the provider’s, its tasks say what to do, in rank order, each with its instructions, links and fields of text or a PDF. Payerworks’ own tasks are listed too, so a task held up by one of them names it.
- Every request keeps the history of each status change, and every change raises one event, numbered by sequence, so a receiver can order and dedupe them without trusting the order they arrive in.
- A request can be changed until it is sent to a payer, and canceled in any open status. Every POST takes an Idempotency-Key, so a retried create answers the same request.
A request for anything else is refused (transaction_not_built), because Payerworks does not yet enroll for it: institutional_claims, dental_claims, attachments, eft, coordination_of_benefits, insurance_discovery, medicare_number_lookup. 999 and 277CA acknowledgments are never enrolled on their own: they come back on the route the claim went.
| Status | Whose turn |
|---|---|
draft | Whose turnYour turn |
payerworks_action_required | Whose turnPayerworks’ turn |
provider_action_required | Whose turnThe provider’s turn |
with_payer | Whose turnThe payer’s turn |
live | Whose turnNobody’s turn |
rejected | Whose turnYour turn |
canceled | Whose turnNobody’s turn |
ended | Whose turnNobody’s turn |
You never write a status: no write route takes one.
Why a request is Payerworks’ turn
A request at payerworks_action_required carries reason_code, said in these words ({x12} and {payer} are the request’s):
| Reason | In words |
|---|---|
route_not_open | In wordsWaiting on Payerworks. Payerworks is not yet registered to exchange {x12} files with {payer}, so nothing has been sent to the payer. Your request waits here, and you can change or cancel it until it is sent. |
preparing | In wordsWaiting on Payerworks. Payerworks is preparing what the payer asks for. |
reviewing | In wordsWaiting on Payerworks. Payerworks is checking the answers the provider gave. |
Today Payerworks has no payer route open yet, so no live request is with a payer or live. A live request you submit goes to payerworks_action_required with reason_code route_not_open, and the answer to the create or the submit says so in a warning. From there Payerworks staff may ask the provider for a task, or reject or cancel it, but nobody can mark it with the payer or live until the route opens.
What each payer asks
- GET /v1/enrollment-requirements/{payer_id} answers for every payer id: per transaction, whether Payerworks’ route is open, who files, the fields needed and each step the payer publishes, with its source and the day Payerworks read it.
- Payerworks holds published steps for the four Medicare DME MACs and CMS’s HETS. Every other payer answers published: false, which means Payerworks holds no facts for it, never that nothing is required.
- Payerworks states no timeframe of its own. Where a payer publishes one, it is quoted with its source.
The sandbox payer, end to end
With a test key, enroll a provider with the sandbox payer, PWSANDBOX. The last word of the provider’s name picks what happens (make one provider per scenario), and POST /v1/sandbox/enrollments/{id}/advance makes the sandbox payer’s next move. A scenario takes the same path every time, and a call retried with the same Idempotency-Key answers the same ids. The sandbox payer’s task instructions and the words of its rejection start with “Sandbox:”, and so do a request’s status_words once it is with the sandbox payer, live, rejected or ended. A cancel asked while a request is with the sandbox payer or live is what the next advance does: canceled, or ended.
import { Payerworks } from "./payerworks.mjs";
const pw = new Payerworks({ apiKey: process.env.PAYERWORKS_API_KEY, baseUrl: process.env.PAYERWORKS_BASE_URL });
// A test key enrolls with the sandbox payer; the last word of the name picks the scenario.
const provider = await pw.postProviders({ name: "Sample Family Clinic TASKS", npi: "1234567893", tax_id: "12-3456789", tax_id_type: "ein" });
let enr = await pw.postEnrollments({
provider_id: provider.id, payer: { id: "PWSANDBOX" }, transaction: "remittances", submit: true,
notify_email: "dev@sampleclinic.example",
primary_contact: { organization_name: "Sample Family Clinic LLC", email: "enrollment@sampleclinic.example", phone: "8015550100",
address: { line1: "100 Main St", city: "Salt Lake City", state: "UT", zip: "84101" } },
});
console.log(enr.status, enr.waiting_on, enr.status_words);
for (const t of enr.tasks.filter((t) => t.responsible === "provider" && !t.complete)) {
const values = t.fields.map((f) => ({ key: f.key, text: "PKT-0001" }));
({ enrollment: enr } = await pw.postTasksById(t.id, { values, complete: true }));
}
// A PDF for a document task: the upload and the confirm in one helper.
// await pw.uploadDocument(enr.id, task.id, "signed_form", "signed-form.pdf", pdfBytes);
const { moved } = await pw.postSandboxEnrollmentsByIdAdvance(enr.id);
console.log(moved);# What a payer asks, with the source of every step.
curl "$PAYERWORKS_BASE_URL/v1/enrollment-requirements/19003?transaction=remittances" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"
# The requests that are your turn.
curl "$PAYERWORKS_BASE_URL/v1/enrollments?waiting_on=provider" \
-H "Authorization: Bearer $PAYERWORKS_API_KEY"from payerworks import Payerworks
pw = Payerworks()
page = pw.get_enrollments(query={"waiting_on": "provider"})
for e in page["data"]:
print(e["id"], e["payer"]["id"], e["transaction"], e["status_words"])Enrollment events
Each change raises one event, posted to your webhook and listed by GET /v1/events. An event carries ids, statuses and words only, never a tax id, a contact, a note or a document: GET /v1/enrollments/{id} for the rest. Payerworks also emails your key’s notice address (PUT /v1/account/contact) when a request moves without your doing it, to provider_action_required, with_payer, live, rejected, canceled or ended: every such move inside the same 15 minutes goes in one email, which names each request’s id, the provider’s name and NPI, the payer, the transaction and the status, and never a tax id, a contact, a note or a document. With no notice address set, nothing is emailed.
| Event | When it is sent |
|---|---|
enrollment.updated | When it is sentAn enrollment request changed: a status change no type below names, or its fields, tasks, documents or notes. It carries the status, the previous status, whose turn it is, the reason, the fields that changed and the sequence. |
enrollment.live | When it is sentThe payer confirmed the request: files of this kind may flow. It adds when, and the payer’s reference. |
enrollment.rejected | When it is sentThe request was refused. It adds the rejection: the payer’s words whole, and the remedy. |
enrollment.canceled | When it is sentThe request was canceled, or you asked to cancel one that is with the payer or live (cancel_requested says which). |
enrollment.ended | When it is sentA live route ended: the payer ended it, or a cancel you asked for while it was live went through (in the sandbox, at the next advance). |
enrollment.task.assigned | When it is sentA task was added: its id, rank, who holds it, its title and its fields. |
enrollment.task.completed | When it is sentA task was finished, by the provider, or by Payerworks for its own. |
enrollment.task.deleted | When it is sentA task was replaced by another (superseded_by names it). |
What is refused, and why
- A Social Security number, as a tax id or anywhere: a provider enrolls with its EIN, which the IRS issues (ssn_not_accepted). A tax id whose first two digits are not a prefix the IRS assigns to an EIN is refused too (not_an_ein); that catches typos and some Social Security numbers, never all of them, so never send one.
- A bank account, routing or account number: no task asks for one, and free text holding a run of eight or more digits is refused (holds_long_number).
- A phone that is all one digit or not a US number, and on a live key an email at a reserved or example domain: the payer’s mail and calls would go nowhere.
- A real payer with a test key (test_key_sandbox_payer_only), and the sandbox payer with a live key (sandbox_payer_test_only).
- Eligibility at a DME MAC: traditional Medicare eligibility is asked of CMS’s HETS (ask_another_payer, naming the payer that answers it).
- A second open request for the same provider, payer and transaction (409 enrollment_exists, naming the one that stands).
- An upload that is not a PDF, or is over 10 MB.
Every field problem
A refusal that lists problems (invalid_provider, invalid_enrollment, invalid_task_values) names each one’s code and field. The codes:
| Code | What it means |
|---|---|
unknown_field | What it meansA field this request does not take; nothing is dropped silently. |
required | What it meansA required field is missing. |
invalid_type | What it meansA field is not of the type it takes. |
too_short | What it meansText shorter than the field takes. |
too_long | What it meansText longer than the field takes. |
invalid_npi | What it meansAn NPI is 10 digits with a valid check digit. |
invalid_tax_id | What it meansA tax id is 9 digits, with or without one hyphen after the second digit. |
invalid_tax_id_type | What it meanstax_id_type is "ein". |
ssn_not_accepted | What it meansA Social Security number is never accepted: a provider enrolls with an EIN, which the IRS issues. |
not_an_ein | What it meansThe first two digits are not a prefix the IRS assigns to an EIN. |
invalid_email | What it meansAn email address in the form name@domain. |
reserved_email_domain | What it meansOn a live key, an email at a reserved or example domain, which can never receive mail. |
invalid_phone | What it meansA phone is 10 digits, area code first; the area code and the exchange do not start with 0 or 1. |
phone_not_real | What it meansA phone that is all one digit is not a number anyone answers. |
invalid_phone_extension | What it meansAn extension is 1 to 6 digits. |
contact_name_form | What it meansA contact gives organization_name, or first_name and last_name, not both. |
invalid_state | What it meansA two-letter US state, DC or territory code. |
invalid_zip | What it meansA ZIP is 5 digits, or 9 with one hyphen allowed. |
too_many_contacts | What it meansAt most 5 contacts. |
holds_long_number | What it meansFree text may not hold a run of 8 or more digits: nothing that could be a bank or account number is kept. |
invalid_payer_id | What it meansA payer id is 1 to 80 letters and digits. |
test_key_sandbox_payer_only | What it meansA test key enrolls with the sandbox payer, PWSANDBOX, only. |
sandbox_payer_test_only | What it meansThe sandbox payer answers test keys only. |
invalid_transaction | What it meanstransaction is eligibility, claim_status, professional_claims or remittances. |
transaction_not_built | What it meansPayerworks does not yet enroll for this kind of file. |
ask_another_payer | What it meansThis payer does not answer this transaction; the problem names the payer that does. |
ptan_required | What it meansThis payer’s published steps need the provider’s PTAN. |
invalid_ptan | What it meansA PTAN is 4 to 10 letters and digits; for a DME MAC, exactly 10 digits. |
invalid_date | What it meansA day written YYYY-MM-DD. |
effective_date_out_of_range | What it meansThe requested effective date is from today to 180 days ahead. |
effective_date_past_45_days | What it meansA DME MAC remittance request asks an effective date at most 45 days after it is submitted (CEDI’s rule). |
invalid_era_aggregation | What it meansera_aggregation is "tin" or "npi". |
era_aggregation_remittances_only | What it meansera_aggregation applies to a remittances request only. |
field_locked | What it meansThis field changes only while the request is a draft. |
unknown_field_key | What it meansThe task has no field with this key. |
value_type_mismatch | What it meansA text field takes text; a document field takes a document_id. |
text_too_long | What it meansA task’s text value is at most 2,000 characters. |
missing_required_value | What it meansCompleting a task needs a value for every required field. |
document_not_uploaded | What it meansThe document has not been uploaded and confirmed. |
document_not_on_task | What it meansThe document was uploaded for another task or field. |
invalid_filename | What it meansA filename ends .pdf and is 1 to 120 characters of letters, digits, spaces, dots, dashes and underscores. |
invalid_field_key | What it meansA field key is lower snake case, 1 to 40 characters. |
field_key_refused | What it meansA task field may never ask for a bank, routing or account number, or a Social Security number. |
invalid_link | What it meansA link is https, to a public host. |
invalid_value | What it meansA value this field does not take. |
Many requests from one file
POST /v1/enrollments/import/check reads a CSV of up to 100 rows, one request a row, and checks each exactly as POST /v1/providers and POST /v1/enrollments check their bodies, saving nothing; POST /v1/enrollments/import then makes each valid row. The header is the template below, and a column the import does not take is refused by name, never dropped.
provider_name,npi,tax_id,tax_id_type,payer_id,payer_name,transaction,contact_organization_name,contact_first_name,contact_last_name,contact_email,contact_phone,contact_phone_extension,contact_address_line1,contact_address_line2,contact_city,contact_state,contact_zip,notify_email,requested_effective_date,era_aggregation,ptan,note,submit- A provider your key already has with that NPI and tax id is used as it is, never changed, and the row says so. A request that already stands, or an earlier row of the file asking the same, is a duplicate that names it.
- The import stops starting rows when its time in one call runs out, and names the first row not run: send that row and the rows after it again. An Idempotency-Key retry of the same file answers the same requests, never duplicates of them.
- With a live key, each NPI is looked up in the NPI registry, which answers one of three ways: it holds an active record (with Type 1 or 2 and whether the row’s provider name matches, each row on its own), it holds none, or it could not be asked just now. Each is a warning, never a refusal, and nothing it says is kept.
- GET /v1/enrollments/export answers every request matching the list’s filters as CSV, up to 5,000 rows, with no contact, note or full tax id; a cell a spreadsheet would run as a formula starts with an apostrophe.
- GET /v1/enrollments/durations says how long your own requests spent waiting on Payerworks, on the provider and with the payer, by payer and transaction. A figure is given once five stays have finished, the median and the middle half, each with how many it rests on; fewer says not enough history. Payerworks has no figures from anyone else.
The import template’s columns
| Column | What it holds | Required |
|---|---|---|
provider_name | What it holdsThe provider's name, 2 to 100 characters. | RequiredRequired |
npi | What it holdsThe billing NPI, 10 digits with a valid check digit. Write it as text so a spreadsheet keeps every digit. | RequiredRequired |
tax_id | What it holdsThe provider's EIN, 9 digits, with or without the hyphen after the second. | RequiredRequired |
tax_id_type | What it holdsein (the only kind taken). Left blank: ein. | |
payer_id | What it holdsThe payer ID, as text: leading zeros are part of it. | RequiredRequired |
payer_name | What it holdsThe payer's name, up to 80 characters. | |
transaction | What it holdseligibility, claim_status, professional_claims or remittances: one a row. | RequiredRequired |
contact_organization_name | What it holdsThe primary contact's organization; or give contact_first_name and contact_last_name. | |
contact_first_name | What it holdsThe primary contact's first name. | |
contact_last_name | What it holdsThe primary contact's last name. | |
contact_email | What it holdsThe primary contact's email. | RequiredRequired |
contact_phone | What it holdsThe primary contact's phone, 10 digits. | RequiredRequired |
contact_phone_extension | What it holds1 to 6 digits. | |
contact_address_line1 | What it holdsThe contact's street address. | RequiredRequired |
contact_address_line2 | What it holdsA suite or unit. | |
contact_city | What it holdsThe city. | RequiredRequired |
contact_state | What it holdsA two-letter state, DC or territory code. | RequiredRequired |
contact_zip | What it holds5 digits, or 9 with one hyphen allowed. | RequiredRequired |
notify_email | What it holdsWhere Payerworks writes about this request. | RequiredRequired |
requested_effective_date | What it holdsYYYY-MM-DD, from today to 180 days ahead. | |
era_aggregation | What it holdstin or npi, remittances only. | |
ptan | What it holds4 to 10 letters and digits; for a DME MAC exactly 10 digits, and required. | |
note | What it holdsUp to 500 characters for Payerworks staff. Never a patient's information. | |
submit | What it holdstrue submits the request at once; false or blank makes a draft. |
How each row ends
| Result | What it means |
|---|---|
ready | What it meansChecked: it would be made as it is (the check route only). |
created | What it meansMade: its request (and its provider, when the key had none with that NPI and tax id). |
invalid | What it meansNot made: one or more cells would be refused. Each problem names its column. |
duplicate | What it meansNot made: an open request for this provider, payer and transaction already stands on the key, or an earlier row of this file asks for the same one. |
refused | What it meansNot made: the store refused it (a limit reached, a lost race, a store failure). The error says which; send the row again. |
not_run | What it meansNot started: the import ran out of time first. Send this row and the rows after it again. |
Every problem a file can have
A file with any of these is refused whole, 422 invalid_import, before any row is checked:
| Problem | What it means |
|---|---|
csv_required | What it meansThe body is { csv: "..." }: the file's text, its first line the header. |
csv_too_long | What it meansA CSV is at most 500,000 characters. |
unterminated_quote | What it meansA quoted cell is not closed before the file ends. |
stray_quote | What it meansA quote appears inside a cell that is not quoted; quote the whole cell and write a quote inside it twice. |
no_rows | What it meansThe file has a header and no rows. |
too_many_rows | What it meansA file holds at most 100 rows after the header; split it. |
unknown_column | What it meansA header names a column the import does not take; nothing is dropped silently. |
duplicate_column | What it meansTwo header cells name the same column. |
missing_column | What it meansA column every import needs is not in the header. |
wrong_cell_count | What it meansA row has more cells than the header. |
cell_too_long | What it meansA cell is at most 600 characters. |
unknown_body_field | What it meansThe body takes csv only. |
What Payerworks will never do
- Sign for a provider. The provider signs its own agreements with each payer; no field here asks Payerworks to.
- Ask for a Social Security number, a bank account or a routing number.
- Say a request is with a payer, or live, before it is.
Providers and requests belong to the key that made them, like its webhook and its events. A new key starts with none, so keep the key that holds them; a rotated key keeps them, because rotation keeps the key id.
Example
enrollment.mjs runs every step below against the API with a test key. It needs payerworks.mjs and sample-data.mjs beside it.
// Payerworks example: transaction enrollment with the sandbox payer. Docs: https://payerworks.com/docs/enrollment
//
// Run it with Node 18 or later, with the JavaScript client (https://payerworks.com/sdk/payerworks.mjs)
// and sample-data.mjs beside this file:
// PAYERWORKS_API_KEY=pw_test_... PAYERWORKS_BASE_URL=<the base URL shown with your key> node enrollment.mjs
// A test key and invented data only. Payerworks sends nothing to a payer: every file it writes is yours.
import { pathToFileURL } from 'node:url';
import { Payerworks, PayerworksError } from './payerworks.mjs';
import { PROVIDER, ENROLLMENT_CONTACT, copy, refusalOf } from './sample-data.mjs';
/** @param {Payerworks} pw */
export async function run(pw) {
// 1. The provider, once. Enrollment keeps what you send (a practice's business facts, never a patient's).
// The sandbox payer reads the last word of the provider's name: SLOW waits with the payer until you advance it.
const provider = await pw.postProviders({ ...copy(PROVIDER), name: `${PROVIDER.name} SLOW` });
// 2. Ask the sandbox payer PWSANDBOX for its remittances, and hand the request to Payerworks at once.
const requested = await pw.postEnrollments({
provider_id: provider.id, payer: { id: 'PWSANDBOX' }, transaction: 'remittances',
primary_contact: copy(ENROLLMENT_CONTACT), notify_email: 'dev@sampleclinic.example', submit: true,
});
// 3. The sandbox payer's next move: with the payer, then live. Each move is an event too.
const advanced = await pw.postSandboxEnrollmentsByIdAdvance(requested.id);
// 4. The failure path: a live request has nothing left for the sandbox payer to do.
const refused = await refusalOf(() => pw.postSandboxEnrollmentsByIdAdvance(requested.id), { PayerworksError });
return { submitted: requested.status, moved: advanced.moved, now: advanced.enrollment.status, events: advanced.events.map((e) => e.type), refused };
}
// Run as a script: node <this file>, with PAYERWORKS_API_KEY and PAYERWORKS_BASE_URL set.
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
console.log(JSON.stringify(await run(new Payerworks()), null, 2));
}
{
"submitted": "with_payer",
"moved": {
"from": "with_payer",
"to": "live"
},
"now": "live",
"events": [
"enrollment.live"
],
"refused": {
"status": 409,
"code": "sandbox_nothing_to_advance",
"request_id": "req_4"
}
}A free test key lets you try the API’s calls with invented data only. Payerworks sends nothing to any payer yet.
Get a test key