---
title: Pending Statement Webhook
slug: pending-statement-webhook
createdAt: 2023-12-21T15:56:05.440Z
---

When a pending invoice is changes, we will send a webhook to the requested URL with the Timestamp and Signature specified in the headers.  The body will contain the Store ID, the Order Id, and the updated status of the Order.

See the parent **Webhooks** section to authenticate the \``Signature`\`

Pending Statement Statuses include:

- Failed
- Pending
- In Progress
- Sent
- Archived

```curl
POST / HTTP/1.1
Accept: application/json, application/cbor, application/*+json
X-Fp-Signature: {Signature}
X-Fp-Timestamp: {Epoch Timestamp}

{
    "id":{unique transaction id},
    "storeId":{Store ID},
    "orderId":{Order ID},
    "posOrderId":{external Ref/Statement ID},
    "status":"Pending", //Status of Pending Statement
    "patientId":{FP Patient ID},
    "externalPatientId":{FP External Patient ID},
    "updatedTimestamp":{LocalDateTime last updated time in UTC},
    "createdTimestamp":{Epoch Timestamp}
}
```

