---
title: "Report the native posting receipt, which settles the execution"
method: POST
path: "/v1/connections/{connectionId}/executions/{executionId}/receipts"
---

# Report the native posting receipt, which settles the execution

`POST /v1/connections/{connectionId}/executions/{executionId}/receipts`

## Request

- Base URL: `https://api.decionis.com`
- URL: `https://api.decionis.com/v1/connections/{connectionId}/executions/{executionId}/receipts`
- Auth: API key in header `X-Decionis-API-Key`

The platform's posting capture reports what it posted (or that the posting rolled back) in its own vocabulary. The executor reads the receipt against the permit's exact line; Decionis records the outcome on the grant. A receipt is accepted once; a second one, or one for a permit nobody presented, is refused and changes nothing.

## Path parameters

- `connectionId` string, uuid, required
- `executionId` string, uuid, required

## Headers

- `X-ERP-Region` string, required

## Request body

- NativeReceipt
  - `permit_id` string, required
  - `native_receipt` object, required
    - `platform` string, required
    - `kind` string, required
    - `reference` string, required
    - `status` string, required
    - `observed_at` string, date-time, required
    - `digest` string
  - `signed_receipt` string

## Response `200`

SETTLED with the outcome, or REFUSED with why

- union
  - object
    - `execution_id` string, required
    - `status` 'SETTLED', required
    - `outcome` 'COMPLETED' | 'DEFINITELY_NOT_EXECUTED' | 'UNKNOWN_AFTER_DISPATCH', required
    - `finalization` 'RECORDED' | 'PENDING' | 'UNSUPPORTED', required
  - object
    - `execution_id` string, required
    - `status` 'REFUSED', required
    - `reason` 'RECEIPT_DUPLICATE' | 'PERMIT_NOT_PRESENTED', required

## Other responses

- `400`: Bounded error response
- `401`: Bounded error response
- `404`: Bounded error response
- `409`: Bounded error response

---

[API](https://skmtc.dev/decionis/apis/decionis-commerce-gate-api.md) · [All operations](https://skmtc.dev/decionis/apis/decionis-commerce-gate-api/llms.txt) · [OpenAPI document](https://skmtc.dev/decionis/apis/decionis-commerce-gate-api/revisions/9fecb7109bf8?raw)
