api return error

haoran
New Contributor

Error about api return (visapayouts/v2/payouts)

Hello,I call this api and return "transactionDetail retrievalReferenceNumber has invalid content",retrievalReferenceNumber ,I tried to modify it, but it wasn't available

request:

{
  "recipientDetail": {
    "lastName""Smith",
    "address": {
      "country""840",
      "city""SFO",
      "postalCode""100",
      "addressLine1""address line 1",
      "addressLine2""address line 2",
      "state""765"
    },
    "contactEmail""abc@visa.com",
    "dateOfBirth""1990-09-11",
    "type""I",
    "payoutMethod""B",
    "firstName""John",
    "bank": {
      "branchCode""2",
      "bankCode""021001088",
      "bankCodeType""ABA",
      "accountNumberType""DEFAULT",
      "accountName""account name",
      "countryCode""840",
      "accountType""1",
      "bankName""Bank of America",
      "accountNumber""4385878445587518",
      "BIC""CTBAAU2S",
      "currencyCode""840"
    },
    "cityOfBirth""Austin",
    "identificationList": [
      {
        "idType""D",
        "idNumber""123334",
        "idIssueCountry""840"
      }
    ],
    "countryOfBirth""840",
    "contactNumber""123456789",
    "additionalData": [
      {
        "name""TAX_REF",
        "value""ASR"
      }
    ]
  },
  "senderDetail": {
    "address": {
      "country""840",
      "city""Mumbai",
      "postalCode""100",
      "addressLine1""address line 1",
      "addressLine2""address line 2",
      "state""Mahrashtra"
    },
    "contactEmail""def@visa.com",
    "beneficiaryRelationship""business partner",
    "dateOfBirth""1990-09-11",
    "sourceOfFunds""02",
    "type""I",
    "senderReferenceNumber""4304630005267011",
    "cityOfBirth""Austin",
    "identificationList": [
      {
        "idType""D",
        "idNumber""123334",
        "idIssueCountry""840"
      }
    ],
    "countryOfBirth""840",
    "name""John Smith",
    "contactNumber""120345678",
    "additionalData": [
      {
        "name""TAX_REF",
        "value""ASR"
      }
    ],
    "sourceOfIncome""business"
  },
  "originatorDetail": {
    "paymentFacilitator": {
      "country""840",
      "name""test",
      "id""123476876"
    },
    "bankId""408999",
    "originatorName""Visa Inc. GER",
    "address": {
      "country""840",
      "postalCode""12346",
      "state""TX",
      "addressLine""123 St."
    },
    "originatorBIC""CTBAAU2S",
    "merchantCategoryCode""6012",
    "bankBIC""CTBAAU2S",
    "originatorId""77770"
  },
  "transactionDetail": {
    "systemTraceAuditNumber""325081",
    "localTransactionDateTime""2021-08-06T11:00:29",
    "businessApplicationId""FD",
    "statementNarrative""advance payment",
    "purposeOfPayment""ANN",
    "transactionAmount""200",
    "transactionCurrencyCode""840",
    "additionalData": [
      {
        "name""TAX_REF",
        "value""ASR"
      }
    ],
    "retrievalReferenceNumber""121816403394",
    "endToEndId""ABCD-1234-fab-578",
    "clientReferenceId""3187351823",
    "payoutSpeed""standard"
  }
}
response:
{
    "errorResponse": {
        "status"400,
        "reason""invalidBankParameter",
        "message""Bank Request has invalid Parameter",
        "details": [
            {
                "location""transactionDetail.retrievalReferenceNumber",
                "message""transactionDetail retrievalReferenceNumber has invalid content",
                "code"31051
            }
        ]
    }
}
My English is not good, I hope I can understand
1 REPLY 1
haoran
New Contributor

api return error

Hello,I call this api(https://sandbox.api.visa.com/visapayouts/v2/payouts) and return "transactionDetail retrievalReferenceNumber has invalid content",retrievalReferenceNumber ,I tried to modify it, but it wasn't available

request:

{
  "recipientDetail": {
    "lastName""Smith",
    "address": {
      "country""840",
      "city""SFO",
      "postalCode""100",
      "addressLine1""address line 1",
      "addressLine2""address line 2",
      "state""765"
    },
    "contactEmail""abc@visa.com",
    "dateOfBirth""1990-09-11",
    "type""I",
    "payoutMethod""B",
    "firstName""John",
    "bank": {
      "branchCode""2",
      "bankCode""021001088",
      "bankCodeType""ABA",
      "accountNumberType""DEFAULT",
      "accountName""account name",
      "countryCode""840",
      "accountType""1",
      "bankName""Bank of America",
      "accountNumber""4385878445587518",
      "BIC""CTBAAU2S",
      "currencyCode""840"
    },
    "cityOfBirth""Austin",
    "identificationList": [
      {
        "idType""D",
        "idNumber""123334",
        "idIssueCountry""840"
      }
    ],
    "countryOfBirth""840",
    "contactNumber""123456789",
    "additionalData": [
      {
        "name""TAX_REF",
        "value""ASR"
      }
    ]
  },
  "senderDetail": {
    "address": {
      "country""840",
      "city""Mumbai",
      "postalCode""100",
      "addressLine1""address line 1",
      "addressLine2""address line 2",
      "state""Mahrashtra"
    },
    "contactEmail""def@visa.com",
    "beneficiaryRelationship""business partner",
    "dateOfBirth""1990-09-11",
    "sourceOfFunds""02",
    "type""I",
    "senderReferenceNumber""4304630005267011",
    "cityOfBirth""Austin",
    "identificationList": [
      {
        "idType""D",
        "idNumber""123334",
        "idIssueCountry""840"
      }
    ],
    "countryOfBirth""840",
    "name""John Smith",
    "contactNumber""120345678",
    "additionalData": [
      {
        "name""TAX_REF",
        "value""ASR"
      }
    ],
    "sourceOfIncome""business"
  },
  "originatorDetail": {
    "paymentFacilitator": {
      "country""840",
      "name""test",
      "id""123476876"
    },
    "bankId""408999",
    "originatorName""Visa Inc. GER",
    "address": {
      "country""840",
      "postalCode""12346",
      "state""TX",
      "addressLine""123 St."
    },
    "originatorBIC""CTBAAU2S",
    "merchantCategoryCode""6012",
    "bankBIC""CTBAAU2S",
    "originatorId""77770"
  },
  "transactionDetail": {
    "systemTraceAuditNumber""325081",
    "localTransactionDateTime""2021-08-06T11:00:29",
    "businessApplicationId""FD",
    "statementNarrative""advance payment",
    "purposeOfPayment""ANN",
    "transactionAmount""200",
    "transactionCurrencyCode""840",
    "additionalData": [
      {
        "name""TAX_REF",
        "value""ASR"
      }
    ],
    "retrievalReferenceNumber""121816403394",
    "endToEndId""ABCD-1234-fab-578",
    "clientReferenceId""3187351823",
    "payoutSpeed""standard"
  }
}
response:
{
    "errorResponse": {
        "status": 400,
        "reason""invalidBankParameter",
        "message""Bank Request has invalid Parameter",
        "details": [
            {
                "location""transactionDetail.retrievalReferenceNumber",
                "message""transactionDetail retrievalReferenceNumber has invalid content",
                "code": 31051
            }
        ]
    }
}
My English is not good, I hope I can understand