Allows an application server to define invoice line items and other invoice-related information that will be stored in Tilia's system for retrieval when a client calls create invoice with the returned ID.
Authorize invoice request object
Successfully authorized invoice.
Validation errors
Unauthorized access.
Disallowed from transacting.
Service unavailable or server error.
{- "line_items": [
- {
- "amount": 155,
- "currency": "string",
- "transaction_type": "user_to_integrator",
- "product_sku": "SKU-123-A",
- "product_code": "code-123-A",
- "reference_type": "Acme catalog ID",
- "reference_id": "7245480",
- "description": "In-game digital bundle",
- "metadata": {
- "key1": {
- "key2": 3
}
}, - "recipients": [
- {
- "amount": 100,
- "reference_type": "string",
- "reference_id": "string",
- "description": "string",
- "metadata": {
- "key1": {
- "key2": 3
}
}, - "source_wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd",
- "destination_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "destination_wallet_id": "wal_2V2cKKqYoaj018K0EXBauwcurbd",
- "fee_percentage": 0.05,
- "fee_description": "string"
}
]
}
], - "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "invoice_mechanism": "string",
- "is_escrow": true,
- "reference_type": "Acme order number",
- "reference_id": "8987749",
- "description": "Digital product order",
- "tax_inclusive": false,
- "location": {
- "type": "billing",
- "address": {
- "country": "US",
- "state": "OH",
- "postal_code": 45201
}
}, - "metadata": {
- "key1": {
- "key2": 3
}
}
}
{- "payload": {
- "authorized_invoice_id": "inv_2V2XDLW6zogChdShdFh8WKOhHii",
- "password_token": "eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ8.eyJhY2NvdW50X2lkIjoiYjdjNWVkMTAtYWE1ZS00NzZjLWFjNTItMTEyMzI3ZDM4Njg1IiwiY2xpZW50X2lkIjoiZ....",
}, - "codes": [
- "string"
], - "message": [
- "string"
], - "status": "string"
}