This endpoint enables the users to formally accept an existing swap offer. When sending a request, it must include the unique identifier of the swap offer the users wish to accept, thereby indicating their intention to proceed with the exchange under the conditions previously outlined. The endpoint is idempotent so in case of an unknown status code returned a retry to accept the swap should respond with the correct status.
Success Response (The swap trade has bee executed)
Accepted
Unauthorized
Forbidden
Not Allowed
Offer already accepted / A newer offer was created
Gone
Validation Error
Too Many Requests
Internal Error
Maintenance or Service unavailable
{- "data": {
- "id": "1ed55cc7-f413-69a4-88f6-5aa1a9244d15",
- "source_asset_id": 1,
- "target_asset_id": 2,
- "source_fiat_amount": "100.13",
- "source_asset_amount": "0.00000001",
- "target_asset_amount": "12.123",
- "tax_amount": "0.10",
- "time": "2023-01-01T12:00:00+00:00"
}
}