Skip to main content
PUT
/
{walletId}
/
asset
/
{assetId}
/
status
Update Asset Status
curl --request PUT \
  --url https://gateway.varchev.com/wallet/{walletId}/asset/{assetId}/status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'tenantId: <tenantid>' \
  --data '
{
  "instance": "",
  "allowedOperations": "",
  "purpose": "purpose",
  "instanceBase": "",
  "id": {
    "auditData": {
      "createdAt": "2000-01-23T04:56:07.000Z",
      "archivedAt": "2000-01-23T04:56:07.000Z",
      "deletedAt": "2000-01-23T04:56:07.000Z",
      "updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
      "createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
      "deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
      "updatedAt": "2000-01-23T04:56:07.000Z"
    },
    "tenantId": "tenantId",
    "entityId": "",
    "ownerId": "ownerId"
  },
  "type": "currency",
  "status": "new",
  "availableBalance": {
    "balanceType": "current",
    "name": "name",
    "instanceRef": {
      "refferTo": ""
    },
    "value": "value"
  }
}
'
{
  "walletId": "walletId",
  "assets": {
    "instance": "",
    "allowedOperations": "",
    "purpose": "purpose",
    "instanceBase": "",
    "id": {
      "auditData": {
        "createdAt": "2000-01-23T04:56:07.000Z",
        "archivedAt": "2000-01-23T04:56:07.000Z",
        "deletedAt": "2000-01-23T04:56:07.000Z",
        "updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
        "createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
        "deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
        "updatedAt": "2000-01-23T04:56:07.000Z"
      },
      "tenantId": "tenantId",
      "entityId": "",
      "ownerId": "ownerId"
    },
    "type": "currency",
    "status": "new",
    "availableBalance": {
      "balanceType": "current",
      "name": "name",
      "instanceRef": {
        "refferTo": ""
      },
      "value": "value"
    }
  },
  "tenantId": "tenantId"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

tenantId
string
required

Path Parameters

walletId
string
required
assetId
string
required

Body

application/json

Sample Payload

id
object
Example:
{
"auditData": {
"createdAt": "2000-01-23T04:56:07.000Z",
"archivedAt": "2000-01-23T04:56:07.000Z",
"deletedAt": "2000-01-23T04:56:07.000Z",
"updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"updatedAt": "2000-01-23T04:56:07.000Z"
},
"tenantId": "tenantId",
"entityId": "",
"ownerId": "ownerId"
}
purpose
string
type
enum<string>

type of asset that can be storred in the walled

Available options:
currency,
cryptocurrency,
bank-card,
transport-card,
id-card,
qr-code,
linked_account,
linked_external_account
instance
object
  • Option 1
  • Option 2
Example:
{
"euro": {
"$ref": "#/components/examples/euro_currency"
}
}
instanceBase
object
  • Option 1
  • Option 2
Example:
{
"euro_cent": {
"$ref": "#/components/examples/euro_cent_currency_alias"
}
}
status
enum<string>

wallet status in the asset

Available options:
new,
available,
pending,
sold,
verification,
verification_denied,
on_hold,
suspicious,
under_investigation,
dispute_started,
dispute_resolved,
sanctioned,
black_listed,
transferred,
close_requested,
closed
availableBalance
object
Example:
{
"balanceType": "current",
"name": "name",
"instanceRef": { "refferTo": "" },
"value": "value"
}
currentBalance
object
Example:
{
"balanceType": "current",
"name": "name",
"instanceRef": { "refferTo": "" },
"value": "value"
}
allowedOperations
object
  • Option 1
  • Option 2

Response

successful operation

walletId
string
tenantId
string
assets
object
Example:
{
"instance": "",
"allowedOperations": "",
"purpose": "purpose",
"instanceBase": "",
"id": {
"auditData": {
"createdAt": "2000-01-23T04:56:07.000Z",
"archivedAt": "2000-01-23T04:56:07.000Z",
"deletedAt": "2000-01-23T04:56:07.000Z",
"updatedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"createdBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"deletedBy": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"updatedAt": "2000-01-23T04:56:07.000Z"
},
"tenantId": "tenantId",
"entityId": "",
"ownerId": "ownerId"
},
"type": "currency",
"status": "new",
"availableBalance": {
"balanceType": "current",
"name": "name",
"instanceRef": { "refferTo": "" },
"value": "value"
}
}