# Accept Withdrawal Accept a withdrawal. This will execute the withdrawal and may not be reversible Endpoint: POST /v1/withdrawals/{withdrawal_id}/accept Version: 1.1.2 Security: OAuth2Flow ## Path parameters: - `id` (string, required) Withdrawal ID ## Header parameters: - `Authorization` (string) OAuth bearer token (see authentication flows) - `x-l2f-request-id` (string) Optional Unique ID per request, useful for fault resolution/diagnosis and audit. - `x-l2f-idempotency-id` (string) Unique ID used to safely retry an operation. See idempotency section for more details. - `x-signature` (string) Client signature to validate the provence of the API request. See signing section for more details. - `x-timestamp` (string) Current timestamp, represented AS unix epoch seconds. Mandatory when x-signature is provided. ## Response 200 fields (application/json): - `data` (object, required) - `data.id` (string) Unique Identifier for the withdrawal request - `data.status` (string) Status of the withdrawal. * REQUESTED - Withdrawal request is created and has passed validation. It must be accepted at which point it will be executed. * ACCEPTED - Withdrawal request has been accepted and is waiting execution. At this point it cannot be cancelled. * EXPIRED - Occurs when a withdrawal request was not accepted within a reasonable time frame. The request cannot be replayed from this state. * CANCELLED - Withdrawal request was cancelled. Only available prior to acceptance. The request cannot be replayed from this state. * CANCELLING - Withdrawal request is being cancelled. * EXECUTED - Withdrawal request has been executed, it is completed with all ledger entries performed. * REJECTED - Withdrawal request was rejected and cannot be executed. Enum: "REQUESTED", "REJECTED", "EXPIRED", "ACCEPTED", "EXECUTED", "CANCELLED", "CANCELLING" ## Response 400 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description ## Response 401 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description ## Response 404 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description ## Response 500 fields (application/json): - `errors` (array) Error List - `errors.code` (string) Layer2 Standard Error Code - `errors.description` (string) Error Description