Accept an amount with the six consents and start funding
curl --request POST \
--url https://api.example.com/v1/applications/{id}/acceptance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"amount_cents": 123,
"terms_version": "<string>",
"autopay_authorized": true,
"bureau_check_consent": true,
"bureau_reporting_consent": true,
"balance_debit_authorized": true,
"hold_authorized": true,
"accepted_at": "2023-11-07T05:31:56Z",
"session": {
"device_id": "<string>",
"ip": "<string>",
"user_agent": "<string>",
"device_timezone": "<string>"
}
}
'import requests
url = "https://api.example.com/v1/applications/{id}/acceptance"
payload = {
"amount_cents": 123,
"terms_version": "<string>",
"autopay_authorized": True,
"bureau_check_consent": True,
"bureau_reporting_consent": True,
"balance_debit_authorized": True,
"hold_authorized": True,
"accepted_at": "2023-11-07T05:31:56Z",
"session": {
"device_id": "<string>",
"ip": "<string>",
"user_agent": "<string>",
"device_timezone": "<string>"
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount_cents: 123,
terms_version: '<string>',
autopay_authorized: true,
bureau_check_consent: true,
bureau_reporting_consent: true,
balance_debit_authorized: true,
hold_authorized: true,
accepted_at: '2023-11-07T05:31:56Z',
session: {
device_id: '<string>',
ip: '<string>',
user_agent: '<string>',
device_timezone: '<string>'
}
})
};
fetch('https://api.example.com/v1/applications/{id}/acceptance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/applications/{id}/acceptance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount_cents' => 123,
'terms_version' => '<string>',
'autopay_authorized' => true,
'bureau_check_consent' => true,
'bureau_reporting_consent' => true,
'balance_debit_authorized' => true,
'hold_authorized' => true,
'accepted_at' => '2023-11-07T05:31:56Z',
'session' => [
'device_id' => '<string>',
'ip' => '<string>',
'user_agent' => '<string>',
'device_timezone' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/applications/{id}/acceptance"
payload := strings.NewReader("{\n \"amount_cents\": 123,\n \"terms_version\": \"<string>\",\n \"autopay_authorized\": true,\n \"bureau_check_consent\": true,\n \"bureau_reporting_consent\": true,\n \"balance_debit_authorized\": true,\n \"hold_authorized\": true,\n \"accepted_at\": \"2023-11-07T05:31:56Z\",\n \"session\": {\n \"device_id\": \"<string>\",\n \"ip\": \"<string>\",\n \"user_agent\": \"<string>\",\n \"device_timezone\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/applications/{id}/acceptance")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount_cents\": 123,\n \"terms_version\": \"<string>\",\n \"autopay_authorized\": true,\n \"bureau_check_consent\": true,\n \"bureau_reporting_consent\": true,\n \"balance_debit_authorized\": true,\n \"hold_authorized\": true,\n \"accepted_at\": \"2023-11-07T05:31:56Z\",\n \"session\": {\n \"device_id\": \"<string>\",\n \"ip\": \"<string>\",\n \"user_agent\": \"<string>\",\n \"device_timezone\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/applications/{id}/acceptance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount_cents\": 123,\n \"terms_version\": \"<string>\",\n \"autopay_authorized\": true,\n \"bureau_check_consent\": true,\n \"bureau_reporting_consent\": true,\n \"balance_debit_authorized\": true,\n \"hold_authorized\": true,\n \"accepted_at\": \"2023-11-07T05:31:56Z\",\n \"session\": {\n \"device_id\": \"<string>\",\n \"ip\": \"<string>\",\n \"user_agent\": \"<string>\",\n \"device_timezone\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_account_id": "<string>",
"step": "screening",
"status": "in_progress",
"is_first_loan": true,
"expires_at": "2023-11-07T05:31:56Z",
"offer": {
"offer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "prequalified",
"currency": "USD",
"max_amount_cents": 123,
"interest_cents": 123,
"hold_cents": 123,
"installment_count": 123,
"credit_level": 123,
"income_base_cents": 123,
"max_payment_cents": 123,
"installments": [
{
"seq": 123,
"amount_due_cents": 123,
"principal_cents": 123,
"interest_cents": 123
}
],
"income_verification": {
"platforms": [
"<string>"
]
}
},
"decline": {
"reasons": [
{
"code": "<string>",
"borrower_message": "<string>",
"how_to_improve": "<string>"
}
]
},
"loan": {
"loan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"currency": "USD",
"principal_cents": 123,
"interest_cents": 123,
"hold_cents": 123,
"outstanding_cents": 123,
"installments": [
{
"seq": 123,
"amount_due_cents": 123,
"principal_due_cents": 123,
"interest_due_cents": 123,
"amount_paid_cents": 123,
"due_date": "2023-12-25",
"provisional_due_date": "2023-12-25",
"paid_at": "2023-11-07T05:31:56Z",
"status": "<string>"
}
],
"instructions": [
{
"instruction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "place_hold",
"amount_cents": 123,
"currency": "USD",
"issued_at": "2023-11-07T05:31:56Z"
}
],
"deduction": {
"instruction_version": 2,
"status": "active",
"installment_seq": 123,
"amount_cents": 123,
"currency": "USD",
"deposit_filter": "inbound_bank_transfer_from_outside",
"max_deposit_pct": 100
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}API Reference
Accept an amount with the six consents and start funding
Takes the borrower's data as of acceptance from the inline `data` block. `data` is required, and a
missing one is a 400 with details [{"field": "data"}]. `data.customer` must be the customer
who applied: the same national id as the application (dots, dashes and spaces are ignored), or the
same full name when the application or the acceptance has no national id. Otherwise it is a 400 with
details [{"field": "data.customer"}] and nothing is funded.
Runs every rule again as final checks on the accepting session, then reserves program capacity, creates the loan and starts funding in one transaction.
Allowed from prequalified, additional_income and selection. The response is a view with
step funding, back at selection with a recalculated offer (once), or declined or funding_failed.
All consents must be true and accepted_at must be within the last 24 hours and no more than
5 minutes ahead. The body is limited to 1 MiB; a larger body is a 413 PAYLOAD_TOO_LARGE.
The answer does not list `place_hold`: it is issued once the bureau check passes, so read
`GET /v1/loans/{loan_id}` to get it.
POST
/
v1
/
applications
/
{id}
/
acceptance
Accept an amount with the six consents and start funding
curl --request POST \
--url https://api.example.com/v1/applications/{id}/acceptance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"amount_cents": 123,
"terms_version": "<string>",
"autopay_authorized": true,
"bureau_check_consent": true,
"bureau_reporting_consent": true,
"balance_debit_authorized": true,
"hold_authorized": true,
"accepted_at": "2023-11-07T05:31:56Z",
"session": {
"device_id": "<string>",
"ip": "<string>",
"user_agent": "<string>",
"device_timezone": "<string>"
}
}
'import requests
url = "https://api.example.com/v1/applications/{id}/acceptance"
payload = {
"amount_cents": 123,
"terms_version": "<string>",
"autopay_authorized": True,
"bureau_check_consent": True,
"bureau_reporting_consent": True,
"balance_debit_authorized": True,
"hold_authorized": True,
"accepted_at": "2023-11-07T05:31:56Z",
"session": {
"device_id": "<string>",
"ip": "<string>",
"user_agent": "<string>",
"device_timezone": "<string>"
}
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount_cents: 123,
terms_version: '<string>',
autopay_authorized: true,
bureau_check_consent: true,
bureau_reporting_consent: true,
balance_debit_authorized: true,
hold_authorized: true,
accepted_at: '2023-11-07T05:31:56Z',
session: {
device_id: '<string>',
ip: '<string>',
user_agent: '<string>',
device_timezone: '<string>'
}
})
};
fetch('https://api.example.com/v1/applications/{id}/acceptance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/applications/{id}/acceptance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount_cents' => 123,
'terms_version' => '<string>',
'autopay_authorized' => true,
'bureau_check_consent' => true,
'bureau_reporting_consent' => true,
'balance_debit_authorized' => true,
'hold_authorized' => true,
'accepted_at' => '2023-11-07T05:31:56Z',
'session' => [
'device_id' => '<string>',
'ip' => '<string>',
'user_agent' => '<string>',
'device_timezone' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Idempotency-Key: <idempotency-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/applications/{id}/acceptance"
payload := strings.NewReader("{\n \"amount_cents\": 123,\n \"terms_version\": \"<string>\",\n \"autopay_authorized\": true,\n \"bureau_check_consent\": true,\n \"bureau_reporting_consent\": true,\n \"balance_debit_authorized\": true,\n \"hold_authorized\": true,\n \"accepted_at\": \"2023-11-07T05:31:56Z\",\n \"session\": {\n \"device_id\": \"<string>\",\n \"ip\": \"<string>\",\n \"user_agent\": \"<string>\",\n \"device_timezone\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/applications/{id}/acceptance")
.header("Idempotency-Key", "<idempotency-key>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount_cents\": 123,\n \"terms_version\": \"<string>\",\n \"autopay_authorized\": true,\n \"bureau_check_consent\": true,\n \"bureau_reporting_consent\": true,\n \"balance_debit_authorized\": true,\n \"hold_authorized\": true,\n \"accepted_at\": \"2023-11-07T05:31:56Z\",\n \"session\": {\n \"device_id\": \"<string>\",\n \"ip\": \"<string>\",\n \"user_agent\": \"<string>\",\n \"device_timezone\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/applications/{id}/acceptance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = '<idempotency-key>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount_cents\": 123,\n \"terms_version\": \"<string>\",\n \"autopay_authorized\": true,\n \"bureau_check_consent\": true,\n \"bureau_reporting_consent\": true,\n \"balance_debit_authorized\": true,\n \"hold_authorized\": true,\n \"accepted_at\": \"2023-11-07T05:31:56Z\",\n \"session\": {\n \"device_id\": \"<string>\",\n \"ip\": \"<string>\",\n \"user_agent\": \"<string>\",\n \"device_timezone\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"application_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"partner_account_id": "<string>",
"step": "screening",
"status": "in_progress",
"is_first_loan": true,
"expires_at": "2023-11-07T05:31:56Z",
"offer": {
"offer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "prequalified",
"currency": "USD",
"max_amount_cents": 123,
"interest_cents": 123,
"hold_cents": 123,
"installment_count": 123,
"credit_level": 123,
"income_base_cents": 123,
"max_payment_cents": 123,
"installments": [
{
"seq": 123,
"amount_due_cents": 123,
"principal_cents": 123,
"interest_cents": 123
}
],
"income_verification": {
"platforms": [
"<string>"
]
}
},
"decline": {
"reasons": [
{
"code": "<string>",
"borrower_message": "<string>",
"how_to_improve": "<string>"
}
]
},
"loan": {
"loan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "<string>",
"currency": "USD",
"principal_cents": 123,
"interest_cents": 123,
"hold_cents": 123,
"outstanding_cents": 123,
"installments": [
{
"seq": 123,
"amount_due_cents": 123,
"principal_due_cents": 123,
"interest_due_cents": 123,
"amount_paid_cents": 123,
"due_date": "2023-12-25",
"provisional_due_date": "2023-12-25",
"paid_at": "2023-11-07T05:31:56Z",
"status": "<string>"
}
],
"instructions": [
{
"instruction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "place_hold",
"amount_cents": 123,
"currency": "USD",
"issued_at": "2023-11-07T05:31:56Z"
}
],
"deduction": {
"instruction_version": 2,
"status": "active",
"installment_seq": 123,
"amount_cents": 123,
"currency": "USD",
"deposit_filter": "inbound_bank_transfer_from_outside",
"max_deposit_pct": 100
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<unknown>"
]
},
"request_id": "<string>"
}Headers
Body
application/json
Response
The application after final checks
