Change

API V1

API V1 endpoints from Change

Payments#openapi#payment

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

API V1 endpoints from Change

Endpoints 8

  • GETCalculate shipping carbon offset/api/v1/donations/carbon_calculate?origin_address=60148&destination_address=94133&distance_mi=0.0&weight_lb=3.5&transportation_method=airCalculates the donation amount (to CarbonFund 501\(c\)3) needed to offset a physical shipment. This calculation depends on the weight, primary transportation…
  • GETRetrieve carbon offset stats/api/v1/donations/carbon_stats?id=d_NuYL6M2C1kjecXpWzKVODw7WMeasures your carbon offset impact in relatable terms. Provide the id of a donation to CarbonFund to see stats about that specific donation. If you omit the…
  • POSTCreate a donation/api/v1/donations/create?amount=500&nonprofit_id=n_IfEoPCaPqVsFAUI5xl0CBUOx&funding_source=customer&zip_code=94104Creates a donation to any nonprofit. CHANGE keeps track of your donations, bills you at the end of the month, and handles the nonprofit payouts for you.
  • GETCalculate crypto carbon offset/api/v1/donations/crypto_calculate?count=2&currency=ethCalculates the donation amount (to CarbonFund 501\(c\)3) needed to offset a cryptocurrency transaction. For convenience, this endpoint also returns the id of…
  • GETList your donations/api/v1/donations/index?page=1Retrieves a list of donations you've previously made. The donations are returned in order of creation, with the most recent donations appearing first. This…
  • GETRetrieve a donation/api/v1/donations/show?id=d_NuYL6M2C1kjecXpWzKVODw7WRetrieves the details of a donation you've previously made.
  • GETSearch a nonprofit/api/v1/nonprofits/list?name=Some Nonprofit&page=1Retrieves a list of nonprofits whose names match the provided name. This endpoint is paginated.
  • GETShow a nonprofit/api/v1/nonprofits/show?id=n_IfEoPCaPqVsFAUI5xl0CBUOxRetrieves information for a nonprofit.

API details

Base URL
http://change.local
https://{defaultHost}
Authentication
HTTP Basic authentication (username and password)
Operations
8 operations on 8 pathsGET 7POST 1
Response formats
application/json
Description format
OpenAPI 3.0.1, API version v1
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the API V1 in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the API V1 collection, without the publisher's secrets.
  3. Add your credentialsThis API uses HTTP Basic authentication (username and password). Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Calculate shipping carbon offset” (GET /api/v1/donations/carbon_calculate?origin_address=60148&destination_address=94133&distance_mi=0.0&weight_lb=3.5&transportation_method=air), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the API V1?

API V1 endpoints from Change It is listed under Payments and has 8 endpoints.

Who publishes the API V1?

It is listed from Change's public API description (an OpenAPI document), not published by Change on Swastik Codes. Anyone who controls its domain can claim the profile by adding a DNS TXT record.

What is the base URL of the API V1?

Its description lists 2 base URLs: http://change.local, https://{defaultHost}. The first is the usual one; the others are typically sandbox or regional servers.

How do I authenticate with the API V1?

With HTTP Basic authentication (username and password).

How many endpoints does the API V1 have?

8 operations on 8 paths (7 GET, 1 POST).

Is forking the API V1 free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.