---
title: "Create Split Payment Campaign"
method: POST
path: "/v1/agent-hub/campaigns"
---

# Create Split Payment Campaign

`POST /v1/agent-hub/campaigns`

## Request

- Base URL: `https://testapi.payarc.net`
- URL: `https://testapi.payarc.net/v1/agent-hub/campaigns`
- Auth: API key in header `Authorization`

## Headers

- `Accept` string, required
- `Content-Type` string, required

## Request body

- object
  - `name` string, required: Name of split payment campaign. Max 150 characters.
  - `base_charge` integer, required: Base charge of the split payment campaign. Max value: 100.
  - `perc_charge` string, required: Percentage charge of the split payment campaign. Max value 20.
  - `description` string: Description of split payment campaign. Max 255 characters.
  - `notes` string: Notes of the split payment campaign. Max 500 characters.
  - `is_default` '0' | '1': To set the split payment campaign as the default, send 1.
  - `accounts` string[]: Array of account IDs associated with the split payment campaign.

## Response `200`

200

- object
  - `data` object
    - `object` string
    - `id` string
    - `name` string
    - `description` string
    - `notes` string
    - `status` string
    - `base_charge` integer
    - `perc_charge` string
    - `is_default` unknown
    - `created_at` string
    - `updated_at` string
    - `readable_created_at` string
    - `readable_updated_at` string
    - `account` object
      - `data` unknown[]
        - unknown
  - `meta` object
    - `include` unknown[]
      - unknown
    - `custom` unknown[]
      - unknown

## Other responses

- `422`: 422

---

[API](https://skmtc.dev/payarc/apis/payarc-sandbox.md) - [All operations](https://skmtc.dev/payarc/apis/payarc-sandbox/llms.txt) - [OpenAPI document](https://skmtc.dev/payarc/apis/payarc-sandbox/revisions/d3ee769894e4?raw)
