---
title: "Generate Payment Reference for Coop-Bank Mtaani Agents"
method: POST
path: "/api/v1/payment/coop-agent-deposit/"
tags: ["Payment Collection"]
---

# Generate Payment Reference for Coop-Bank Mtaani Agents

`POST /api/v1/payment/coop-agent-deposit/`

Generate a payment reference number for deposits at Coop-Bank Mtaani Agents.

## Request body

- CreateCoopValidationData
  - `amount` string, decimal, required
  - `wallet_id` string, nullable
  - `api_ref` string, nullable

## Response `200`

- CoopAgentsReference
  - `invoice` InvoicesSer, required
    - `invoice_id` string, required
    - `state` 'PENDING' | 'PROCESSING' | 'FAILED' | 'CANCELED' | 'PARTIAL' | 'COMPLETE' | 'RETRY' — * `PENDING` - PENDING * `PROCESSING` - PROCESSING * `FAILED` - FAILED * `CANCELED` - CANCELED * `PARTIAL` - PARTIAL * `COMPLETE` - COMPLETE * `RETRY` - RETRY
    - `provider` 'M-PESA' | 'PESALINK' | 'CARD-PAYMENT' | 'GOOGLE-PAY' | 'APPLE-PAY' | 'BITCOIN' | 'BANK-ACH' | 'COOP_B2B', required — * `M-PESA` - M-Pesa * `PESALINK` - PesaLink(Bank KE) * `CARD-PAYMENT` - Card * `GOOGLE-PAY` - Google pay * `APPLE-PAY` - Apple pay * `BITCOIN` - Bitcoin * `BANK-ACH` - Bank ACH * `COOP_B2B` - COOP-Bank Agent
    - `charges` string, decimal
    - `net_amount` string, required
    - `currency` string, required
    - `value` string, decimal, required
    - `account` string, nullable — Depositing account, email or phone number
    - `api_ref` string, nullable — API tracking reference number
    - `clearing_status` string, required
    - `mpesa_reference` string, required
    - `host` string, nullable — Payment origin host i.e domain making the payment
    - `card_info` string, required
    - `retry_count` integer
    - `failed_reason` string, nullable
    - `failed_code` string, nullable
    - `failed_code_link` string, required
    - `created_at` string, date-time, nullable, required
    - `updated_at` string, date-time, nullable, required
  - `reference_no` integer, required
  - `bank_account` string, required
  - `status` 'PENDING' | 'PROCESSING' | 'FAILED' | 'COMPLETE' — * `PENDING` - PENDING * `PROCESSING` - PROCESSING * `FAILED` - FAILED * `COMPLETE` - COMPLETE

---

[API](https://skmtc.dev/intasend/apis/intasend-api.md) · [All operations](https://skmtc.dev/intasend/apis/intasend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/intasend/intasend-api/revisions/9fd63286a2c8/schema)
