Invoice completeWebhook

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

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 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_code
string

If the transaction failed, a code representing the failure. See Invoice Failure Codes for more information.

failure_reason
string

If the transaction failed, a human-readable reason for the failure. See Invoice Failure Codes for more information.

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
2XX

Return a 2XX status to indicate that the data was received successfully

Request samples
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": "FAILED",
  • "description": "Digital product order",
  • "metadata": {
    },
  • "summary": {
    },
  • "failure_code": "generic_error",
  • "failure_reason": "an error ocurred",
  • "created": "string",
  • "updated": "string",
  • "payment_methods": [
    ],
  • "line_items": [
    ],
  • "subitems": [
    ]
}