The RippleNet Server API provides you the ability to develop custom applications to manage or interact with your RippleNet instance.
Check out the best practices and developer resources.
All API operations require a bearer access token for your target environment.
Learn how to request the access token.
The RippleNet Server API creates a dynamic [domainPrefix]
that consists of {tenant}.{environment}
.
Note: This example uses aperture
as the tenant. Your tenant ID is different.
Environment |
Domain Prefix |
Domain |
Base URL |
---|---|---|---|
Test | aperture.test |
ripplexcurrent.com |
https://aperture.test.ripplexcurrent.com |
UAT | aperture.uat |
ripplexcurrent.com |
https://aperture.uat.ripplexcurrent.com |
Production | aperture.prod |
ripplexcurrent.com |
https://aperture.prod.ripplexcurrent.com |
Use these operations to audit your accounts.
Operation | Method | Description |
---|---|---|
Get audits | GET | Gets an audit trail of user actions and configuration changes (to accounts, fees, and rates) on a RippleNet instance. |
Get event trail for payment | GET | Gets an audit trail of a payment's state changes on a local RippleNet instance. |
Gets an audit trail of user actions and configuration changes (to accounts, fees, and rates) on a RippleNet instance.
page | integer Default: 0 The page number for paginated results. The value is zero-based, where |
size | integer [ 1 .. 100 ] Default: 10 Number of payments to return per page. |
before | string Filters for audit events where the |
after | string Filters for audit events where the |
range_field | string Filters payments before/after/between created and modified timestamps ( |
actor | string Filters for audit events based upon actor. |
action | string Filters for audit events based upon action. |
level | string Filters for audit events based upon audit level. |
domain | string Filters for audit events based upon audit domain. |
Successful response
Bad request.
{- "first": true,
- "last": true,
- "number": 0,
- "numberOfElements": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0,
- "sort": [
- {
- "direction": "ASC",
- "property": "string",
- "ignoreCase": true,
- "nullHandling": "NULLS_FIRST",
- "ascending": true,
- "descending": false
}
], - "content": [
- {
- "actor": "super_user_client",
- "action": "KEY_UPDATE",
- "eventId": "3d5d0831-762c-4e0c-980c-635b38fd9caf",
- "message": "Added public key class PublicKeyRecord {\n publicKey: MCowBQYDK2VwAyEAb8Q2YzrbTIwrUn7u5Q6hJimp7jBFHx500MfDM4XVNJ0=\n keyIntent: SIGNING_PUBLIC_KEY\n keyType: ED_25519\n keyVersion: 1\n expiryDateTime: 2089-09-23T17:27:50.331Z\n} for RippleNet address rn.us.ny.new_york",
- "metadata": "{\"ip\":\"0:0:0:0:0:0:0:1\",\"uri\":\"/internal/key_service/addresses/rn.us.ny.new_york/keys\"}",
- "domain": "CONFIG_MANAGEMENT",
- "level": "INFO",
- "timeStamp": "2019-09-30 22:55:41.365000+00:00"
}
]
}
Gets an audit trail of a payment's state changes on a local RippleNet instance.
Payment state change event trail.
Bad request.
[- {
- "featureName": "payment",
- "eventDetail": "Updated Payment to state PREPARED",
- "entityId": "d485f100-2af7-4e48-9ab1-3c7e28775691",
- "messageAction": "STATE_CHANGE",
- "createdAt": "2019-10-01 18:24:28.040000+00:00",
- "messageSender": "default",
- "messageType": "SETTLEMENT_PREPARE"
}
]
Use these operations to view balances and statements for a ledger.
Operation | Method | Description |
---|---|---|
Get balances | GET | Get balances for local and remote accounts owned by a RippleNet address. |
Get ledger balances | GET | Get balances for ledger owned by a RippleNet address. |
Get statement | GET | Gets a statement for an account that lists payments and transfers that impacted the account's balance during a specified date-time range. |
Get statement by external account ID | GET | Gets a statement for an account that lists payments and transfers that impacted the account's balance during a specified date-time range. |
Get ledger account statement | GET | Get statement for a specified Ledger Account |
Get balances for local and remote accounts owned by a RippleNet address.
Successfully returned balances.
Bad request.
{- "local_balance": [
- {
- "institution": "rn.us.ca.san_francisco",
- "institution_address": "rn.us.ca.san_francisco",
- "currency_balances": [
- {
- "currency": "USD",
- "aggregate_balance": 0,
- "account_balances": [
- {
- "account_name": "trans_usd_sf",
- "balance": -909,
- "owner": "rn.us.ca.san_francisco",
- "currency": "USD",
- "minimum_allowed_balance": -1500000,
- "maximum_allowed_balance": 1000000,
- "low_liquidity_threshold": 1000,
- "owner_min_allowed_balance": 0,
- "owner_max_allowed_balance": 1000000
}
]
}
], - "pool_account_balances": [
- {
- "pool_account_name": "string",
- "balance": 0,
- "owner": "string",
- "currency": "string",
- "linked_accounts": [
- "string"
]
}
]
}
], - "remote_balances": [
- {
- "institution": "rn.us.ca.san_francisco",
- "institution_address": "rn.us.ca.san_francisco",
- "currency_balances": [
- {
- "currency": "USD",
- "aggregate_balance": 0,
- "account_balances": [
- {
- "account_name": "trans_usd_sf",
- "balance": -909,
- "owner": "rn.us.ca.san_francisco",
- "currency": "USD",
- "minimum_allowed_balance": -1500000,
- "maximum_allowed_balance": 1000000,
- "low_liquidity_threshold": 1000,
- "owner_min_allowed_balance": 0,
- "owner_max_allowed_balance": 1000000
}
]
}
], - "pool_account_balances": [
- {
- "pool_account_name": "string",
- "balance": 0,
- "owner": "string",
- "currency": "string",
- "linked_accounts": [
- "string"
]
}
]
}
], - "errors": [
- "string"
]
}
Get balances for ledger owned by a RippleNet address.
Successfully returned balances.
Bad request.
{- "local_balance": [
- {
- "institution": "rn.us.ca.san_francisco",
- "institution_address": "rn.us.ca.san_francisco",
- "currency_balances": [
- {
- "currency": "USD",
- "aggregate_balance": 0,
- "account_balances": [
- {
- "account_name": "trans_usd_sf",
- "balance": -909,
- "owner": "rn.us.ca.san_francisco",
- "currency": "USD",
- "minimum_allowed_balance": -1500000,
- "maximum_allowed_balance": 1000000,
- "low_liquidity_threshold": 1000,
- "owner_min_allowed_balance": 0,
- "owner_max_allowed_balance": 1000000
}
]
}
], - "pool_account_balances": [
- {
- "pool_account_name": "string",
- "balance": 0,
- "owner": "string",
- "currency": "string",
- "linked_accounts": [
- "string"
]
}
]
}
], - "remote_balances": [
- {
- "institution": "rn.us.ca.san_francisco",
- "institution_address": "rn.us.ca.san_francisco",
- "currency_balances": [
- {
- "currency": "USD",
- "aggregate_balance": 0,
- "account_balances": [
- {
- "account_name": "trans_usd_sf",
- "balance": -909,
- "owner": "rn.us.ca.san_francisco",
- "currency": "USD",
- "minimum_allowed_balance": -1500000,
- "maximum_allowed_balance": 1000000,
- "low_liquidity_threshold": 1000,
- "owner_min_allowed_balance": 0,
- "owner_max_allowed_balance": 1000000
}
]
}
], - "pool_account_balances": [
- {
- "pool_account_name": "string",
- "balance": 0,
- "owner": "string",
- "currency": "string",
- "linked_accounts": [
- "string"
]
}
]
}
], - "errors": [
- "string"
]
}
Gets a statement for an account that lists payments and transfers that impacted the account's balance during a specified date-time range.
start-date required | string The lower bound of the date-time range you want to return statement information for, as an ISO-8601 timestamp in UTC. For example, |
end-date required | string The upper bound of the date-time range you want to return statement information for, as an ISO-8601 timestamp in UTC For example, |
page | integer Default: 0 The page number for paginated results. The value is zero-based, where |
size | integer [ 1 .. 100 ] Default: 10 Number of payment and transfer objects to return per page, with a limit of 100 per page. For example, a query with |
Successfully returns an account statement.
Bad request.
Peer or Account not found.
{- "account_name": "trans_usd_sf",
- "start_datetime": "2018-08-06T23:13:55.997Z",
- "end_datetime": "2020-08-06T23:13:55.997Z",
- "generated_at": "2019-10-01T21:58:23.621Z",
- "currency": "USD",
- "owner": "rn.us.ca.san_francisco",
- "opening_balance": 0,
- "closing_balance": -909,
- "transactions": {
- "content": [
- {
- "transaction_id": "9eca588f-e89d-4629-82fa-da9c4646310f",
- "transaction_type": "PAYMENT",
- "transaction_state": "COMPLETED",
- "balance_change": -15,
- "balance_result": -909,
- "created_at": "2019-10-01T21:28:28.354Z",
- "end_to_end_id": "91ecb6bd-4dd8-4b53-a900-72b79f3064e4",
- "internal_id": "8afd8e99-4ad4-4f4e-9bb7-018ad8c3a89c",
- "venue_id": "nz7RpAujYgnQtjEM",
- "transaction_hash": "DB0AFC09E0A94FC1D11F8CBABA48A184E27094F8DD32FCBC46F316E98011E2A6",
- "returns_payment_with_id": "a69b322f-faa4-4531-bcff-897e5839c130",
- "returned_by_payment_with_id": "c929a87b-81b8-4878-b21c-1aeaa4fe9276",
- "balance_change_created_at": "2019-10-01T21:28:28.354Z",
- "sender_address": "rn.us.ca.san_francisco",
- "receiver_address": "rn.mx.mexico"
}
], - "total_elements": 1,
- "sort": "string",
- "first": true,
- "last": true,
- "number": 0,
- "numberOfElements": 1,
- "size": 10,
- "totalPages": 1
}
}
Gets a statement for an account that lists payments and transfers that impacted the account's balance during a specified date-time range.
start-date required | string The lower bound of the date-time range you want to return statement information for, as an ISO-8601 timestamp in UTC. For example, |
end-date required | string The upper bound of the date-time range you want to return statement information for, as an ISO-8601 timestamp in UTC. For example, |
page | integer Default: 0 The page number for paginated results. The value is zero-based, where |
size | integer [ 1 .. 100 ] Default: 10 Number of payment and transfer objects to return per page. |
Successfully returns an account statement.
Bad request.
Peer or Account not found.
{- "account_name": "trans_usd_sf",
- "start_datetime": "2018-08-06T23:13:55.997Z",
- "end_datetime": "2020-08-06T23:13:55.997Z",
- "generated_at": "2019-10-01T21:58:23.621Z",
- "currency": "USD",
- "owner": "rn.us.ca.san_francisco",
- "opening_balance": 0,
- "closing_balance": -909,
- "transactions": {
- "content": [
- {
- "transaction_id": "9eca588f-e89d-4629-82fa-da9c4646310f",
- "transaction_type": "PAYMENT",
- "transaction_state": "COMPLETED",
- "balance_change": -15,
- "balance_result": -909,
- "created_at": "2019-10-01T21:28:28.354Z",
- "end_to_end_id": "91ecb6bd-4dd8-4b53-a900-72b79f3064e4",
- "internal_id": "8afd8e99-4ad4-4f4e-9bb7-018ad8c3a89c",
- "venue_id": "nz7RpAujYgnQtjEM",
- "transaction_hash": "DB0AFC09E0A94FC1D11F8CBABA48A184E27094F8DD32FCBC46F316E98011E2A6",
- "returns_payment_with_id": "a69b322f-faa4-4531-bcff-897e5839c130",
- "returned_by_payment_with_id": "c929a87b-81b8-4878-b21c-1aeaa4fe9276",
- "balance_change_created_at": "2019-10-01T21:28:28.354Z",
- "sender_address": "rn.us.ca.san_francisco",
- "receiver_address": "rn.mx.mexico"
}
], - "total_elements": 1,
- "sort": "string",
- "first": true,
- "last": true,
- "number": 0,
- "numberOfElements": 1,
- "size": 10,
- "totalPages": 1
}
}
Get statement for a specified Ledger Account
start-date required | string The lower bound of the date-time range you want to return statement information for, as an ISO-8601 timestamp in UTC. For example, |
end-date required | string The upper bound of the date-time range you want to return statement information for, as an ISO-8601 timestamp in UTC For example, |
page | integer Default: 0 The page number for paginated results. The value is zero-based, where |
size | integer [ 1 .. 100 ] Default: 10 Number of payment and transfer objects to return per page. |
Successfully returned statement for a specified ledger account.
Bad request.
Peer or Account not found.
{- "account_name": "trans_usd_sf",
- "start_datetime": "2018-08-06T23:13:55.997Z",
- "end_datetime": "2020-08-06T23:13:55.997Z",
- "generated_at": "2019-10-01T21:58:23.621Z",
- "currency": "USD",
- "owner": "rn.us.ca.san_francisco",
- "opening_balance": 0,
- "closing_balance": -909,
- "transactions": {
- "content": [
- {
- "transaction_id": "9eca588f-e89d-4629-82fa-da9c4646310f",
- "transaction_type": "PAYMENT",
- "transaction_state": "COMPLETED",
- "balance_change": -15,
- "balance_result": -909,
- "created_at": "2019-10-01T21:28:28.354Z",
- "end_to_end_id": "91ecb6bd-4dd8-4b53-a900-72b79f3064e4",
- "internal_id": "8afd8e99-4ad4-4f4e-9bb7-018ad8c3a89c",
- "venue_id": "nz7RpAujYgnQtjEM",
- "transaction_hash": "DB0AFC09E0A94FC1D11F8CBABA48A184E27094F8DD32FCBC46F316E98011E2A6",
- "returns_payment_with_id": "a69b322f-faa4-4531-bcff-897e5839c130",
- "returned_by_payment_with_id": "c929a87b-81b8-4878-b21c-1aeaa4fe9276",
- "balance_change_created_at": "2019-10-01T21:28:28.354Z",
- "sender_address": "rn.us.ca.san_francisco",
- "receiver_address": "rn.mx.mexico"
}
], - "total_elements": 1,
- "sort": "string",
- "first": true,
- "last": true,
- "number": 0,
- "numberOfElements": 1,
- "size": 10,
- "totalPages": 1
}
}
Use these operations to perform beneficiary confirmations.
Operation | Method | Description |
---|---|---|
Get account lookup by status | GET | Get Account Lookup entities by status and other filters. |
Initiate account lookup | POST | Creates an Account Lookup request to validate a beneficiary's account details before sending a payment. |
Complete account lookup | POST | Posts an Account Lookup response to validate a beneficiary's account details before payment. |
Get account lookup by ID | GET | Gets an Account Lookup entity for its account_lookup_id value. |
Get Account Lookup entities by status and other filters. Status defaults to REQUESTED
.
page | integer Default: 0 The page number for paginated results. The value is zero-based, where |
size | integer [ 1 .. 100 ] Default: 10 Number of objects to return per page |
account_lookup_status | Array of strings (AccountLookupStatus) Default: ["REQUESTED"] Account Lookup status |
start-date | string The lower bound of the date-time range you want to return account lookup for, as an ISO-8601 timestamp in UTC. For example, |
end-date | string The upper bound of the date-time range you want to return statement information for, as an ISO-8601 timestamp in UTC For example, |
sort_field | string Default: "LAST_MODIFIED_DATE" Attribute for how to sort the results |
sort_direction | string Default: "ASC" Direction of sorted results. |
Successfully returned response for Account Lookup
Bad request problem
Account Lookup Not Found
Server Error - No valid network path to receiver. Account Lookup is not supported by a participant in the network path.
{- "first": true,
- "last": true,
- "number": 0,
- "numberOfElements": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0,
- "sort": [
- {
- "direction": "ASC",
- "property": "string",
- "ignoreCase": true,
- "nullHandling": "NULLS_FIRST",
- "ascending": true,
- "descending": false
}
], - "content": [
- {
- "account_lookup_id": "efc26a87-de06-4aef-8217-4566df3c9f14",
- "account_lookup_status": "REQUESTED",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "org_name": "string",
- "country_code": "string",
- "account_currency": "string",
- "account_id": "string",
- "account_id_type": "AIIN",
- "result_code": "string",
- "result_status": "PASS",
- "result_description": "string",
- "redacted_first_name": "string",
- "redacted_middle_name": "string",
- "redacted_last_name": "string",
- "redacted_org_name": "string",
- "redacted_country_code": "string",
- "redacted_account_id": "string",
- "redacted_account_id_type": "AIIN",
- "redacted_account_currency": "string",
- "clearing_system_code": "string",
- "branch_code": "string"
}
]
}
Creates an Account Lookup request to validate a beneficiary's account details before sending a payment. Account lookups are not part of the payment flow and can be made at any time in the payment process.
Successfully returned Account Lookup response.
Bad Request Problem.
Server Error - No valid network path to receiver. Account Lookup is not supported by a participant in the network path.
{- "account_currency": "string",
- "clearing_system_code": "string",
- "destination_address": "string",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "org_name": "string",
- "country_code": "st",
- "account_id": "string",
- "account_id_type": "AIIN"
}
{- "account_lookup_id": "efc26a87-de06-4aef-8217-4566df3c9f14",
- "account_lookup_status": "REQUESTED",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "org_name": "string",
- "country_code": "string",
- "account_currency": "string",
- "account_id": "string",
- "account_id_type": "AIIN",
- "result_code": "string",
- "result_status": "PASS",
- "result_description": "string",
- "redacted_first_name": "string",
- "redacted_middle_name": "string",
- "redacted_last_name": "string",
- "redacted_org_name": "string",
- "redacted_country_code": "string",
- "redacted_account_id": "string",
- "redacted_account_id_type": "AIIN",
- "redacted_account_currency": "string",
- "clearing_system_code": "string",
- "branch_code": "string"
}
Posts an Account Lookup response to validate a beneficiary's account details before payment.
Successfully returns acknowledgement for Account Lookup response.
Bad request problem
Account Lookup Not Found
Server Error - No valid network path to receiver. Account Lookup is not supported by a participant in the network path.
{- "account_lookup_id": "efc26a87-de06-4aef-8217-4566df3c9f14",
- "result_code": "string",
- "result_status": "PASS",
- "result_description": "string",
- "redacted_first_name": "string",
- "redacted_middle_name": "string",
- "redacted_last_name": "string",
- "redacted_org_name": "string",
- "redacted_country_code": "string",
- "redacted_account_id": "string",
- "redacted_account_id_type": "AIIN",
- "redacted_clearing_system_code": "string",
- "redacted_branch_code": "string",
- "redacted_account_currency": "string"
}
{- "account_lookup_id": "efc26a87-de06-4aef-8217-4566df3c9f14",
- "account_lookup_status": "REQUESTED",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "org_name": "string",
- "country_code": "string",
- "account_currency": "string",
- "account_id": "string",
- "account_id_type": "AIIN",
- "result_code": "string",
- "result_status": "PASS",
- "result_description": "string",
- "redacted_first_name": "string",
- "redacted_middle_name": "string",
- "redacted_last_name": "string",
- "redacted_org_name": "string",
- "redacted_country_code": "string",
- "redacted_account_id": "string",
- "redacted_account_id_type": "AIIN",
- "redacted_account_currency": "string",
- "clearing_system_code": "string",
- "branch_code": "string"
}
Gets an Account Lookup entity for its account_lookup_id
value.
Successfully returned Account Lookup response.
Bad request problem
Account Lookup Not Found
Server Error - No valid network path to receiver. Account Lookup is not supported by a participant in the network path.
{- "account_lookup_id": "efc26a87-de06-4aef-8217-4566df3c9f14",
- "account_lookup_status": "REQUESTED",
- "first_name": "string",
- "middle_name": "string",
- "last_name": "string",
- "org_name": "string",
- "country_code": "string",
- "account_currency": "string",
- "account_id": "string",
- "account_id_type": "AIIN",
- "result_code": "string",
- "result_status": "PASS",
- "result_description": "string",
- "redacted_first_name": "string",
- "redacted_middle_name": "string",
- "redacted_last_name": "string",
- "redacted_org_name": "string",
- "redacted_country_code": "string",
- "redacted_account_id": "string",
- "redacted_account_id_type": "AIIN",
- "redacted_account_currency": "string",
- "clearing_system_code": "string",
- "branch_code": "string"
}
Use these operations to view RippleNet Server health.
Operation | Method | Description |
---|---|---|
Check health | GET | Gets the health status of the xCurrent server. |
Check heartbeat | GET | Gets the health status of the xCurrent server's peers. |
Gets the health status of the xCurrent server.
Successful response.
Bad request.
{- "healthy": true,
- "services": [
- {
- "service": "database",
- "healthy": true,
- "detail": "Message queue unreachable."
}
], - "detail": "Failed to perform health check"
}
Gets the health status of the xCurrent server's peers. This request requires authorization. The timeout for this operation is 5 seconds.
Successful response.
Bad request.
{- "time_checked": "2019-10-01",
- "xcurrent_node": "rn.us.ny.new_york",
- "ripplenet_node": "rn.us.ny.new_york",
- "peer_heartbeat_results": {
- "property1": "HEALTHY",
- "property2": "HEALTHY"
}, - "errors": [
- "string"
]
}
Use these operations to manage exchange transfers.
Operation | Method | Description |
---|---|---|
Get exchange transfers | GET | List all exchange transfers. |
Execute exchange transfer | POST | Execute an exchange transfer to move funds from one of your accounts in one currency, to another one of your accounts in another currency. |
Get exchange transfer quote | POST | Requests a quote for an exchange transfer. |
Complete exchange transfer | POST | Updates the status of an exchange transfer to COMPLETED . Make this request once the exchange transfer has been made on both the ledger and on internal systems. |
Get exchange transfer by ID | GET | Gets an exchange transfer by ID. |
Gets all exchange transfers.
page | integer Default: 0 The page number for paginated results. The value is zero-based, where |
size | integer [ 1 .. 100 ] Default: 20 Number of objects to return per page. |
Successfully retrieved exchange transfers.
Bad request.
{- "first": true,
- "last": true,
- "number": 0,
- "numberOfElements": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0,
- "sort": [
- {
- "direction": "ASC",
- "property": "string",
- "ignoreCase": true,
- "nullHandling": "NULLS_FIRST",
- "ascending": true,
- "descending": false
}
], - "content": [
- {
- "exchange_transfer_id": "e3b20ba4-28ed-4752-990d-e67887bb331e",
- "state": "EXECUTED",
- "type": "INDICATIVE",
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "source_amount": 1,
- "destination_amount": 355,
- "source_currency": "USD",
- "destination_currency": "GBP",
- "fx_transfer_rate": {
- "rate": 0.89,
- "base_currency": "USD",
- "counter_currency": "GBP",
- "rate_type": "BUY"
}, - "end_to_end_id": "string",
- "internal_id": "string",
- "user_info": [
- {
- "node_address": "rn.us.ny.new_york",
- "state": "EXECUTED",
- "json": { },
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
]
}
Execute an exchange transfer to move funds from one of your accounts in one currency (USD, for example) to another one of your accounts in another currency (EUR, for example) at an exchange rate set by your peer who maintains both of your accounts on their ledger. An exchange transfer enables you to fund a foreign currency account from your domestic currency account in bulk.
Before making this request, you may want to use the Quote Exchange Transfer request to see a quote for the exchange transfer you want to make.
Successfully executed exchange transfer.
Bad request.
{- "sender_address": "alias_usd_lon@rn.eur.uk.london",
- "receiver_address": "conct_gbp_lon@rn.eur.uk.london",
- "amount": 100,
- "amount_type": "SENDER_AMOUNT",
- "end_to_end_id": 378910,
- "internal_id": 1987,
- "user_info": { }
}
{- "exchange_transfer_id": "e3b20ba4-28ed-4752-990d-e67887bb331e",
- "state": "EXECUTED",
- "type": "INDICATIVE",
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "source_amount": 1,
- "destination_amount": 355,
- "source_currency": "USD",
- "destination_currency": "GBP",
- "fx_transfer_rate": {
- "rate": 0.89,
- "base_currency": "USD",
- "counter_currency": "GBP",
- "rate_type": "BUY"
}, - "end_to_end_id": "string",
- "internal_id": "string",
- "user_info": [
- {
- "node_address": "rn.us.ny.new_york",
- "state": "EXECUTED",
- "json": { },
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
Requests a quote for an exchange transfer.
Successfully quoted exchange transfer.
Bad request.
{- "sender_address": "alias_usd_lon@rn.eur.uk.london",
- "receiver_address": "conct_gbp_lon@rn.eur.uk.london",
- "amount": 100,
- "amount_type": "SENDER_AMOUNT"
}
{- "type": "INDICATIVE",
- "sender_address": "alias_usd_lon@rn.eur.uk.london",
- "receiver_address": "conct_gbp_lon@rn.eur.uk.london",
- "source_amount": 100,
- "destination_amount": 89,
- "source_currency": "USD",
- "destination_currency": "GBP",
- "fx_transfer_rate": {
- "rate": 0.89,
- "base_currency": "USD",
- "counter_currency": "GBP",
- "rate_type": "BUY"
}
}
Updates the status of an exchange transfer to COMPLETED
. Make this request once the exchange transfer has been made on both the ledger and on internal systems.
Successfully completed exchange transfer.
Exchange transfer not found.
{- "exchange_transfer_id": "e3b20ba4-28ed-4752-990d-e67887bb331e",
- "state": "EXECUTED",
- "type": "INDICATIVE",
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "source_amount": 1,
- "destination_amount": 355,
- "source_currency": "USD",
- "destination_currency": "GBP",
- "fx_transfer_rate": {
- "rate": 0.89,
- "base_currency": "USD",
- "counter_currency": "GBP",
- "rate_type": "BUY"
}, - "end_to_end_id": "string",
- "internal_id": "string",
- "user_info": [
- {
- "node_address": "rn.us.ny.new_york",
- "state": "EXECUTED",
- "json": { },
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
Gets an exchange transfer by ID.
Successfully retrieved exchange transfer.
Exchange transfer not found.
{- "exchange_transfer_id": "e3b20ba4-28ed-4752-990d-e67887bb331e",
- "state": "EXECUTED",
- "type": "INDICATIVE",
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "source_amount": 1,
- "destination_amount": 355,
- "source_currency": "USD",
- "destination_currency": "GBP",
- "fx_transfer_rate": {
- "rate": 0.89,
- "base_currency": "USD",
- "counter_currency": "GBP",
- "rate_type": "BUY"
}, - "end_to_end_id": "string",
- "internal_id": "string",
- "user_info": [
- {
- "node_address": "rn.us.ny.new_york",
- "state": "EXECUTED",
- "json": { },
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
Use these operations to configure fees.
Operation | Method | Description |
---|---|---|
Get fees | GET | List all fees. |
Create fee | POST | Creates a fee. |
Get fee by ID | GET | Gets a fee by ID. |
Update fee | PUT | Updates an existing fee. |
Delete fee | DELETE | Deletes a fee. Once deleted, a fee cannot be accessed. |
Gets a list of fees.
Successfully returns list of fees.
Bad request.
{- "first": true,
- "last": true,
- "number": 0,
- "numberOfElements": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0,
- "sort": [
- {
- "direction": "ASC",
- "property": "string",
- "ignoreCase": true,
- "nullHandling": "NULLS_FIRST",
- "ascending": true,
- "descending": false
}
], - "content": [
- {
- "value": 2,
- "currency_code": "USD",
- "role_type": "SENDING",
- "payment_type": "REGULAR",
- "node_type": "INITIAL",
- "fee_type": "FLAT_RATE",
- "partner_name": "rn.us.ca.san_francisco",
- "account_name": "conct_usd_sf",
- "upper_limit": 1000,
- "lower_limit": 0,
- "feeId": "7740f31c-ca03-4414-b491-b285aef71eb1",
- "payout_method": "LOCAL_RAILS",
- "fee_category": "BENEFICIARY_BANK_CHARGE",
- "fee_description": "string"
}
]
}
Creates a fee.
value required | number Value of the fee to apply. Set the value of this parameter according to the fee type you are using:
Note: The final amount of the fee is applied either as a percentage or a flat rate depending on the | ||||||||||||||
currency_code required | string Currency the fee is applied in. Ripple recommends using ISO-4217 currency codes, although no formal constraint is enforced. | ||||||||||||||
role_type required | string Role of the party to which the fee applies.
| ||||||||||||||
payment_type required | string Type of payment to which the fee applies.
| ||||||||||||||
node_type required | string Fiat instance to which the fee applies.
| ||||||||||||||
fee_type required | string Type of fee to apply. This is used with fee value to calculate the fee.
| ||||||||||||||
partner_name | string Owner of the account involved in the payment, in RippleNet Address format. For example, | ||||||||||||||
account_name | string Account to apply the fee to. Specify the account name. For example, | ||||||||||||||
upper_limit | number Maximum amount for the range of a slab-based fee. If specified, you must also specify a | ||||||||||||||
lower_limit | number Minimum amount for the range of a slab-based fee. If specified, you must also specify an | ||||||||||||||
payout_method | string The payout method by which the receiving institution delivers the funds to the end customer. | ||||||||||||||
fee_category | string Default: "NONE" Category that describes the purpose of the fee.
| ||||||||||||||
fee_description | string Optional free-form description for the fee. |
Successfully created fee.
Bad Request.
{- "value": 0.025,
- "currency_code": "USD",
- "role_type": "SENDING",
- "payment_type": "REGULAR",
- "node_type": "INITIAL",
- "fee_type": "FLAT_RATE",
- "partner_name": "rn.us.ca.san_francisco",
- "account_name": "conct_usd_sf",
- "upper_limit": 1000,
- "lower_limit": 0,
- "payout_method": "LOCAL_RAILS",
- "fee_category": "BENEFICIARY_BANK_CHARGE",
- "fee_description": "string"
}
{- "value": 2,
- "currency_code": "USD",
- "role_type": "SENDING",
- "payment_type": "REGULAR",
- "node_type": "INITIAL",
- "fee_type": "FLAT_RATE",
- "partner_name": "rn.us.ca.san_francisco",
- "account_name": "conct_usd_sf",
- "upper_limit": 1000,
- "lower_limit": 0,
- "feeId": "7740f31c-ca03-4414-b491-b285aef71eb1",
- "payout_method": "LOCAL_RAILS",
- "fee_category": "BENEFICIARY_BANK_CHARGE",
- "fee_description": "string"
}
Gets a fee by ID.
Successfully retrieved fee.
Fee not found.
{- "value": 2,
- "currency_code": "USD",
- "role_type": "SENDING",
- "payment_type": "REGULAR",
- "node_type": "INITIAL",
- "fee_type": "FLAT_RATE",
- "partner_name": "rn.us.ca.san_francisco",
- "account_name": "conct_usd_sf",
- "upper_limit": 1000,
- "lower_limit": 0,
- "feeId": "7740f31c-ca03-4414-b491-b285aef71eb1",
- "payout_method": "LOCAL_RAILS",
- "fee_category": "BENEFICIARY_BANK_CHARGE",
- "fee_description": "string"
}
Updates an existing fee.
value required | number Value of the fee to apply. Set the value of this parameter according to the fee type you are using:
Note: The final amount of the fee is applied either as a percentage or a flat rate depending on the | ||||||||||||||
currency_code required | string Currency the fee is applied in. Ripple recommends using ISO-4217 currency codes, although no formal constraint is enforced. | ||||||||||||||
role_type required | string Role of the party to which the fee applies.
| ||||||||||||||
payment_type required | string Type of payment to which the fee applies.
| ||||||||||||||
node_type required | string Fiat instance to which the fee applies.
| ||||||||||||||
fee_type required | string Type of fee to apply. This is used with fee value to calculate the fee.
| ||||||||||||||
partner_name | string Owner of the account involved in the payment, in RippleNet Address format. For example, | ||||||||||||||
account_name | string Account to apply the fee to. Specify the account name. For example, | ||||||||||||||
upper_limit | number Maximum amount for the range of a slab-based fee. If specified, you must also specify a | ||||||||||||||
lower_limit | number Minimum amount for the range of a slab-based fee. If specified, you must also specify an | ||||||||||||||
payout_method | string The payout method by which the receiving institution delivers the funds to the end customer. | ||||||||||||||
fee_category | string Default: "NONE" Category that describes the purpose of the fee.
| ||||||||||||||
fee_description | string Optional free-form description for the fee. |
Successfully updated fee.
Bad Request.
{- "value": 0.025,
- "currency_code": "USD",
- "role_type": "SENDING",
- "payment_type": "REGULAR",
- "node_type": "INITIAL",
- "fee_type": "FLAT_RATE",
- "partner_name": "rn.us.ca.san_francisco",
- "account_name": "conct_usd_sf",
- "upper_limit": 1000,
- "lower_limit": 0,
- "payout_method": "LOCAL_RAILS",
- "fee_category": "BENEFICIARY_BANK_CHARGE",
- "fee_description": "string"
}
{- "value": 2,
- "currency_code": "USD",
- "role_type": "SENDING",
- "payment_type": "REGULAR",
- "node_type": "INITIAL",
- "fee_type": "FLAT_RATE",
- "partner_name": "rn.us.ca.san_francisco",
- "account_name": "conct_usd_sf",
- "upper_limit": 1000,
- "lower_limit": 0,
- "feeId": "7740f31c-ca03-4414-b491-b285aef71eb1",
- "payout_method": "LOCAL_RAILS",
- "fee_category": "BENEFICIARY_BANK_CHARGE",
- "fee_description": "string"
}
Deletes a fee. Once deleted, a fee cannot be accessed.
Successfully deleted fee.
Bad request.
{- "title": "Invalid Request Object",
- "detail": "The request parameter [account_id] is not in the correct format.",
- "status": 400,
- "ripplenet_error_code": "E0104",
- "finality": "PERMANENT"
}
These are API operations used by existing integrations for sending and receiving payments.
Developers of new integrations should use the API operations in Orchestration payments.
Operation | Method | Description |
---|---|---|
Get payments | GET | Retrieves all payments in an instance of xCurrent that meet the criteria defined by the query parameters. |
Get payment by payment ID | GET | Gets a payment by ID. |
Lock payment | POST | Locks a payment. The beneficiary and all intermediary institutions agree to proceed with the payment by making successful Lock payment requests. |
Reject lock payment | POST | Rejects a payment from being locked. |
Retry accept payment | POST | Returns a rejected payment from the LOCK_DECLINED state to the ACCEPTED state. |
Fail payment | POST | Fails a payment. is a deliberate action that permanently stops the payment and puts it into a non-recoverable state. |
Settle payment | POST | Executes a payment in the LOCKED state. |
Finalize payment | POST | Marks a payment with finalized sub-states that reflect what is happening to the payment while it is in the EXECUTED state. |
Add payment sub state | POST | Adds a sub-state to a payment that reflects what is happening to the payment while it is in the EXECUTED state. |
Complete payment | POST | Marks a payment as complete by placing it in the COMPLETED state. |
Add payment labels | PUT | Adds a list of labels to the payment. To retrieve payments by label, see Get payments. |
Delete payment labels | DELETE | Deletes an existing label from a payment. |
Get payment node status | GET | Senders can query for the RippleNet instances (in a given payment chain) that have payments in the LOCKED state. |
Get filtered payment by payment ID | GET | Returns a sanitized payment with sensitive content filtered from the user_info object. |
Create quote to return payment | POST | Creates a collection of quotes that can be used to return a payment. |
Create quote to reverse payment | POST | Creates a quote collection containing at most one quote that can be used to reverse a payment. |
Retrieves all payments in an instance of xCurrent that meet the criteria defined by the query parameters. You can use the query parameters to filter payments. The default parameters are sort_field : MODIFIED_AT
, sort_direction : DESC
, page : 0
, size : 10
page | integer Default: 0 The page number for paginated results. The value is zero-based, where |
size | integer [ 1 .. 100 ] Default: 10 Number of payments to return per page. |
sending_host | string Optional parameter for filtering |
receiving_host | string Optional parameter for filtering with |
sending_account | string Optional parameter for filtering with |
receiving_account | string Optional parameter for filtering with |
sending_currency | string Optional parameter for filtering with |
receiving_currency | string Optional parameter for filtering with |
payment_id | string <uuid> Deprecated Optional parameter for filtering with |
payment_type | string Filters for payments based on the type of payment. Valid types are |
internal_id | string Optional parameter for filtering with internalId. |
sender_end_to_end_id | string Optional parameter for filtering with senderEndToEndId. |
connector_role | string Filters for payments based on the role of the responding connector. Valid roles are |
state | string Deprecated, should use states parameter. Returns payments in the specified state. The following options are valid: |
states | Array of strings Returns payments in the specified states. The following options are valid: |
before | string Filters for payments where the payments |
after | string Filters for payments where the payments |
range_field | string Designates the column name of the payments database table that is used for filtering payments before/after/between time stamps. The following options are valid: |
amount_range_field | string Designates the column name of the payments database table that is used for filtering payments greater/less/between amounts. For example, if you specify |
min_amount | number >= 0 Optional parameter for filtering with min sending/receiving amount. |
max_amount | number >= 0 Optional parameter for filtering with max sending/receiving amount. |
with_labels | Array of strings Returns payments with the specified labels. If you apply For example, the query, ?with_labels=string1,string2 returns payments with either "string1" OR "string2". |
without_labels | Array of strings Returns payments that do not have any of the specified labels. If you apply For example, the query, ?without_labels=string3,string4 returns payments that are not labeled with either "string3" OR "string4". If you apply both For example, the query, ?with_labels=string1&without_labels=string3 returns payments with "string1" but not payments with "string3". |
sort_field | string Default: "MODIFIED_AT" Sorts results according to the specified field. Valid options are |
sort_direction | string Default: "DESC" Sorts result according to the specified direction. Valid options are |
load_additional_details | boolean Default: true This parameter can be used to exclude additional info being returned for each payment object. Additional info which will be excluded if the flag set to false include user_info, ripplenet_info, execution_results and internal_info.labels |
payment_ids | Array of strings <uuid> List of paymentIds to search for |
Successful response
Bad request.
{- "first": true,
- "last": true,
- "number": 0,
- "numberOfElements": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0,
- "sort": [
- {
- "direction": "ASC",
- "property": "string",
- "ignoreCase": true,
- "nullHandling": "NULLS_FIRST",
- "ascending": true,
- "descending": false
}
], - "content": [
- {
- "payment_id": "d485f100-2af7-4e48-9ab1-3c7e28775691",
- "contract_hash": "ccb23bd87f13cc13b9d616a9723f76e112aeac8628b2082e0f8bf3b8c670b103",
- "payment_state": "COMPLETED",
- "modified_at": "2019-10-01T18:25:47.347Z",
- "contract": {
- "sender_end_to_end_id": "string",
- "created_at": "2019-10-01T18:18:13.665Z",
- "expires_at": "2019-10-01T18:55:22.824Z",
- "quote": {
- "quote_id": "2a547e56-4aac-4375-86a8-8b3e7014801d",
- "created_at": "2020-01-29T20:59:44.925Z",
- "expires_at": "2020-01-29T21:29:44.925Z",
- "type": "SENDER_AMOUNT",
- "price_guarantee": "FIRM",
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "amount": 1,
- "currency_code": "USD",
- "currency_code_filter": "EUR",
- "service_type": "string",
- "quote_elements": [
- {
- "quote_element_id": "259189e7-cb14-42e7-99ef-375f3285e356",
- "quote_element_type": "EXCHANGE",
- "quote_element_order": 1,
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "sending_amount": 1,
- "receiving_amount": 355,
- "sending_fee": 0,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": null,
- "base_currency_code": null,
- "counter_currency_code": null,
- "type": null
}, - "transfer_currency_code": "string"
}
], - "liquidity_warning": "string",
- "payment_method": "LOCAL_RAILS",
- "payment_method_fields": "{\"category_id\":\"bank\",\"required_originator_fields\":[{\"field_name\":\"sender_address\",\"field_label\":\"Sender address\"}]}",
- "payout_method_info": {
- "payout_method_name": "Cash Payout",
- "payout_method_category": "BOOK_TRANSFER",
- "description": "local rails",
- "estimated_time_to_credit": "3 days"
}
}, - "fee_info": {
- "nodes": {
- "property1": [
- {
- "fee_value": null,
- "fee_currency": null,
- "category": null,
- "fee_description": null
}
], - "property2": [
- {
- "fee_value": null,
- "fee_currency": null,
- "category": null,
- "fee_description": null
}
]
}, - "total_fees": [
- {
- "total_fee": 0,
- "fee_currency": "string"
}
]
}
}, - "ripplenet_info": [
- {
- "node_address": "rn.us.ny.new_york",
- "settlement_declined": [
- {
- "info": "L001",
- "created_at": "2018-04-06T20:33:35Z"
}
]
}
], - "execution_condition": "PrefixSha256Condition{subtypes=[ED25519-SHA-256], type=PREFIX-SHA-256, fingerprint=sfGGHCrkyaMsLQNB62w_4zarlPChHKm47JkXVQbs1z0, cost=132360}",
- "crypto_transaction_id": "4e05da26-7872-4a1f-b9b7-db7604757c37",
- "validator": "rn.us.ca.san_francisco",
- "payment_type": "REGULAR",
- "returns_payment_with_id": "a69b322f-faa4-4531-bcff-897e5839c130",
- "returned_by_payment_with_id": "c929a87b-81b8-4878-b21c-1aeaa4fe9276",
- "execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "liquidation_execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "liquidation_details": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "string",
- "failure_reason": "string",
- "failure_count": 0
}, - "push_forward_execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "accepted_at": "2019-10-01T18:25:47.347Z",
- "locked_at": "2019-10-01T18:25:47.347Z",
- "executed_at": "2019-10-01T18:25:47.347Z",
- "completed_at": "2019-10-01T18:25:47.347Z",
- "returned_at": "2019-10-01T18:25:47.347Z",
- "internal_info": {
- "connector_role": "RECEIVING",
- "labels": [
- {
- "label": "string"
}
], - "internal_id": "string"
}, - "user_info": [
- {
- "node_address": "rn.us.ca.san_francisco",
- "accepted": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "locked": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "lock_declined": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "retry_accept": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "retry_settlement": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "settlement": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "settlement_declined": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "failed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "executed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "completed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "forwarded": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "returned": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
]
}
]
}
]
}
Gets a payment by ID.
Successfully retrieved payment.
Bad request.
Payment not found.
{- "payment_id": "d485f100-2af7-4e48-9ab1-3c7e28775691",
- "contract_hash": "ccb23bd87f13cc13b9d616a9723f76e112aeac8628b2082e0f8bf3b8c670b103",
- "payment_state": "COMPLETED",
- "modified_at": "2019-10-01T18:25:47.347Z",
- "contract": {
- "sender_end_to_end_id": "string",
- "created_at": "2019-10-01T18:18:13.665Z",
- "expires_at": "2019-10-01T18:55:22.824Z",
- "quote": {
- "quote_id": "2a547e56-4aac-4375-86a8-8b3e7014801d",
- "created_at": "2020-01-29T20:59:44.925Z",
- "expires_at": "2020-01-29T21:29:44.925Z",
- "type": "SENDER_AMOUNT",
- "price_guarantee": "FIRM",
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "amount": 1,
- "currency_code": "USD",
- "currency_code_filter": "EUR",
- "service_type": "string",
- "quote_elements": [
- {
- "quote_element_id": "259189e7-cb14-42e7-99ef-375f3285e356",
- "quote_element_type": "EXCHANGE",
- "quote_element_order": 1,
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "sending_amount": 1,
- "receiving_amount": 355,
- "sending_fee": 0,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string"
}
], - "liquidity_warning": "string",
- "payment_method": "LOCAL_RAILS",
- "payment_method_fields": "{\"category_id\":\"bank\",\"required_originator_fields\":[{\"field_name\":\"sender_address\",\"field_label\":\"Sender address\"}]}",
- "payout_method_info": {
- "payout_method_name": "Cash Payout",
- "payout_method_category": "BOOK_TRANSFER",
- "description": "local rails",
- "estimated_time_to_credit": "3 days"
}
}, - "fee_info": {
- "nodes": {
- "property1": [
- {
- "fee_value": 0,
- "fee_currency": "string",
- "category": "string",
- "fee_description": "string"
}
], - "property2": [
- {
- "fee_value": 0,
- "fee_currency": "string",
- "category": "string",
- "fee_description": "string"
}
]
}, - "total_fees": [
- {
- "total_fee": 0,
- "fee_currency": "string"
}
]
}
}, - "ripplenet_info": [
- {
- "node_address": "rn.us.ny.new_york",
- "settlement_declined": [
- {
- "info": "L001",
- "created_at": "2018-04-06T20:33:35Z"
}
]
}
], - "execution_condition": "PrefixSha256Condition{subtypes=[ED25519-SHA-256], type=PREFIX-SHA-256, fingerprint=sfGGHCrkyaMsLQNB62w_4zarlPChHKm47JkXVQbs1z0, cost=132360}",
- "crypto_transaction_id": "4e05da26-7872-4a1f-b9b7-db7604757c37",
- "validator": "rn.us.ca.san_francisco",
- "payment_type": "REGULAR",
- "returns_payment_with_id": "a69b322f-faa4-4531-bcff-897e5839c130",
- "returned_by_payment_with_id": "c929a87b-81b8-4878-b21c-1aeaa4fe9276",
- "execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "liquidation_execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "liquidation_details": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "string",
- "failure_reason": "string",
- "failure_count": 0
}, - "push_forward_execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "accepted_at": "2019-10-01T18:25:47.347Z",
- "locked_at": "2019-10-01T18:25:47.347Z",
- "executed_at": "2019-10-01T18:25:47.347Z",
- "completed_at": "2019-10-01T18:25:47.347Z",
- "returned_at": "2019-10-01T18:25:47.347Z",
- "internal_info": {
- "connector_role": "RECEIVING",
- "labels": [
- {
- "label": "string"
}
], - "internal_id": "string"
}, - "user_info": [
- {
- "node_address": "rn.us.ca.san_francisco",
- "accepted": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "locked": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "lock_declined": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "retry_accept": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "retry_settlement": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "settlement": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "settlement_declined": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "failed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "executed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "completed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "forwarded": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "returned": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
]
}
]
}
Locks a payment. The beneficiary and all intermediary institutions agree to proceed with the payment by making successful Lock Payment requests. When the payment is still in a partially LOCKED
state, the beneficiary and all intermediary institutions who have not locked, can Reject lock payment or .
Once fully LOCKED
, the originating institution can either or Settle payment. If the originating institution sends a Settle payment request, one of three things happens: (1) Successful payments move to the PREPARED
state, (2) payments with insufficient liquidity automatically move to state SETTLEMENT_DECLINED
, or (3) payments that are not settled before the crypto_transaction_id
expires move to the FAILED
state.
Note: Currently, when making a Create quote to return payment to an xVia account on an xCurrent ledger, the xCurrent user must lock and complete the payment. This means that the xCurrent user takes all action on the return: Get and Accept Quote, Lock, Settle, and Complete payment.
Successfully locked payment.
Bad request.
Payment not found.
{- "internal_id": "string",
- "user_info": { }
}
{- "payment_id": "d485f100-2af7-4e48-9ab1-3c7e28775691",
- "contract_hash": "ccb23bd87f13cc13b9d616a9723f76e112aeac8628b2082e0f8bf3b8c670b103",
- "payment_state": "COMPLETED",
- "modified_at": "2019-10-01T18:25:47.347Z",
- "contract": {
- "sender_end_to_end_id": "string",
- "created_at": "2019-10-01T18:18:13.665Z",
- "expires_at": "2019-10-01T18:55:22.824Z",
- "quote": {
- "quote_id": "2a547e56-4aac-4375-86a8-8b3e7014801d",
- "created_at": "2020-01-29T20:59:44.925Z",
- "expires_at": "2020-01-29T21:29:44.925Z",
- "type": "SENDER_AMOUNT",
- "price_guarantee": "FIRM",
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "amount": 1,
- "currency_code": "USD",
- "currency_code_filter": "EUR",
- "service_type": "string",
- "quote_elements": [
- {
- "quote_element_id": "259189e7-cb14-42e7-99ef-375f3285e356",
- "quote_element_type": "EXCHANGE",
- "quote_element_order": 1,
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "sending_amount": 1,
- "receiving_amount": 355,
- "sending_fee": 0,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string"
}
], - "liquidity_warning": "string",
- "payment_method": "LOCAL_RAILS",
- "payment_method_fields": "{\"category_id\":\"bank\",\"required_originator_fields\":[{\"field_name\":\"sender_address\",\"field_label\":\"Sender address\"}]}",
- "payout_method_info": {
- "payout_method_name": "Cash Payout",
- "payout_method_category": "BOOK_TRANSFER",
- "description": "local rails",
- "estimated_time_to_credit": "3 days"
}
}, - "fee_info": {
- "nodes": {
- "property1": [
- {
- "fee_value": 0,
- "fee_currency": "string",
- "category": "string",
- "fee_description": "string"
}
], - "property2": [
- {
- "fee_value": 0,
- "fee_currency": "string",
- "category": "string",
- "fee_description": "string"
}
]
}, - "total_fees": [
- {
- "total_fee": 0,
- "fee_currency": "string"
}
]
}
}, - "ripplenet_info": [
- {
- "node_address": "rn.us.ny.new_york",
- "settlement_declined": [
- {
- "info": "L001",
- "created_at": "2018-04-06T20:33:35Z"
}
]
}
], - "execution_condition": "PrefixSha256Condition{subtypes=[ED25519-SHA-256], type=PREFIX-SHA-256, fingerprint=sfGGHCrkyaMsLQNB62w_4zarlPChHKm47JkXVQbs1z0, cost=132360}",
- "crypto_transaction_id": "4e05da26-7872-4a1f-b9b7-db7604757c37",
- "validator": "rn.us.ca.san_francisco",
- "payment_type": "REGULAR",
- "returns_payment_with_id": "a69b322f-faa4-4531-bcff-897e5839c130",
- "returned_by_payment_with_id": "c929a87b-81b8-4878-b21c-1aeaa4fe9276",
- "execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "liquidation_execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "liquidation_details": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "string",
- "failure_reason": "string",
- "failure_count": 0
}, - "push_forward_execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "accepted_at": "2019-10-01T18:25:47.347Z",
- "locked_at": "2019-10-01T18:25:47.347Z",
- "executed_at": "2019-10-01T18:25:47.347Z",
- "completed_at": "2019-10-01T18:25:47.347Z",
- "returned_at": "2019-10-01T18:25:47.347Z",
- "internal_info": {
- "connector_role": "RECEIVING",
- "labels": [
- {
- "label": "string"
}
], - "internal_id": "string"
}, - "user_info": [
- {
- "node_address": "rn.us.ca.san_francisco",
- "accepted": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "locked": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "lock_declined": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "retry_accept": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "retry_settlement": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "settlement": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "settlement_declined": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "failed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "executed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "completed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "forwarded": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "returned": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
]
}
]
}
Rejects a payment from being locked. This temporarily stops the payment and keeps it in a recoverable state so that [user_info][] can be corrected. If the payment is incorrect for reasons outside of the user_info
object, use Fail payment.
After a payment has been created by an Accept quote request, the beneficiary or an intermediary can choose to reject the payment, rather than Lock payment, with corrections to user_info
in the reasons array. A rejected payment moves the payment state to LOCK_DECLINED
from which it can be recovered by the originating institution with a Retry accept payment request.
If any one institution in the payment chain is configured to auto-fail, the payment automatically fails when the payment is rejected, moving to the FAILED
state rather than the LOCK_DECLINED
state.
Successfully rejected the request to lock a payment.
Bad request.
Payment not found.
{- "reasons": {
- "type": "RECEIVER_DATA_VALIDATION",
- "code": "AC03",
- "reason": "Creditor account number invalid or missing"
}
}
{- "payment_id": "d485f100-2af7-4e48-9ab1-3c7e28775691",
- "contract_hash": "ccb23bd87f13cc13b9d616a9723f76e112aeac8628b2082e0f8bf3b8c670b103",
- "payment_state": "COMPLETED",
- "modified_at": "2019-10-01T18:25:47.347Z",
- "contract": {
- "sender_end_to_end_id": "string",
- "created_at": "2019-10-01T18:18:13.665Z",
- "expires_at": "2019-10-01T18:55:22.824Z",
- "quote": {
- "quote_id": "2a547e56-4aac-4375-86a8-8b3e7014801d",
- "created_at": "2020-01-29T20:59:44.925Z",
- "expires_at": "2020-01-29T21:29:44.925Z",
- "type": "SENDER_AMOUNT",
- "price_guarantee": "FIRM",
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "amount": 1,
- "currency_code": "USD",
- "currency_code_filter": "EUR",
- "service_type": "string",
- "quote_elements": [
- {
- "quote_element_id": "259189e7-cb14-42e7-99ef-375f3285e356",
- "quote_element_type": "EXCHANGE",
- "quote_element_order": 1,
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "sending_amount": 1,
- "receiving_amount": 355,
- "sending_fee": 0,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string"
}
], - "liquidity_warning": "string",
- "payment_method": "LOCAL_RAILS",
- "payment_method_fields": "{\"category_id\":\"bank\",\"required_originator_fields\":[{\"field_name\":\"sender_address\",\"field_label\":\"Sender address\"}]}",
- "payout_method_info": {
- "payout_method_name": "Cash Payout",
- "payout_method_category": "BOOK_TRANSFER",
- "description": "local rails",
- "estimated_time_to_credit": "3 days"
}
}, - "fee_info": {
- "nodes": {
- "property1": [
- {
- "fee_value": 0,
- "fee_currency": "string",
- "category": "string",
- "fee_description": "string"
}
], - "property2": [
- {
- "fee_value": 0,
- "fee_currency": "string",
- "category": "string",
- "fee_description": "string"
}
]
}, - "total_fees": [
- {
- "total_fee": 0,
- "fee_currency": "string"
}
]
}
}, - "ripplenet_info": [
- {
- "node_address": "rn.us.ny.new_york",
- "settlement_declined": [
- {
- "info": "L001",
- "created_at": "2018-04-06T20:33:35Z"
}
]
}
], - "execution_condition": "PrefixSha256Condition{subtypes=[ED25519-SHA-256], type=PREFIX-SHA-256, fingerprint=sfGGHCrkyaMsLQNB62w_4zarlPChHKm47JkXVQbs1z0, cost=132360}",
- "crypto_transaction_id": "4e05da26-7872-4a1f-b9b7-db7604757c37",
- "validator": "rn.us.ca.san_francisco",
- "payment_type": "REGULAR",
- "returns_payment_with_id": "a69b322f-faa4-4531-bcff-897e5839c130",
- "returned_by_payment_with_id": "c929a87b-81b8-4878-b21c-1aeaa4fe9276",
- "execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "liquidation_execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "liquidation_details": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "string",
- "failure_reason": "string",
- "failure_count": 0
}, - "push_forward_execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "accepted_at": "2019-10-01T18:25:47.347Z",
- "locked_at": "2019-10-01T18:25:47.347Z",
- "executed_at": "2019-10-01T18:25:47.347Z",
- "completed_at": "2019-10-01T18:25:47.347Z",
- "returned_at": "2019-10-01T18:25:47.347Z",
- "internal_info": {
- "connector_role": "RECEIVING",
- "labels": [
- {
- "label": "string"
}
], - "internal_id": "string"
}, - "user_info": [
- {
- "node_address": "rn.us.ca.san_francisco",
- "accepted": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "locked": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "lock_declined": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "retry_accept": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "retry_settlement": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "settlement": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "settlement_declined": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "failed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "executed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "completed": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "forwarded": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
], - "returned": [
- {
- "json": { },
- "created_at": "2019-08-24T14:15:22Z",
- "subState": "EXECUTING"
}
]
}
]
}
Returns a rejected payment from the LOCK_DECLINED
state to the ACCEPTED
state. The payment sender must include repaired [user_info][] in the request body.
Successfully resubmitted payment for locking.
Bad request.
Payment not found.
{- "user_info": {
- "SF ACCEPTED": "Payment to NY",
- "last_name": "Gonzalez",
- "first_name": "Elle"
}
}
{- "payment_id": "d485f100-2af7-4e48-9ab1-3c7e28775691",
- "contract_hash": "ccb23bd87f13cc13b9d616a9723f76e112aeac8628b2082e0f8bf3b8c670b103",
- "payment_state": "COMPLETED",
- "modified_at": "2019-10-01T18:25:47.347Z",
- "contract": {
- "sender_end_to_end_id": "string",
- "created_at": "2019-10-01T18:18:13.665Z",
- "expires_at": "2019-10-01T18:55:22.824Z",
- "quote": {
- "quote_id": "2a547e56-4aac-4375-86a8-8b3e7014801d",
- "created_at": "2020-01-29T20:59:44.925Z",
- "expires_at": "2020-01-29T21:29:44.925Z",
- "type": "SENDER_AMOUNT",
- "price_guarantee": "FIRM",
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "amount": 1,
- "currency_code": "USD",
- "currency_code_filter": "EUR",
- "service_type": "string",
- "quote_elements": [
- {
- "quote_element_id": "259189e7-cb14-42e7-99ef-375f3285e356",
- "quote_element_type": "EXCHANGE",
- "quote_element_order": 1,
- "sender_address": "sf@rn.us.ca.san_francisco",
- "receiver_address": "sf_gbp@rn.us.ca.san_francisco",
- "sending_amount": 1,
- "receiving_amount": 355,
- "sending_fee": 0,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string"
}
], - "liquidity_warning": "string",
- "payment_method": "LOCAL_RAILS",
- "payment_method_fields": "{\"category_id\":\"bank\",\"required_originator_fields\":[{\"field_name\":\"sender_address\",\"field_label\":\"Sender address\"}]}",
- "payout_method_info": {
- "payout_method_name": "Cash Payout",
- "payout_method_category": "BOOK_TRANSFER",
- "description": "local rails",
- "estimated_time_to_credit": "3 days"
}
}, - "fee_info": {
- "nodes": {
- "property1": [
- {
- "fee_value": 0,
- "fee_currency": "string",
- "category": "string",
- "fee_description": "string"
}
], - "property2": [
- {
- "fee_value": 0,
- "fee_currency": "string",
- "category": "string",
- "fee_description": "string"
}
]
}, - "total_fees": [
- {
- "total_fee": 0,
- "fee_currency": "string"
}
]
}
}, - "ripplenet_info": [
- {
- "node_address": "rn.us.ny.new_york",
- "settlement_declined": [
- {
- "info": "L001",
- "created_at": "2018-04-06T20:33:35Z"
}
]
}
], - "execution_condition": "PrefixSha256Condition{subtypes=[ED25519-SHA-256], type=PREFIX-SHA-256, fingerprint=sfGGHCrkyaMsLQNB62w_4zarlPChHKm47JkXVQbs1z0, cost=132360}",
- "crypto_transaction_id": "4e05da26-7872-4a1f-b9b7-db7604757c37",
- "validator": "rn.us.ca.san_francisco",
- "payment_type": "REGULAR",
- "returns_payment_with_id": "a69b322f-faa4-4531-bcff-897e5839c130",
- "returned_by_payment_with_id": "c929a87b-81b8-4878-b21c-1aeaa4fe9276",
- "execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2,
- "transaction_hash": 5.5467794184785867e+76,
- "venue_id": "nz7RpAujYgnQtjEM",
- "fiat_adjusted_value": 0.02,
- "odl_payment_id": "string"
}
], - "liquidation_execution_results": [
- {
- "execution_result_id": "06f6d4e2-3523-4d17-92fd-53192a06207f",
- "execution_timestamp": "2019-10-01T18:24:29.867Z",
- "execution_result_type": "TRANSFER",
- "execution_result_order": 1,
- "sender_address": "trans_usd_sf@rn.us.ca.san_francisco",
- "receiver_address": "conct_usd_sf@rn.us.ca.san_francisco",
- "sending_amount": 498,
- "receiving_amount": 498,
- "sending_fee": 2,
- "receiving_fee": 0,
- "sending_currency_code": "USD",
- "receiving_currency_code": "GBP",
- "fx_rate": {
- "rate": 3.25,
- "base_currency_code": "string",
- "counter_currency_code": "string",
- "type": "string"
}, - "transfer_currency_code": "string",
- "intermediary_delta": 0.2,
- "incentive_type": "firm",
- "incentive_value": 0.2