Giter VIP home page Giter VIP logo

Comments (1)

xantari avatar xantari commented on September 28, 2024

Just got this email yesterday that went out to all cybersource customers! Looks like they are making a change in the API design to follow what is documented online.

Dear Merchant:
Cybersource is updating the HTTP response code returned by the Transaction Search REST API in certain scenarios.
When your search criteria does not match any transactions, the API currently responds with a response code of 404. With the upcoming update, we will change the response code to 201, in conformance with the published API specification.
As part of this change, the API response will contain a "totalCount" field with a value of ‘0’, which indicates to the client that there were ‘0’ transactions that matched the search criteria.
This update will go into effect early September. For more information about Transaction Search API, see the API Developer Guides in the Cybersource Developer Center.

Regards,
CyberSource Customer Support

For your reference, in the “no transactions found” scenario, see this sample JSON response body which accompanies an HTTP 201 response code.
Sample 201 Response:
{
"_links": {
"self": {
"href": "https://apitest.cybersource.com/tss/v2/searches/5106e95c-024b-4237-adc7-test123456",
"method": "GET"
}
},
"searchId": "5106e95c-024b-4237-adc7-test123456",
"save": false,
"name": "MRN",
"query": "clientReferenceInformation.code:invalidMRN AND submitTimeUtc:[NOW/DAY-7DAYS TO NOW/DAY+1DAY}",
"count": 0,
"totalCount": 0,
"limit": 100,
"offset": 0,
"sort": "id:asc,submitTimeUtc:asc",
"timezone": "America/Chicago",
"submitTimeUtc": "2019-08-21T18:27:19Z"
}

from cybersource-rest-client-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.