Banking Products v0.4.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
This API manages the set of banking products that a financial institution offers to its customers. Each bank account is associated with a product.
Examples of products are a personal savings account product or a business checking account product. Each product also has a product type (for example, DDA for a checking or demand deposit account) and a subtype which is a more specific type, such as 'Interest Checking'.
Each account is attached to the product instance that was effective and active when account was created. Product types may also have subtypes, although subtypes may not have deeper subtypes. When the terms and conditions of a product changes, this constititutes a new revision of the product. Business rules (which are not part of this service) dictate whether all accounts which are attached to the product remain attached to the previous revision of the product or are attached to the newer revision or when and how this occurs. Similarly, business rules and other services may provide notification to users of changes in terms of use, etc. Products and product types each have a name
, a description
a label
, and a state
.
The state may be one of the following:
pending
In creation, not yet used or available for use. Only pending items may be deleted.active
Active and in use or available for useinactive
Not available for use (deactivated)removed
Removed and archived. Removed items are not eligible to be activated. When an account is removed, it's name is changed so that the name may be used for new products or product types.
After creating a product type or product subtype, which by default leaves the resource in the `pending` state, the caller should also activate it via the `apiture:activate` link in the response. Pending resources which have not been activated may be deleted after an expiration period.
Allowed state transitions are:
pending -> active
pending -> inactive
active -> inactive
inactive -> active
active -> removed
inactive -> removed
A product or product type may only be deleted if its `state` is `pending`. A product or type may only change to `inactive` if it is not currently in use by active accounts or active products. Products and product types include links which convey the allowed POST operations, such as `apiture:activate`, `apiture:deactivate`, or `apiture:remove`.
In addition, a product has `newAccountAvailability` which indicates if that product is available for opening new accounts. **TODO** The `newAccountAvailability` in the product resource is currently mutable but it will become immutable and derived only. The value is derived from the existence of the product in the `unlockedProducts` collection.
This resource is a copy of the banking product resources in the bank core. In some cases, the Apiture platform does not have programmatic access to that core, so when when a financial institution updates the banking products in the core, they must *also* use this API to update the Apiture copy.
Download OpenAPI Definition (YAML)
Base URLs:
API
Endpoints which describe this API.
getApi
Code samples
# You can also use wget
curl -X GET /products/ \
-H 'Accept: application/hal+json'
GET /products/ HTTP/1.1
Accept: application/hal+json
var headers = {
'Accept':'application/hal+json'
};
$.ajax({
url: '/products/',
method: 'get',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json'
};
fetch('/products/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json'
}
result = RestClient.get '/products/',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json'
}
r = requests.get('/products/', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/products/", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Top-level resources and operations in this API
GET /
Return links to the top-level resources and operations in this API. This API returns the following links:
apiture:product
: links to the collection of productsapiture:productTypes
: links to the collection of product types
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
OK
{
"id": "products",
"name": "Banking Products",
"apiVersion": "0.1.0",
"_profile": "https://api.apiture.com/schemas/common/root/v1.0.0/profile.json",
"_links": {
"apiture:products": {
"href": "/products/products"
},
"apiture:productTypes": {
"href": "/products/productTypes"
}
}
}
200 Response
{
"id": "apiName",
"name": "API name",
"apiVersion": "0.0.1-SNAPSHOT",
"_profile": "https://api.apiture.com/schemas/common/root/v1.0.0/profile.json",
"_links": {}
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: root |
getApiDoc
Code samples
# You can also use wget
curl -X GET /products/apiDoc \
-H 'Accept: application/json'
GET /products/apiDoc HTTP/1.1
Accept: application/json
var headers = {
'Accept':'application/json'
};
$.ajax({
url: '/products/apiDoc',
method: 'get',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/json'
};
fetch('/products/apiDoc',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/json'
}
result = RestClient.get '/products/apiDoc',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/json'
}
r = requests.get('/products/apiDoc', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/apiDoc");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/products/apiDoc", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Return API definition document
GET /apiDoc
Return the OpenAPI document that describes this API.
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: Inline |
Response Schema
Product
Banking Products
getProducts
Code samples
# You can also use wget
curl -X GET /products/products \
-H 'Accept: application/hal+json'
GET /products/products HTTP/1.1
Accept: application/hal+json
var headers = {
'Accept':'application/hal+json'
};
$.ajax({
url: '/products/products',
method: 'get',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json'
};
fetch('/products/products',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json'
}
result = RestClient.get '/products/products',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json'
}
r = requests.get('/products/products', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/products");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/products/products", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Return a collection of products
GET /products
Return a paginated sortable filterable searchable collection of products. The links in the response include pagination links.
Parameters
Parameter | Description |
---|---|
start (query) |
integer(int64) The zero-based index of the first product in this page. The default, 0, represents the first page of the collection. |
limit (query) |
integer(int32) The maximum number of product representations to return in this page. |
sortBy (query) |
string Optional sort criteria. See sort criteria format, such as ?sortBy=field1,-field2 . |
filter (query) |
string Optional filter criteria. See filtering. |
q (query) |
string Optional search string. See searching. |
openable (query) |
boolean If true, filter only by products whose state is active and newAccountAvailability is available . For example, ?openable=true is equivalent to ?state=active&newAccountAvailability=available . |
productType (query) |
string Subset the product to only those whose product type is named by this product type URI. This implements the apiture:products link relation on a product type. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_profile": "https://api.apiture.com/schemas/products/products/v0.3.0/profile.json",
"start": 0,
"limit": 10,
"count": 42,
"name": "products",
"_links": {
"self": {
"href": "/products?start=0&limit=10"
},
"first": {
"href": "/products?start=10&limit=10"
},
"next": {
"href": "/products?start=10&limit=10"
},
"collection": {
"href": "/products"
}
},
"_embedded": {
"items": [
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"newAccountAvailability": "available",
"category": "DDA",
"revision": "2019-01-31T13:31:40.656Z",
"rate": {
"value": "1.40",
"type": "apr"
},
"_links": {
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
},
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
}
}
}
]
}
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: products | |
400 | Bad Request |
Bad Request. The request body or one or more of the query parameters was not well formed. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse |
createProduct
Code samples
# You can also use wget
curl -X POST /products/products \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/hal+json'
POST /products/products HTTP/1.1
Content-Type: application/hal+json
Accept: application/hal+json
var headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json'
};
$.ajax({
url: '/products/products',
method: 'post',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const inputBody = '{
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"name": "Business Checking",
"label": "Business Checking",
"description": "A demand deposit checking account for business use.",
"category": "DDA",
"rate": {
"value": "1.40",
"type": "apr"
},
"_links": {
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
}
}
}';
const headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json'
};
fetch('/products/products',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/hal+json',
'Accept' => 'application/hal+json'
}
result = RestClient.post '/products/products',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/hal+json',
'Accept': 'application/hal+json'
}
r = requests.post('/products/products', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/products");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/hal+json"},
"Accept": []string{"application/hal+json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/products", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Create a new product
POST /products
Create a new product from the given name, label, description, and product subtype. The request must contain links to an existing product subtype. The name
must be unique and the state
may not be removed
.
Body parameter
{
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"name": "Business Checking",
"label": "Business Checking",
"description": "A demand deposit checking account for business use.",
"category": "DDA",
"rate": {
"value": "1.40",
"type": "apr"
},
"_links": {
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
}
}
}
Parameters
Parameter | Description |
---|---|
copyOf (query) |
string(uri) To make a copy of an existing product, pass the URI of the original product. Fields in the request body will override the values copied from the existing product. The new name must be passed in the body, since names must be unique. |
body (body) |
createProduct (required) The data necessary to create a new product. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
201 Response
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
},
"apiture:deactivate": {
"href": "/disabledProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:remove": {
"href": "/removedProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
}
},
"_embedded": {
"productType": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0,
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available"
}
Responses
Status | Description |
---|---|
201 | Created |
Created | |
Schema: product | |
400 | Bad Request |
Bad Request. One of the request parameters to create a product was not valid. See _error for more information | |
Schema: errorResponse | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse |
Response Headers
Status | Description |
---|---|
201 | Location string uri |
The URI of the new resource. If the URI begins with / it is relative to the API root context. Else, it is a full URI starting with scheme ://host . | |
201 | Content-Location string |
The Content-Location will contain the URI of the specific revision corresponding to this new product resource. | |
201 | ETag string |
The ETag response header specifies an entity tag which must be provided in an If-Match request header for PUT or PATCH operations which update the resource. |
getProduct
Code samples
# You can also use wget
curl -X GET /products/products/{productId} \
-H 'Accept: application/hal+json' \
-H 'If-None-Match: string'
GET /products/products/{productId} HTTP/1.1
Accept: application/hal+json
If-None-Match: string
var headers = {
'Accept':'application/hal+json',
'If-None-Match':'string'
};
$.ajax({
url: '/products/products/{productId}',
method: 'get',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-None-Match':'string'
};
fetch('/products/products/{productId}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-None-Match' => 'string'
}
result = RestClient.get '/products/products/{productId}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-None-Match': 'string'
}
r = requests.get('/products/products/{productId}', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/products/{productId}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-None-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/products/products/{productId}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Fetch a representation of this product
GET /products/{productId}
Return a HAL representation of this product resource.
This resource also maintains immutable revisions; see the getProductRevisions
and getProductRevision
operations. The Content-Location
response header, if present, identifies the equivalent revision.
Parameters
Parameter | Description |
---|---|
productId (path) |
string (required) The unique identifier of this product. This is an opaque string. |
If-None-Match (header) |
string The entity tag that was returned in the ETag response. If the resource's current entity tag matches, the GET will return 304 (Not Modified) and no response body, else the resource representation will be returned. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
},
"apiture:deactivate": {
"href": "/disabledProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:remove": {
"href": "/removedProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
}
},
"_embedded": {
"productType": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0,
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available"
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: product | |
304 | Not Modified |
Not Modified. The resource has not been modified since it was last fetched. | |
404 | Not Found |
Not Found. There is no such product resource at the specified {productId} The _error field in the response will contain details about the request error. | |
Schema: errorResponse |
Response Headers
Status | Description |
---|---|
200 | ETag string |
The ETag response header specifies an entity tag which must be provided in an If-Match request header for PUT or PATCH operations which update this product resource. | |
200 | Content-Location string |
The Content-Location will contain the URI of the specific revision corresponding to this product resource. |
updateProduct
Code samples
# You can also use wget
curl -X PUT /products/products/{productId} \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
PUT /products/products/{productId} HTTP/1.1
Content-Type: application/hal+json
Accept: application/hal+json
If-Match: string
var headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/products/{productId}',
method: 'put',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const inputBody = '{
"_id": "string",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/fa4f2335-3306-4721-b74c-8ec0c77823e9"
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available",
"revision": "2018-04-25T07:56:46.375Z",
"_embedded": {
"productType": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
},
"institutionName": "string",
"coreType": "string",
"onlineBankingEnabled": false,
"target": "personal",
"currency": "USD",
"constraints": {
"transactionTypes": [
"debit"
],
"minimumBalance": "500.00",
"minimumFundingAmount": "500.00",
"maximumFundingAmount": "2500.00",
"minimumTransferAmount": "25.00",
"maximumTransferAmount": "10000.00"
},
"term": "string",
"automaticallyRenew": true,
"debitCardIssuedAt": "2019-01-31T13:31:43.725Z",
"fees": [
{
"type": "service",
"period": "P1M",
"description": "string",
"structure": "unknown",
"amount": "1.00"
}
],
"attributes": {}
}';
const headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/products/{productId}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/hal+json',
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.put '/products/products/{productId}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/hal+json',
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.put('/products/products/{productId}', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/products/{productId}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/hal+json"},
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PUT", "/products/products/{productId}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Update this product
PUT /products/{productId}
Perform a complete replacement of this product. This creates a new product revision. The new name, if any, must not be in use by another product (whether active or inactive). Changes to the state
follow the rules described in this API's description.
To change the state of a product, use the apiture:activate
, apiture:deactivate
, or apiture:remove
links on the resource to /activeProducts
, /inactiveProducts
, /removedProducts
.
The product code
may not be changed if the current state
is not pending
.
Body parameter
{
"_id": "string",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/fa4f2335-3306-4721-b74c-8ec0c77823e9"
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available",
"revision": "2018-04-25T07:56:46.375Z",
"_embedded": {
"productType": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
},
"institutionName": "string",
"coreType": "string",
"onlineBankingEnabled": false,
"target": "personal",
"currency": "USD",
"constraints": {
"transactionTypes": [
"debit"
],
"minimumBalance": "500.00",
"minimumFundingAmount": "500.00",
"maximumFundingAmount": "2500.00",
"minimumTransferAmount": "25.00",
"maximumTransferAmount": "10000.00"
},
"term": "string",
"automaticallyRenew": true,
"debitCardIssuedAt": "2019-01-31T13:31:43.725Z",
"fees": [
{
"type": "service",
"period": "P1M",
"description": "string",
"structure": "unknown",
"amount": "1.00"
}
],
"attributes": {}
}
Parameters
Parameter | Description |
---|---|
productId (path) |
string (required) The unique identifier of this product. This is an opaque string. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
body (body) |
updateProduct (required) |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
},
"apiture:deactivate": {
"href": "/disabledProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:remove": {
"href": "/removedProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
}
},
"_embedded": {
"productType": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0,
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available"
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: product | |
400 | Bad Request |
Bad Request. One of the request parameters to update a product was not valid. See _error for more information | |
Schema: errorResponse | |
404 | Not Found |
Not Found. There is no such product resource at the specified {productId} The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
412 | Precondition Failed |
Precondition Failed. The supplied if-Match header value does not match the most recent ETag response header value. The resource has changed in the interim. | |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
Response Headers
Status | Description |
---|---|
200 | Content-Location string |
The Content-Location will contain the URI of the specific revision corresponding to this product resource. | |
200 | ETag string |
The ETag response header specifies an entity tag which must be provided in an If-Match request header for PUT or PATCH operations which update this product resource. |
patchProduct
Code samples
# You can also use wget
curl -X PATCH /products/products/{productId} \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
PATCH /products/products/{productId} HTTP/1.1
Content-Type: application/hal+json
Accept: application/hal+json
If-Match: string
var headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/products/{productId}',
method: 'patch',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const inputBody = '{
"_id": "string",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/fa4f2335-3306-4721-b74c-8ec0c77823e9"
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available",
"revision": "2018-04-25T07:56:46.375Z",
"_embedded": {
"productType": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
},
"institutionName": "string",
"coreType": "string",
"onlineBankingEnabled": false,
"target": "personal",
"currency": "USD",
"constraints": {
"transactionTypes": [
"debit"
],
"minimumBalance": "500.00",
"minimumFundingAmount": "500.00",
"maximumFundingAmount": "2500.00",
"minimumTransferAmount": "25.00",
"maximumTransferAmount": "10000.00"
},
"term": "string",
"automaticallyRenew": true,
"debitCardIssuedAt": "2019-01-31T13:31:43.727Z",
"fees": [
{
"type": "service",
"period": "P1M",
"description": "string",
"structure": "unknown",
"amount": "1.00"
}
],
"attributes": {}
}';
const headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/products/{productId}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/hal+json',
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.patch '/products/products/{productId}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/hal+json',
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.patch('/products/products/{productId}', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/products/{productId}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/hal+json"},
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/products/products/{productId}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Update this product
PATCH /products/{productId}
Perform a partial update of this product. This creates a new product revision. Fields which are omitted are not updated. The new name, if any, must not be in use by another product (whether active or inactive). Changes to the state
follow the rules described in this API's description.
To change the state of a product, use the apiture:activate
, apiture:deactivate
, or apiture:remove
links on the resource to /activeProducts
, /inactiveProducts
, /removedProducts
.
The product code
may not be changed if the current state
is not pending
.
Body parameter
{
"_id": "string",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/fa4f2335-3306-4721-b74c-8ec0c77823e9"
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available",
"revision": "2018-04-25T07:56:46.375Z",
"_embedded": {
"productType": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
},
"institutionName": "string",
"coreType": "string",
"onlineBankingEnabled": false,
"target": "personal",
"currency": "USD",
"constraints": {
"transactionTypes": [
"debit"
],
"minimumBalance": "500.00",
"minimumFundingAmount": "500.00",
"maximumFundingAmount": "2500.00",
"minimumTransferAmount": "25.00",
"maximumTransferAmount": "10000.00"
},
"term": "string",
"automaticallyRenew": true,
"debitCardIssuedAt": "2019-01-31T13:31:43.727Z",
"fees": [
{
"type": "service",
"period": "P1M",
"description": "string",
"structure": "unknown",
"amount": "1.00"
}
],
"attributes": {}
}
Parameters
Parameter | Description |
---|---|
productId (path) |
string (required) The unique identifier of this product. This is an opaque string. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
body (body) |
updateProduct (required) |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
},
"apiture:deactivate": {
"href": "/disabledProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:remove": {
"href": "/removedProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
}
},
"_embedded": {
"productType": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0,
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available"
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: product | |
400 | Bad Request |
Bad Request. One of the request parameters to patch a product was not valid. See _error for more information | |
Schema: errorResponse | |
404 | Not Found |
Not Found. There is no such product resource at the specified {productId} The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
412 | Precondition Failed |
Precondition Failed. The supplied if-Match header value does not match the most recent ETag response header value. The resource has changed in the interim. | |
Schema: errorResponse | |
422 | Unprocessable Entity |
unprocessableEntity. The _id and newAccountAvailability cannot be changed | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
Response Headers
Status | Description |
---|---|
200 | Content-Location string |
The Content-Location will contain the URI of the specific revision corresponding to this product resource. | |
200 | ETag string |
The ETag response header specifies an entity tag which must be provided in an If-Match request header for PUT or PATCH operations which update this product resource. |
deleteProduct
Code samples
# You can also use wget
curl -X DELETE /products/products/{productId} \
-H 'Accept: application/hal+json'
DELETE /products/products/{productId} HTTP/1.1
Accept: application/hal+json
var headers = {
'Accept':'application/hal+json'
};
$.ajax({
url: '/products/products/{productId}',
method: 'delete',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json'
};
fetch('/products/products/{productId}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json'
}
result = RestClient.delete '/products/products/{productId}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json'
}
r = requests.delete('/products/products/{productId}', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/products/{productId}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/products/products/{productId}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Delete this product resource
DELETE /products/{productId}
Delete this product resource and any resources that are owned by it.
A product may only be deleted if its state
is pending
.
Parameters
Parameter | Description |
---|---|
productId (path) |
string (required) The unique identifier of this product. This is an opaque string. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
400 Response
{
"_profile": "https://api.apiture.com/schemas/error/v1.0.0/.json",
"_error": {
"_id": "2eae46e1-575c-4d69-8a8f-0a7b0115a4b3",
"_profile": "https://api.apiture.com/schemas/error/v1.0.0/profile.json",
"message": "The value for deposit must be greater than 0.",
"statusCode": 422,
"type": "positiveNumberRequired",
"attributes": {
"value": -125.5
},
"remediation": "Provide a value which is greater than 0",
"occurredAt": "2019-01-31T13:31:40.656Z",
"_links": {
"describedby": {
"href": "http://doc.apiture.com/errors/positiveNumberRequired"
}
},
"_embedded": {
"errors": []
}
}
}
Responses
Status | Description |
---|---|
204 | No Content |
No Content. The resource was deleted successfully. | |
400 | Bad Request |
Bad Request. One of the request parameters to delete a product was not valid. See _error for more information | |
Schema: errorResponse | |
409 | Conflict |
Conflict. A product may not be deleted if the state is anything other than pending . | |
Schema: errorResponse |
getProductRevisions
Code samples
# You can also use wget
curl -X GET /products/products/{productId}/revisions \
-H 'Accept: application/hal+json'
GET /products/products/{productId}/revisions HTTP/1.1
Accept: application/hal+json
var headers = {
'Accept':'application/hal+json'
};
$.ajax({
url: '/products/products/{productId}/revisions',
method: 'get',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json'
};
fetch('/products/products/{productId}/revisions',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json'
}
result = RestClient.get '/products/products/{productId}/revisions',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json'
}
r = requests.get('/products/products/{productId}/revisions', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/products/{productId}/revisions");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/products/products/{productId}/revisions", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Return a collection of product revisions
GET /products/{productId}/revisions
Return a paginated sortable filterable searchable collection of product revisions. The links in the response include pagination links.
Parameters
Parameter | Description |
---|---|
productId (path) |
string (required) The unique identifier of this product. This is an opaque string. |
start (query) |
integer(int64) The zero-based index of the first product revision item to include in this page. The default 0 denotes the beginning of the collection. |
limit (query) |
integer(int32) The maximum number of product representations to return in this page. |
sortBy (query) |
string Optional sort criteria. Revision collections are sorted by default in reverse chronological order (most recent revision first.) See sort criteria format, such as ?sortBy=field1,-field2 . |
filter (query) |
string Optional filter criteria. See filtering. |
q (query) |
string Optional search string. See searching. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_profile": "https://api.apiture.com/schemas/products/products/v0.3.0/profile.json",
"start": 0,
"limit": 10,
"count": 42,
"name": "products",
"_links": {
"self": {
"href": "/products?start=0&limit=10"
},
"first": {
"href": "/products?start=10&limit=10"
},
"next": {
"href": "/products?start=10&limit=10"
},
"collection": {
"href": "/products"
}
},
"_embedded": {
"items": [
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"newAccountAvailability": "available",
"category": "DDA",
"revision": "2019-01-31T13:31:40.656Z",
"rate": {
"value": "1.40",
"type": "apr"
},
"_links": {
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
},
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
}
}
}
]
}
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: products | |
400 | Bad Request |
Bad Request. The request body or one or more of the query parameters was not well formed. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse |
getProductRevision
Code samples
# You can also use wget
curl -X GET /products/products/{productId}/revisions/{revisionId} \
-H 'Accept: application/hal+json' \
-H 'If-None-Match: string'
GET /products/products/{productId}/revisions/{revisionId} HTTP/1.1
Accept: application/hal+json
If-None-Match: string
var headers = {
'Accept':'application/hal+json',
'If-None-Match':'string'
};
$.ajax({
url: '/products/products/{productId}/revisions/{revisionId}',
method: 'get',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-None-Match':'string'
};
fetch('/products/products/{productId}/revisions/{revisionId}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-None-Match' => 'string'
}
result = RestClient.get '/products/products/{productId}/revisions/{revisionId}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-None-Match': 'string'
}
r = requests.get('/products/products/{productId}/revisions/{revisionId}', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/products/{productId}/revisions/{revisionId}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-None-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/products/products/{productId}/revisions/{revisionId}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Fetch a representation of an immutable revision of this product
GET /products/{productId}/revisions/{revisionId}
Return an immutable HAL representation of this revision of this product resource. The revision may also have prev
and next
links to previous and/or next revisions, if they exist.
Parameters
Parameter | Description |
---|---|
productId (path) |
string (required) The unique identifier of this product. This is an opaque string. |
revisionId (path) |
string (required) The identifier for a revision of this resource. Revision identifiers are strings in RFC 3396 format: YYYY-MM-DDThh:mm:ss.sssZ . |
If-None-Match (header) |
string The entity tag that was returned in the ETag response. If the resource's current entity tag matches, the GET will return 304 (Not Modified) and no response body, else the resource representation will be returned. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
},
"apiture:deactivate": {
"href": "/disabledProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:remove": {
"href": "/removedProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
}
},
"_embedded": {
"productType": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0,
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available"
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: product | |
304 | Not Modified |
Not Modified. The resource has not been modified since it was last fetched. | |
404 | Not Found |
Not Found. There is no such product resource at the specified {productId} The _error field in the response will contain details about the request error. | |
Schema: errorResponse |
Response Headers
Status | Description |
---|---|
200 | ETag string |
The ETag response header specifies an entity tag which must be provided in an If-Match request header for PUT or PATCH operations which update this product resource. |
unlockProduct
Code samples
# You can also use wget
curl -X POST /products/unlockedProducts?product=string \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
POST /products/unlockedProducts?product=string HTTP/1.1
Accept: application/hal+json
If-Match: string
var headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/unlockedProducts',
method: 'post',
data: '?product=string',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/unlockedProducts?product=string',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.post '/products/unlockedProducts',
params: {
'product' => 'string'
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.post('/products/unlockedProducts', params={
'product': 'string'
}, headers = headers)
print r.json()
URL obj = new URL("/products/unlockedProducts?product=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/unlockedProducts", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Marks an active product as eligible for new account opening
POST /unlockedProducts
Marks an active product as eligible for new account opening.
This POST
operation is invoked from the apiture:unlock
link on a product.
This changes the newAccountAvailability
to available
.
Parameters
Parameter | Description |
---|---|
product (query) |
string (required) A server-supplied value which identifies the product instance. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. The product was malformed or does not refer to a product. | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
lockProduct
Code samples
# You can also use wget
curl -X POST /products/lockedProducts?product=string \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
POST /products/lockedProducts?product=string HTTP/1.1
Accept: application/hal+json
If-Match: string
var headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/lockedProducts',
method: 'post',
data: '?product=string',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/lockedProducts?product=string',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.post '/products/lockedProducts',
params: {
'product' => 'string'
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.post('/products/lockedProducts', params={
'product': 'string'
}, headers = headers)
print r.json()
URL obj = new URL("/products/lockedProducts?product=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/lockedProducts", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Marks an active product as ineligible for new account opening
POST /lockedProducts
Marks an active product as ineligible for new account opening. Users may not open new accounts with this product, thus the product is "locked".
This POST
operation is invoked from the apiture:lock
link on a product.
This changes the newAccountAvailability
to notAvailable
.
Parameters
Parameter | Description |
---|---|
product (query) |
string (required) A server-supplied value which identifies the product instance. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. The product was malformed or does not refer to a product. | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
activateProduct
Code samples
# You can also use wget
curl -X POST /products/activeProducts?product=string \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
POST /products/activeProducts?product=string HTTP/1.1
Accept: application/hal+json
If-Match: string
var headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/activeProducts',
method: 'post',
data: '?product=string',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/activeProducts?product=string',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.post '/products/activeProducts',
params: {
'product' => 'string'
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.post('/products/activeProducts', params={
'product': 'string'
}, headers = headers)
print r.json()
URL obj = new URL("/products/activeProducts?product=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/activeProducts", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Activate a product
POST /activeProducts
Activate a product that is eligible to be activated. Only product types which are pending
or inactive
may be activated.
This POST
operation is invoked from the apiture:activate
link on a product.
This changes the state
to active
.
Parameters
Parameter | Description |
---|---|
product (query) |
string (required) A server-supplied value which identifies the product instance. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. The product was malformed or does not refer to a product. | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
deactivateProduct
Code samples
# You can also use wget
curl -X POST /products/inactiveProducts?product=string \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
POST /products/inactiveProducts?product=string HTTP/1.1
Accept: application/hal+json
If-Match: string
var headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/inactiveProducts',
method: 'post',
data: '?product=string',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/inactiveProducts?product=string',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.post '/products/inactiveProducts',
params: {
'product' => 'string'
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.post('/products/inactiveProducts', params={
'product': 'string'
}, headers = headers)
print r.json()
URL obj = new URL("/products/inactiveProducts?product=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/inactiveProducts", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Deactivate a product
POST /inactiveProducts
Deactivate a product that is eligible to be deactivated.
Only products which are pending
or active
and which are not in use by any pending
, active
or inactive
accounts types may be deactivated.
This POST
operation is invoked from the apiture:deactivate
link on a product when it is eligible to be deactivated.
This changes the state
to inactive
.
Parameters
Parameter | Description |
---|---|
product (query) |
string (required) A server-supplied value which identifies the product instance. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. The product was malformed or does not refer to a product. | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
removeProduct
Code samples
# You can also use wget
curl -X POST /products/removedProducts?product=string \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
POST /products/removedProducts?product=string HTTP/1.1
Accept: application/hal+json
If-Match: string
var headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/removedProducts',
method: 'post',
data: '?product=string',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/removedProducts?product=string',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.post '/products/removedProducts',
params: {
'product' => 'string'
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.post('/products/removedProducts', params={
'product': 'string'
}, headers = headers)
print r.json()
URL obj = new URL("/products/removedProducts?product=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/removedProducts", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Remove a product
POST /removedProducts
Remove a product that is eligible to be removed.
Only products which are active
or inactive
and which are not used by any non-closed accounts may be removed.
This POST
operation is invoked from the apiture:remove
link on a product when it is eligible to be removed.
This changes the state
to removed
.
Removing a product will append the timestamp with the format "(Removed yyyy-mm-ddTHH:MM:SSZ)
" to the name, so that the previous name may be used for other products.
Parameters
Parameter | Description |
---|---|
product (query) |
string (required) A server-supplied value which identifies the product instance. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. The product was malformed or does not refer to a product. | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
Product Type
Banking Product Types
getProductTypes
Code samples
# You can also use wget
curl -X GET /products/productTypes \
-H 'Accept: application/hal+json'
GET /products/productTypes HTTP/1.1
Accept: application/hal+json
var headers = {
'Accept':'application/hal+json'
};
$.ajax({
url: '/products/productTypes',
method: 'get',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json'
};
fetch('/products/productTypes',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json'
}
result = RestClient.get '/products/productTypes',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json'
}
r = requests.get('/products/productTypes', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/productTypes");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/products/productTypes", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Return a collection of product types
GET /productTypes
Return a paginated sortable filterable searchable collection of product types. The links in the response include pagination links.
Parameters
Parameter | Description |
---|---|
start (query) |
integer(int64) The zero-based index of the first product type in this page. The default, 0, represents the first page of the collection. |
limit (query) |
integer(int32) The maximum number of product type representations to return in this page. |
sortBy (query) |
string Optional sort criteria. See sort criteria format, such as ?sortBy=field1,-field2 . |
filter (query) |
string Optional filter criteria. See filtering. |
q (query) |
string Optional search string. See searching. |
parent (query) |
string Subset the product types to only those subtypes whose parent type is named by its product type URI. This implements the apiture:children link relation on a product type. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_profile": "https://api.apiture.com/schemas/products/productsTypes/v0.3.0/profile.json",
"start": 0,
"limit": 10,
"count": 127,
"name": "productTypes",
"_links": {
"self": {
"href": "/products?start=0&limit=10"
},
"first": {
"href": "/products?start=0&limit=10"
},
"next": {
"href": "/products?start=10&limit=10"
},
"collection": {
"href": "/products"
}
},
"_embedded": {
"items": [
{
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
},
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0,
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
]
}
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productTypes | |
400 | Bad Request |
Bad Request. The request body or one or more of the query parameters was not well formed. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse |
createProductType
Code samples
# You can also use wget
curl -X POST /products/productTypes \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/hal+json'
POST /products/productTypes HTTP/1.1
Content-Type: application/hal+json
Accept: application/hal+json
var headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json'
};
$.ajax({
url: '/products/productTypes',
method: 'post',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const inputBody = '{
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account, a subtype of the base Demand Deposit account.",
"_links": {
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}';
const headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json'
};
fetch('/products/productTypes',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/hal+json',
'Accept' => 'application/hal+json'
}
result = RestClient.post '/products/productTypes',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/hal+json',
'Accept': 'application/hal+json'
}
r = requests.post('/products/productTypes', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/productTypes");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/hal+json"},
"Accept": []string{"application/hal+json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/productTypes", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Create a new product type
POST /productTypes
Create a new product type or subtype. The request may include a parent type in order to create a subtype. The parent type may not be a subtype. The name
must be unique and the state
may not be removed
.
Body parameter
{
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account, a subtype of the base Demand Deposit account.",
"_links": {
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
Parameters
Parameter | Description |
---|---|
copyOf (query) |
string(uri) To make a copy of an existing product type, pass the URI of the original product type. Fields in the request body will override the values copied from the existing product type. The new name must be passed in the body, since names must be unique. A new unique code will be assigned to the copy. |
body (body) |
createProductType (required) The data necessary to create a new product type. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
201 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
201 | Created |
Created | |
Schema: productType | |
400 | Bad Request |
Bad Request. One of the request parameters to create a productType was not valid. See _error for more information | |
Schema: errorResponse | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse |
Response Headers
Status | Description |
---|---|
201 | Location string uri |
The URI of the new resource. If the URI begins with / it is relative to the API root context. Else, it is a full URI starting with scheme ://host . | |
201 | ETag string |
The ETag response header specifies an entity tag which must be provided in an If-Match request header for PUT or PATCH operations which update the resource. |
getProductType
Code samples
# You can also use wget
curl -X GET /products/productTypes/{productTypeId} \
-H 'Accept: application/hal+json' \
-H 'If-None-Match: string'
GET /products/productTypes/{productTypeId} HTTP/1.1
Accept: application/hal+json
If-None-Match: string
var headers = {
'Accept':'application/hal+json',
'If-None-Match':'string'
};
$.ajax({
url: '/products/productTypes/{productTypeId}',
method: 'get',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-None-Match':'string'
};
fetch('/products/productTypes/{productTypeId}',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-None-Match' => 'string'
}
result = RestClient.get '/products/productTypes/{productTypeId}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-None-Match': 'string'
}
r = requests.get('/products/productTypes/{productTypeId}', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/productTypes/{productTypeId}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-None-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("GET", "/products/productTypes/{productTypeId}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Fetch a representation of this product type.
GET /productTypes/{productTypeId}
Return a HAL representation of this product type resource. See the description of the productType
model schema for the links that may be found in a product type representation.
Parameters
Parameter | Description |
---|---|
productTypeId (path) |
string (required) The unique identifier of this product type. This is an opaque string. |
If-None-Match (header) |
string The entity tag that was returned in the ETag response. If the resource's current entity tag matches, the GET will return 304 (Not Modified) and no response body, else the resource representation will be returned. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
304 | Not Modified |
Not Modified. The resource has not been modified since it was last fetched. | |
404 | Not Found |
Not Found. There is no such product type resource at the specified {productTypeId} The _error field in the response will contain details about the request error. | |
Schema: errorResponse |
Response Headers
Status | Description |
---|---|
200 | ETag string |
The ETag response header specifies an entity tag which must be provided in an If-Match request header for PUT or PATCH operations which update this product type resource. |
updateProductType
Code samples
# You can also use wget
curl -X PUT /products/productTypes/{productTypeId} \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
PUT /products/productTypes/{productTypeId} HTTP/1.1
Content-Type: application/hal+json
Accept: application/hal+json
If-Match: string
var headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/productTypes/{productTypeId}',
method: 'put',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const inputBody = '{
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"subtype": false,
"description": "A demand deposit checking account.",
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}';
const headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/productTypes/{productTypeId}',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/hal+json',
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.put '/products/productTypes/{productTypeId}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/hal+json',
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.put('/products/productTypes/{productTypeId}', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/productTypes/{productTypeId}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PUT");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/hal+json"},
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PUT", "/products/productTypes/{productTypeId}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Update this product type
PUT /productTypes/{productTypeId}
Perform a complete replacement of this product type. Changes to the state
follow the rules described in this API's description.
To change the state of a product type, use the apiture:activate
, apiture:deactivate
, or apiture:remove
links on the resource to POST
the product type URI to one of the paths, /activeProductTypes
, /inactiveProductTypes
, /removedProductTypes
.
Body parameter
{
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"subtype": false,
"description": "A demand deposit checking account.",
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
Parameters
Parameter | Description |
---|---|
productTypeId (path) |
string (required) The unique identifier of this product type. This is an opaque string. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
body (body) |
updateProductType (required) |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. The request body or one or more of the query parameters was not well formed. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
404 | Not Found |
Not Found. There is no such product type resource at the specified {productTypeId} The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
412 | Precondition Failed |
Precondition Failed. The supplied if-Match header value does not match the most recent ETag response header value. The resource has changed in the interim. | |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
Response Headers
Status | Description |
---|---|
200 | ETag string |
The ETag response header specifies an entity tag which must be provided in an If-Match request header for PUT or PATCH operations which update this product type resource. |
patchProductType
Code samples
# You can also use wget
curl -X PATCH /products/productTypes/{productTypeId} \
-H 'Content-Type: application/hal+json' \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
PATCH /products/productTypes/{productTypeId} HTTP/1.1
Content-Type: application/hal+json
Accept: application/hal+json
If-Match: string
var headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/productTypes/{productTypeId}',
method: 'patch',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const inputBody = '{
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"subtype": false,
"description": "A demand deposit checking account.",
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}';
const headers = {
'Content-Type':'application/hal+json',
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/productTypes/{productTypeId}',
{
method: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Content-Type' => 'application/hal+json',
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.patch '/products/productTypes/{productTypeId}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Content-Type': 'application/hal+json',
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.patch('/products/productTypes/{productTypeId}', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/productTypes/{productTypeId}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("PATCH");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Content-Type": []string{"application/hal+json"},
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("PATCH", "/products/productTypes/{productTypeId}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Update this product type
PATCH /productTypes/{productTypeId}
Perform a partial update of this product type. Fields which are omitted are not updated. Changes to the state
follow the rules described in this API's description.
To change the state of a product type, use the apiture:activate
, apiture:deactivate
, or apiture:remove
links on the resource to /activeProductTypes
, /inactiveProductTypes
, /removedProductTypes
.
Body parameter
{
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"subtype": false,
"description": "A demand deposit checking account.",
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
Parameters
Parameter | Description |
---|---|
productTypeId (path) |
string (required) The unique identifier of this product type. This is an opaque string. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
body (body) |
updateProductType (required) |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. One of the request parameters to patch a productType was not valid. See _error for more information | |
Schema: errorResponse | |
404 | Not Found |
Not Found. There is no such product type resource at the specified {productTypeId} The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
412 | Precondition Failed |
Precondition Failed. The supplied if-Match header value does not match the most recent ETag response header value. The resource has changed in the interim. | |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
Response Headers
Status | Description |
---|---|
200 | ETag string |
The ETag response header specifies an entity tag which must be provided in an If-Match request header for PUT or PATCH operations which update this product type resource. |
deleteProductType
Code samples
# You can also use wget
curl -X DELETE /products/productTypes/{productTypeId} \
-H 'Accept: application/hal+json'
DELETE /products/productTypes/{productTypeId} HTTP/1.1
Accept: application/hal+json
var headers = {
'Accept':'application/hal+json'
};
$.ajax({
url: '/products/productTypes/{productTypeId}',
method: 'delete',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json'
};
fetch('/products/productTypes/{productTypeId}',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json'
}
result = RestClient.delete '/products/productTypes/{productTypeId}',
params: {
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json'
}
r = requests.delete('/products/productTypes/{productTypeId}', params={
}, headers = headers)
print r.json()
URL obj = new URL("/products/productTypes/{productTypeId}");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("DELETE");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("DELETE", "/products/productTypes/{productTypeId}", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Delete this product type resource
DELETE /productTypes/{productTypeId}
Delete this product type resource and any resources that are owned by it. A product type may only be deleted if its state
is pending
, and it is not in use by a product.
Parameters
Parameter | Description |
---|---|
productTypeId (path) |
string (required) The unique identifier of this product type. This is an opaque string. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
409 Response
{
"_profile": "https://api.apiture.com/schemas/error/v1.0.0/.json",
"_error": {
"_id": "2eae46e1-575c-4d69-8a8f-0a7b0115a4b3",
"_profile": "https://api.apiture.com/schemas/error/v1.0.0/profile.json",
"message": "The value for deposit must be greater than 0.",
"statusCode": 422,
"type": "positiveNumberRequired",
"attributes": {
"value": -125.5
},
"remediation": "Provide a value which is greater than 0",
"occurredAt": "2019-01-31T13:31:40.656Z",
"_links": {
"describedby": {
"href": "http://doc.apiture.com/errors/positiveNumberRequired"
}
},
"_embedded": {
"errors": []
}
}
}
Responses
Status | Description |
---|---|
204 | No Content |
No Content. The resource was deleted successfully. | |
409 | Conflict |
Conflict. A product type may not be deleted if the state is anything other than pending , or if the type is used by a pending product. | |
Schema: errorResponse |
activateProductType
Code samples
# You can also use wget
curl -X POST /products/activeProductTypes?productType=string \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
POST /products/activeProductTypes?productType=string HTTP/1.1
Accept: application/hal+json
If-Match: string
var headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/activeProductTypes',
method: 'post',
data: '?productType=string',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/activeProductTypes?productType=string',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.post '/products/activeProductTypes',
params: {
'productType' => 'string'
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.post('/products/activeProductTypes', params={
'productType': 'string'
}, headers = headers)
print r.json()
URL obj = new URL("/products/activeProductTypes?productType=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/activeProductTypes", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Activate a product type
POST /activeProductTypes
Activate a product type that is eligible to be activated.
Only product types which are pending
or inactive
may be activated. This POST
operation is invoked from the apiture:activate
link on a product type.
This changes the state
to active
.
Parameters
Parameter | Description |
---|---|
productType (query) |
string (required) A server-supplied value which identifies the product type instance. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. The productType was malformed or does not refer to a product type. | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
deactivateProductType
Code samples
# You can also use wget
curl -X POST /products/inactiveProductTypes?productType=string \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
POST /products/inactiveProductTypes?productType=string HTTP/1.1
Accept: application/hal+json
If-Match: string
var headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/inactiveProductTypes',
method: 'post',
data: '?productType=string',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/inactiveProductTypes?productType=string',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.post '/products/inactiveProductTypes',
params: {
'productType' => 'string'
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.post('/products/inactiveProductTypes', params={
'productType': 'string'
}, headers = headers)
print r.json()
URL obj = new URL("/products/inactiveProductTypes?productType=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/inactiveProductTypes", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Deactivate a product type
POST /inactiveProductTypes
Deactivate a product type that is eligible to be deactivated.
Only product types which are pending
or active
and which are not in use by any pending
or active
products or accounts, and which are not the parent type of pending
or active
product types may be deactivated.
This POST
operation is invoked from the apiture:deactivate
link on a product type when it is eligible to be deactivated.
This changes the state
to inactive
.
Parameters
Parameter | Description |
---|---|
productType (query) |
string (required) A server-supplied value which identifies the product type instance. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. The productType was malformed or does not refer to a product type. | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
removeProductType
Code samples
# You can also use wget
curl -X POST /products/removedProductTypes?productType=string \
-H 'Accept: application/hal+json' \
-H 'If-Match: string'
POST /products/removedProductTypes?productType=string HTTP/1.1
Accept: application/hal+json
If-Match: string
var headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
$.ajax({
url: '/products/removedProductTypes',
method: 'post',
data: '?productType=string',
headers: headers,
success: function(data) {
console.log(JSON.stringify(data));
}
})
const fetch = require('node-fetch');
const headers = {
'Accept':'application/hal+json',
'If-Match':'string'
};
fetch('/products/removedProductTypes?productType=string',
{
method: 'POST',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
require 'rest-client'
require 'json'
headers = {
'Accept' => 'application/hal+json',
'If-Match' => 'string'
}
result = RestClient.post '/products/removedProductTypes',
params: {
'productType' => 'string'
}, headers: headers
p JSON.parse(result)
import requests
headers = {
'Accept': 'application/hal+json',
'If-Match': 'string'
}
r = requests.post('/products/removedProductTypes', params={
'productType': 'string'
}, headers = headers)
print r.json()
URL obj = new URL("/products/removedProductTypes?productType=string");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
package main
import (
"bytes"
"net/http"
)
func main() {
headers := map[string][]string{
"Accept": []string{"application/hal+json"},
"If-Match": []string{"string"},
}
data := bytes.NewBuffer([]byte{jsonReq})
req, err := http.NewRequest("POST", "/products/removedProductTypes", data)
req.Header = headers
client := &http.Client{}
resp, err := client.Do(req)
// ...
}
Remove a product type
POST /removedProductTypes
Remove a product type that is eligible to be removed.
Only product types which are active
or inactive
and which are not in use by any pending
, active
or inactive
products or accounts, and which are not the parent type of pending, active, or inactive product types may be removed. This operation is invoked from the apiture:remove
link on a product type when it is eligible to be removed.
This changes the state
to removed
.
Removing a product type will append the timestamp with the format "(Removed yyyy-mm-ddTHH:MM:SSZ)
" to the name, so that the previous name may be used for other product types.
Parameters
Parameter | Description |
---|---|
productType (query) |
string (required) A server-supplied value which identifies the product type instance. |
If-Match (header) |
string The entity tag that was returned in the ETag response. This must match the current entity tag of the resource. |
Try it
Fields marked with * are mandatory.
Response
Response Code:
Response Headers:
Response Body:
Click on 'Try It' to get a response.
Example responses
200 Response
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Responses
Status | Description |
---|---|
200 | OK |
OK | |
Schema: productType | |
400 | Bad Request |
Bad Request. The productType was malformed or does not refer to a product type. | |
409 | Conflict |
Conflict. There is a conflict between the request and the current state of the resource. It may be one of the following:
| |
Schema: errorResponse | |
422 | Unprocessable Entity |
Unprocessable Entity. One or more of the query parameters was well formed but otherwise invalid. The _error field in the response will contain details about the request error. | |
Schema: errorResponse | |
428 | Precondition Required |
Precondition Required. The request did not include the required if-Match header. Resubmit with the operation, supplying the value of the ETag and the most recent state of the resource. | |
Schema: errorResponse |
Schemas
productTypeFields
{
"state": "pending",
"name": "string",
"label": "string",
"description": "string",
"subtype": true,
"subtypeCount": 0
}
Core Product Type
Properties
Schema Name | Description |
---|---|
Core Product Type | any Core fields of the product type resource. |
allOf
Schema Name | Description |
---|---|
anonymous | prodState The state of a product or type
|
and
Schema Name | Description |
---|---|
anonymous | object undefined |
name | string The name of this product type. minLength: 1 maxLength: 128 |
label | string The text label for this product type. This field may be localized. minLength: 1 maxLength: 128 |
description | string(markdown) A fuller description of this product type. This field may be localized. The content is processed as Github Flavored Markdown and thus supports rich text. minLength: 1 maxLength: 4096 |
subtype | boolean Indicates if this is a subtype. This is a derived, immutable property, based on whether the product type was created with a link to a parent type. See also the apiture:parent link on the productSubtype schema. |
subtypeCount | number(integer) 0 if this type does not have subtypes; otherwise this holds the indicated number of direct subtypes. This is a derived, immutable property. See also the apiture:children link on the productSubtype schema. |
summaryProductType
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Product Type Summary
Properties
Schema Name | Description |
---|---|
Product Type Summary | any Summary representation of a product type resource in product types collections. This representation normally does not contain any _embedded objects. If needed, call the GET operation on the item's self link to get _embedded objects. This representation omits the attributes of the full representation. |
allOf
Schema Name | Description |
---|---|
anonymous | productTypeFields Core fields of the product type resource. |
and
Schema Name | Description |
---|---|
anonymous | abstractResource An augmented HAL resource representation. This model contains hypermedia _links , and either optional domain object data with _profile and optional _embedded objects, or an _error object. In responses, if the operation was successful, this object will not include the _error , but if the operation was a 4xx or 5xx error, this object will not include _embedded or any data fields, only _error and optionally _links . |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
_id | string The unique identifier for this product type resource. This is an opaque string. |
createProductType
{
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account, a subtype of the base Demand Deposit account.",
"_links": {
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
Create Product Type
Properties
allOf
Schema Name | Description |
---|---|
anonymous | abstractResource An augmented HAL resource representation. This model contains hypermedia _links , and either optional domain object data with _profile and optional _embedded objects, or an _error object. In responses, if the operation was successful, this object will not include the _error , but if the operation was a 4xx or 5xx error, this object will not include _embedded or any data fields, only _error and optionally _links . |
and
Schema Name | Description |
---|---|
anonymous | productTypeFields Core fields of the product type resource. |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
attributes | object An optional map of name/value pairs which provide additional metadata about the product type. |
updateProductType
{
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"subtype": false,
"description": "A demand deposit checking account.",
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
Update Product Type
Properties
Schema Name | Description |
---|---|
Update Product Type | any Representation used to update or patch a product type. The parent type be changed or removed by a PUT only if the product state is pending . |
allOf
Schema Name | Description |
---|---|
anonymous | summaryProductType Summary representation of a product type resource in product types collections. This representation normally does not contain any _embedded objects. If needed, call the GET operation on the item's self link to get _embedded objects. This representation omits the attributes of the full representation. |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
attributes | object An optional map of name/value pairs which provide additional metadata about the product type. |
productType
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"title": "Deactivate this product type",
"href": "/products/inactiveProductTypes?productType=eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
}
},
"_embedded": {
"parent": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
},
"apiture:deactivate": {
"href": "/disabledProductTypes?productType=4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Demand Deposit with interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
Product Type
Properties
Schema Name | Description |
---|---|
createdAt | string(date-time) The date-time when this product type was created. This value is derived and immutable. |
_embedded | object Embedded resources for this product type. This may contain the parent type, if any. _embedded may not appear if there are no embedded resources. |
parent | productType In subtypes, this is the parent type. |
allOf
Schema Name | Description |
---|---|
anonymous | updateProductType Representation used to update or patch a product type. The parent type be changed or removed by a PUT only if the product state is pending . |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
createdAt | string(date-time) The date-time when this product type was created. This value is derived and immutable. |
_embedded | object Embedded resources for this product type. This may contain the parent type, if any. _embedded may not appear if there are no embedded resources. |
parent | summaryProductType In subtypes, this is the parent type. |
productTypes
{
"_profile": "https://api.apiture.com/schemas/products/productsTypes/v0.3.0/profile.json",
"start": 0,
"limit": 10,
"count": 127,
"name": "productTypes",
"_links": {
"self": {
"href": "/products?start=0&limit=10"
},
"first": {
"href": "/products?start=0&limit=10"
},
"next": {
"href": "/products?start=10&limit=10"
},
"collection": {
"href": "/products"
}
},
"_embedded": {
"items": [
{
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
},
{
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0,
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
]
}
}
Product Type Collection
Properties
Schema Name | Description |
---|---|
Product Type Collection | any Collection of product types. The items in the collection are ordered in the _embedded object with name items . The top-level _links object may contain pagination links (self , next , prev , first , last , collection .) |
allOf
Schema Name | Description |
---|---|
anonymous | collection A collection of resources. |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
_embedded | object undefined |
items | [summaryProductType] An array containing a page of product type items. |
fee
{
"type": "service",
"period": "P1M",
"description": "string",
"structure": "unknown",
"amount": "1.00"
}
Fee
Properties
Schema Name | Description |
---|---|
type | string The fee type.
|
period | string The period at which the fee is assessed. If omitted, the fee is assessed per transaction. This value is an ISO 8601 duration string of the form |
description | string A description of the fee and its structure and period. |
structure | string The fee structure: fixed fee, variable fee, or other. For example, the service fee or atm may be fixed (such as "amount" : "2.00" ) but the foreignTransactions fee may be variable . |
amount | string The amount of the (fixed) fee, in the product's currency . |
Enumerated Values
Property | Value |
---|---|
type | service |
type | minimumBalance |
type | overdraft |
type | returnedCheck |
type | statementHardCopy |
type | atm |
type | foreignTransactions |
type | earlyClosing |
type | earlyWithdrawal |
type | other |
structure | unknown |
structure | variable |
structure | fixed |
transactionTypes
[
"debit"
]
An array which lists which transaction types are allowed for an account.
Properties
Schema Name | Description |
---|---|
anonymous | [transactionType] An array which lists which transaction types are allowed for an account. |
transactionType
"debit"
*A string which defines a transaction type allowed for an account.
credit
: Credits may be posted to this account, such as transfer funds to this external account.debit
: Debits may be posted to this account, such as transfer funds from this external account.*
Properties
Schema Name | Description |
---|---|
anonymous | string A string which defines a transaction type allowed for an account.
|
Enumerated Values
Property | Value |
---|---|
anonymous | debit |
anonymous | credit |
productFields
{
"state": "pending",
"name": "string",
"label": "string",
"description": "string",
"code": "string",
"newAccountAvailability": "available",
"category": "string",
"rate": {
"value": "1.40",
"type": "apr"
},
"revision": "string"
}
Core Product
Properties
Schema Name | Description |
---|---|
Core Product | any Core fields of the product resource. |
allOf
Schema Name | Description |
---|---|
anonymous | prodState The state of a product or type
|
and
Schema Name | Description |
---|---|
anonymous | object undefined |
name | string The name of this product. minLength: 1 maxLength: 128 |
label | string The text label for this product. This field may be localized. minLength: 1 maxLength: 128 |
description | string(markdown) A fuller description of this product. This field may be localized. The content is processed as Github Flavored Markdown and thus supports rich text. minLength: 1 maxLength: 4096 |
code | string The unique product code for this product, normally defined by the underlying banking core. The code cannot be changed once the state is beyond pending . maxLength: 64 |
newAccountAvailability | string Indicates if the product is available for opening new accounts.
|
category | string The product category name. |
rate | rate The interest rate for this product. |
revision | string The revision string for this product. This property derived and immutable. |
Enumerated Values
Property | Value |
---|---|
newAccountAvailability | available |
newAccountAvailability | notAvailable |
summaryProduct
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/fa4f2335-3306-4721-b74c-8ec0c77823e9"
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available",
"revision": "2018-04-25T07:56:46.375Z",
"_embedded": {}
}
Product Summary
Properties
Schema Name | Description |
---|---|
Product Summary | any Summary representation of a product resource in products collections. This representation normally does not contain any _embedded objects. If needed, call the GET operation on the item's self link to get _embedded objects. This representation omits the attributes of the full representation. |
allOf
Schema Name | Description |
---|---|
anonymous | abstractResource An augmented HAL resource representation. This model contains hypermedia _links , and either optional domain object data with _profile and optional _embedded objects, or an _error object. In responses, if the operation was successful, this object will not include the _error , but if the operation was a 4xx or 5xx error, this object will not include _embedded or any data fields, only _error and optionally _links . |
and
Schema Name | Description |
---|---|
anonymous | productFields Core fields of the product resource. |
and
Schema Name | Description |
---|---|
anonymous | revisionEffectiveInterval Time interval when a resource revision was active. This schema is used when composing other schemas. Note: This schema should be moved to common-models. |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
_id | string The unique identifier for this product resource. This is an immutable opaque string. |
type | string The product type name, which is derived from the linked product type. The product category name |
subtype | string The product subtype name, which is derived from the linked product subtype. This is a derived, immutable property. |
productDetails
{
"institutionName": "string",
"coreType": "string",
"onlineBankingEnabled": false,
"target": "personal",
"currency": "USD",
"constraints": {
"transactionTypes": [
"debit"
],
"minimumBalance": "500.00",
"minimumFundingAmount": "500.00",
"maximumFundingAmount": "2500.00",
"minimumTransferAmount": "25.00",
"maximumTransferAmount": "10000.00"
},
"term": "string",
"automaticallyRenew": true,
"debitCardIssuedAt": "2019-01-31T13:31:43.742Z",
"fees": [
{
"type": "service",
"period": "P1M",
"description": "string",
"structure": "unknown",
"amount": "1.00"
}
]
}
Product Details
Properties
Schema Name | Description |
---|---|
institutionName | string The name of the financial institution minLength: 1 maxLength: 128 |
coreType | string Identifies the underlying bank core system. |
onlineBankingEnabled | boolean true if this product is enabled and eligible for online banking. |
target | string Describes the account target: personal or business accounts. |
currency | string The ISO 4217 currency code for this product. minLength: 3 maxLength: 3 |
constraints | object Product constraints, such as minimum and maximum balances. |
transactionTypes | transactionTypes The types of transactions permitted for this account. Values which appear in this array are permitted. |
minimumBalance | string The minimum balance for accounts of this product. The numeric value is represented as a string so that it can be exact with no loss of precision. This balance is in the currency for the product. |
minimumFundingAmount | string The minimum monetary value when funding a new account of this product. The numeric value is represented as a string so that it can be exact with no loss of precision. This balance is in the currency for the product. |
maximumFundingAmount | string The maximum monetary value when funding a new account of this product. The numeric value is represented as a string so that it can be exact with no loss of precision. This balance is in the currency for the product. |
minimumTransferAmount | string The minimum monetary value for new transfers from accounts of this product. The numeric value is represented as a string so that it can be exact with no loss of precision. This balance is in the currency for the product. |
maximumTransferAmount | string The maximum monetary value for new transfers from accounts of this product. The numeric value is represented as a string so that it can be exact with no loss of precision. This balance is in the currency for the product. |
term | string The optional maturity term offered by this product, for products such as certificates of deposits. If omitted, there is no fixed term (not all product types do not impose a term.) This value is an ISO 8601 duration string of the form |
automaticallyRenew | boolean true if and only if accounts automatically renew upon maturity. |
debitCardIssuedAt | string(date) For products which support debit cards, this is the date when the card was issued. The date is a string in RFC 3396 format: YYYY-MM-DDThh:mm:ss.sssZ . This is omitted or null if no card has been issued. |
fees | [fee] Zero or more Fees for accounts of this product. If the array is empty or not present, there are no fees. |
Enumerated Values
Property | Value |
---|---|
target | personal |
target | business |
createProduct
{
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"name": "Business Checking",
"label": "Business Checking",
"description": "A demand deposit checking account for business use.",
"category": "DDA",
"rate": {
"value": "1.40",
"type": "apr"
},
"_links": {
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
}
}
}
Create Product
Properties
allOf
Schema Name | Description |
---|---|
anonymous | abstractResource An augmented HAL resource representation. This model contains hypermedia _links , and either optional domain object data with _profile and optional _embedded objects, or an _error object. In responses, if the operation was successful, this object will not include the _error , but if the operation was a 4xx or 5xx error, this object will not include _embedded or any data fields, only _error and optionally _links . |
and
Schema Name | Description |
---|---|
anonymous | productFields Core fields of the product resource. |
and
Schema Name | Description |
---|---|
anonymous | productDetails Additional fields for a product which are not in the summary representation. |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
attributes | object An optional map of name/value pairs which provide additional metadata about the product. |
updateProduct
{
"_id": "string",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/fa4f2335-3306-4721-b74c-8ec0c77823e9"
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available",
"revision": "2018-04-25T07:56:46.375Z",
"_embedded": {
"productType": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
},
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0
}
},
"institutionName": "string",
"coreType": "string",
"onlineBankingEnabled": false,
"target": "personal",
"currency": "USD",
"constraints": {
"transactionTypes": [
"debit"
],
"minimumBalance": "500.00",
"minimumFundingAmount": "500.00",
"maximumFundingAmount": "2500.00",
"minimumTransferAmount": "25.00",
"maximumTransferAmount": "10000.00"
},
"term": "string",
"automaticallyRenew": true,
"debitCardIssuedAt": "2019-01-31T13:31:43.744Z",
"fees": [
{
"type": "service",
"period": "P1M",
"description": "string",
"structure": "unknown",
"amount": "1.00"
}
],
"attributes": {}
}
Update Product
Properties
Schema Name | Description |
---|---|
Update Product | any Representation used to update or patch a product. |
allOf
Schema Name | Description |
---|---|
anonymous | summaryProduct Summary representation of a product resource in products collections. This representation normally does not contain any _embedded objects. If needed, call the GET operation on the item's self link to get _embedded objects. This representation omits the attributes of the full representation. |
and
Schema Name | Description |
---|---|
anonymous | productDetails Additional fields for a product which are not in the summary representation. |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
_id | string The unique identifier for this product resource. This is an immutable opaque string. |
attributes | object An optional map of name/value pairs which provide additional metadata about the product type. |
_embedded | object An optional map of nested resources, mapping each nested resource name to a nested resource representation. A product contains summary representation of the product type and subtype. |
productType | summaryProductType The product type resource. |
productSubtype | summaryProductType The product subtype resource. |
product
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"_profile": "https://api.apiture.com/schemas/products/product/v0.3.0/profile.json",
"_links": {
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
},
"apiture:deactivate": {
"href": "/disabledProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
},
"apiture:remove": {
"href": "/removedProducts?product=a6459cdf-543e-46df-887b-ac5378ee9acd"
}
},
"_embedded": {
"productType": {
"_id": "4ea6fe4e-405c-4d71-93e3-ad637b5cab2d",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit",
"label": "Demand Deposit",
"description": "A demand deposit checking account.",
"state": "active",
"subtype": false,
"subtypeCount": 1,
"_links": {
"self": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
},
"productSubtype": {
"_id": "eccb54ed-0f0a-443b-9f2e-32d5b8f4371c",
"_profile": "https://api.apiture.com/schemas/products/productType/v0.3.0/profile.json",
"name": "Demand Deposit with Interest",
"label": "Demand Deposit with Interest",
"description": "A demand deposit checking account with interest.",
"state": "active",
"subtype": true,
"subtypeCount": 0,
"_links": {
"self": {
"href": "/products/productTypes/eccb54ed-0f0a-443b-9f2e-32d5b8f4371c"
},
"apiture:parent": {
"href": "/products/productTypes/4ea6fe4e-405c-4d71-93e3-ad637b5cab2d"
}
}
}
},
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"type": "Demand Deposit",
"subtype": "Demand Deposit with Interest",
"newAccountAvailability": "available"
}
Product
Properties
Schema Name | Description |
---|---|
Product | any Representation of product resources. The
|
allOf
Schema Name | Description |
---|---|
anonymous | updateProduct Representation used to update or patch a product. |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
createdAt | string(date-time) The date-time when this product was created. This value is derived and immutable. |
products
{
"_profile": "https://api.apiture.com/schemas/products/products/v0.3.0/profile.json",
"start": 0,
"limit": 10,
"count": 42,
"name": "products",
"_links": {
"self": {
"href": "/products?start=0&limit=10"
},
"first": {
"href": "/products?start=10&limit=10"
},
"next": {
"href": "/products?start=10&limit=10"
},
"collection": {
"href": "/products"
}
},
"_embedded": {
"items": [
{
"_id": "a6459cdf-543e-46df-887b-ac5378ee9acd",
"name": "Premiere Checking",
"label": "Premiere Checking",
"description": "A premiere demand deposit checking account for business use.",
"state": "active",
"newAccountAvailability": "available",
"category": "DDA",
"revision": "2019-01-31T13:31:40.656Z",
"rate": {
"value": "1.40",
"type": "apr"
},
"_links": {
"apiture:productType": {
"href": "/products/productTypes/4d4242ed-eb8d-46ca-bc3c-13e1f82337c8"
},
"apiture:productSubtype": {
"href": "/products/productTypes/b2134f56-3645-490d-a788-79e974635ae8"
},
"self": {
"href": "/products/products/a6459cdf-543e-46df-887b-ac5378ee9acd"
}
}
}
]
}
}
Product Collection
Properties
Schema Name | Description |
---|---|
Product Collection | any Collection of products. The items in the collection are ordered in the _embedded object with name items . The top-level _links object may contain pagination links (self , next , prev , first , last , collection .) |
allOf
Schema Name | Description |
---|---|
anonymous | collection A collection of resources. |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
_embedded | object undefined |
items | [summaryProduct] An array containing a page of product items. |
prodState
{
"state": "pending"
}
State of a Product or Product Type
Properties
Schema Name | Description |
---|---|
state | string undefined |
Enumerated Values
Property | Value |
---|---|
state | pending |
state | active |
state | inactive |
state | removed |
rate
{
"value": "1.40",
"type": "apr"
}
The interest rate of the account. For deposit accounts, this is the rate of return; for loan accounts, this is the interest rate charged on balances. Rates can be absolute, such as "1.40" to indicate 1.4%, which is expressed as { "rate" : "1.40" }
. or relative to a benchmark, such as U.S. Prime Rate + 0.5% which is expressed as { "benchmark" : "prime", "rate" : "0.50" }
.
Properties
Schema Name | Description |
---|---|
value | string The rate, expressed as an decimal percentage string in order to represent the rate exactly. This number must have 2 to four decimal points, i.e. '2.00' or '0.50' or '1.015', but not 2 or .5 . (Regular expression pattern: -?\d{1,3}+\.\d{2,4} ) |
benchmark | string An optional base benchmark that the rate is relative to. If omitted, the rate is fixed. Otherwise the rate is added to the benchmark rate. Values may be (but are not limited to):
|
compoundPeriod | string The period at which interest compounds. This value is an ISO 8601 duration string of the form |
accrualType | string Indicates how interest is accrued. |
adjustmentPeriod | string The period at which the rate is adjusted or recomputed to account for differences in the benchmark rate. This value is an ISO 8601 duration string of the form |
type | interestRateType The interest rate type. |
Enumerated Values
Property | Value |
---|---|
accrualType | compounding |
accrualType | simple |
accrualType | frontLoading |
interestRateType
"apr"
*The rate type. The rate type may not be changed once it is set at product creation. Rate types are:
apr
- annual percentage rateapy
- annual percentage yield. This applies for Demand Deposit Accounts (DDA), Money Market Accounts (MMA), Certificate of Deposit Accounts (CDA), Savings Deposit Accounts (SDA)*
Properties
Schema Name | Description |
---|---|
anonymous | string The rate type. The rate type may not be changed once it is set at product creation. Rate types are:
|
Enumerated Values
Property | Value |
---|---|
anonymous | apr |
anonymous | apy |
abstractResource
{
"_profile": "https://api.apiture.com/schemas/example/v1.0.0/profile.json",
"_links": {
"self": {
"href": "{uri of current resource}"
}
}
}
Abstract Resource
Properties
Schema Name | Description |
---|---|
_links | links An optional map of links, mapping each link relation to a link object. This model defines the _links object of HAL representations. |
_embedded | object An optional map of nested resources, mapping each nested resource name to a nested resource representation. |
_profile | string(uri) The URI of a resource profile which describes the representation. |
_error | error An object which describes an error. This value is omitted if the operation succeeded without error. |
root
{
"id": "apiName",
"name": "API name",
"apiVersion": "0.0.1-SNAPSHOT",
"_profile": "https://api.apiture.com/schemas/common/root/v1.0.0/profile.json",
"_links": {}
}
API Root
Properties
Schema Name | Description |
---|---|
API Root | any A HAL response, with hypermedia _links for the top-level resources and operations in API. |
allOf
Schema Name | Description |
---|---|
anonymous | abstractResource An augmented HAL resource representation. This model contains hypermedia _links , and either optional domain object data with _profile and optional _embedded objects, or an _error object. In responses, if the operation was successful, this object will not include the _error , but if the operation was a 4xx or 5xx error, this object will not include _embedded or any data fields, only _error and optionally _links . |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
_id | string This API's unique ID. |
name | string This API's name. |
apiVersion | string This API's version. |
errorResponse
{
"_profile": "https://api.apiture.com/schemas/error/v1.0.0/.json",
"_error": {
"_id": "2eae46e1-575c-4d69-8a8f-0a7b0115a4b3",
"_profile": "https://api.apiture.com/schemas/error/v1.0.0/profile.json",
"message": "The value for deposit must be greater than 0.",
"statusCode": 422,
"type": "positiveNumberRequired",
"attributes": {
"value": -125.5
},
"remediation": "Provide a value which is greater than 0",
"occurredAt": "2019-01-31T13:31:40.656Z",
"_links": {
"describedby": {
"href": "http://doc.apiture.com/errors/positiveNumberRequired"
}
},
"_embedded": {
"errors": []
}
}
}
Error Response
Properties
Schema Name | Description |
---|---|
Error Response | abstractResource Describes an error response, typically returned on 4xx or 5xx errors from API operations. The _error object contains the error details. |
error
{
"_id": "2eae46e1-575c-4d69-8a8f-0a7b0115a4b3",
"_profile": "https://api.apiture.com/schemas/error/v1.0.0/profile.json",
"message": "The value for deposit must be greater than 0.",
"statusCode": 422,
"type": "positiveNumberRequired",
"attributes": {
"value": -125.5
},
"remediation": "Provide a value which is greater than 0",
"occurredAt": "2018-01-25T05:50:52.375Z",
"_links": {
"describedby": {
"href": "http://doc.apiture.com/errors/positiveNumberRequired"
}
},
"_embedded": {
"errors": []
}
}
Error
Properties
Schema Name | Description |
---|---|
message | string (required) A localized message string describing the error condition. |
_id | string A unique identifier for this error instance. This may be used as a correlation ID with the root cause error (i.e. this ID may be logged at the source of the error). This is is an opaque string. |
statusCode | integer The HTTP status code associate with this error. minimum: 100 maximum: 599 |
type | string An error identifier which indicates the category of error and associate it with API support documentation or which the UI tier can use to render an appropriate message or hint. This provides a finer level of granularity than the statusCode . For example, instead of just 400 Bad Request, the type may be much more specific. such as integerValueNotInAllowedRange or numericValueExceedsMaximum or stringValueNotInAllowedSet . |
occurredAt | string(date-time) An date-time stamp indicating when the error occurred. This is a string in RFC 3396 format: YYYY-MM-DDThh:mm:ss.sssZ . |
attributes | attributes Data attribute associated with the error, such as values or constraints. |
remediation | string An optional localized string which provides hints for how the user or client can resolve the error. |
_embedded | object Optional embedded array of errors. This field may not exist if the error does not have nested errors. |
items | [errorResponse] An array of error objects. |
collection
{
"_profile": "https://api.apiture.com/schemas/example/v1.0.0/profile.json",
"_links": {
"self": {
"href": "{uri of current resource}"
}
},
"count": 0,
"start": 0,
"limit": 0,
"name": "string"
}
Collection
Properties
Schema Name | Description |
---|---|
Collection | any A collection of resources. |
allOf
Schema Name | Description |
---|---|
anonymous | abstractResource An augmented HAL resource representation. This model contains hypermedia _links , and either optional domain object data with _profile and optional _embedded objects, or an _error object. In responses, if the operation was successful, this object will not include the _error , but if the operation was a 4xx or 5xx error, this object will not include _embedded or any data fields, only _error and optionally _links . |
and
Schema Name | Description |
---|---|
anonymous | object undefined |
count | integer The total number of items in the collection. |
start | integer The start index of this page of items. |
limit | integer The maximum number of items per page. |
name | string The name of the collection. |
attributes
{}
Attributes
Properties
No properties
links
{
"property1": {
"href": "http://example.com",
"type": "string",
"templated": true,
"title": "string",
"deprecation": "http://example.com",
"profile": "http://example.com"
},
"property2": {
"href": "http://example.com",
"type": "string",
"templated": true,
"title": "string",
"deprecation": "http://example.com",
"profile": "http://example.com"
}
}
Links
Properties
Schema Name | Description |
---|---|
additionalProperties | link Describes a hypermedia link within a _links object in HAL representations. In Apiture APIs, links are HAL links, but Apiture APIs do not use the name or hreflang properties of HAL. Apiture links may include a method property. |
link
{
"href": "http://example.com",
"type": "string",
"templated": true,
"title": "string",
"deprecation": "http://example.com",
"profile": "http://example.com"
}
Link
Properties
Schema Name | Description |
---|---|
href | string(uri) (required) The URI or URI template for the resource/operation this link refers to. |
type | string The media type for the resource. |
templated | boolean If true, the link's href is a URI template. |
title | string An optional human-readable localized title for the link. |
deprecation | string(uri) If present, the containing link is deprecated and the value is a URI which provides human-readable text information about the deprecation. |
profile | string(uri) The URI of a profile document, a JSON document which describes the target resource/operation. |
revisionEffectiveInterval
{
"effectiveStartAt": "2019-01-31T13:31:43Z",
"effectiveEndAt": "2019-01-31T13:31:43Z"
}
Revision Effective Time Interval
Properties
Schema Name | Description |
---|---|
effectiveStartAt | string(date-time) The date-time when this revision was created and become effective. This is a string in RFC 3396 format: YYYY-MM-DDThh:mm:ss.sssZ . This field is immutable. |
effectiveEndAt | string(date-time) The date-time when the another revision became effective and this revision ceased being effective. This is a string in RFC 3396 format: YYYY-MM-DDThh:mm:ss.sssZ . This field is immutable and is not present until the revision is no longer active. If present in a PUT or PATCH, this date (not the current date-time) will be used for the revision ID and the effectiveStartAt of the next revision, but the date must be between the revision's effectiveStartAt and the current date-time. |