Invoice complete Webhook

Request Body schema: application/json
invoice_id
string <UUID4>

The primary key for this transaction.

invoice_type
string <string>

The type of invoice this invoice is, for example user_purchase or commit_escrow.

account_id
string <UUID4>

The buyer's Tilia Pay Account ID.

reference_type
string

A type for your reference_ID.

reference_id
string

Your reference ID for the transaction.

state
string

The status of the transaction. One of OPEN, PROCESSING, SUCCESS, FAILED, or CANCELED.

description
string

A user-facing description for this transaction. May appear in receipts and transaction history pages, and viewed by support agents.

metadata
string

The arbitrary data structure associated with this transaction.

object

The transaction summary object.

failure_reason
string

A string of error codes indicating the reason(s) payment failed. Populated upon completion of the transaction.

created
string

Timestamp when this transaction was created. The format is RFC 3339 (2006-01-02T15:04:05Z07:00).

updated
string

Timestamp when this transaction was most recently updated. The format is RFC 3339 (2006-01-02T15:04:05Z07:00).

Array of objects

The payment methods for the transaction. The payment_method_id is the value returned from the Purchase flow.

Array of objects (LineItems-2)

The line items for the transaction.

Array of objects (Subitem)

Subitems related to the transaction.

Responses

Request samples

Content type
application/json
{
  • "invoice_id": "65d6c272-d593-405d-986c-a70b587e281f",
  • "invoice_type": "user_purchase",
  • "account_id": "b2ba9a0f-3d75-44e0-968d-be299cda5d80",
  • "reference_type": "Acme order number",
  • "reference_id": "8987749",
  • "state": "OPEN",
  • "description": "Digital product order",
  • "metadata": "[“key1”: {“key2”: 3}]",
  • "summary": {
    },
  • "failure_reason": "string",
  • "created": "string",
  • "updated": "string",
  • "payment_methods": [
    ],
  • "line_items": [
    ],
  • "subitems": [
    ]
}