ورود | ثبت نام
  • FA
  • EN

API Docs

PUT /api/v1/payments/withdrawal/{payment}

Updates the is_done status for a withdrawal payment record.


Permissions

PermissionDescription
payments.view_allAccess payments administration
payments.update_withdrawalUpdate withdrawal completion status

Request Body Parameters

NameTypeRequiredDescriptionExample
is_donebooleanYesSet withdrawal completion statustrue
descriptionstringNoUpdate withdrawal description"Updated note"

Request Example

{
  "is_done": true,
  "description": "Updated note"
}

Response

200 OK

Returns the updated withdrawal payment resource.

{
  "data": {
    "id": 123,
    "user_id": 10,
    "type": "withdrawal",
    "amount": 150.00,
    "description": null,
    "payable_type": null,
    "payable_id": null,
    "meta": null,
    "is_done": true,
    "created_at": "2026-01-01T00:00:00.000000Z"
  }
}

Error Responses

StatusDescriptionReference
404Withdrawal not foundN/A
422Validation errorValidation error
401UnauthorizedAuthentication error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutubeTelegramGitHub