---
title: "Create Funding Source"
method: POST
path: "/fundingsources"
---

# Create Funding Source

`POST /fundingsources`

Creates a new funding source.

## Request body

- object
  - `type` 'default' | 'account' | 'gateway', required — This is the funding source type.
  - `status` 'active' | 'inactive', required — This is the initial status of the funding source.
  - `jitGateway` object — Just in-time gateway details. Required if type is `gateway`.
    - `url` string, required — Just in-time gateway url (HTTPS only).
    - `authorizationHeader` string, required — Just in-time gateway authorization header.
    - `authorizeByDefault` string, required — Just in-time gateway timeout configuration.

## Response `201`

Funding source created successfully.

- object
  - `statusCode` integer — Status code of the response. `200` indicates a successful request.
  - `message` string — Human-readable description of the result.
  - `data` object — Response payload.
    - `_id` string — Unique identifier of the object.
    - `business` string — Identifier of the business that owns this object.
    - `type` string — Type of the object.
    - `status` string — Current status of the object.
    - `isDeleted` boolean — Whether the object has been soft-deleted.
    - `createdAt` string, date-time — ISO 8601 timestamp of when the object was created.
    - `updatedAt` string, date-time — ISO 8601 timestamp of when the object was last updated.
    - `__v` integer — Internal document version (Mongo).

## Other responses

- `400` — Validation error.
- `401` — Authentication failed — missing or invalid API key.

---

[API](https://skmtc.net/sudo/apis/sudo-sandbox-api.md) · [All operations](https://skmtc.net/sudo/apis/sudo-sandbox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sudo/sudo-sandbox-api/versions/52be624fcb53/schema)
