Skip to content

Docs: by job

Transaction enrollment

Ask a payer to send a provider’s files through Payerworks, and follow the request to the end. The one part of the API that keeps what you send.

Read as markdown

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

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.json
request.jsonJSON
{
  "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"
    }
  ]
}
The answer (201)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "provider"
idTypestringWhat it isprv_ and 24 hexadecimal characters.
modeTypeone of "test", "live"
nameTypestring
npiTypestring
tax_idTypestring
tax_id_typeTypeone of "ein"
contactsTypelist of Contact
identifiers_lockedTypebooleanWhat it isTrue once a request for this provider has gone to a payer: the NPI and tax id no longer change.
created_atTypestring
updated_atTypestring
npi_registryTypeobjectWhat 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.
warningsTypelist of FieldProblemWhat 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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "list"
dataTypelist of ProviderWhat it isNewest first.
has_moreTypeboolean
next_cursorTypestring or nullWhat 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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "provider"
idTypestringWhat it isprv_ and 24 hexadecimal characters.
modeTypeone of "test", "live"
nameTypestring
npiTypestring
tax_idTypestring
tax_id_typeTypeone of "ein"
contactsTypelist of Contact
identifiers_lockedTypebooleanWhat it isTrue once a request for this provider has gone to a payer: the NPI and tax id no longer change.
created_atTypestring
updated_atTypestring
npi_registryTypeobjectWhat 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.
warningsTypelist of FieldProblemWhat 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.json
request.jsonJSON
{
  "name": "Sample Family Clinic TASKS"
}
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "provider"
idTypestringWhat it isprv_ and 24 hexadecimal characters.
modeTypeone of "test", "live"
nameTypestring
npiTypestring
tax_idTypestring
tax_id_typeTypeone of "ein"
contactsTypelist of Contact
identifiers_lockedTypebooleanWhat it isTrue once a request for this provider has gone to a payer: the NPI and tax id no longer change.
created_atTypestring
updated_atTypestring
npi_registryTypeobjectWhat 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.
warningsTypelist of FieldProblemWhat 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"
The answer (200)JSON
{
  "deleted": true,
  "id": "prv_01a154ad358043763d71b95c"
}
Field, Type, What it is
FieldTypeWhat it is
deletedTypethe value true
idTypestring

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.json
request.jsonJSON
{
  "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
}
The answer (201)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment"
idTypestringWhat it isenr_ and 24 hexadecimal characters.
modeTypeone of "test", "live"
providerTypeobject
payerTypeobject
transactionTypeone of "eligibility", "claim_status", "professional_claims", "remittances"
x12Typestring
statusTypeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended"
status_wordsTypestring
waiting_onTypestring or nullWhat it isWhose turn it is; null when nobody’s.
reason_codeTypestring or nullWhat it isWhy it is Payerworks’ turn, at payerworks_action_required.
routeTypeobject
notify_emailTypestring or null
requested_effective_dateTypestring or null
era_aggregationTypestring or null
ptanTypestring or null
noteTypestring
tasksTypelist of TaskWhat it isIn rank order.
documentsTypelist of Document
rejectionTypeRejection or null
payer_referenceTypestring or nullWhat it isWhat the payer’s confirmation said.
created_atTypestring
updated_atTypestring
submitted_atTypestring or null
status_changed_atTypestring or null
sent_to_payer_atTypestring or null
live_atTypestring or null
ended_atTypestring or null
cancel_requested_atTypestring or null
requirements_urlTypestringWhat it isThe payer’s published steps for this transaction.
open_tasksTypeintegerWhat it isList items only: tasks not yet finished.
primary_contactTypeContact or null
notesTypelist of objectWhat it isFrom Payerworks.
historyTypelist of objectWhat it isEvery status change, oldest first.
history_truncatedTypeboolean
warningsTypelist of objectWhat 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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "list"
dataTypelist of EnrollmentSummaryWhat it isNewest first.
has_moreTypebooleanWhat it isA page may hold fewer than limit: keep paging while has_more is true.
next_cursorTypestring 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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment"
idTypestringWhat it isenr_ and 24 hexadecimal characters.
modeTypeone of "test", "live"
providerTypeobject
payerTypeobject
transactionTypeone of "eligibility", "claim_status", "professional_claims", "remittances"
x12Typestring
statusTypeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended"
status_wordsTypestring
waiting_onTypestring or nullWhat it isWhose turn it is; null when nobody’s.
reason_codeTypestring or nullWhat it isWhy it is Payerworks’ turn, at payerworks_action_required.
routeTypeobject
notify_emailTypestring or null
requested_effective_dateTypestring or null
era_aggregationTypestring or null
ptanTypestring or null
noteTypestring
tasksTypelist of TaskWhat it isIn rank order.
documentsTypelist of Document
rejectionTypeRejection or null
payer_referenceTypestring or nullWhat it isWhat the payer’s confirmation said.
created_atTypestring
updated_atTypestring
submitted_atTypestring or null
status_changed_atTypestring or null
sent_to_payer_atTypestring or null
live_atTypestring or null
ended_atTypestring or null
cancel_requested_atTypestring or null
requirements_urlTypestringWhat it isThe payer’s published steps for this transaction.
open_tasksTypeintegerWhat it isList items only: tasks not yet finished.
primary_contactTypeContact or null
notesTypelist of objectWhat it isFrom Payerworks.
historyTypelist of objectWhat it isEvery status change, oldest first.
history_truncatedTypeboolean
warningsTypelist of objectWhat 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.json
request.jsonJSON
{
  "note": "Our remittances go to the billing office."
}
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment"
idTypestringWhat it isenr_ and 24 hexadecimal characters.
modeTypeone of "test", "live"
providerTypeobject
payerTypeobject
transactionTypeone of "eligibility", "claim_status", "professional_claims", "remittances"
x12Typestring
statusTypeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended"
status_wordsTypestring
waiting_onTypestring or nullWhat it isWhose turn it is; null when nobody’s.
reason_codeTypestring or nullWhat it isWhy it is Payerworks’ turn, at payerworks_action_required.
routeTypeobject
notify_emailTypestring or null
requested_effective_dateTypestring or null
era_aggregationTypestring or null
ptanTypestring or null
noteTypestring
tasksTypelist of TaskWhat it isIn rank order.
documentsTypelist of Document
rejectionTypeRejection or null
payer_referenceTypestring or nullWhat it isWhat the payer’s confirmation said.
created_atTypestring
updated_atTypestring
submitted_atTypestring or null
status_changed_atTypestring or null
sent_to_payer_atTypestring or null
live_atTypestring or null
ended_atTypestring or null
cancel_requested_atTypestring or null
requirements_urlTypestringWhat it isThe payer’s published steps for this transaction.
open_tasksTypeintegerWhat it isList items only: tasks not yet finished.
primary_contactTypeContact or null
notesTypelist of objectWhat it isFrom Payerworks.
historyTypelist of objectWhat it isEvery status change, oldest first.
history_truncatedTypeboolean
warningsTypelist of objectWhat 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"
The answer (200)JSON
{
  "deleted": true,
  "id": "enr_01a154ad35808fafb0295307"
}
Field, Type, What it is
FieldTypeWhat it is
deletedTypethe value true
idTypestring

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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment"
idTypestringWhat it isenr_ and 24 hexadecimal characters.
modeTypeone of "test", "live"
providerTypeobject
payerTypeobject
transactionTypeone of "eligibility", "claim_status", "professional_claims", "remittances"
x12Typestring
statusTypeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended"
status_wordsTypestring
waiting_onTypestring or nullWhat it isWhose turn it is; null when nobody’s.
reason_codeTypestring or nullWhat it isWhy it is Payerworks’ turn, at payerworks_action_required.
routeTypeobject
notify_emailTypestring or null
requested_effective_dateTypestring or null
era_aggregationTypestring or null
ptanTypestring or null
noteTypestring
tasksTypelist of TaskWhat it isIn rank order.
documentsTypelist of Document
rejectionTypeRejection or null
payer_referenceTypestring or nullWhat it isWhat the payer’s confirmation said.
created_atTypestring
updated_atTypestring
submitted_atTypestring or null
status_changed_atTypestring or null
sent_to_payer_atTypestring or null
live_atTypestring or null
ended_atTypestring or null
cancel_requested_atTypestring or null
requirements_urlTypestringWhat it isThe payer’s published steps for this transaction.
open_tasksTypeintegerWhat it isList items only: tasks not yet finished.
primary_contactTypeContact or null
notesTypelist of objectWhat it isFrom Payerworks.
historyTypelist of objectWhat it isEvery status change, oldest first.
history_truncatedTypeboolean
warningsTypelist of objectWhat 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.json
request.jsonJSON
{
  "reason": "Filed by mistake."
}
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment"
idTypestringWhat it isenr_ and 24 hexadecimal characters.
modeTypeone of "test", "live"
providerTypeobject
payerTypeobject
transactionTypeone of "eligibility", "claim_status", "professional_claims", "remittances"
x12Typestring
statusTypeone of "draft", "payerworks_action_required", "provider_action_required", "with_payer", "live", "rejected", "canceled", "ended"
status_wordsTypestring
waiting_onTypestring or nullWhat it isWhose turn it is; null when nobody’s.
reason_codeTypestring or nullWhat it isWhy it is Payerworks’ turn, at payerworks_action_required.
routeTypeobject
notify_emailTypestring or null
requested_effective_dateTypestring or null
era_aggregationTypestring or null
ptanTypestring or null
noteTypestring
tasksTypelist of TaskWhat it isIn rank order.
documentsTypelist of Document
rejectionTypeRejection or null
payer_referenceTypestring or nullWhat it isWhat the payer’s confirmation said.
created_atTypestring
updated_atTypestring
submitted_atTypestring or null
status_changed_atTypestring or null
sent_to_payer_atTypestring or null
live_atTypestring or null
ended_atTypestring or null
cancel_requested_atTypestring or null
requirements_urlTypestringWhat it isThe payer’s published steps for this transaction.
open_tasksTypeintegerWhat it isList items only: tasks not yet finished.
primary_contactTypeContact or null
notesTypelist of objectWhat it isFrom Payerworks.
historyTypelist of objectWhat it isEvery status change, oldest first.
history_truncatedTypeboolean
warningsTypelist of objectWhat 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.json
request.jsonJSON
{
  "values": [
    {
      "key": "packet_id",
      "text": "PKT-0001"
    }
  ],
  "complete": true
}
The answer (200)JSON
{
  "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
FieldTypeWhat it is
taskTypeTask
enrollmentTypeEnrollmentWhat 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.json
request.jsonJSON
{
  "task_id": "tsk_01a154ad358059512fd26707_01",
  "field_key": "signed_form",
  "filename": "signed-form.pdf"
}
The answer (201)JSON
{
  "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
FieldTypeWhat it is
documentTypeDocument
uploadTypeobjectWhat 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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
idTypestringWhat it isdoc_, the enrollment’s 24 hexadecimal characters, an underscore and 8 more.
task_idTypestring or null
field_keyTypestring or null
filenameTypestring
statusTypeone of "pending", "uploaded", "failed"
failureTypestringWhat it isWhy it failed: not_a_pdf, too_large or upload_expired.
sizeTypeinteger or nullWhat it isBytes.
content_typeTypethe value "application/pdf"
sourceTypeone of "you", "payerworks"What it isWho added it.
created_atTypestring
uploaded_atTypestring 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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
documentTypeDocument
downloadTypeobjectWhat 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"
The answer (200)JSON
{
  "deleted": true,
  "id": "doc_01a154ad358059512fd26707_e8039f84"
}
Field, Type, What it is
FieldTypeWhat it is
deletedTypethe value true
idTypestring

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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "list"
checked_onTypestring
scopeTypestring
dataTypelist 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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment_requirements"
payerTypeobject
publishedTypebooleanWhat it isfalse: Payerworks holds no published steps for this payer, which never means nothing is required.
checked_onTypestring
transactionsTypelist of RequirementTransaction
wordsTypestring

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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
enrollmentTypeEnrollmentWhat it isAn enrollment request: never the tax id, only its last four.
movedTypeobject or null
eventsTypelist 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.json
request.jsonJSON
{
  "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,,,,,"
}
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment_import_check"
savedTypethe value falseWhat it isNothing was saved.
rowsTypeinteger
resultsTypeobjectWhat it isHow many rows ended each way.
dataTypelist 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.json
request.jsonJSON
{
  "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,,,,,"
}
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment_import"
savedTypeboolean
rowsTypeinteger
resultsTypeobjectWhat it isHow many rows ended each way.
dataTypelist of ImportRow
not_run_from_rowTypeintegerWhat 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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment_export"
content_typeTypethe value "text/csv"
filenameTypestring
row_countTypeinteger
columnsTypelist 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"
csvTypestringWhat 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"
The answer (200)JSON
{
  "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
FieldTypeWhat it is
objectTypethe value "enrollment_durations"
basisTypestring
floorTypethe value 5
as_ofTypestring
statusesTypelist of string
dataTypelist of object

Reading the answer

  • A request’s status is one of eight, with waiting_on saying whose turn it is and reason_code why. The statuses and what moves each are listed below.
  • Every change is an event (enrollment.updated and the rest) with a sequence that 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
CodeStatusWhat it means
export_takes_no_pagingStatus400What it meansAn export holds every request that matches its filters, so it takes no limit or starting_after.
invalid_date_filterStatus400What it meansA date filter is a day, YYYY-MM-DD, or an instant, YYYY-MM-DDTHH:MM:SSZ.
invalid_document_idStatus400What it meansA document id is doc_, the enrollment’s 24 hexadecimal characters, an underscore and 8 more.
invalid_enrollment_idStatus400What it meansAn enrollment id is enr_ followed by 24 lowercase hexadecimal characters.
invalid_npi_filterStatus400What it meansnpi is the provider’s 10-digit NPI, with a valid check digit.
invalid_payer_filterStatus400What it meanspayer_id is 1 to 80 letters and digits.
invalid_payer_idStatus400What it meansA payer id is 1 to 80 letters and digits.
invalid_provider_filterStatus400What it meansprovider_id is prv_ followed by 24 lowercase hexadecimal characters.
invalid_provider_idStatus400What it meansA provider id is prv_ followed by 24 lowercase hexadecimal characters.
invalid_starting_afterStatus400What it meansstarting_after is the next_cursor of an earlier page, or the id of an item on an earlier page.
invalid_status_filterStatus400What it meansstatus is one or more of the eight enrollment statuses, separated by commas.
invalid_task_idStatus400What it meansA task id is tsk_, the enrollment’s 24 hexadecimal characters, an underscore and two digits.
invalid_tax_id_filterStatus400What it meanstax_id is the provider’s 9-digit EIN, with or without the hyphen after the second digit.
invalid_transaction_filterStatus400What it meanstransaction is eligibility, claim_status, professional_claims or remittances.
invalid_waiting_on_filterStatus400What it meanswaiting_on is you, provider, payerworks or payer.
q_too_longStatus400What it meansq is at most 100 characters.
document_not_foundStatus404What it meansThis key has no document with that id.
enrollment_not_foundStatus404What it meansThis key has no enrollment request with that id.
provider_not_foundStatus404What it meansThis key has no provider with that id.
task_not_foundStatus404What it meansThis key has no task with that id.
changed_meanwhileStatus409What it meansThis request changed while yours ran, so nothing was saved. Send it again.
document_in_useStatus409What it meansA completed task names this document. Reopen the task first (complete: false), then delete it.
document_limit_reachedStatus409What it meansAn enrollment request holds at most 20 documents. Delete one you no longer need.
document_not_uploadedStatus409What it meansThis document has not been uploaded and confirmed, so there is nothing to download.
enrollment_endedStatus409What it meansThis request is canceled, rejected or ended; nothing more can change. File a new request.
enrollment_existsStatus409What it meansThis provider already has an open request for this payer and transaction; the error names it and its status.
enrollment_limit_reachedStatus409What 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_deletableStatus409What it meansOnly a draft, canceled or rejected request can be deleted. Cancel it first.
enrollment_not_draftStatus409What it meansOnly a draft is submitted; this request already was.
enrollment_sentStatus409What it meansThis request has gone to the payer, so its fields can no longer change. Cancel it and file a new one.
provider_existsStatus409What it meansThis key already has a provider with this NPI and tax id; the error names it.
provider_has_enrollmentsStatus409What it meansThis provider has requests that are open or live; cancel them first. The error names them.
provider_in_useStatus409What 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_reachedStatus409What it meansA key holds at most 500 providers (a test key 50). Delete one you no longer use.
sandbox_nothing_to_advanceStatus409What 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_blockedStatus409What 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_payerworksStatus409What 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_openStatus409What it meansThis request is not waiting on the provider, so its tasks cannot change now.
upload_missingStatus409What it meansNothing has arrived at the upload address yet. Upload the PDF, then confirm again.
export_too_largeStatus413What 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_largeStatus422What it meansA document is at most 10 MB. It was deleted; upload a smaller PDF.
field_not_a_documentStatus422What it meansThat field of the task does not take a document.
invalid_cancelStatus422What it meansreason is text of at most 200 characters, with no run of eight or more digits.
invalid_document_requestStatus422What it meansSend task_id, field_key and filename (ending .pdf, at most 120 characters); each problem is listed with its field.
invalid_enrollmentStatus422What it meansOne or more enrollment fields would be refused; nothing was saved. Each problem is listed with its field.
invalid_importStatus422What 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_providerStatus422What it meansOne or more provider fields would be refused; nothing was saved. Each problem is listed with its field.
invalid_task_valuesStatus422What it meansOne or more task values would be refused; nothing was saved. Each problem is listed with its field.
not_a_pdfStatus422What it meansThe uploaded file is not a PDF (it does not start %PDF-). It was deleted; upload the PDF again.
upload_unavailableStatus503What 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
StatusWaiting onWhat it meansWho moves it
draftWaiting onyouWhat it meansBeing written. Only this key sees it.Who moves itYou: submit, change or delete it.
payerworks_action_requiredWaiting onpayerworksWhat it meansSubmitted; Payerworks’ turn. reason_code says why.Who moves itPayerworks staff on the desk, or the sandbox.
provider_action_requiredWaiting onproviderWhat it meansOne or more provider tasks are open.Who moves itYou, completing the tasks in rank order.
with_payerWaiting onpayerWhat 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.
liveWaiting onnobodyWhat it meansThe payer confirmed. Files of this kind may flow.Who moves itPayerworks staff, if the payer later ends it.
rejectedWaiting onyouWhat 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.
canceledWaiting onnobodyWhat it meansEnded at your request or by Payerworks before it went live.Who moves itNone.
endedWaiting onnobodyWhat 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
TransactionX12In words
eligibilityX12270/271In wordsEligibility and benefits: Payerworks writes the 270 and reads the 271.
claim_statusX12276/277In wordsClaim status: Payerworks writes the 276 and reads the 277.
professional_claimsX12837PIn wordsProfessional claims: Payerworks writes and checks the 837P.
remittancesX12835In wordsRemittances: Payerworks reads and explains the 835.

The enrollment sandbox’s provider name endings

Name ends in, What it does
Name ends inWhat it does
any other wordWhat 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.
WAITSWhat 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.
TASKSWhat 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.
SIGNWhat 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.
BLOCKEDWhat 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.
REPLACEWhat 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).
REJECTWhat 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.
ENDSWhat it doesSandbox: a provider whose name ends in ENDS goes live on submit; advance ends the live route.
SLOWWhat 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
StatusWhose turn
draftWhose turnYour turn
payerworks_action_requiredWhose turnPayerworks’ turn
provider_action_requiredWhose turnThe provider’s turn
with_payerWhose turnThe payer’s turn
liveWhose turnNobody’s turn
rejectedWhose turnYour turn
canceledWhose turnNobody’s turn
endedWhose 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
ReasonIn words
route_not_openIn 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.
preparingIn wordsWaiting on Payerworks. Payerworks is preparing what the payer asks for.
reviewingIn 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.

Node.jsJavaScript
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);
curlcurl
# 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"
PythonPython
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
EventWhen it is sent
enrollment.updatedWhen 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.liveWhen it is sentThe payer confirmed the request: files of this kind may flow. It adds when, and the payer’s reference.
enrollment.rejectedWhen it is sentThe request was refused. It adds the rejection: the payer’s words whole, and the remedy.
enrollment.canceledWhen it is sentThe request was canceled, or you asked to cancel one that is with the payer or live (cancel_requested says which).
enrollment.endedWhen 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.assignedWhen it is sentA task was added: its id, rank, who holds it, its title and its fields.
enrollment.task.completedWhen it is sentA task was finished, by the provider, or by Payerworks for its own.
enrollment.task.deletedWhen 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
CodeWhat it means
unknown_fieldWhat it meansA field this request does not take; nothing is dropped silently.
requiredWhat it meansA required field is missing.
invalid_typeWhat it meansA field is not of the type it takes.
too_shortWhat it meansText shorter than the field takes.
too_longWhat it meansText longer than the field takes.
invalid_npiWhat it meansAn NPI is 10 digits with a valid check digit.
invalid_tax_idWhat it meansA tax id is 9 digits, with or without one hyphen after the second digit.
invalid_tax_id_typeWhat it meanstax_id_type is "ein".
ssn_not_acceptedWhat it meansA Social Security number is never accepted: a provider enrolls with an EIN, which the IRS issues.
not_an_einWhat it meansThe first two digits are not a prefix the IRS assigns to an EIN.
invalid_emailWhat it meansAn email address in the form name@domain.
reserved_email_domainWhat it meansOn a live key, an email at a reserved or example domain, which can never receive mail.
invalid_phoneWhat it meansA phone is 10 digits, area code first; the area code and the exchange do not start with 0 or 1.
phone_not_realWhat it meansA phone that is all one digit is not a number anyone answers.
invalid_phone_extensionWhat it meansAn extension is 1 to 6 digits.
contact_name_formWhat it meansA contact gives organization_name, or first_name and last_name, not both.
invalid_stateWhat it meansA two-letter US state, DC or territory code.
invalid_zipWhat it meansA ZIP is 5 digits, or 9 with one hyphen allowed.
too_many_contactsWhat it meansAt most 5 contacts.
holds_long_numberWhat 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_idWhat it meansA payer id is 1 to 80 letters and digits.
test_key_sandbox_payer_onlyWhat it meansA test key enrolls with the sandbox payer, PWSANDBOX, only.
sandbox_payer_test_onlyWhat it meansThe sandbox payer answers test keys only.
invalid_transactionWhat it meanstransaction is eligibility, claim_status, professional_claims or remittances.
transaction_not_builtWhat it meansPayerworks does not yet enroll for this kind of file.
ask_another_payerWhat it meansThis payer does not answer this transaction; the problem names the payer that does.
ptan_requiredWhat it meansThis payer’s published steps need the provider’s PTAN.
invalid_ptanWhat it meansA PTAN is 4 to 10 letters and digits; for a DME MAC, exactly 10 digits.
invalid_dateWhat it meansA day written YYYY-MM-DD.
effective_date_out_of_rangeWhat it meansThe requested effective date is from today to 180 days ahead.
effective_date_past_45_daysWhat it meansA DME MAC remittance request asks an effective date at most 45 days after it is submitted (CEDI’s rule).
invalid_era_aggregationWhat it meansera_aggregation is "tin" or "npi".
era_aggregation_remittances_onlyWhat it meansera_aggregation applies to a remittances request only.
field_lockedWhat it meansThis field changes only while the request is a draft.
unknown_field_keyWhat it meansThe task has no field with this key.
value_type_mismatchWhat it meansA text field takes text; a document field takes a document_id.
text_too_longWhat it meansA task’s text value is at most 2,000 characters.
missing_required_valueWhat it meansCompleting a task needs a value for every required field.
document_not_uploadedWhat it meansThe document has not been uploaded and confirmed.
document_not_on_taskWhat it meansThe document was uploaded for another task or field.
invalid_filenameWhat it meansA filename ends .pdf and is 1 to 120 characters of letters, digits, spaces, dots, dashes and underscores.
invalid_field_keyWhat it meansA field key is lower snake case, 1 to 40 characters.
field_key_refusedWhat it meansA task field may never ask for a bank, routing or account number, or a Social Security number.
invalid_linkWhat it meansA link is https, to a public host.
invalid_valueWhat 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.

The import template’s headerText
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
ColumnWhat it holdsRequired
provider_nameWhat it holdsThe provider's name, 2 to 100 characters.RequiredRequired
npiWhat it holdsThe billing NPI, 10 digits with a valid check digit. Write it as text so a spreadsheet keeps every digit.RequiredRequired
tax_idWhat it holdsThe provider's EIN, 9 digits, with or without the hyphen after the second.RequiredRequired
tax_id_typeWhat it holdsein (the only kind taken). Left blank: ein.
payer_idWhat it holdsThe payer ID, as text: leading zeros are part of it.RequiredRequired
payer_nameWhat it holdsThe payer's name, up to 80 characters.
transactionWhat it holdseligibility, claim_status, professional_claims or remittances: one a row.RequiredRequired
contact_organization_nameWhat it holdsThe primary contact's organization; or give contact_first_name and contact_last_name.
contact_first_nameWhat it holdsThe primary contact's first name.
contact_last_nameWhat it holdsThe primary contact's last name.
contact_emailWhat it holdsThe primary contact's email.RequiredRequired
contact_phoneWhat it holdsThe primary contact's phone, 10 digits.RequiredRequired
contact_phone_extensionWhat it holds1 to 6 digits.
contact_address_line1What it holdsThe contact's street address.RequiredRequired
contact_address_line2What it holdsA suite or unit.
contact_cityWhat it holdsThe city.RequiredRequired
contact_stateWhat it holdsA two-letter state, DC or territory code.RequiredRequired
contact_zipWhat it holds5 digits, or 9 with one hyphen allowed.RequiredRequired
notify_emailWhat it holdsWhere Payerworks writes about this request.RequiredRequired
requested_effective_dateWhat it holdsYYYY-MM-DD, from today to 180 days ahead.
era_aggregationWhat it holdstin or npi, remittances only.
ptanWhat it holds4 to 10 letters and digits; for a DME MAC exactly 10 digits, and required.
noteWhat it holdsUp to 500 characters for Payerworks staff. Never a patient's information.
submitWhat it holdstrue submits the request at once; false or blank makes a draft.

How each row ends

Result, What it means
ResultWhat it means
readyWhat it meansChecked: it would be made as it is (the check route only).
createdWhat it meansMade: its request (and its provider, when the key had none with that NPI and tax id).
invalidWhat it meansNot made: one or more cells would be refused. Each problem names its column.
duplicateWhat 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.
refusedWhat 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_runWhat 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
ProblemWhat it means
csv_requiredWhat it meansThe body is { csv: "..." }: the file's text, its first line the header.
csv_too_longWhat it meansA CSV is at most 500,000 characters.
unterminated_quoteWhat it meansA quoted cell is not closed before the file ends.
stray_quoteWhat it meansA quote appears inside a cell that is not quoted; quote the whole cell and write a quote inside it twice.
no_rowsWhat it meansThe file has a header and no rows.
too_many_rowsWhat it meansA file holds at most 100 rows after the header; split it.
unknown_columnWhat it meansA header names a column the import does not take; nothing is dropped silently.
duplicate_columnWhat it meansTwo header cells name the same column.
missing_columnWhat it meansA column every import needs is not in the header.
wrong_cell_countWhat it meansA row has more cells than the header.
cell_too_longWhat it meansA cell is at most 600 characters.
unknown_body_fieldWhat 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.

enrollment.mjsJavaScript
// 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));
}
What it answered, run against the API in Payerworks’ own tests (your request ids will differ)JSON
{
  "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

Questions? hello@payerworks.com