Create a rule
POST/beta1/rule
Create a rule used to create automated responses to events.
Request
Header Parameters
Digitally signed JWT.
- application/json
Body
required
- DepositSourceTriggerInput
Array [
Array [
- EQ (Equals)
- LTEQ (Less Than Or Equals)
- GTEQ (Greater Than Or Equals)
]
- BTC/BTC_TEST
- USDC/USDC_TEST
- Ethereum/EthereumTestSepolia
- PolygonPos/PolygonTestAmoy
]
Array [
- SellActionInput
Array [
]
Array [
]
]
Triggerobjectrequired
oneOf
Possible values: [DepositSourceTriggerInput
]
Conditionsobject[]required
Conditions that trigger the rule.
AmountConditions
object[]required
Amount conditions for the rule.
Comparison operator for the field value:
Possible values: [EQ
, LTEQ
, GTEQ
]
Possible values: non-empty
and <= 38 characters
, Value must match regular expression ^[+]?([.]\d+|\d+[.]?\d*)$
10.1
Cryptocurrency (main/sandbox):
BTC
Account-based network (main/sandbox):
Ethereum
Address for transfer
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4
A unique ID which identifies the customer in the Business' internal system and in NOAH.
Possible values: non-empty
and <= 36 characters
550e8400-e29b-41d4-a716-446655440000
Actionsobject[]required
oneOf
Possible values: [SellActionInput
]
Cryptocurrency code or output reference.
../CryptoCurrency
CryptoAuthorizedAmount
objectrequired
Maximum amount that can be charged for this transaction.
Decimal or output reference.
../Amount
Operationsobject[]
Operations are applied to StepDecimal.Value
in the order they
appear in the array.
Possible values: [Add
, Sub
, Mul
]
Decimal or output reference.
../Value
FiatAmountobjectrequired
Amount sent to customer's payment method.
Decimal or output reference.
../Amount
Operationsobject[]
Operations are applied to StepDecimal.Value
in the order they
appear in the array.
Possible values: [Add
, Sub
, Mul
]
Decimal or output reference.
../Value
Unique identifier for the Form Session. Form Session allows ramping using provided form data.
A unique identifier used in the business system to store a reference for the transaction. This field allows businesses to track and manage transactions within their internal systems.
Possible values: non-empty
and <= 36 characters
2024-04-16T08:00:55Z
If True, a rule can be executed repeatedly. Default is False.
A string which must be unique each time a new transaction is created, like a UUID or operation sequence number. Request can be idempotently retried by using the same Nonce.
Possible values: non-empty
and <= 36 characters
dc879b38-494b-4de7-98a9-068703144328
Responses
- 200
- 400
- 401
- 500
- application/json
- Schema
- Example (from schema)
Schema
- DepositDestinationTrigger
- DepositSourceTrigger
- BTC/BTC_TEST
- USDC/USDC_TEST
- Bitcoin/BitcoinTest
- Lightning/LightningTest
- Ethereum/EthereumTestSepolia
- PolygonPos/PolygonTestAmoy
- OffNetwork/OffNetwork
Array [
Array [
- EQ (Equals)
- LTEQ (Less Than Or Equals)
- GTEQ (Greater Than Or Equals)
]
- BTC/BTC_TEST
- USDC/USDC_TEST
- Ethereum/EthereumTestSepolia
- PolygonPos/PolygonTestAmoy
]
Triggerobjectrequired
oneOf
Possible values: [DepositDestinationTrigger
]
Amount deposited
Possible values: non-empty
and <= 38 characters
, Value must match regular expression ^[+]?([.]\d+|\d+[.]?\d*)$
10.1
Cryptocurrency (main/sandbox):
BTC
Payments network (main/sandbox):
Bitcoin
A unique ID which identifies the customer in the Business' internal system and in NOAH.
Possible values: non-empty
and <= 36 characters
550e8400-e29b-41d4-a716-446655440000
RefundAddress
object
Address for refunds in case actions were not executed successfully.
Address for transfer
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4
DepositAddress
objectrequired
Address generated for the deposit trigger.
Address for transfer
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4
Possible values: [DepositSourceTrigger
]
Conditions
object[]required
Conditions that trigger the rule.
AmountConditions
object[]
required
Amount conditions for the rule.
Comparison operator for the field value:
Possible values: [EQ
, LTEQ
, GTEQ
]
Possible values: non-empty
and <= 38 characters
, Value must match regular expression ^[+]?([.]\d+|\d+[.]?\d*)$
10.1
Cryptocurrency (main/sandbox):
BTC
Account-based network (main/sandbox):
Ethereum
DestinationAddress
object
required
The destination address to which the crypto currency should be transferred.
Address for transfer
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4
Address for transfer
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4
A unique ID which identifies the customer in the Business' internal system and in NOAH.
Possible values: non-empty
and <= 36 characters
550e8400-e29b-41d4-a716-446655440000
{
"Trigger": {},
"ID": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
- application/json
- Schema
- Example (from schema)
Schema
- InvalidMessage
- Unexpected
- ResourceNotFound
- Unauthorized
- Forbidden
- InsufficientBalance
Array [
]
Type of error:
InvalidMessage
A unique reference that identifies the specific occurrence of the problem
Action taking place which resulted in error.
Details about the error.
Extensionsobject
Additional information about the error.
Details about invalid request properties.
Featuresobject
Details about the disabled feature flags
property name*
string[]
List of reasons
string
{
"Type": "InvalidMessage",
"Instance": "string",
"Action": "string",
"Detail": "string",
"Extensions": {
"Request": {},
"Features": {}
}
}
- application/json
- Schema
- Example (from schema)
Schema
- InvalidMessage
- Unexpected
- ResourceNotFound
- Unauthorized
- Forbidden
- InsufficientBalance
Array [
]
Type of error:
InvalidMessage
A unique reference that identifies the specific occurrence of the problem
Action taking place which resulted in error.
Details about the error.
Extensionsobject
Additional information about the error.
Details about invalid request properties.
Featuresobject
Details about the disabled feature flags
property name*
string[]
List of reasons
string
{
"Type": "InvalidMessage",
"Instance": "string",
"Action": "string",
"Detail": "string",
"Extensions": {
"Request": {},
"Features": {}
}
}
- application/json
- Schema
- Example (from schema)
Schema
- InvalidMessage
- Unexpected
- ResourceNotFound
- Unauthorized
- Forbidden
- InsufficientBalance
Array [
]
Type of error:
InvalidMessage
A unique reference that identifies the specific occurrence of the problem
Action taking place which resulted in error.
Details about the error.
Extensionsobject
Additional information about the error.
Details about invalid request properties.
Featuresobject
Details about the disabled feature flags
property name*
string[]
List of reasons
string
{
"Type": "InvalidMessage",
"Instance": "string",
"Action": "string",
"Detail": "string",
"Extensions": {
"Request": {},
"Features": {}
}
}