Skip to main content
POST
/
api
/
reconciliation
/
policies
Create a policy
curl --request POST \
  --url http://localhost/api/reconciliation/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "XXX",
  "ledgerName": "default",
  "ledgerQuery": {},
  "paymentsPoolID": "XXX"
}
'
{
  "data": {
    "id": "XXX",
    "name": "XXX",
    "createdAt": "2021-01-01T00:00:00.000Z",
    "ledgerName": "default",
    "ledgerQuery": {},
    "paymentsPoolID": "XXX"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.formance.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
name
string
required
Example:

"XXX"

ledgerName
string
required
Example:

"default"

ledgerQuery
object
required
paymentsPoolID
string
required
Example:

"XXX"

Response

OK

data
object
required