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 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": "ref1",
"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 of the Instruction
Status of the request
Created | Processed | Rejected //Current instruction request status
The unique identifier 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": "instructionReferenece",
"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 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": "ref1",
"statusLocation": "https://API.com/location"
}Requst to revert an instruction
The generated unique reference (GUID) for the Instruction
The unique reference (GUID) of the Instruction to revert
Error Name
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"
}{
"Error": "string",
"ErrorDescription": "string"
}Last updated