Accept a swap offer V2
PATCH/v2/swaps/:Swap-Offer-Id/accept
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.
Request
Responses
- 200
- 202
- 400
- 401
- 403
- 409
- 410
- 422
- 429
- 500
- 503
Success Response (The swap trade has bee executed)
Accepted
Bad request
Unauthorized
Forbidden
Offer already accepted / A newer offer was created
Gone
Validation Error
Too Many Requests
Response Headers
The rate limit ceiling for the current time window. Envoy may include multiple limits and window metadata.
50, 50;w=1The number of requests remaining in the current rate limit window.
0The number of seconds until the current rate limit window resets.
1Indicates the request was rate limited by the Envoy proxy.
trueInternal Error
Maintenance or Service unavailable