REST Resource: projects.complaints

Stay organized with collections Save and categorize content based on your preferences.

Resource: Complaint

A complaint processed by the issuer switch.

JSON representation
{
  "name": string,
  "raiseComplaintAdjustment": {
    object (RaiseComplaintAdjustment)
  },
  "details": {
    object (CaseDetails)
  },
  "response": {
    object (CaseResponse)
  },
  "resolveComplaintAdjustment": {
    object (ResolveComplaintAdjustment)
  }
}
Fields
name

string

The name of the complaint. This uniquely identifies the complaint. Format of name is projects/{project_id}/complaints/{complaint_id}.

raiseComplaintAdjustment

object (RaiseComplaintAdjustment)

The reason for raising the complaint. This maps adjustment flag and reason code for the complaint to reqAdjFlag and reqAdjCode in complaint request respectively while raising a complaint.

details

object (CaseDetails)

Required. Details required for raising / resolving a complaint.

response

object (CaseResponse)

Output only. Response to the raised / resolved complaint.

resolveComplaintAdjustment

object (ResolveComplaintAdjustment)

The reason for resolving the complaint. It provides adjustment values while resolving and for already resolved complaints. This maps adjustment flag and reason code for the complaint to reqAdjFlag and reqAdjCode in complaint request respectively when a complete resolution is done via Resolve Complaint API otherwise maps to respAdjFlag and respAdjCode in complaint response respectively when a complaint request from UPI is directly resolved by issuer switch.

RaiseComplaintAdjustment

The adjusment flag and reason code for raising complaint.

JSON representation
{
  "adjustmentFlag": enum (AdjustmentFlag),
  "adjustmentCode": enum (ReasonCode)
}
Fields
adjustmentFlag

enum (AdjustmentFlag)

Required. The adjustment flag in URCS for the complaint transaction. This maps to reqAdjFlag in complaint request and respAdjFlag in complaint response.

adjustmentCode

enum (ReasonCode)

Required. The adjustment code in URCS for the complaint transaction. This maps to reqAdjCode in complaint request.

AdjustmentFlag

The adjusment flag for raising complaint.

Enums
ADJUSTMENT_FLAG_UNSPECIFIED Unspecified adjustment flag.
RAISE Complaint Raise. This flag maps to the PBRB adjustment flag as defined in NPCI's UDIR specification.

ReasonCode

The reason for raising complaint.

Enums
REASON_CODE_UNSPECIFIED Unspecified reason code.
CUSTOMER_ACCOUNT_NOT_REVERSED Customer account has not yet reversed for a declined pay transaction. This reason code maps to the U005 reason code as defined in NPCI's UDIR specification.
GOODS_SERVICES_NOT_PROVIDED Goods / services are not provided for approved transaction. This reason code maps to the U008 reason code as defined in NPCI's UDIR specification.
CUSTOMER_ACCOUNT_NOT_CREDITED_BACK Customer account not credited back for declined transaction. This reason code maps to the U009 reason code as defined in NPCI's UDIR specification.
BENEFICIARY_ACCOUNT_NOT_CREDITED Beneficiary account is not credited for successful pay transaction. This reason code maps to the U010 reason code as defined in NPCI's UDIR specification.
GOODS_SERVICES_CREDIT_NOT_PROCESSED Credit not processed for cancelled or returned goods and services. This reason code maps to the U021 reason code as defined in NPCI's UDIR specification.
MERCHANT_NOT_RECEIVED_CONFIRMATION Account debited but transaction confirmation not received at merchant location. This reason code maps to the U022 reason code as defined in NPCI's UDIR specification.
PAID_BY_ALTERNATE_MEANS Paid by alternate means / Duplicate payment. This reason code maps to the U023 reason code as defined in NPCI's UDIR specification.

ResolveComplaintAdjustment

The adjusment flag and reason code for resolving the complaint.

JSON representation
{
  "adjustmentFlag": enum (AdjustmentFlag),
  "adjustmentCode": enum (ReasonCode)
}
Fields
adjustmentFlag

enum (AdjustmentFlag)

Required. The adjustment flag in URCS for the complaint transaction. This maps to reqAdjFlag in complaint request and respAdjFlag in complaint response.

adjustmentCode

enum (ReasonCode)

Required. The adjustment code in URCS for the complaint transaction. This maps to reqAdjCode in complaint request.

AdjustmentFlag

The adjusment flag for resolving the complaint.

Enums
ADJUSTMENT_FLAG_UNSPECIFIED Unspecified adjustment flag.
DEBIT_REVERSAL_CONFIRMATION Debit Reversal Confirmation. This flag maps to the DRC adjustment flag as defined in NPCI's UDIR specification.
RETURN Return. This flag maps to the RET adjustment flag as defined in NPCI's UDIR specification.
REFUND_REVERSAL_CONFIRMATION Refund Reversal Confirmation. This flag maps to the RRC adjustment flag as defined in NPCI's UDIR specification.
TRANSACTION_CREDIT_CONFIRMATION Transaction Credit Confirmation. This flag maps to the TCC adjustment flag as defined in NPCI's UDIR specification.

ReasonCode

The complaint resolution reason code.

Enums
REASON_CODE_UNSPECIFIED Unspecified reason code.
COMPLAINT_RESOLVED_ONLINE Customer account has been reversed online for DRC dispute or beneficiary account has been credited online for TCC dispute. This reason code maps to the 102 reason code as defined in NPCI's UDIR specification.
COMPLAINT_RESOLVED_NOW_OR_MANUALLY Customer account has been reversed now or manually post reconciliation for DRC dispute or beneficiary account has been credited now or manually post reconciliation for TCC dispute. This reason code maps to the 103 reason code as defined in NPCI's UDIR specification.
ORIGINAL_TRANSACTION_NOT_DONE Online decline response failed. This reason code maps to the 104 reason code as defined in NPCI's UDIR specification.
RET_ACCOUNT_CLOSED Account closed. This reason code maps to the 114 reason code for RET dispute as defined in NPCI's UDIR specification.
RET_ACCOUNT_DOES_NOT_EXIST Account does not exist. This reason code maps to the 115 reason code for RET dispute as defined in NPCI's UDIR specification.
RET_PARTY_INSTRUCTIONS Party instructions. This reason code maps to the 116 reason code for RET dispute as defined in NPCI's UDIR specification.
RET_NRI_ACCOUNT NRI account. This reason code maps to the 117 reason code for RET dispute as defined in NPCI's UDIR specification.
RET_CREDIT_FREEZED Credit freezed. This reason code maps to the 118 reason code for RET dispute as defined in NPCI's UDIR specification.
RET_INVALID_BENEFICIARY_DETAILS Invalid beneficiary details. This reason code maps to the 119 reason code for RET dispute as defined in NPCI's UDIR specification.
RET_ANY_OTHER_REASON Any other reason. This reason code maps to the 120 reason code for RET dispute as defined in NPCI's UDIR specification.
RET_BENEFICIARY_CANNOT_CREDIT Beneficiary bank unable to credit their customer account. This reason code maps to the 1094 reason code for RET dispute as defined in NPCI's UDIR specification.
RET_MERCHANT_NOT_RECEIVED_CONFIRMATION Account debited but transaction confirmation not received at merchant location. This reason code maps to the 1065 reason code for Credit adjustment and RET dispute as defined in NPCI's UDIR specification.
RRC_CUSTOMER_ACCOUNT_CREDITED Customer account has been credited. This reason code maps to the 501 reason code for Refund reversal confirmation dispute as defined in NPCI's UDIR specification.

Methods

create

Create a complaint.

resolve

Resolve a complaint.