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
- USDC
- Ethereum
- PolygonPos
]
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
]
Positive decimal number in string format
Possible values: non-empty
and <= 38 characters
, Value must match regular expression ^[+]?([.]\d+|\d+[.]?\d*)$
10.1
Cryptocurrency code:
BTC
Account-based network:
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
]
Crypto currency 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.
Unique identifier in user's system.
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
- USDC
- Bitcoin
- Lightning
- Ethereum
- PolygonPos
- OffNetwork
Array [
Array [
- EQ (Equals)
- LTEQ (Less Than Or Equals)
- GTEQ (Greater Than Or Equals)
]
- BTC
- USDC
- Ethereum
- PolygonPos
]
Triggerobjectrequired
oneOf
Possible values: [DepositDestinationTrigger
]
Positive decimal number in string format
Possible values: non-empty
and <= 38 characters
, Value must match regular expression ^[+]?([.]\d+|\d+[.]?\d*)$
10.1
Cryptocurrency code:
BTC
Payments network:
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
A destination address to transfer crypto currency
Address for transfer
bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4
DepositAddress
objectrequired
A destination address to transfer crypto currency
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
]
Positive decimal number in string format
Possible values: non-empty
and <= 38 characters
, Value must match regular expression ^[+]?([.]\d+|\d+[.]?\d*)$
10.1
Cryptocurrency code:
BTC
Account-based network:
Ethereum
DestinationAddress
object
required
A destination address to transfer crypto currency
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": {}
}
}