curl --request POST \
--url https://lender.sandbox.lerian.net/api/v1/assignment/sets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivableRefs": [
"<string>"
],
"retainedFraction": "0",
"sellerRetainsControl": false
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://lender.sandbox.lerian.net/api/v1/assignment/sets"
payload := strings.NewReader("{\n \"fundId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"receivableRefs\": [\n \"<string>\"\n ],\n \"retainedFraction\": \"0\",\n \"sellerRetainsControl\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fundId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
receivableRefs: ['<string>'],
retainedFraction: '0',
sellerRetainsControl: false
})
};
fetch('https://lender.sandbox.lerian.net/api/v1/assignment/sets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://lender.sandbox.lerian.net/api/v1/assignment/sets"
payload = {
"fundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivableRefs": ["<string>"],
"retainedFraction": "0",
"sellerRetainsControl": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"items": [
{
"assignmentPrice": "<string>",
"assignmentRate": "<string>",
"assignorRef": "<string>",
"borrowerRef": "<string>",
"currency": "<string>",
"custodyComplete": true,
"discountAmount": "<string>",
"dossierDigest": "<string>",
"exitReason": "<string>",
"exitSource": "<string>",
"faceValue": "<string>",
"hasOpenOverdue": true,
"installmentCount": 123,
"itemState": "<string>",
"outstandingBalance": "<string>",
"paymentSourceRef": "<string>",
"principalAmount": "<string>",
"receivableRef": "<string>",
"registrationActive": true,
"repriced": true,
"snapshotObservedAt": "<string>",
"valuationBaseDate": "<string>",
"valuationVersion": "<string>",
"trailInstallmentsRemaining": 123
}
],
"set": {
"assignorConcentrationLimit": "<string>",
"borrowerConcentrationLimit": "<string>",
"createdAt": "<string>",
"createdBy": "<string>",
"currency": "<string>",
"eligibilityCheckedAt": "<string>",
"eligibilityMode": "full",
"fundId": "<string>",
"fundPaidAmount": "<string>",
"id": "<string>",
"inSetItemCount": 123,
"paymentSourceConcentrationLimit": "<string>",
"paymentTolerance": "<string>",
"registryProvider": "<string>",
"retainedFraction": "<string>",
"retentionThreshold": "<string>",
"riskRetention": "<string>",
"ruleVersion": "<string>",
"sellerRetainsControl": true,
"state": "<string>",
"termMode": "lender_emitted",
"totalAssignmentPrice": "<string>",
"totalFaceValue": "<string>",
"updatedAt": "<string>",
"valuationVersion": "<string>"
},
"approval": {
"approvedAt": "<string>",
"approvedBy": "<string>",
"contentDigest": "<string>",
"currency": "<string>",
"fundId": "<string>",
"id": "<string>",
"itemCount": 123,
"setId": "<string>",
"totalAssignmentPrice": "<string>",
"trailObservedAt": "<string>",
"valuationVersion": "<string>"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Assemble an assignment set
Composes a DRAFT set from the chosen receivables: freezes each one’s facts and prices it with the fund’s own cession rate, so the composition a manager later approves is the composition that was measured. A receivable already travelling inside another set is refused, never silently dropped.
curl --request POST \
--url https://lender.sandbox.lerian.net/api/v1/assignment/sets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivableRefs": [
"<string>"
],
"retainedFraction": "0",
"sellerRetainsControl": false
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://lender.sandbox.lerian.net/api/v1/assignment/sets"
payload := strings.NewReader("{\n \"fundId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"receivableRefs\": [\n \"<string>\"\n ],\n \"retainedFraction\": \"0\",\n \"sellerRetainsControl\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fundId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
receivableRefs: ['<string>'],
retainedFraction: '0',
sellerRetainsControl: false
})
};
fetch('https://lender.sandbox.lerian.net/api/v1/assignment/sets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://lender.sandbox.lerian.net/api/v1/assignment/sets"
payload = {
"fundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receivableRefs": ["<string>"],
"retainedFraction": "0",
"sellerRetainsControl": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"items": [
{
"assignmentPrice": "<string>",
"assignmentRate": "<string>",
"assignorRef": "<string>",
"borrowerRef": "<string>",
"currency": "<string>",
"custodyComplete": true,
"discountAmount": "<string>",
"dossierDigest": "<string>",
"exitReason": "<string>",
"exitSource": "<string>",
"faceValue": "<string>",
"hasOpenOverdue": true,
"installmentCount": 123,
"itemState": "<string>",
"outstandingBalance": "<string>",
"paymentSourceRef": "<string>",
"principalAmount": "<string>",
"receivableRef": "<string>",
"registrationActive": true,
"repriced": true,
"snapshotObservedAt": "<string>",
"valuationBaseDate": "<string>",
"valuationVersion": "<string>",
"trailInstallmentsRemaining": 123
}
],
"set": {
"assignorConcentrationLimit": "<string>",
"borrowerConcentrationLimit": "<string>",
"createdAt": "<string>",
"createdBy": "<string>",
"currency": "<string>",
"eligibilityCheckedAt": "<string>",
"eligibilityMode": "full",
"fundId": "<string>",
"fundPaidAmount": "<string>",
"id": "<string>",
"inSetItemCount": 123,
"paymentSourceConcentrationLimit": "<string>",
"paymentTolerance": "<string>",
"registryProvider": "<string>",
"retainedFraction": "<string>",
"retentionThreshold": "<string>",
"riskRetention": "<string>",
"ruleVersion": "<string>",
"sellerRetainsControl": true,
"state": "<string>",
"termMode": "lender_emitted",
"totalAssignmentPrice": "<string>",
"totalFaceValue": "<string>",
"updatedAt": "<string>",
"valuationVersion": "<string>"
},
"approval": {
"approvedAt": "<string>",
"approvedBy": "<string>",
"contentDigest": "<string>",
"currency": "<string>",
"fundId": "<string>",
"id": "<string>",
"itemCount": 123,
"setId": "<string>",
"totalAssignmentPrice": "<string>",
"trailObservedAt": "<string>",
"valuationVersion": "<string>"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Cuerpo
The share of the expected loss this institution keeps after THIS sale, a decimal string from 0 to 1 with at most 8 decimal places (0 keeps nothing, 0.1 keeps 10%). Omit it to take the fraction the fund proposes. Whichever results is frozen onto the cession next to the institution's substantial-retention threshold of that day, and the regime is derived from those two frozen values, never re-read from the fund. Refusals: null or blank LENDER-0503; not a decimal, below 0, above 1 or more than 8 decimal places LENDER-0506; a fraction at or above the threshold (substantial retention) LENDER-0504, not bookable yet.
"0"
Whether the seller keeps control of what THIS sale transfers, the middle band of Res. CMN 4.966 art. 26 III that a fraction cannot express. Omit it to take what the fund proposes. Refusals: null LENDER-0503; true LENDER-0505, a band this product does not book and never will.
false
Respuesta
Created
¿Esta página le ayudó?

