# Submit a claim

Canonical page: https://docs.ovok.com/api/patient-billing/submit-a-claim

`POST /v1/patient-billing/claims/{claimId}/submission`

Submits a claim through the project's claim channel, and answers what the channel made of it. Today the only channel is `export`: the claim as a FHIR `Bundle` (type `collection`) with the patient's identity (identifiers, name, gender, birth date, address), the coverages, the clinic and the insurers, every reference from one to another pointed at its entry, for the clinic's billing software to send to the insurer. Nothing leaves Ovok.

**Scope:** the caller's project, with `PATIENT_BILLING_ENABLED` on.

## Behaviour

- Your access policy must grant `patient_billing_claims` `create` and let you read the patient, else **403** `PATIENT_BILLING_NOT_ALLOWED` or **404** `CLAIM_NOT_FOUND`.
- A withdrawn claim answers **409** `CLAIM_CANCELLED`.
- The claim records when and through which channel it was submitted. Submitting again exports it again.

## Example

```bash
curl -X POST 'https://api.sandbox.ovok.com/v1/patient-billing/claims/<claimId>/submission' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
