Webhook event notification request.
event_name
value: invoice-completed
This request is sent to registered webhook event handlers after |
---|
Balance transfer completes successfully |
Commit an escrow transaction completes successfully |
Pay an escrow transaction completes successfully |
Pay an invoice completes successfully |
Refund a line item from an invoice completes successfully |
Refund an invoice completes successfully |
The Request body described below is the message
property in the event notification request data. For more information about event notification requests, visit Webhooks.
account_id | string <= 36 characters The buyer's Tilia Account ID. |
created | string Timestamp when this transaction was created. The format is RFC 3339 (2006-01-02T15:04:05Z07:00). |
description | string A user-facing description for this transaction. May appear in receipts and transaction history pages, and viewed by support agents. |
failure_code | string If the transaction failed, a code representing the failure. Visit Invoice Failure Codes for more information. |
failure_reason | string If the transaction failed, a human-readable reason for the failure. Visit Invoice Failure Codes for more information. |
invoice_id | string <= 36 characters The primary key for this transaction. |
invoice_type | string <string> The type of invoice, such as, |
Array of objects (LineItems-2) The line items for the transaction. | |
metadata | string The arbitrary data structure associated with this transaction. |
Array of objects The payment methods for the transaction. The payment_method_id is the value returned from the Purchase flow. | |
reference_id | string Your reference ID for the transaction. |
reference_type | string A type for your |
state | string The status of the transaction. One of |
Array of objects (Subitem) Subitems related to the transaction. | |
object The transaction summary object. | |
updated | string Timestamp when this transaction was most recently updated. The format is RFC 3339 (2006-01-02T15:04:05Z07:00). |
Return a 2XX status to indicate that the data was received successfully
{- "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "created": "string",
- "description": "Digital product order",
- "failure_code": "generic_error",
- "failure_reason": "an error ocurred",
- "invoice_id": "inv_2V2XDLW6zogChdShdFh8WKOhHii",
- "invoice_type": "user_purchase",
- "line_items": [
- {
- "amount": 155,
- "currency": "string",
- "description": "In-game digital bundle",
- "line_item_id": "12175ea1-5a52-4c8a-a027-0e7421ca613f",
- "metadata": {
- "key1": {
- "key2": 3
}
}, - "product_code": "code-123-A",
- "product_sku": "SKU-123-A",
- "reference_id": "7245480",
- "reference_type": "Acme catalog ID",
- "sort_order": 0,
- "subitems": {
- "amount": 155,
- "currency": "string",
- "description": "In-game digital bundle",
- "destination_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "destination_payment_method_id": "pm_2V2bA0r2hJpUnCA9HeTgOl0rONr",
- "destination_wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd",
- "metadata": {
- "key1": {
- "key2": 3
}
}, - "reference_id": "0e8ed55b-38b0-470b-8aed-10aa9d8ceb95",
- "reference_type": "invoicing.invoice_line_item_v2.line_item_id",
- "source_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "source_payment_method_id": "pm_2V2bA0r2hJpUnCA9HeTgOl0rONr",
- "source_wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd",
- "subitem_id": "f8adbba4-6909-4e2f-949c-60623c8c9d4b",
- "subitem_type": "user_recipient_virtual",
- "tags": {
- "<tag_id>": {
- "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "created": "2019-08-24T14:15:22Z",
- "integrator": "acme",
- "namespace": "payment_method",
- "resource_id": "0e3037fd-9fbc-499b-b5e5-19948502cbdb",
- "resource_type": "payments.payment_method.id",
- "status": "ACTIVE",
- "tag": "default_payment",
- "tag_id": "paytag_1yVYRU5t1HFfsM6T6mAab4onHZp",
- "updated": "2019-08-24T14:15:22Z"
}
}
}, - "transaction_type": "user_to_integrator"
}
], - "metadata": {
- "key1": {
- "key2": 3
}
}, - "payment_methods": [
- {
- "authorized_amount": 155,
- "currency": "USD",
- "payment_method_id": "pm_2V2bA0r2hJpUnCA9HeTgOl0rONr",
- "subitems": [
- {
- "amount": 155,
- "currency": "string",
- "description": "In-game digital bundle",
- "destination_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "destination_payment_method_id": "pm_2V2bA0r2hJpUnCA9HeTgOl0rONr",
- "destination_wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd",
- "metadata": {
- "key1": {
- "key2": 3
}
}, - "reference_id": "0e8ed55b-38b0-470b-8aed-10aa9d8ceb95",
- "reference_type": "invoicing.invoice_line_item_v2.line_item_id",
- "source_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "source_payment_method_id": "pm_2V2bA0r2hJpUnCA9HeTgOl0rONr",
- "source_wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd",
- "subitem_id": "f8adbba4-6909-4e2f-949c-60623c8c9d4b",
- "subitem_type": "user_recipient_virtual",
- "tags": {
- "<tag_id>": {
- "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "created": "2019-08-24T14:15:22Z",
- "integrator": "acme",
- "namespace": "payment_method",
- "resource_id": "0e3037fd-9fbc-499b-b5e5-19948502cbdb",
- "resource_type": "payments.payment_method.id",
- "status": "ACTIVE",
- "tag": "default_payment",
- "tag_id": "paytag_1yVYRU5t1HFfsM6T6mAab4onHZp",
- "updated": "2019-08-24T14:15:22Z"
}
}
}
]
}
], - "reference_id": "8987749",
- "reference_type": "Acme order number",
- "state": "FAILED",
- "subitems": [
- {
- "amount": 155,
- "currency": "string",
- "description": "In-game digital bundle",
- "destination_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "destination_payment_method_id": "pm_2V2bA0r2hJpUnCA9HeTgOl0rONr",
- "destination_wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd",
- "metadata": {
- "key1": {
- "key2": 3
}
}, - "reference_id": "0e8ed55b-38b0-470b-8aed-10aa9d8ceb95",
- "reference_type": "invoicing.invoice_line_item_v2.line_item_id",
- "source_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "source_payment_method_id": "pm_2V2bA0r2hJpUnCA9HeTgOl0rONr",
- "source_wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd",
- "subitem_id": "f8adbba4-6909-4e2f-949c-60623c8c9d4b",
- "subitem_type": "user_recipient_virtual",
- "tags": {
- "<tag_id>": {
- "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "created": "2019-08-24T14:15:22Z",
- "integrator": "acme",
- "namespace": "payment_method",
- "resource_id": "0e3037fd-9fbc-499b-b5e5-19948502cbdb",
- "resource_type": "payments.payment_method.id",
- "status": "ACTIVE",
- "tag": "default_payment",
- "tag_id": "paytag_1yVYRU5t1HFfsM6T6mAab4onHZp",
- "updated": "2019-08-24T14:15:22Z"
}
}
}
], - "summary": {
- "currency": "string",
- "display_amount": "USD 1.55",
- "subtotal": {
- "currency": "string",
- "display_amount": "USD 1.55",
- "total_amount": 155
}, - "tax": {
- "currency": "string",
- "display_amount": "USD 1.55",
- "total_amount": 155
}, - "total_amount": 155
}, - "updated": "string"
}