notify_offchain_funds_received
Payment is being processed internally by anchor
Params
(8)Please note that parameter structure within the request must contain named parameters as a by-name object, and not as positional arguments in a by-position array
1. transaction_id (required)
The ID of the transaction
2. message
Human readable explanation of transaction status
3. funds_received_at
The date and time of receiving funds
4. external_transaction_id
ID of transaction on external network that either started the deposit or completed the withdrawal
5. amount_in
Amount received by anchor
Amount of assets
6. amount_out
Amount expected to be sent by anchor to user
Amount of assets
7. amount_fee
DEPRECATED in favour of fee_details. Amount of fee charged by anchor
Amount of assets
8. fee_details
Description of fees charged by the anchor
Details about fee charged
Result
(Response)The ID of the transaction
Protocol of the transaction
The kind of transaction that is desired
Processing status of the transaction
The amount expected in the payment
Amount expected/received by anchor
The amount expected to be sent by anchor to user at end of transaction
DEPRECATED in favour of fee_details. The amount of fee expected to be charged by anchor
Description of fee charged by the anchor.
Details about fee charged
The id returned from a SEP-38 POST /quote response
Start date and time of transaction
The date and time of transaction reaching the current status
The date and time of transaction reaching completed or refunded status
The date and time of receiving transfer
Human readable explanation of transaction status
An object describing any on or offchain refund associated with this transaction
The total amount refunded in units of amount_in_asset
The total amount charged in fees for processing all refund payments, in units of amount_in_asset
A list of objects containing information on the individual payments made back as refunds
Example
Request
- JSON
[
{
"id": 1,
"jsonrpc": "2.0",
"method": "notify_offchain_funds_received",
"params": {
"transaction_id": "1c186184-09ee-486c-82a7-aa7a0ab1119d",
"message": "Funds received successfully",
"funds_received_at": "2023-07-04T12:34:56Z",
"external_transaction_id": "7...9",
"amount_in": {
"amount": 1
},
"amount_out": {
"amount": 0.9
},
"amount_fee": {
"amount": 0.1
},
"amount_expected": {
"amount": 1
}
}
}
]
Response
- JSON
[
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"id": "1c186184-09ee-486c-82a7-aa7a0ab1119d",
"sep": "24 / 31",
"kind": "deposit/withdrawal/receive",
"status": "...",
"amount_expected": {
"amount": "1",
"asset": "stellar:USDC:G...5"
},
"amount_in": {
"amount": "1",
"asset": "stellar:USDC:G...5"
},
"amount_out": {
"amount": "0.9",
"asset": "iso4217:USD"
},
"amount_fee": {
"amount": "0.1",
"asset": "stellar:USDC:G...5"
},
"started_at": "2023-08-04T10:04:06.280923Z",
"updated_at": "2023-08-04T10:04:15.716233Z",
"message": "Transaction status message",
"source_account": "G...W",
"destination_account": "G...S"
}
}
]