SDigital2SDigital2
WithdrawalsId

Get withdrawal

Retrieve a withdrawal by ID

GET
/v1/withdrawals/{id}
AuthorizationBearer <token>

In: header

Path Parameters

idstring

UUID identifier

Formatuuid

Response Body

curl -X GET "https://api.sandbox.sdigital2.com/v1/withdrawals/3190d115-987f-402f-b558-0316d3a22ebd"
{
  "id": "1d59b344-ea39-4e1e-9360-c90486cd9b8e",
  "customerId": "1d59b344-ea39-4e1e-9360-c90486cd9b8e",
  "currency": "USDC",
  "amount": "100.123456",
  "chain": "ETHEREUM",
  "destinationWalletAddress": "0x4ccd8704afed37c11ac3e306cf5bcadeb7eb714c",
  "createdAt": "2023-01-01T00:00:00.000Z",
  "updatedAt": "2023-01-01T00:00:00.000Z",
  "status": "PENDING",
  "receipt": {
    "transactionHash": "0x04296a043deb9ea8027410eef77d01ff09205a37c8f5cb7027169aa91cfeb67b",
    "blockExplorerUrl": "https://etherscan.io/tx/0x04296a043deb9ea8027410eef77d01ff09205a37c8f5cb7027169aa91cfeb67b"
  }
}
{
  "status": 401,
  "title": "Unauthorized",
  "detail": "Authentication credentials are missing or invalid",
  "code": "UNAUTHORIZED",
  "instance": "/api/v1/transactions",
  "correlationId": "2065cb12-a9fe-42f9-8c75-d63257b3844a"
}
{
  "status": 403,
  "title": "Forbidden",
  "detail": "You do not have permission to access this resource",
  "code": "FORBIDDEN",
  "instance": "/api/v1/transactions",
  "correlationId": "2065cb12-a9fe-42f9-8c75-d63257b3844a"
}
{
  "status": 404,
  "title": "Not Found",
  "detail": "The requested resource could not be found",
  "code": "RESOURCE_NOT_FOUND",
  "instance": "/api/v1/transactions/f133bef1-226c-458a-b6d9-8312edb8d77a",
  "correlationId": "2065cb12-a9fe-42f9-8c75-d63257b3844a"
}
{
  "status": 422,
  "title": "Validation Error",
  "detail": "The request contains invalid data",
  "code": "VALIDATION_ERROR",
  "instance": "/api/v1/transactions",
  "correlationId": "2065cb12-a9fe-42f9-8c75-d63257b3844a",
  "errors": [
    {
      "detail": "sourceAmount must be a positive number",
      "pointer": "/sourceAmount"
    },
    {
      "detail": "destination.currency is required when providing sourceAmount",
      "pointer": "/destination/currency"
    }
  ]
}
{
  "status": 500,
  "title": "Internal Server Error",
  "detail": "An unexpected error occurred while processing your request",
  "code": "INTERNAL_SERVER_ERROR",
  "instance": "/api/v1/transactions",
  "correlationId": "2065cb12-a9fe-42f9-8c75-d63257b3844a"
}