Retrieve a Transaction
GEThttps://platform-server.exampleanchor.com/transactions/:id
Provides the information necessary for the business to determine the state of the transaction identified by id
, decide if any action must be taken to continue processing the transaction, and act on the decision.
Request
Path Parameters
Responses
- 200
- 400
- 404
Transaction found.
- application/json
- Schema
- Example (from schema)
Schema
- TransactionSEP6
- TransactionSEP24
- TransactionSEP31
oneOf
Possible values: [6
]
Possible values: [deposit
, deposit-exchange
, withdrawal
, withdrawal-exchange
]
Possible status value for SEP-6 transactions
Possible values: [incomplete
, completed
, refunded
, expired
, error
, pending_stellar
, pending_external
, pending_customer_info_update
, pending_user_transfer_start
, pending_user_transfer_complete
, pending_anchor
, pending_trust
, pending_user
, no_market
, too_small
, too_large
]
The method the user used to deposit or withdraw offchain funds.
amount_expected
object
amount_in
object
amount_out
object
fee_details
object
refunds
object
stellar_transactions
object[]
The memo type of the transaction in the Stellar network. Should be present if memo is not null.
Possible values: [text id hash
]
If provided, this memo should be used for refund transactions.
The memo type of the transaction in the Stellar network. Should be present if memo is not null.
Possible values: [text id hash
]
customers
object
creator
object
Possible values: [24
]
Possible values: [deposit
, withdrawal
]
Possible status value for SEP-24 transactions
Possible values: [incomplete
, completed
, refunded
, expired
, error
, pending_stellar
, pending_external
, pending_user_transfer_start
, pending_user_transfer_complete
, pending_anchor
, pending_trust
, pending_user
, no_market
, too_small
, too_large
]
This field is always empty for SEP-24 transactions.
amount_expected
object
required
amount_in
object
amount_out
object
fee_details
object
refunds
object
stellar_transactions
object[]
The memo type of the transaction in the Stellar network. Should be present if memo is not null.
Possible values: [text id hash
]
If provided, this memo should be used for refund transactions.
The memo type of the transaction in the Stellar network. Should be present if memo is not null.
Possible values: [text id hash
]
customers
object
creator
object
Possible values: [31
]
Possible values: [receive
]
Possible status value for SEP-31 transactions
Possible values: [incomplete
, completed
, refunded
, expired
, error
, pending_stellar
, pending_external
, pending_sender
, pending_receiver
, pending_transaction_info_update
, pending_customer_info_update
]
This field is always empty for SEP-31 transactions.
amount_expected
object
amount_in
object
amount_out
object
fee_details
object
refunds
object
stellar_transactions
object[]
The memo type of the transaction in the Stellar network. Should be present if memo is not null.
Possible values: [text id hash
]
if provided, this memo should be used for refund transactions.
The memo type of the transaction in the Stellar network. Should be present if memo is not null.
Possible values: [text id hash
]
customers
object
creator
object
{}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string",
"id": "string"
}
Transaction not found.
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string",
"id": "string"
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://platform-server.exampleanchor.com/transactions/:id");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());