curl --request POST \
--url https://production.hifibridge.com/v2/wallets/{walletId}/offers/{offerId}/reject \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "RECEIVED",
"amount": "<string>",
"currency": "usdcx",
"source": {
"party": "<string>"
},
"destination": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userWalletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"party": "<string>"
},
"creationTransactionHash": "<string>",
"executionTransactionHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}Reject a Canton offer. The offer must be in RECEIVED status and not expired. Upon rejection, the offer status will change to PENDING and a job will be created to process the rejection.
curl --request POST \
--url https://production.hifibridge.com/v2/wallets/{walletId}/offers/{offerId}/reject \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "RECEIVED",
"amount": "<string>",
"currency": "usdcx",
"source": {
"party": "<string>"
},
"destination": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userWalletId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"party": "<string>"
},
"creationTransactionHash": "<string>",
"executionTransactionHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the wallet
ID of the Canton offer
Success
Unique identifier for the Canton offer
Current status of the offer
RECEIVED, PENDING, ACCEPTED, REJECTED The amount of the offer
The currency of the offer
usdcx Show child attributes
Show child attributes
The transaction hash when the offer was created
The transaction hash when the offer was accepted or rejected (null if not yet executed)
Timestamp when the offer was created
Timestamp when the offer was last updated
Timestamp when the offer expires (null if no expiration)