Skip to main content

VirtualInstrumentEvent

Event for a change of a virtual instrument: the instrument was created, or its status changed (for example it was closed). The content is the instrument as it is after the change; its shape depends on instrumentType.

idstringrequired

Event identifier.

Example: 7c2a9f10-3b4e-4d1a-9f6e-1a2b3c4d5e6f
timestampstring<date-time>required

Represents RFC 3339, section 5.6 date-time.

Example: 2021-07-15T17:54:12Z
eventTypestringrequired

Possible values: [VIRTUAL_INSTRUMENT_CREATED, VIRTUAL_INSTRUMENT_UPDATED]

Example: VIRTUAL_INSTRUMENT_UPDATED
owner object

Reference to customer object. Optionally can hold external id for easier cross reference of the customer representation in external system.

idstringrequired

Customer id.

Example: 12345
externalIdstring

External id of the customer.

Example: 55551111
links object[]required
  • Array [
  • relstringrequired

    Resource reference semantic.

    Possible values: [self, related, urn:x-skrill:payment-redirect]

    hrefstring<uri>required

    Resource link.

    methodstring

    HTTP Method of accessing the linked resource.

    Possible values: [GET, POST]

    Default value: GET
    Example: GET
  • ]
  • content objectrequired

    The virtual instrument a VirtualInstrumentEvent is about. The bank identifiers depend on the instrument type: routing and account number for a US bank account, sort code and account number for a UK bank account, IBAN and BIC for an IBAN or SEPA bank account.

    idstringrequired

    Virtual instrument unique identifier.

    Possible values: <= 50 characters

    Example: acde070d-8c4c-4f0d-9d8a-162843c10335
    accountIdstringrequired

    Id of the balance account the virtual instrument is linked to.

    Example: 1100000002056777
    instrumentTypeVirtualInstrumentType (string)required

    Virtual payment instrument type.

    • SEPA_BANK_ACCOUNT - alias to IBAN. Deprecated!
    • UK_BANK_ACCOUNT - UK bank account number and sort code for UK domestic payments.
    • US_BANK_ACCOUNT - US bank account and routing number for US domestic payments
    • IBAN_BANK_ACCOUNT - IBAN used for domestic and international payments in relevant countries.

    Possible values: [SEPA_BANK_ACCOUNT, UK_BANK_ACCOUNT, US_BANK_ACCOUNT, IBAN_BANK_ACCOUNT]

    Example: US_BANK_ACCOUNT
    statusstringrequired

    Status of the virtual instrument.

    Possible values: [ACTIVE, CLOSED]

    Example: ACTIVE
    statusReasonstring

    Why the instrument has its status, for example the reason it was closed.

    Example: Close Account
    isPrimarybooleanrequired

    When true, this instrument is the primary one for its instrument type on the linked balance account. Payments that do not name an instrument use the primary instrument of the required type.

    Example: true
    VirtualInstrumentEvent
    {
    "id": "7c2a9f10-3b4e-4d1a-9f6e-1a2b3c4d5e6f",
    "timestamp": "2021-07-15T17:54:12Z",
    "eventType": "VIRTUAL_INSTRUMENT_UPDATED",
    "owner": {
    "id": "12345",
    "externalId": "55551111"
    },
    "links": [
    {
    "rel": "self",
    "href": "string",
    "method": "GET"
    }
    ],
    "content": {
    "id": "acde070d-8c4c-4f0d-9d8a-162843c10335",
    "accountId": "1100000002056777",
    "instrumentType": "US_BANK_ACCOUNT",
    "status": "ACTIVE",
    "statusReason": "Close Account",
    "isPrimary": true
    }
    }