@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api Charity API
@base https://api.ebay.com/commerce/charity/v1
@version v1.2.1
@auth OAuth2
@endpoints 2
@toc charity_org(2)

@endpoint GET /charity_org/{charity_org_id}
@required {charity_org_id: str, X-EBAY-C-MARKETPLACE-ID: str}
@returns(200) {charityOrgId: str, description: str, location: map{address: map{city: str, stateOrProvince: str, postalCode: str, country: str}, geoCoordinates: map{latitude: num, longitude: num}}, logoImage: map{height: str, imageUrl: str, width: str}, missionStatement: str, name: str, registrationId: str, website: str}
@errors {400, 404, 500}

@endpoint GET /charity_org
@required {X-EBAY-C-MARKETPLACE-ID: str}
@optional {limit: str, offset: str, q: str, registration_ids: str}
@returns(200) {charityOrgs: [map], href: str, limit: int(int32), next: str, offset: int(int32), prev: str, total: int(int32)}
@errors {400, 500}

@end
