{"note":"OpenAPI conversion -- returning structured metadata","name":"change-local","description":"API V1","version":"v1","base_url":"https://api.getchange.io","endpoints":8,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api API V1\n@base https://api.getchange.io\n@version v1\n@auth Bearer basic\n@endpoints 8\n@toc api(8)\n\n@endpoint POST /api/v1/donations/create\n@desc Create a donation\n@required {amount: str # The amount of the donation in cents., nonprofit_id: str # The id of a nonprofit from the CHANGE network., funding_source: str(merchant/customer) # Source of the donation funds. If you are collecting payment from your customer for the donation, use `customer`.}\n@optional {zip_code: str # The customer's zip code. Provide this to unlock geographic insights.}\n@returns(200) Donation successful\n@errors {400: Param `nonprofit_id` invalid}\n\n@endpoint GET /api/v1/donations/show\n@desc Retrieve a donation\n@required {id: str # The id of a donation. Ids are returned when a donation is created.}\n@returns(200) successful\n\n@endpoint GET /api/v1/donations/index\n@desc List your donations\n@optional {page: num # Which page to return. This endpoint is paginated, and returns maximum 30 donations per page.}\n@returns(200) successful\n\n@endpoint GET /api/v1/donations/carbon_calculate\n@desc Calculate shipping carbon offset\n@required {weight_lb: num # The total weight (in pounds) of the shipment.}\n@optional {origin_address: num # The origin zip code (US only) of the shipment. If you send this parameter, also send `destination_address`., destination_address: num # The destination zip code (US only) of the shipment. If you send this parameter, also send `origin_address`., distance_mi: num # The total distance (in miles) of the shipment. You can use this parameter in place of `origin_address` and `destination_address`., transportation_method: str(air/truck/rail/sea) # The primary transportation method of the shipment.}\n@returns(200) successful\n\n@endpoint GET /api/v1/donations/crypto_calculate\n@desc Calculate crypto carbon offset\n@required {currency: str(eth/btc) # The currency of the transaction.}\n@optional {count: num # The number of transactions to offset.}\n@returns(200) successful\n\n@endpoint GET /api/v1/donations/carbon_stats\n@desc Retrieve carbon offset stats\n@optional {id: num # The id of a donation to the CarbonFund nonprofit. Ids are returned when a donation is created. If an ID is not provided, the total stats for all donations to CarbonFund are returned.}\n@returns(200) successful\n\n@endpoint GET /api/v1/nonprofits/show\n@desc Show a nonprofit\n@required {id: str # The id of a nonprofit from the CHANGE network.}\n@returns(200) Show successful\n\n@endpoint GET /api/v1/nonprofits/list\n@desc Search a nonprofit\n@optional {name: str # A string to search., page: num # The page to return. This endpoint is paginated, and returns up to 30 nonprofits at a time.}\n@returns(200) List successful\n\n@end\n"}