ReconifyDocumentation

Create a ledger source

Creates a named transaction source for your organization. Use the source ID to push transactions.

POST
/ledger/sources

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Org-level API key (sk_live_*). Create keys from the dashboard at Settings → API Keys.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/ledger/sources" \  -H "Content-Type: application/json" \  -d '{    "name": "Stripe Payments"  }'
{  "$schema": "/v1/schemas/SourceOutputBody.json",  "source": {    "createdAt": "2019-08-24T14:15:22Z",    "id": "018f1a2b-3c4d-5e6f-7a8b-9c0d1e2f3a4b",    "name": "Stripe Payments",    "orgId": "string",    "schemaMapping": {      "amountCol": "string",      "currencyCol": "string",      "dateCol": "string",      "dateLayout": "2006-01-02",      "decimal": ".",      "directionCol": "string",      "nameCol": "string",      "refCol": "string",      "thousands": ",",      "typeCol": "string"    },    "updatedAt": "2019-08-24T14:15:22Z"  }}
{  "$schema": "/v1/schemas/ErrorModel.json",  "detail": "Property foo is required but is missing.",  "errors": [    {      "location": "string",      "message": "string",      "value": null    }  ],  "instance": "https://example.com/error-log/abc123",  "status": 400,  "title": "Bad Request",  "type": "https://example.com/errors/example"}