---
title: "Update on-us dispute"
method: POST
path: "/v1/disputes-on-us/{disputeId}/event"
tags: ["On-Us"]
---

# Update on-us dispute

`POST /v1/disputes-on-us/{disputeId}/event`

## Request

- Base URL: `https://sandbox.pismolabs.io/disputes`
- URL: `https://sandbox.pismolabs.io/disputes/v1/disputes-on-us/{disputeId}/event`
- Auth: HTTP bearer

Update on-us dispute. This endpoint updates a dispute for a non-branded authorization or transaction performed with a Pismo-issued card. Disputes are initially created with a `PENDING` status. Once ready, the issuer must call this endpoint with the `OPEN` event to submit the dispute and move the dispute status to `OPENED`. 

 For more information about on-us disputes and its state machine, refer to the [On-us disputes](https://developers.pismo.io/pismo-docs/docs/on-us-disputes) guide.

This endpoint generates a [Dispute status changed](https://developers.pismo.io/events/docs/disputes-dispute-installment-status-change-1) event.

**Notes:** 
  * This endpoint takes an account token - an access token encoded with a Pismo account ID. Tokens can expire quickly, which can result in a <b>401 Unauthorized</b> message.
  * The account ID, Org ID and cid (correlation identifier) are parsed from the account token.

## Path parameters

- `disputeId` number, required

## Request body

- UpdateOnUsDisputeRequest
  - `event` 'OPEN' | 'CANCEL' | 'EXPIRE' | 'REJECTS' | 'REOPEN' | 'PENDING_DOCUMENTATION' | 'RESEND' | 'ISSUER_LOSS' | 'STORE_OWNER_LOSS' | 'CARDHOLDER_LOSS', required: On-us dispute events
  - `reason` string: Reason for updating the on-us dispute
  - `memo` string: Additional notes about on-us dispute endpoint

## Response `200`

Dispute updated

- UpdateOnUsDisputeResponse: Update On-Us dispute response body
  - `dispute_id` number, required: Dispute ID
  - `dispute_status` 'OPENED' | 'CANCELED' | 'REJECTED' | 'PENDING' | 'PENDING_DOCUMENTATION' | 'ISSUER_LOSS' | 'STORE_OWNER_LOSS' | 'CARDHOLDER_LOSS' | 'EXPIRED', required: On-us dispute statuses

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found
- `422`: Unprocessable entity
- `423`: Access not allowed
- `500`: Internal server error
- `504`: Gateway timeout

---

[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)
