cURL
curl --request POST \
--url http://localhost:3000/v1/funders/{funder_id}/policies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import { Moneyline } from '@moneyline/sdk';
const client = new Moneyline();
const result = await client.policies.createFunderPolicy('3fa85f64-5717-4562-b3fc-2c963f66afa6', '3fa85f64-5717-4562-b3fc-2c963f66afa6');import requests
url = "http://localhost:3000/v1/funders/{funder_id}/policies"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/v1/funders/{funder_id}/policies"
payload := strings.NewReader("{\n \"name\": \"<string>\"\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))
}{
"data": {}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}Policies
Create a funder policy
POST
/
v1
/
funders
/
{funder_id}
/
policies
cURL
curl --request POST \
--url http://localhost:3000/v1/funders/{funder_id}/policies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'import { Moneyline } from '@moneyline/sdk';
const client = new Moneyline();
const result = await client.policies.createFunderPolicy('3fa85f64-5717-4562-b3fc-2c963f66afa6', '3fa85f64-5717-4562-b3fc-2c963f66afa6');import requests
url = "http://localhost:3000/v1/funders/{funder_id}/policies"
payload = { "name": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/v1/funders/{funder_id}/policies"
payload := strings.NewReader("{\n \"name\": \"<string>\"\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))
}{
"data": {}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}