Skip to main content

application/cancel

Cancel an application.

Parameters

NameTypeConstraintsDescription
paramsobject
params.referrerobject
params.referrer.referrer_idstringYour referer_id provided by Etana.
params.application_idstringUnique identifier of an application, use application/start to create a new application, use application/getApplications to get all of your applicationIds.

Result

NameTypeConstraintsDescription
resultobject
result?.responseStatusstringResult of the request. [ok, err]
result?.application_idstringUnique identifier of an application, use application/start to create a new application, use application/getApplications to get all of your applicationIds.
result?.datastringObject with response data (depends on context)
result?.messagesarray
result?.messages[]object
result?.messages[]?.scopestringScope of the message. One of [application, name, identity, residency, background, funding, political, ofac, custody_agreement]
result?.messages[]?.codestringResponse code
result?.messages[]?.messagestringResponse message associatted with code.
result?.messages[]?.detailarrayDetails of a message. ,It is a list of user friendly message with more detail about the message it self
result?.messages[]?.detail[0]string

Errors

CodeMessageDescription
1Error messageError description.

Request example

{
"jsonrpc": "2.0",
"id": "1234567890",
"method": "application/cancel",
"params": {
"referrer": {
"referrer_id": "6172c164750ad6626e6fa16c"
},
"application_id": "6172c164750ad6626e6fa16c"
}
}

Response example

{
"jsonrpc": "2.0",
"id": "1234567890",
"result": {
"responseStatus": "ok",
"application_id": "6172c164750ad6626e6fa16c",
"data": {
"version": "0.0.1"
},
"messages": [
{
"scope": "name",
"code": "001",
"message": "...",
"detail": ["..."]
}
]
}
}