Set Primary Virtual Instrument
PUT/v2/customers/:customerId/accounts/:accountId/virtual-instruments/:virtualInstrumentId/primary
Marks the virtual instrument as the primary one for its instrument type on the balance account. Payments that do not name an instrument use the primary instrument of the required type.
For each account and instrument type, exactly one active instrument is primary. Setting a new primary clears the previous primary of the same type on that account; instruments of other types keep their own primary. Setting the instrument that is already the primary succeeds and changes nothing.
Only an active instrument can be set as primary. A closed instrument is
rejected with DW-VIRTUAL-INSTRUMENT-NOT-ACTIVE.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 500
- 503
OK. Returns the virtual instrument with the updated primary flag.
Bad request
Unauthorized
Forbidden
Not found. Returned when the virtual instrument does not exist, or when the instrument, account and customer in the URL do not belong together.
Method Not Allowed
Internal Server Error
Service Unavailable. Please try again later.