Welcome to the rail Developer Guide!
rail API Specification (1.1.2)
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/
https://sandbox.layer2financial.com/api/
https://platform.layer2financial.com/api/
- Mock server
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/transactions
- Sandbox - Stable API Instance
https://sandbox.layer2financial.com/api/v1/transactions
- Production - Stable API Instance
https://platform.layer2financial.com/api/v1/transactions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/transactions?page=0&page_size=0&order=ASC&start_date=2019-08-24&end_date=2019-08-24&account_id=string&category_id=string&category_type=ADJUSTMENT&transaction_status=AUTHORIZED' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-l2f-request-id: string'Success
Transaction List
Value of the transaction in the underlying account currency
Date time the transaction was performed
Status of transaction
AUTHORIZED- Treat as a temporary hold. This transaction impacts the account available balance but does not impact the current balance. Can and should be cancelled and replaced by a pending/posted pair.PENDING- Transaction waiting final confirmation. This transaction impacts the account available balance but does not impact the current balance. Cannot be cancelled as the underlying transaction is in flight.POSTED- Transaction is final. Both the available balance and current balance are impacted. Cannot be reversed.CANCELLED- Transaction is no longer valid. Reverse any impacts to available balance and current balance.
Transaction type
TRANSFER_IN- External deposit of crypto funds into an account.TRANSFER_OUT- Withdrawal of crypto funds from an account to an external location .FIAT_TRANSFER_IN- External deposit of FIAT funds into an account.FIAT_TRANSFER_OUT- Withdrawal of FIAT funds from an account to an external location .FIAT_TRANSFER_IN_RETURN- Clawback of a FIAT deposit (e.g. due to bankiing error).FIAT_TRANSFER_OUT_RETURN- Return of a FIAT withdrawal (e.g. due to the destination account being closed)DEBIT_CORRECTION- Debit account adjustment.CREDIT_CORRECTION- Credit account adjustment.TRADE- Currency exchange transaction (applies to both the debit on the source account or credit on the destination account).FEE- Fee deduction.INTERNAL_TRANSFER- Book (internal) movement of funds between account.
If this transaction related to a core platform feature
DEPOSIT- When this transaction was a result of a deposit.EXCHANGE- When this transaction was a result of an exchange.TRANSFER- When this transaction was a result of a transfer.WITHDRAWAL- When this transaction was a result of a withdrawal.
Where the category_type is present, this identifier allows you to lookup the category details using the standard APIs. For example, where a category_type is TRANSFER and the category_id is abc-123, you can lookup the original transfer that this transaction relates to using GET /transfers/abc-123
Where the type of transaction is TRANSFER_IN, the available details of the originator of the transaction
See the pagination section for additional details on the generic pagination approach.
{ "data": { "transactions": [ … ] }, "links": { "self": "string", "first": "string", "prev": "string", "next": "string", "last": "string" } }
- Mock server
https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/transactions/{id}
- Sandbox - Stable API Instance
https://sandbox.layer2financial.com/api/v1/transactions/{id}
- Production - Stable API Instance
https://platform.layer2financial.com/api/v1/transactions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.rail.io/_mock/api-docs/openapi/rail-spec/v1/transactions/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'x-l2f-request-id: string'Success
Status of transaction
AUTHORIZED- Treat as a temporary hold. This transaction impacts the account available balance but does not impact the current balance. Can and should be cancelled and replaced by a pending/posted pair.PENDING- Transaction waiting final confirmation. This transaction impacts the account available balance but does not impact the current balance. Cannot be cancelled as the underlying transaction is in flight.POSTED- Transaction is final. Both the available balance and current balance are impacted. Cannot be reversed.CANCELLED- Transaction is no longer valid. Reverse any impacts to available balance and current balance.
Transaction type
TRANSFER_IN- External deposit of crypto funds into an account.TRANSFER_OUT- Withdrawal of crypto funds from an account to an external location .FIAT_TRANSFER_IN- External deposit of FIAT funds into an account.FIAT_TRANSFER_OUT- Withdrawal of FIAT funds from an account to an external location .FIAT_TRANSFER_IN_RETURN- Clawback of a FIAT deposit (e.g. due to bankiing error).FIAT_TRANSFER_OUT_RETURN- Return of a FIAT withdrawal (e.g. due to the destination account being closed)DEBIT_CORRECTION- Debit account adjustment.CREDIT_CORRECTION- Credit account adjustment.TRADE- Currency exchange transaction (applies to both the debit on the source account or credit on the destination account).FEE- Fee deduction.INTERNAL_TRANSFER- Book (internal) movement of funds between account.
If this transaction related to a core platform feature
DEPOSIT- When this transaction was a result of a deposit.EXCHANGE- When this transaction was a result of an exchange.TRANSFER- When this transaction was a result of a transfer.WITHDRAWAL- When this transaction was a result of a withdrawal.
Where the category_type is present, this identifier allows you to lookup the category details using the standard APIs. For example, where a category_type is TRANSFER and the category_id is abc-123, you can lookup the original transfer that this transaction relates to using GET /transfers/abc-123
Where the type of transaction is TRANSFER_IN, the available details of the originator of the transaction
{ "data": { "id": "string", "value": 0, "transaction_date": "2019-08-24T14:15:22Z", "transaction_posted_date": "2019-08-24T14:15:22Z", "transaction_status": "AUTHORIZED", "transaction_type": "TRANSFER_IN", "category_type": "ADJUSTMENT", "category_id": "string", "description": "string", "originator": { … }, "rail_information": { … } } }