Skip to content

MShineRay/checkout-api-reference

 
 

Repository files navigation

Checkout.com API reference

Checkout.com APIs accept and return JSON in the HTTP body, and return standard HTTP response codes.

Our API reference is written using the OpenAPI specification. We have one spec for the current account structure and one for the new account structure. Merchants can download the specs using the download button on either version of the API reference.

The API reference is hosted on Vercel.


Owners

The Tech Docs team own the API reference and work closely with product teams to produce guides on the main documentation site and the API reference.


Contributing

Most teams write the spec before building out the functionality. The preferred way to contribute is using our GitHub workflow, which means you just have to edit the spec on your own GitHub organisation instead of editing directly on this one.

If you fork this repo to edit your spec, you will need to:

  1. Install the dependencies using npm i
  2. Run npm run start to view your changes on http://localhost:3001.

When you raise a PR, it will automatically tag the Docs Admin team for review.


abc_spec or nas_spec?

Use the appropriate directory (or directories) for your change to the ABC or NAS specification(s). If you need any help, please contact one of the Owners.


Running the project locally

To run this project locally, clone the repository and run these commands in sequence:

  1. npm i
  2. npm run build:all
    1. OR npm run build:abc
    2. OR npm run build:nas
  3. npm run start

The project should then be available at port 3001 (navigate to localhost:3001 in your browser).

For example:

localhost:3001 (ABC) localhost:3001/preview/crusoe (NAS)


Previews

When you open a PR, Vercel will automatically create a preview link.

For NAS previews, append /preview/crusoe to the link generated by Vercel.

About

API Reference for Checkout APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 30.1%
  • C# 25.8%
  • PHP 22.9%
  • JavaScript 12.0%
  • CSS 6.5%
  • HTML 1.6%
  • Other 1.1%