---
title: "Create setup"
method: POST
path: "/v1/disputes/setup"
tags: ["Setup"]
---

# Create setup

`POST /v1/disputes/setup`

## Request

- Base URL: `https://sandbox.pismolabs.io/disputes`
- URL: `https://sandbox.pismolabs.io/disputes/v1/disputes/setup`
- Auth: HTTP bearer

Create a new state machine program setup.

## Headers

- `x-tenant` string, required
- `x-cid` string, required

## Request body

- CreateSetupRequest: Request body for Create setup
  - `program_id` number, required: Pismo program ID
  - `type` 'PRIMITIVE' | 'PRIMITIVE_ON_US', required: State machine type
  - `issuer_identifier` string: Issuer identifier number, one of the following: * `ICA` - Interbank Card Association ID (Visa or Mastercard) * `BID` - Business Identfication Number (Visa)
  - `send_time_line` boolean: Should timeline events be sent? Default is `false`.'
  - `is_full_balance` boolean: Create a Full balance dispute without a transaction? Default is `false`.
  - `automated_installment` boolean: Enable automated installment? Default is `false`

## Response `200`

Setup created

- CreateSetupResponse: Responsefor Create setup
  - `state_machine_id` number: State machine ID
  - `program_id` number: Pismo program ID
  - `type` 'PRIMITIVE' | 'PRIMITIVE_ON_US': State machine type
  - `issuer_identifier` string: Issuer identifier number, one of the following: * `ICA` - Interbank Card Association ID (Visa or Mastercard) * `BID` - Business Identfication Number (Visa)
  - `send_time_line` boolean: Should timeline events be sent? Default is `false`.'
  - `is_full_balance` boolean: Create a Full balance dispute without a transaction? Default is `false`.
  - `automated_installment` boolean: Enable automated installment? Default is `false`

## Other responses

- `404`: Not found
- `409`: Conflict
- `422`: Missing required fields
- `500`: Internal server error

---

[API](https://skmtc.dev/pismo/apis/card-issuing-disputes.md) - [All operations](https://skmtc.dev/pismo/apis/card-issuing-disputes/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/card-issuing-disputes/revisions/53592b5468b6?raw)
