Donation as a Service API allows access to LiquiDonate's network of nonprofits.
Using these APIs, donate items, match them to nonprofits and more.
Provide details of an item that needs to be donated.
Note: The item will be listed on LiquiDonate's free marketplace.
Request payload to donate an item
required | object (item) The item being donated |
{- "item": {
- "title": "MacBook Pro 13",
- "quantity": 3,
- "description": "It works perfectly. Has a few scratches on the bottom.",
- "sizeType": "small",
- "fulfillmentTypes": [
- "shipping",
- "pickup"
], - "receipientTypes": [
- "individual"
], - "categoryTypes": [
- "mobile_phones",
- "laptops_and_computers"
], - "fairMarketValue": {
- "value": "100.00",
- "currencyCode": "USD"
}, - "conditionTagTypes": [
- "moderately_used",
- "open_box"
], - "location": {
- "address": {
- "streetAddress1": "149 New Montgomery St.",
- "streetAddress2": "Floor 4",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94105",
- "countryCode": "US",
- "latitude": 37.7869247666227,
- "longitude": -122.3996330045463
}, - "contactNumber": "+14155558950"
}, - "unitType": "individual_item",
- "weightLbhs": 1,
- "lengthInches": 1.5,
- "widthInches": 1,
- "heightInches": 2
}
}{- "item": {
- "uuid": "347eacc6-8eaf-4164-9f52-b3a52dd3c6e0"
}
}Provide details of an array of items that needs to be matched with a recipient
Note: All items need to have the same location.
Request payload to match an item
required | object (match_item) The item being matched |
[- {
- "item": {
- "title": "MacBook Pro 13",
- "quantity": 1,
- "description": "It works perfectly. Has a few scratches on the bottom.",
- "receipientTypes": [
- "nonprofit"
], - "categoryTypes": [
- "mobile_phones",
- "laptops_and_computers"
], - "conditionTagTypes": [
- "moderately_used",
- "open_box"
], - "location": {
- "address": {
- "streetAddress1": "149 New Montgomery St.",
- "streetAddress2": "Floor 4",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94105",
- "countryCode": "US",
- "latitude": 37.7869247666227,
- "longitude": -122.3996330045463
}, - "contactNumber": "+14155558950"
}
}
}, - {
- "item": {
- "title": "MacBook Air",
- "quantity": 1,
- "description": "Brand New",
- "receipientTypes": [
- "unknown"
], - "categoryTypes": [
- "mobile_phones",
- "laptops_and_computers"
], - "conditionTagTypes": [
- "like_new",
- "open_box"
], - "location": {
- "address": {
- "streetAddress1": "149 New Montgomery St.",
- "streetAddress2": "Floor 4",
- "city": "San Francisco",
- "state": "CA",
- "zip": "94105",
- "countryCode": "US",
- "latitude": 37.7869247666227,
- "longitude": -122.3996330045463
}, - "contactNumber": "+14155558950"
}
}
}
]{- "nonprofit": {
- "name": "YMCA San Francisco",
- "phone_number": "+14155558950",
- "website": "www.ymaca.com/san_fran",
- "address": {
- "streetAddress1": "149 New Montgomery St.",
- "streetAddress2": "Floor 4",
- "city": "San Francisco",
- "state": "CA",
- "zip": 94105,
- "countryCode": "US",
- "latitude": 37.788115,
- "longitude": -122.417091
}, - "categoryTypes": [
- "laptops_and_computers"
], - "distanceMiles": 12
}
}Provide details of an item that needs to be matched with a recipient and shipped to them.
Compared with v1/match, this API returns a shipping label.
Note: The item will not be listed on LiquiDonate's free marketplace.
Request payload to donate an item
required | object (item) The item being donated |
| externalRetailerID | string An ID that will be associated with this donated item to identify the retailer |
| preferredCarrier | string (carriers) Enum: "usps" "fedex" "ups" If this isn't provided, the carrier that offers the best rate will be chosen by default |
{- "item": {
- "title": "MacBook Pro 13\"",
- "quantity": 2,
- "description": "It works perfectly. Has a few scratches on the bottom.",
- "categoryType": "laptops_and_computers",
- "fairMarketValue": {
- "value": "100.00",
- "currencyCode": "USD"
}, - "conditionTagTypes": [
- "moderately_used",
- "open_box"
], - "location": {
- "address": {
- "streetAddress1": "149 New Montgomery St.",
- "streetAddress2": "Floor 4",
- "city": "San Francisco",
- "state": "CA",
- "zip": 94105,
- "countryCode": "US",
- "latitude": 37.7869247666227,
- "longitude": -122.3996330045463
}, - "contactNumber": 14155558950
}
}, - "externalRetailerID": "retailer-id-1"
}{- "item": {
- "uuid": "347eacc6-8eaf-4164-9f52-b3a52dd3c6e0"
}, - "match": {
- "uuid": "347eacc6-8eaf-4164-9f52-b3a52dd3c6e0",
- "nonprofit": {
- "uuid": "347eacc6-8eaf-4164-9f52-b3a52dd3c6e0",
- "organizationName": "Little Halls Org",
- "ein": "12-3456789",
- "website": "littlehalls.org",
- "focusAreas": [
- "adult_education"
], - "populationsServed": [
- "animals"
], - "mission": "Trying to save the world",
- "address": {
- "streetAddress1": "149 New Montgomery St.",
- "streetAddress2": "Floor 4",
- "city": "San Francisco",
- "state": "CA",
- "zip": 94105,
- "countryCode": "US",
- "latitude": 37.788115,
- "longitude": -122.417091
}
}, - "distanceMiles": 21.35
}, - "label": {
- "trackingNumber": "92701901755477000000000011",
- "carrier": "usps",
- "rate": {
- "value": "100.00",
- "currencyCode": "USD"
}
}
}Provide details of a retailer when provided with an api key and secret
{- "retailer": {
- "uuid": "347eacc6-8eaf-4164-9f52-b3a52dd3c6e0",
- "name": "YMCA San Francisco",
- "phone_number": "+14155558950",
- "website": "www.ymaca.com/san_fran",
- "address": {
- "streetAddress1": "149 New Montgomery St.",
- "streetAddress2": "Floor 4",
- "city": "San Francisco",
- "state": "CA",
- "zip": 94105,
- "countryCode": "US",
- "latitude": 37.788115,
- "longitude": -122.417091
}, - "categoryTypes": [
- "laptops_and_computers"
], - "distanceMiles": 12
}
}Sets up a retailer, associated user and generate an API key
Request payload to setup retailer
required | object Retailer information (to create) |
required | object User information |
{- "item": {
- "title": "MacBook Pro 13\"",
- "quantity": 2,
- "description": "It works perfectly. Has a few scratches on the bottom.",
- "categoryType": "laptops_and_computers",
- "fairMarketValue": {
- "value": "100.00",
- "currencyCode": "USD"
}, - "conditionTagTypes": [
- "moderately_used",
- "open_box"
], - "location": {
- "address": {
- "streetAddress1": "149 New Montgomery St.",
- "streetAddress2": "Floor 4",
- "city": "San Francisco",
- "state": "CA",
- "zip": 94105,
- "countryCode": "US",
- "latitude": 37.7869247666227,
- "longitude": -122.3996330045463
}, - "contactNumber": 14155558950
}
}, - "externalRetailerID": "retailer-id-1"
}{- "retailer": {
- "uuid": "347eacc6-8eaf-4164-9f52-b3a52dd3c6e0",
- "name": "LiquiDonate, Inc"
}, - "user": {
- "uuid": "347eacc6-8eaf-4164-9f52-b3a52dd3c6e0"
}, - "apiKey": {
- "key": "ld_b4Gcwq6YoJ1w",
- "secret": "ld_sk_LuP03iaMdL8a"
}
}Retrieve donation receipts for by match or item.
| matchUUID | string <uuid> The UUID of the match |
| itemUUID | string <uuid> The UUID of the item |
[- {
- "receivedOn": "2016-07-23T20:35:26.129Z",
- "nonprofit": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f"
},
}
]