Refund

HTTP Method

POST /api/Integration/{version}/Refund

Request

Request Header

AttributeTypeRequired

ClientId

string

YES

Request Body

AttributeTypeRequired

WalletCode

string

YES

ContactMsisdn

string

YES

BranchMsisdn

string

YES

Points

integer

NO

PointsValue

integer

NO

ExternalLogId

string

NO

TransactionId

integer

YES

InvoiceNumber

string

NO

Comment

string

NO

Response

Response Body

{
    "errorCode": "0",
    "errorMessage": "Success",
    "offerNumber": 0,
    "couponNumber": null,
    "couponDetails": null,
    "wallet": {
        "id": 3691,
        "name": null,
        "walletCode": "011111111111",
        "email": null,
        "address": null,
        "gender": null,
        "totalPoints": 299773,
        "accumulatedPoints": 300273,
        "redPoints": 500,
        "isOptedIn": false,
        "optedInDate": "2023-07-12T11:47:26.1333619",
        "parentWalletId": null,
        "addOnWalletId": null,
        "billRewardPoints": 300273,
        "billRewardValue": 100091.0,
        "referralMasterMSISDN": null,
        "birthDate": null,
        "nid": null,
        "contactMsisdn": "01151618768",
        "walletStatusId": 1,
        "segment": {
            "id": 1,
            "name": "Basic",
            "rewValueFactor": 3.0,
            "redValueFactor": 4.0,
            "redThreshold": 1,
            "value": 2,
            "bonusPoints": null,
            "offerNumber": null,
            "ratePlan": null,
            "color": null,
            "segmentColorId": null
        },
        "childrenWallets": null,
        "parentWallet": null,
        "isParent": false,
        "parentWalletCode": null,
        "walletType": null,
        "isAdded": false,
        "isDeleted": false,
        "redemptionActivationFlag": true,
        "suspendedPoints": 0
    },
    "pointsLog": {
        "id": 46175,
        "walletId": 3691,
        "actorWalletId": 3691,
        "channelId": null,
        "logTypeId": 3,
        "comments": "Points refunded to 011111111111",
        "merchantMSISDN": "201020792658",
        "amount": 125.0,
        "amountValue": 500,
        "balanceAfter": 299773,
        "isExpired": false,
        "createdDate": "2023-07-12T12:39:26.0054711+03:00",
        "invoiceDate": null,
        "invoiceNumber": null,
        "skuPointsId": null,
        "refundedLogId": 46173,
        "userId": 40,
        "externalLogId": "dadsd"
    },
    "transaction": null,
    "totalAmount": 74943.0
}

Last updated