Creates a draft escrow transaction. Once created, it can be paid using the /pay
endpoint. Visit our purchase flow developer guide for more info. The request payload for an escrow transaction is identical to the request payload for a create invoice API call.
Escrow Transaction resource
Successfully created escrow transaction.
Invalid input
Unauthorized access.
Service unavailable or server error.
{- "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "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
}
}, - "payment_methods": [
- {
- "payment_method_id": "pm_2V2bA0r2hJpUnCA9HeTgOl0rONr"
}
], - "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"
}
]
}
]
}
{- "id": "esc_2V2TxPgh8usE9neZJoEjQyFHhVh",
- "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
- "escrow_invoice_id": "inv_2V2XDLW6zogChdShdFh8WKOhHii",
- "commit_invoice_id": "inv_2V2XDLW6zogChdShdFh8WKOhHii",
- "cancel_invoice_id": "inv_2V2XDLW6zogChdShdFh8WKOhHii",
- "status": "OPEN",
- "integrator": "Acme",
- "created": "string",
- "updated": "string",
- "escrow_invoice": {
- "invoice_id": "string",
- "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
}
}
}