Download OpenAPI specification:Download
The Charity API allows third-party developers to search for and access details on supported charitable organizations.
This call is used to retrieve detailed information about supported charitable organizations. It allows users to retrieve the details for a specific charitable organization using its charity organization ID.
| charity_org_id required | string The unique ID of the charitable organization. |
| X-EBAY-C-MARKETPLACE-ID required | string A header used to specify the eBay marketplace ID. |
{- "charityOrgId": "string",
- "description": "string",
- "location": {
- "address": {
- "city": "string",
- "stateOrProvince": "string",
- "postalCode": "string",
- "country": "string"
}, - "geoCoordinates": {
- "latitude": 0,
- "longitude": 0
}
}, - "logoImage": {
- "height": "string",
- "imageUrl": "string",
- "width": "string"
}, - "missionStatement": "string",
- "name": "string",
- "registrationId": "string",
- "website": "string"
}This call is used to search for supported charitable organizations. It allows users to search for a specific charitable organization, or for multiple charitable organizations, from a particular charitable domain and/or geographical region, or by using search criteria.
The call returns paginated search results containing the charitable organizations that match the specified criteria.
| limit | string The number of items, from the result set, returned in a single page. |
| offset | string The number of items that will be skipped in the result set. This is used with the limit field to control the pagination of the output. |
| q | string A query string that matches the keywords in name, mission statement, or description. |
| registration_ids | string A comma-separated list of charitable organization registration IDs. |
| X-EBAY-C-MARKETPLACE-ID required | string A header used to specify the eBay marketplace ID. |
{- "charityOrgs": [
- {
- "charityOrgId": "string",
- "description": "string",
- "location": {
- "address": {
- "city": "string",
- "stateOrProvince": "string",
- "postalCode": "string",
- "country": "string"
}, - "geoCoordinates": {
- "latitude": 0,
- "longitude": 0
}
}, - "logoImage": {
- "height": "string",
- "imageUrl": "string",
- "width": "string"
}, - "missionStatement": "string",
- "name": "string",
- "registrationId": "string",
- "website": "string"
}
], - "href": "string",
- "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "total": 0
}Note: The getCharityOrgByLegacyId method requires a PayPal Giving Fund ID to retrieve an eBay charitable organizaiton, and eBay will no longer support these IDs beginning on January 16, 2023. The alternative to this method is the getCharityOrg method, and this method requires the eBay-generated ID for a charitable organization.
This call allows users to retrieve the details for a specific charitable organization using its legacy charity ID, which has also been referred to as the charity number, external ID, and PayPal Giving Fund ID. The legacy charity ID is separate from eBay’s generic charity ID.
The call returns the full details for the charitable organization that matches the specified ID.
| legacy_charity_org_id required | string The legacy ID of the charitable organization. |
| X-EBAY-C-MARKETPLACE-ID required | string A header used to specify the eBay marketplace ID. |
{- "charityOrgId": "string",
- "description": "string",
- "location": {
- "address": {
- "city": "string",
- "stateOrProvince": "string",
- "postalCode": "string",
- "country": "string"
}, - "geoCoordinates": {
- "latitude": 0,
- "longitude": 0
}
}, - "logoImage": {
- "height": "string",
- "imageUrl": "string",
- "width": "string"
}, - "missionStatement": "string",
- "name": "string",
- "registrationId": "string",
- "website": "string"
}