Skip to main content
PUT
/
wallets
/
{walletId}
/
offers
/
{offerId}
/
reject
Reject Offer
curl --request PUT \
  --url https://api.dfns.io/wallets/{walletId}/offers/{offerId}/reject \
  --header 'Authorization: Bearer <token>' \
  --header 'X-DFNS-USERACTION: <api-key>'
{
  "id": "offer-3ugfu-o8duj-vqu770ckmg7ilhp4",
  "orgId": "or-30tnh-itmjs-s235s5ontr3r23h2",
  "walletId": "wa-5pfuu-9euek-h0odgb6snva8ph3k",
  "network": "Algorand",
  "kind": "Native",
  "metadata": {
    "asset": {
      "symbol": "<string>",
      "decimals": 123,
      "verified": true,
      "quotes": {
        "EUR": 123,
        "USD": 123
      }
    }
  },
  "txHash": "<string>",
  "status": "Pending",
  "from": "<string>",
  "to": "<string>",
  "value": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "expiresAt": "2023-11-07T05:31:56Z"
}

Authentication

✅ Organization User (CustomerEmployee)
✅ Delegated User (EndUser)
✅ Service Account

Required Permissions

Wallets:Offers:Settle: Always required.

Authorizations

Authorization
string
header
required

Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows

X-DFNS-USERACTION
string
header
required

User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows

Path Parameters

walletId
string
required

Wallet id.

Maximum length: 64
offerId
string
required

Offer id.

Maximum length: 64

Response

200 - application/json

Success

id
string
required

Offer id.

Maximum length: 64
Example:

"offer-3ugfu-o8duj-vqu770ckmg7ilhp4"

orgId
string
required

Organization id.

Maximum length: 64
Example:

"or-30tnh-itmjs-s235s5ontr3r23h2"

walletId
string
required

Wallet id.

Maximum length: 64
Example:

"wa-5pfuu-9euek-h0odgb6snva8ph3k"

network
enum<string>
required
Available options:
Algorand,
AlgorandTestnet,
Aptos,
AptosTestnet,
ArbitrumOne,
ArbitrumSepolia,
AvalancheC,
AvalancheCFuji,
BabylonGenesis,
BabylonTestnet5,
Base,
BaseSepolia,
Berachain,
BerachainBepolia,
Bitcoin,
BitcoinSignet,
BitcoinTestnet3,
BitcoinCash,
Bob,
BobSepolia,
Bsc,
BscTestnet,
Canton,
CantonTestnet,
Cardano,
CardanoPreprod,
Celo,
CeloAlfajores,
Codex,
CodexSepolia,
CosmosHub4,
CosmosIcsTestnet,
Dogecoin,
Ethereum,
EthereumGoerli,
EthereumSepolia,
EthereumHolesky,
EthereumHoodi,
FantomOpera,
FantomTestnet,
FlareC,
FlareCCoston2,
Hedera,
HederaTestnet,
Ink,
InkSepolia,
InternetComputer,
Ion,
IonTestnet,
Iota,
IotaTestnet,
KadenaTestnet4,
Kadena,
Kaspa,
Kusama,
Litecoin,
Near,
NearTestnet,
Optimism,
OptimismSepolia,
Origyn,
Plume,
PlumeSepolia,
Polkadot,
Polygon,
PolygonAmoy,
Polymesh,
PolymeshTestnet,
Race,
RaceSepolia,
SeiAtlantic2,
SeiPacific1,
Solana,
SolanaDevnet,
Stellar,
StellarTestnet,
Sui,
SuiTestnet,
Tsc,
TscTestnet1,
Tezos,
TezosGhostnet,
Ton,
TonTestnet,
Tron,
TronNile,
Westend,
XrpLedger,
XrpLedgerTestnet
kind
enum<string>
required
Available options:
Native,
Aip21,
Asa,
Coin,
Erc20,
Erc721,
Asset,
Hip17,
Hts,
Sep41,
Spl,
Spl2022,
Tep74,
Trc10,
Trc20,
Trc721
metadata
object
required
txHash
string
required
status
enum<string>
required
Available options:
Pending,
Accepted,
Rejected,
Expired
from
string
required
to
string
required
value
string
required
timestamp
string<date-time>
required
expiresAt
string<date-time>
I