Instruction Request API Reference
Request a Deposit Instruction
The reference for the Product
The specific issue of the product
The specific version of the product issue
The reference for the Account
The amount of the instruction to 2dp
The generated unique reference (GUID) for the Instruction
The unique identifier (GUID) of the Instruction
Endpoint used to check the Status of the instruction request
POST /instruction-request/deposit HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"productReference": "256",
"productIssueNumber": "1",
"productIssueVersionNumber": "2",
"accountReference": "FL1456",
"amount": 500,
"instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21"
}{
"instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
"statusLocation": "https://API.com/location"
}Create an Instruction request to withdraw from a Deposit Account
The unique account reference
The 3 digit currency code for the portfolio (ISO-4217)
The unique reference for the deposit account
The amount of the instruction to 2dp
The generated unique reference (GUID) for the Instruction
The generated unique reference (GUID) for the Instruction
Reference to the get Instruction Request status endpoint
POST /instruction-request/withdraw HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 167
{
"accountReference": "FL12345",
"currencyIsoCode": "GBP",
"depositAccountReference": "123454565",
"amount": 500,
"instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21"
}{
"instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
"statusLocation": "/instruction-request/status/1429ddc3-987f-4bff-9f34-77d1b98fca21"
}Returns the status of the instruction request with the given reference
The unique identifier (GUID) of the Instruction
1429ddc3-987f-4bff-9f34-77d1b98fca21Status of the request
Created | Processed | Rejected //Current instruction request status
The unique identifier (GUID) of the Instruction
Reason for the status change
Reference not found
GET /instruction-request/status/{instructionReference} HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Accept: */*
{
"status": "Created|Processed|Rejected",
"instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
"statusReason": "reason"
}The unique account reference
The 3 digit currency code for the portfolio (ISO-4217)
The unique reference for the deposit account
The generated unique reference (GUID) for the Instruction
The unique identifier (GUID) of the Instruction
Endpoint used to check the Status of the instruction request
POST /instruction-request/close-account HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 154
{
"accountReference": "FL12345",
"currencyIsoCode": "GBP",
"depositAccountReference": "123454565",
"instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21"
}{
"instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
"statusLocation": "https://API.com/location"
}Requests the reversal of an Instruction you previously submitted.
An Instruction can be reverted while it is still pending settlement, which means all of the following must hold:
- The Instruction Batch it sits in (and its Notice Instruction Batch, where it has one) is still 'Open' or 'Locked'. Once a batch is 'Closed' or beyond, the Instruction can no longer be reverted.
- The request falls inside the revert window either side of the batch lock time for the Financial Partner and currency.
- The Deposit Account is still 'Open', unless the Instruction being reverted is the final closure Instruction for that account.
- The Instruction was not raised by Flagstone Operations.
- Reverting will not take the Deposit Account outside the per-account limits of its Product.
None of the above is evaluated when the request is submitted. As with every other Instruction Request a 202 only confirms that we accepted the request, so a revert that breaches any of these conditions is still accepted here and then reported as 'Rejected' by the status endpoint, with the reason in 'statusReason'. Poll the status endpoint to find out whether the reversal actually happened.
The generated unique reference (GUID) for the Instruction
The unique reference (GUID) of the Instruction to revert
The revert request was accepted for asynchronous processing
The unique identifier (GUID) of the Instruction
Endpoint used to check the Status of the instruction request
The request body could not be bound - for example InstructionReference or InstructionToRevertReference is absent or is not a GUID
POST /instruction-request/revert HTTP/1.1
Host: api.sandbox.flagstoneim.com
cdpapi-Subscription-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
"instructionToRevertReference": "616aa3f5-3b22-445e-8d34-2b4c5f71844e"
}{
"instructionReference": "1429ddc3-987f-4bff-9f34-77d1b98fca21",
"statusLocation": "/instruction-request/status/1429ddc3-987f-4bff-9f34-77d1b98fca21"
}Last updated