Browse Payments

stable · event · 0.2.0

Invoice Issuance outcome

Payload for payments.invoice.succeeded or payments.invoice.failed.

Capability Domain: payments

Reference identifier: payment-invoice-outcome

Schema ID: https://minicenter.otus.tw/events/payments.invoice.outcome.v1.schema.json

Delivery: At least once; deduplicate with the Domain Event envelope id.

Event schema

Event schema
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://minicenter.otus.tw/events/payments.invoice.outcome.v1.schema.json",
    "title": "Invoice Issuance outcome",
    "description": "Payload for payments.invoice.succeeded or payments.invoice.failed.",
    "type": "object",
    "additionalProperties": false,
    "required": [
        "invoice_issuance_id",
        "payment_transaction_id",
        "project_order_reference"
    ],
    "properties": {
        "invoice_issuance_id": {
            "type": "string",
            "format": "uuid"
        },
        "payment_transaction_id": {
            "type": "string",
            "format": "uuid"
        },
        "project_order_reference": {
            "type": "string",
            "maxLength": 180
        }
    },
    "x-documentation": true,
    "x-reference-id": "payment-invoice-outcome",
    "x-domain": "payments",
    "x-stability": "stable",
    "x-delivery": "At least once; deduplicate with the Domain Event envelope id.",
    "example": {
        "invoice_issuance_id": "73000000-0000-4000-8000-000000000007",
        "payment_transaction_id": "70000000-0000-4000-8000-000000000007",
        "project_order_reference": "sandbox-order-1001"
    }
}

Example

Event example
{
    "invoice_issuance_id": "73000000-0000-4000-8000-000000000007",
    "payment_transaction_id": "70000000-0000-4000-8000-000000000007",
    "project_order_reference": "sandbox-order-1001"
}