Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Transfer record ID.
curl --request POST \
--url https://production.hifibridge.com/v2/offramps/{transferId}/quote/accept \
--header 'Authorization: Bearer <token>'
{
"transferType": "OFFRAMP",
"transferDetails": {
"id": "173c1e89-7bbd-4352-9e5d-73807681510d",
"requestId": "201ca31d-700f-4c76-ac4b-961623acbb79",
"createdAt": "2025-02-03T16:12:04.331652+00:00",
"updatedAt": "2025-02-03T16:12:08.732+00:00",
"status": "CREATED",
"failedReason": "",
"source": {
"userId": "7d54a7a7-dac3-4313-8b09-27fa4b7fd1ee",
"chain": "POLYGON_MAINNET",
"currency": "usdc",
"amount": 10,
"walletAddress": "0x366B759bAA089Fa57a08edd3F2E028E86b97f8D6"
},
"destination": {
"userId": "7d54a7a7-dac3-4313-8b09-27fa4b7fd1ee",
"amount": 0,
"currency": "mwk",
"accountId": "12c1c496-8f57-41a1-8292-dbe6547791ce"
},
"receipt": {
"transactionHash": null,
"uetr": null
},
"developerFee": {
"feeId": "9b354c37-d20d-4d94-bcd8-c852353ca406",
"feeType": "FIX",
"feeAmount": 0.5,
"feePercent": 0,
"status": "CREATED",
"transactionHash": null,
"failedReason": null
},
"quoteInformation": {
"sendGross": {
"amount": "10.00",
"currency": "usdc"
},
"sendNet": {
"amount": "10.00",
"currency": "usdc"
},
"receiveGross": {
"amount": "32500.00",
"currency": "mwk"
},
"receiveNet": {
"amount": "32500.00",
"currency": "mwk"
},
"rate": "3250.0000",
"expiresAt": "2025-02-03T16:22:08.668Z"
}
}
}
Accept and initiate a quote-based offramp.
For example, an offramp from crypto currency usdc
to fiat currency brl
is quote-based so its initial status will be OPEN_QUOTE
. After reviewing the offramp conversion rate quote information, you can accept it to initialize the offramp.
curl --request POST \
--url https://production.hifibridge.com/v2/offramps/{transferId}/quote/accept \
--header 'Authorization: Bearer <token>'
{
"transferType": "OFFRAMP",
"transferDetails": {
"id": "173c1e89-7bbd-4352-9e5d-73807681510d",
"requestId": "201ca31d-700f-4c76-ac4b-961623acbb79",
"createdAt": "2025-02-03T16:12:04.331652+00:00",
"updatedAt": "2025-02-03T16:12:08.732+00:00",
"status": "CREATED",
"failedReason": "",
"source": {
"userId": "7d54a7a7-dac3-4313-8b09-27fa4b7fd1ee",
"chain": "POLYGON_MAINNET",
"currency": "usdc",
"amount": 10,
"walletAddress": "0x366B759bAA089Fa57a08edd3F2E028E86b97f8D6"
},
"destination": {
"userId": "7d54a7a7-dac3-4313-8b09-27fa4b7fd1ee",
"amount": 0,
"currency": "mwk",
"accountId": "12c1c496-8f57-41a1-8292-dbe6547791ce"
},
"receipt": {
"transactionHash": null,
"uetr": null
},
"developerFee": {
"feeId": "9b354c37-d20d-4d94-bcd8-c852353ca406",
"feeType": "FIX",
"feeAmount": 0.5,
"feePercent": 0,
"status": "CREATED",
"transactionHash": null,
"failedReason": null
},
"quoteInformation": {
"sendGross": {
"amount": "10.00",
"currency": "usdc"
},
"sendNet": {
"amount": "10.00",
"currency": "usdc"
},
"receiveGross": {
"amount": "32500.00",
"currency": "mwk"
},
"receiveNet": {
"amount": "32500.00",
"currency": "mwk"
},
"rate": "3250.0000",
"expiresAt": "2025-02-03T16:22:08.668Z"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Transfer record ID.