Accept Offer
Accepts an offer received on your wallet.
- HTTP request
- PUT /wallets/{walletId}/offers/{offerId}/accept
- Authorization requirements
-
Header Type Required Description Authorizationstring Yes Bearer token used to authenticate the request. See Authentication flows for instructions on generating this token. X-DFNS-USERACTIONstring Yes User action signature used to authorize change-inducing requests. See User Action Signing flows for instructions on generating this signature. - Path parameter
-
Parameter Type Required Description walletId string Yes ID of the wallet. Length: 1 to 64 characters. offerId string Yes ID of the offer. Length: 1 to 64 characters. - Request body
-
curl --request PUT \ --url https://api.digitalassets.ibm.com/wallets/{walletId}/offers/{offerId}/accept \ --header 'Authorization: Bearer <token>' \ --header 'X-DFNS-USERACTION: <api-key>' - Response
- 200: Success
Example response:
{ "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-04-14T20:41:28.715Z", "expiresAt": "2023-04-14T20:41:28.715Z", "memo": "<string>", "settlementTransactionId": "tx-583hu-sp2p7-slvb9nqpa3hd8bus", "dateSettled": "2023-04-14T20:41:28.715Z" }