---
title: "Transition cash on delivery"
method: POST
path: "/api/v1.4/transactions/{trx_uuid}/transition/"
tags: ["v1.1"]
---

# Transition cash on delivery

`POST /api/v1.4/transactions/{trx_uuid}/transition/`

Transition only CASH_ON_DELIVERY transactions to successful state

## Path parameters

- `trx_uuid` string, required

## Request body

- UpdateCODTransactionStatus
  - `target_status` 'successful' | 'failed', required — Mark the transaction as successful or failed. * `successful` - successful * `failed` - failed
  - `increase_amount` string, decimal — Increase the transaction amount.
  - `decrease_amount` string, decimal — Decrease the transaction amount.

## Response `200`

- Transaction
  - `id` string, required — Transaction ID
  - `custom_fields` unknown
  - `status` string
  - `amount` union, required — Transaction amount
    - number, double
    - object
  - `amount_currency` string, required — Transaction currency
  - `payment_method` string, required
  - `payment_method_name` string, required
  - `service_provider` string, nullable, required
  - `account` string, required
  - `billing_data` BillingDataSerializerField, required
    - `name` string, nullable — The full name of the customer. Maximum length is 100 characters.
    - `first_name` string, nullable — The first name of the customer. Maximum length is 100 characters.
    - `last_name` string, nullable — The last name of the customer. Maximum length is 150 characters.
    - `email` string, nullable — The email address of the customer.
    - `phone_number` string, nullable — The phone number of the customer. It should be in a valid international format.
    - `address` string — The full address of the customer. Maximum length is 500 characters.
    - `address1` string — Additional address line for the customer. Maximum length is 500 characters.
    - `apartment` string — The apartment number of the customer. Maximum length is 10 characters.
    - `floor` string — The floor number of the customer's address. Maximum length is 10 characters.
    - `building` string — The building number or name of the customer's address. Maximum length is 255 characters.
    - `street` string — The street name of the customer. Maximum length is 500 characters.
    - `city` string — The city of the customer. Maximum length is 255 characters.
    - `state` string, nullable — The state or province of the customer. Maximum length is 255 characters.
    - `country` string — The country of the customer. Maximum length is 255 characters.
    - `postal_code` string — The postal code of the customer. Maximum length is 10 characters.
    - `mobile_wallet_number` string, nullable — The mobile wallet number of the customer.
  - `is_retry` boolean, required — Is this transaction a retry after failure
  - `authentication_data` unknown
  - `authentication` unknown
  - `full_capture` boolean, required
  - `created` string, date-time, required
  - `modified` string, date-time, required

## Other responses

- `400`
- `401`

---

[API](https://skmtc.net/moneyhash/apis/moneyhash-api.md) · [All operations](https://skmtc.net/moneyhash/apis/moneyhash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/moneyhash/moneyhash-api/revisions/111e4c2e0826/schema)
