55 |
56 | Attribute |
57 | Types |
58 | Example |
59 | Description |
60 |
61 |
62 | id |
63 | number |
64 | 1 |
65 |
66 |
67 | An integer number ≥ 1
68 |
69 | |
70 |
71 |
72 | created_at |
73 | string |
74 | "1994-11-05T13:15:30Z" |
75 |
76 |
77 | DateTime (ISO8601 with Timezone)
78 |
79 | |
80 |
81 |
82 | updated_at |
83 | string |
84 | "1994-11-05T13:15:30Z" |
85 |
86 |
87 | DateTime (ISO8601 with Timezone)
88 |
89 | |
90 |
91 |
92 | lang |
93 | string |
94 | en |
95 |
96 |
97 | Blog posts have only one language at the moment
98 |
99 | |
100 |
101 |
102 | type |
103 | string |
104 | BlogPost |
105 |
106 |
107 | Blogposts are always created by a user, and this
108 | field always has the value BlogPost .
109 |
110 |
111 | |
112 |
113 |
114 | title |
115 | string |
116 | Thank you from Beijing |
117 |
118 |
119 |
120 |
121 | |
122 |
123 |
124 | published_at |
125 | string |
126 | "1994-11-05T13:15:30Z" |
127 |
128 |
129 | DateTime (ISO8601 with Timezone)
130 |
131 | |
132 |
133 |
134 | body |
135 | string |
136 | I am so happy to hear about the first donation for the Good Gifted Garden. If I told Chun … |
137 |
138 |
139 | The body may contain html such as links, embedded videos, and picture or
140 | any of the following HTML tags:
141 | ```a, b, br, div, em, i, iframe, img, li, ol, p, strong, ul```.
142 |
143 |
144 | |
145 |
146 |
147 |
148 |
149 | ↓author
150 |
151 | |
152 | null | object |
153 |
|
154 |
155 |
156 | The user that wrote the blog post.
157 |
158 | |
159 |
160 |
161 |
162 | ###
237 |
238 | Linkname |
239 | Description |
240 |
241 |
242 |
243 |
244 | self
245 |
246 | |
247 |
248 |
249 | Link to this resource itself
250 | (blog post details)
251 |
252 |
253 | |
254 |
255 |
256 |
257 |
258 | platform
259 |
260 | |
261 |
262 |
263 | Permalink to betterplace.org
264 |
265 | |
266 |
267 |
268 |
269 |
270 | documentation
271 |
272 | |
273 |
274 |
275 | Link to this resource in the documentation
276 |
277 |
278 | |
279 |
280 |
281 |
282 |
283 | author.platform
284 |
285 | |
286 |
287 |
288 | The user's profile on betterplace.org.
289 | To view a user profile you have to be logged in.
290 | This array is empty if the user has no useraccount
291 | with betterplace.org but donated via one of our partner.
292 |
293 |
294 | |
295 |
296 |
297 |
298 |
299 | author.contact_data
300 |
301 | |
302 |
303 |
304 | The user's contact data. Please note that you need to be
305 | authenticated as a client with matching
306 | access rights in order to see this information.
307 |
308 |
309 | |
310 |
311 |
312 |
313 |
314 | author.picture.fill_100x100
315 |
316 | |
317 |
318 |
319 | 100×100 Pixel
320 |
321 | |
322 |
323 |
324 |
325 |
326 | author.picture.original
327 |
328 | |
329 |
330 |
331 | Maximum sized image. This is the original image with default-cropping or user-cropping applied.
332 |
333 | |
334 |
335 |
336 |
337 | ## Response Example
338 |
339 | ```json
340 | {
341 | "id": 88972,
342 | "created_at": "2013-10-30T12:39:27+01:00",
343 | "updated_at": "2013-10-30T12:39:27+01:00",
344 | "lang": "en",
345 | "type": "BlogPost",
346 | "title": "First Climbing Contest Held in Afghanistan",
347 | "published_at": "2013-10-30T12:39:27+01:00",
348 | "body": "On\r\n Saturday 28th September, Skateistan Kabul's volunteers and staff took \r\npart in the inaugural indoor climbing competition held at the facility, \r\nwith both girls and boys competing (ages 11-22). This was the 1st \r\nclimbing competition that has taken place at Skateistan and the 1st \r\nknown climbing contest held in Afghanistan!
The climbing \r\ncompetition had both female and male categories with contests that \r\nincluded speed climbing and fastest rope coil. The competition was \r\njudged by our amazing volunteer climbing teachers, including the \r\ncompetition organiser Gio Trambaiolo who has been instrumental in \r\nteaching climbing to the Skateistan volunteers. Gio has volunteered as a\r\n climbing teacher nearly each week for well over a year. Skateistan is \r\nextremely lucky to have such a wonderful team of dedicated volunteers, \r\nwho include around a dozen foreigners with certified climbing \r\nbackgrounds.
\n\" Everyone did very well, it's amazing to\r\n see how the instructors and volunteers have progressed over the past \r\nfew months. \" - Gio, volunteer climbing teacher
\nEach \r\nweek since June 2012, climbing lessons have been provided \r\nto Skateistan's Youth Leaders, who are Afghan staff and volunteers with \r\nthe project. They have learned climbing techniques, as well as built \r\nup trust and respect for each other through the sport. It is been \r\ninspiring to watch the volunteers develop as climbers and to see the \r\nhigh skill level our Youth Leaders have developed since the program took\r\n shape last year. Through the program, 14 young Afghans (50% girls) have\r\n received certificates to be Beginner Climbing Instructors, and they now\r\n facilitate climbing classes with more than 400 students who attend \r\nSkateistan.
\nA brief prize ceremony was held the following week to \r\ngive the final results of the competition, as well as some prizes which \r\nwere given to everyone who participated.
We\r\n want to thank all the climbing volunteers who have created a hugely \r\nsuccesful sports program for our staff and students. We wish to thank \r\nGiovanni Trambaiolo, Sheilagh Henry, Kate Hughes, Mindy Visser, Colin R,\r\n Erin Blankenship, Jeffery Dow, Kelsey Noonan, Sarah-Jean \r\nCunningham, and Stephanie Faser. Your constant creativity and innovative\r\n training have made climbing one of the leading activities for the Youth\r\n Leaders at Skateistan. The development of students who attend your \r\nclasses has been a great pleasure to watch, and will benefit hundreds of\r\n children who will continue to be taught by their Afghan peers.
93 |
94 | Parameter |
95 | Example |
96 | Types |
97 | Required |
98 | Description |
99 |
100 |
101 | first_name |
102 | Max |
103 | string |
104 |
105 | yes
106 | |
107 |
108 |
109 | First name of the donor.
110 |
111 |
112 | |
113 |
114 |
115 | last_name |
116 | Mustermann |
117 | string |
118 |
119 | yes
120 | |
121 |
122 |
123 | Last name of the donor.
124 |
125 |
126 | |
127 |
128 |
129 | company_name |
130 | Mustermann Inc. |
131 | string |
132 |
133 | no
134 | |
135 |
136 |
137 | Company name of the donor.
138 |
139 |
140 | |
141 |
142 |
143 | email |
144 | mm@example.com |
145 | string |
146 |
147 | yes
148 | |
149 |
150 |
151 | Email address of the donor.
152 | Only valid email addresses will be accepted.
153 |
154 |
155 | |
156 |
157 |
158 | message |
159 | Great Project! |
160 | string |
161 |
162 | no
163 | |
164 |
165 |
166 | A message from the donor to be shown on the project profile page.
167 |
168 |
169 | |
170 |
171 |
172 | amount_cents |
173 | 100 |
174 | number |
175 |
176 | yes
177 | |
178 |
179 |
180 | The amount of cents that are donated.
181 | Must be a positive integer between
182 | 1
183 | and 1000000.
184 |
185 |
186 | |
187 |
188 |
189 | client_reference |
190 | djksbf23u4sjkdn234p |
191 | string |
192 |
193 | yes
194 | |
195 |
196 |
197 | A unique identifier for this transaction.
198 | With this reference one can find the donation and its status later
199 | by using the client_reference-facet on the
200 | donation list endpoint.
201 |
202 | Allowed characters are a-zA-Z0-9_- .
203 |
204 | Attention: If you use a non-unique client reference,
205 | the donation pledge endpoint will still respond with success.
206 | However the pledge will not be processed into a donation but ignored.
207 |
208 | This is to make sure that one transaction is only processed once.
209 |
210 |
211 | |
212 |
213 |
214 | street |
215 | Rheinstrasse 202 |
216 | string |
217 |
218 | see description
219 | |
220 |
221 |
222 | The street of the donors address.
223 | Used to issue a donation receipt if the donation is tax deductible.
224 |
225 | This field is required by default, but optional with
226 | validate_address=false.
227 |
228 |
229 | |
230 |
231 |
232 | city |
233 | Wiesbaden |
234 | string |
235 |
236 | see description
237 | |
238 |
239 |
240 | The city of the donors address.
241 | Used to issue a donation receipt if the donation is tax deductible.
242 |
243 | This field is required default, but optional with validate_address=false.
244 |
245 |
246 | |
247 |
248 |
249 | zip |
250 | 65185 |
251 | string |
252 |
253 | see description
254 | |
255 |
256 |
257 | Zip code of the city or region the donor lives in.
258 | Used to issue a donation receipt if the donation is tax deductible.
259 |
260 | This field is required by default, but optional with validate_address=false.
261 |
262 |
263 | |
264 |
265 |
266 | country_alpha2 |
267 | DE |
268 | string |
269 |
270 | see description
271 | |
272 |
273 |
274 | ISO2 code of the country the donor lives in. A list of valid ISO2 codes
275 | can be found at
276 | Wikipedia ISO_3166-1_alpha-2. Used to issue a donation receipt if
277 | the donation is tax deductible.
278 |
279 | This field is required by default, but optional with validate_address=false.
280 |
281 |
282 | |
283 |
284 |
285 | validate_address |
286 | true |
287 | boolean |
288 |
289 | no
290 | |
291 |
292 |
293 | Pass false to allow donations without a donor address.
294 |
295 | Attention: Donation receipts can only be issued to donors who
296 | provide their full address details. Therefore a warning might be
297 | in order when using this option: Let donors know that they won't get a
298 | donation receipt, or that they will only get a receipt if they do enter
299 | their address.
300 |
301 | True by default.
302 |
303 |
304 | |
305 |
306 |
307 |
308 | ## Response Attributes
309 |
310 |
311 | ### Root Attributes
312 |
313 |
54 |
55 | Attribute |
56 | Types |
57 | Example |
58 | Description |
59 |
60 |
61 | amount_in_cents |
62 | number |
63 | 10100 |
64 |
65 |
66 | Donated amount in cents
67 |
68 | |
69 |
70 |
71 | state |
72 | string |
73 | "confirmed" |
74 |
75 |
76 | At the moment, all donations that are returned by the API are "confirmed".
77 | Unconfirmed donations do not show up at all or disappear after they were revoked.
78 | Revocations usually take place during the first 14 days – but there are no guarantees.
79 |
80 | Please make sure to check for the "confirmed" state in your application explicitly since
81 | we might add a "revoked" state in the future.
82 |
83 |
84 | |
85 |
86 |
87 |
88 |
89 | ↓donor
90 |
91 | |
92 | null | object |
93 | TODO |
94 |
95 |
96 | Donor information, if available.
97 |
98 |
99 | |
100 |
101 |
102 | message |
103 | null | string |
104 | "This is a great project. In spring 2007 I travelled around the area together with my children and …" |
105 |
106 |
107 | An optional message by users.
108 |
109 | The body is plain text potentially containing line-breaks.
110 |
111 |
112 | |
113 |
114 |
115 | token |
116 | string |
117 | ofMmTgfiPL-n1dDlNmFWqTQN |
118 |
119 |
120 | A token uniquely identifies a donation on the platform.
121 |
122 |
123 | |
124 |
125 |
126 | client_reference |
127 | string |
128 | 922ec9b-etc |
129 |
130 |
131 | Client Donations can be identified via a custom client reference token.
132 |
133 | This client_reference can be provided by users of our
134 |
135 | ThirdPartyApp custom donation form for organisations, for example.
136 |
137 |
138 | |
139 |
140 |
141 | created_at |
142 | string |
143 | "1994-11-05T13:15:30Z" |
144 |
145 |
146 | DateTime (ISO8601 with Timezone)
147 |
148 | |
149 |
150 |
151 | receiver_type |
152 | string |
153 | "Project" |
154 |
155 |
156 | Client donations may go to a Project ,
157 | a FundraisingEvent , a Pool .
158 |
159 |
160 | |
161 |
162 |
163 | receiver_id |
164 | number |
165 | 1114 |
166 |
167 |
168 | The id of the project, project element or fundraising event.
169 |
170 | |
171 |
172 |
173 | receiver_title |
174 | string |
175 | "Skateistan Afghanistan" |
176 |
177 |
178 | The title of the project, project element or fundraising event.
179 |
180 | |
181 |
182 |
183 |
184 | ###
259 |
260 | Linkname |
261 | Description |
262 |
263 |
264 |
265 |
266 | receiver
267 |
268 | |
269 |
270 |
271 | Link to the project details,
272 | project need details,
273 | fundraising event details,
274 | that is associated with this donation.
275 | Right now, there is no api end point for donations that are
276 | redirect or donated to the client pool.
277 |
278 |
279 | |
280 |
281 |
282 |
283 |
284 | self
285 |
286 | |
287 |
288 |
289 | Link to this resource itself
290 | (client donation details)
291 |
292 |
293 | |
294 |
295 |
296 |
297 |
298 | donor.platform
299 |
300 | |
301 |
302 |
303 | The user's profile on betterplace.org.
304 | To view a user profile you have to be logged in.
305 | This array is empty if the user has no useraccount
306 | with betterplace.org but donated via one of our partner.
307 |
308 |
309 | |
310 |
311 |
312 |
313 |
314 | donor.contact_data
315 |
316 | |
317 |
318 |
319 | The user's contact data. Please note that you need to be
320 | authenticated as a client with matching
321 | access rights in order to see this information.
322 |
323 |
324 | |
325 |
326 |
327 |
328 |
329 | donor.picture.fill_100x100
330 |
331 | |
332 |
333 |
334 | 100×100 Pixel
335 |
336 | |
337 |
338 |
339 |
340 |
341 | donor.picture.original
342 |
343 | |
344 |
345 |
346 | Maximum sized image. This is the original image with default-cropping or user-cropping applied.
347 |
348 | |
349 |
350 |
351 |
352 | ## Response Example
353 |
354 | ```json
355 | {
356 | "amount_in_cents": 200,
357 | "state": "confirmed",
358 | "donor": null,
359 | "message": "Gemeinsam für Kinder!",
360 | "token": "c65e1cd3ff166c67adf7",
361 | "client_reference": null,
362 | "created_at": "2011-12-13T13:48:15+01:00",
363 | "receiver_type": "FundraisingEvent",
364 | "receiver_id": 8821,
365 | "receiver_title": "Stark fürs Leben - für die Zukunft unserer Kinder",
366 | "links": [
367 | {
368 | "rel": "receiver",
369 | "href": "https://api.betterplace.org/de/api_v4/fundraising_events/8821.json"
370 | },
371 | {
372 | "rel": "self",
373 | "href": "https://api.betterplace.org/de/api_v4/clients/volksfreund/client_donations/c65e1cd3ff166c67adf7.json"
374 | }
375 | ]
376 | }
377 | ```
378 |
379 |
--------------------------------------------------------------------------------
/sections/client_donation_pledge_status.md:
--------------------------------------------------------------------------------
1 |
2 | # Client Donation Pledges Status ⇄ [Creation](client_donation_pledges_creation.md)
3 |
4 | ```Cirru
5 | GET https://api.betterplace.org/de/api_v4/clients/devk/donation_pledges/1170.json
6 | ```
7 |
8 | **For [betterplace.org clients](../README.md#client-api) only:**
9 |
10 | After submitting a donation pledge, you should check the status of the asynchronous
11 | pledge job. It returns a JSON response, containing information about its status,
12 | including failure reasons in the case of a failure.
13 |
14 | **TODO: Be aware that you need a donation pledge ID to use this endpoint which is not
15 | fully implemented yet. Please contact us in case you need it!**
16 |
17 |
18 | ## URL Parameters
19 |
20 |
70 |
71 | Attribute |
72 | Types |
73 | Example |
74 | Description |
75 |
76 |
77 | id |
78 | number |
79 | 1 |
80 |
81 |
82 | An integer number ≥ 1
83 |
84 | |
85 |
86 |
87 | created_at |
88 | string |
89 | "1994-11-05T13:15:30Z" |
90 |
91 |
92 | DateTime (ISO8601 with Timezone)
93 |
94 | |
95 |
96 |
97 | updated_at |
98 | string |
99 | "1994-11-05T13:15:30Z" |
100 |
101 |
102 | DateTime (ISO8601 with Timezone)
103 |
104 | |
105 |
106 |
107 | confirmed_at |
108 | string |
109 | 2016-11-11T09:50:06+01:00 |
110 |
111 |
112 | DateTime (ISO8601 with Timezone)
113 |
114 | |
115 |
116 |
117 | failed_at |
118 | string |
119 | 2016-11-11T09:50:06+01:00 |
120 |
121 |
122 | DateTime (ISO8601 with Timezone)
123 |
124 | |
125 |
126 |
127 | state |
128 | string |
129 | "confirmed" |
130 |
131 |
132 | One of "pending", "confirmed" or "failed".
133 |
134 | pending
135 | The system is still processing this donation.
136 | Please check again soon.
137 | confirmed
138 | The donation is confirmed. This state is final.
139 | failed
140 | The donation failed. Please check the failure_code .
141 | This state is final.
142 |
143 |
144 |
145 | |
146 |
147 |
148 | failure_code |
149 | string |
150 | pool_missing |
151 |
152 |
153 | A set of failure codes.
154 | You could use this to choose follow up actions in
155 | your application. More details about each error are
156 | part of the failure_reason .
157 |
158 | pool_missing No pool available
159 | pool_empty Not enough money on the pool
160 | receiver_prohibited_from_receiving_donations The forwarding request's receiver may not receive donations
161 | donation_invalid Generic error, look at failure_reason for details
162 |
163 | This list might be extended at any time. Please
164 | make sure you receive a notification if you encounter
165 | a new code. Codes will note be removed but might be
166 | deprecated and not used anymore at some point in the
167 | future.
168 |
169 |
170 | |
171 |
172 |
173 | failure_reason |
174 | string |
175 |
|
176 |
177 |
178 | A more detailed description of the failure.
179 | This message is meant to be interpreted by a
180 | developer, not by a customer/user.
181 | The message might change at any time, don't
182 | use it to match actions based on the message
183 | string.
184 |
185 |
186 | |
187 |
188 |
189 |
190 |
191 | ## Response Links
192 |
193 |
166 |
167 | Parameter |
168 | Example |
169 | Types |
170 | Required |
171 | Description |
172 |
173 |
174 | first_name |
175 | Max |
176 | string |
177 |
178 | see description
179 | |
180 |
181 |
182 | First name of the donor.
183 |
184 | This field is required by default, but optional with
185 | validate_address=false.
186 |
187 |
188 | |
189 |
190 |
191 | last_name |
192 | Mustermann |
193 | string |
194 |
195 | see description
196 | |
197 |
198 |
199 | Last name of the donor.
200 |
201 | This field is required by default, but optional with
202 | validate_address=false.
203 |
204 |
205 | |
206 |
207 |
208 | email |
209 | mm@example.com |
210 | string |
211 |
212 | see description
213 | |
214 |
215 |
216 | Email address of the donor.
217 | Only valid email addresses will be accepted.
218 |
219 | This field is required by default, but optional with
220 | validate_address=false.
221 |
222 |
223 | |
224 |
225 |
226 | amount_in_cents |
227 | 100 |
228 | number |
229 |
230 | yes
231 | |
232 |
233 |
234 | The amount of cents that are donated.
235 | Must be a positive integer between
236 | 1
237 | and 1000000.
238 |
239 |
240 | |
241 |
242 |
243 | client_reference |
244 | djksbf23u4sjkdn234p |
245 | string |
246 |
247 | yes
248 | |
249 |
250 |
251 | A unique identifier for this transaction.
252 | With this reference one can find the donation and its status later
253 | by using the client_reference-facet on the
254 | donation list endpoint.
255 |
256 | Allowed characters are a-zA-Z0-9_- .
257 |
258 | Attention: If you use a non-unique client reference,
259 | the donation pledge endpoint will still respond with success.
260 | However the pledge will not be processed into a donation but ignored.
261 |
262 | This is to make sure that one transaction is only processed once.
263 |
264 |
265 | |
266 |
267 |
268 | tracking_via |
269 | campaign-0815 |
270 | string |
271 |
272 | no
273 | |
274 |
275 |
276 | A tracking identifier for the current campaign, origin or similar
277 | information. Default is blank.
278 |
279 | Allowed characters are a-zA-Z0-9_- .
280 |
281 |
282 | |
283 |
284 |
285 | earmark |
286 | 123 |
287 | number |
288 |
289 | no
290 | |
291 |
292 |
293 | An "earmark" indicating which need this donation should go to.
294 | Attention: this parameter may be completely ignored by the API
295 | at any time. There is no guarantee that the earmark will have an effect
296 | on the donation, and support for the feature may be pulled in the
297 | future.
298 |
299 |
300 | |
301 |
302 |
303 | street |
304 | Rheinstrasse 202 |
305 | string |
306 |
307 | see description
308 | |
309 |
310 |
311 | The street of the donors address.
312 | Used to issue a donation receipt if the donation is tax deductible.
313 |
314 | This field is required by default, but optional with validate_address=false.
315 |
316 |
317 | |
318 |
319 |
320 | city |
321 | Wiesbaden |
322 | string |
323 |
324 | see description
325 | |
326 |
327 |
328 | The city of the donors address.
329 | Used to issue a donation receipt if the donation is tax deductible.
330 |
331 | This field is required by default, but optional with validate_address=false.
332 |
333 |
334 | |
335 |
336 |
337 | zip |
338 | 65185 |
339 | string |
340 |
341 | see description
342 | |
343 |
344 |
345 | Zip code of the city or region the donor lives in.
346 | Used to issue a donation receipt if the donation is tax deductible.
347 |
348 | This field is required by default, but optional with validate_address=false.
349 |
350 |
351 | |
352 |
353 |
354 | country_code |
355 | DE |
356 | string |
357 |
358 | see description
359 | |
360 |
361 |
362 | ISO2 code of the country the donor lives in. A list of valid ISO2 codes
363 | can be found at
364 | Wikipedia ISO_3166-1_alpha-2. Used to issue a donation receipt if
365 | the donation is tax deductible.
366 |
367 | This field is required by default, but optional with validate_address=false.
368 |
369 |
370 | |
371 |
372 |
373 | validate_address |
374 | false |
375 | boolean |
376 |
377 | no
378 | |
379 |
380 |
381 | Pass false to allow donations without a donor address.
382 |
383 | Attention: Donation receipts can only be issued to donors who
384 | provide their full address details. Therefore a warning might be
385 | in order when using this option: Let donors know that they won't get a
386 | donation receipt, or that they will only get a receipt if they do enter
387 | their address.
388 |
389 | True by default.
390 |
391 |
392 | |
393 |
394 |
395 |
396 | ## Response Attributes
397 |
398 |
399 | ### Root Attributes
400 |
401 |
66 |
67 | Attribute |
68 | Types |
69 | Example |
70 | Description |
71 |
72 |
73 | amount_in_cents |
74 | number |
75 | 10100 |
76 |
77 |
78 | Donated amount in cents
79 |
80 | |
81 |
82 |
83 | state |
84 | string |
85 | "confirmed" |
86 |
87 |
88 | At the moment, all donations that are returned by the API are "confirmed".
89 | Unconfirmed donations do not show up at all or disappear after they were revoked.
90 | Revocations usually take place during the first 14 days – but there are no guarantees.
91 |
92 | Please make sure to check for the "confirmed" state in your application explicitly since
93 | we might add a "revoked" state in the future.
94 |
95 |
96 | |
97 |
98 |
99 |
100 |
101 | ↓donor
102 |
103 | |
104 | null | object |
105 | TODO |
106 |
107 |
108 | Donor information, if available.
109 |
110 |
111 | |
112 |
113 |
114 | message |
115 | null | string |
116 | "This is a great project. In spring 2007 I travelled around the area together with my children and …" |
117 |
118 |
119 | An optional message by users.
120 |
121 | The body is plain text potentially containing line-breaks.
122 |
123 |
124 | |
125 |
126 |
127 | token |
128 | string |
129 | ofMmTgfiPL-n1dDlNmFWqTQN |
130 |
131 |
132 | A token uniquely identifies a donation on the platform.
133 |
134 |
135 | |
136 |
137 |
138 | client_reference |
139 | string |
140 | 922ec9b-etc |
141 |
142 |
143 | Client Donations can be identified via a custom client reference token.
144 |
145 | This client_reference can be provided by users of our
146 |
147 | ThirdPartyApp custom donation form for organisations, for example.
148 |
149 |
150 | |
151 |
152 |
153 | created_at |
154 | string |
155 | "1994-11-05T13:15:30Z" |
156 |
157 |
158 | DateTime (ISO8601 with Timezone)
159 |
160 | |
161 |
162 |
163 | receiver_type |
164 | string |
165 | "Project" |
166 |
167 |
168 | Client donations may go to a Project ,
169 | a FundraisingEvent , a Pool .
170 |
171 |
172 | |
173 |
174 |
175 | receiver_id |
176 | number |
177 | 1114 |
178 |
179 |
180 | The id of the project, project element or fundraising event.
181 |
182 | |
183 |
184 |
185 | receiver_title |
186 | string |
187 | "Skateistan Afghanistan" |
188 |
189 |
190 | The title of the project, project element or fundraising event.
191 |
192 | |
193 |
194 |
195 |
196 | ###
271 |
272 | Linkname |
273 | Description |
274 |
275 |
276 |
277 |
278 | receiver
279 |
280 | |
281 |
282 |
283 | Link to the project details,
284 | project need details,
285 | fundraising event details,
286 | that is associated with this donation.
287 | Right now, there is no api end point for donations that are
288 | redirect or donated to the client pool.
289 |
290 |
291 | |
292 |
293 |
294 |
295 |
296 | self
297 |
298 | |
299 |
300 |
301 | Link to this resource itself
302 | (client donation details)
303 |
304 |
305 | |
306 |
307 |
308 |
309 |
310 | donor.platform
311 |
312 | |
313 |
314 |
315 | The user's profile on betterplace.org.
316 | To view a user profile you have to be logged in.
317 | This array is empty if the user has no useraccount
318 | with betterplace.org but donated via one of our partner.
319 |
320 |
321 | |
322 |
323 |
324 |
325 |
326 | donor.contact_data
327 |
328 | |
329 |
330 |
331 | The user's contact data. Please note that you need to be
332 | authenticated as a client with matching
333 | access rights in order to see this information.
334 |
335 |
336 | |
337 |
338 |
339 |
340 |
341 | donor.picture.fill_100x100
342 |
343 | |
344 |
345 |
346 | 100×100 Pixel
347 |
348 | |
349 |
350 |
351 |
352 |
353 | donor.picture.original
354 |
355 | |
356 |
357 |
358 | Maximum sized image. This is the original image with default-cropping or user-cropping applied.
359 |
360 | |
361 |
362 |
363 |
364 | ## Response Example
365 |
366 | ```json
367 | {
368 | "total_entries": 21545,
369 | "offset": 0,
370 | "total_pages": 7182,
371 | "current_page": 1,
372 | "per_page": 3,
373 | "data": [
374 | {
375 | "amount_in_cents": 200,
376 | "state": "confirmed",
377 | "donor": null,
378 | "message": "Gemeinsam für Kinder!",
379 | "token": "c65e1cd3ff166c67adf7",
380 | "client_reference": null,
381 | "created_at": "2011-12-13T13:48:15+01:00",
382 | "receiver_type": "FundraisingEvent",
383 | "receiver_id": 8821,
384 | "receiver_title": "Stark fürs Leben - für die Zukunft unserer Kinder",
385 | "links": [
386 | {
387 | "rel": "receiver",
388 | "href": "https://api.betterplace.org/de/api_v4/fundraising_events/8821.json"
389 | },
390 | {
391 | "rel": "self",
392 | "href": "https://api.betterplace.org/de/api_v4/clients/volksfreund/client_donations/c65e1cd3ff166c67adf7.json"
393 | }
394 | ]
395 | },
396 | {
397 | "amount_in_cents": 100,
398 | "state": "confirmed",
399 | "donor": null,
400 | "message": "",
401 | "token": "e0099cc079adbf1c13c0",
402 | "client_reference": null,
403 | "created_at": "2012-05-23T16:41:06+02:00",
404 | "receiver_type": "FundraisingEvent",
405 | "receiver_id": 9866,
406 | "receiver_title": "Fab&Vivien Nr. 3 | The third fundraising bet",
407 | "links": [
408 | {
409 | "rel": "receiver",
410 | "href": "https://api.betterplace.org/de/api_v4/fundraising_events/9866.json"
411 | },
412 | {
413 | "rel": "self",
414 | "href": "https://api.betterplace.org/de/api_v4/clients/volksfreund/client_donations/e0099cc079adbf1c13c0.json"
415 | }
416 | ]
417 | },
418 | {
419 | "amount_in_cents": 1000,
420 | "state": "confirmed",
421 | "donor": null,
422 | "message": "",
423 | "token": "cfa60978d12bb91589cf",
424 | "client_reference": null,
425 | "created_at": "2012-06-12T16:53:03+02:00",
426 | "receiver_type": "FundraisingEvent",
427 | "receiver_id": 10987,
428 | "receiver_title": "Touchrugbyturnier",
429 | "links": [
430 | {
431 | "rel": "receiver",
432 | "href": "https://api.betterplace.org/de/api_v4/fundraising_events/10987.json"
433 | },
434 | {
435 | "rel": "self",
436 | "href": "https://api.betterplace.org/de/api_v4/clients/volksfreund/client_donations/cfa60978d12bb91589cf.json"
437 | }
438 | ]
439 | }
440 | ]
441 | }
442 | ```
443 |
444 |
--------------------------------------------------------------------------------
/sections/client_forwarding_request_details.md:
--------------------------------------------------------------------------------
1 |
2 | # Client Forwarding Request Status ⇄ [Creation](client_forwarding_requests_list.md)
3 |
4 | ```Cirru
5 | GET https://api.betterplace.org/de/api_v4/clients/some_client/forwarding_requests/1337.json
6 | ```
7 |
8 | **For [betterplace.org clients](../README.md#client-api) only:**
9 |
10 | After submitting a forwarding request, you should check the status of the asynchronous
11 | forwarding job. It returns a JSON response, containing information about its status,
12 | including failure reasons in the case of a failure.
13 |
14 |
15 | ## URL Parameters
16 |
17 |
65 |
66 | Attribute |
67 | Types |
68 | Example |
69 | Description |
70 |
71 |
72 | id |
73 | number |
74 | 1 |
75 |
76 |
77 | An integer number ≥ 1
78 |
79 | |
80 |
81 |
82 | created_at |
83 | string |
84 | "1994-11-05T13:15:30Z" |
85 |
86 |
87 | DateTime (ISO8601 with Timezone)
88 |
89 | |
90 |
91 |
92 | updated_at |
93 | string |
94 | "1994-11-05T13:15:30Z" |
95 |
96 |
97 | DateTime (ISO8601 with Timezone)
98 |
99 | |
100 |
101 |
102 | confirmed_at |
103 | string |
104 | 2016-11-11T09:50:06+01:00 |
105 |
106 |
107 | DateTime (ISO8601 with Timezone)
108 |
109 | |
110 |
111 |
112 | failed_at |
113 | string |
114 | 2016-11-11T09:50:06+01:00 |
115 |
116 |
117 | DateTime (ISO8601 with Timezone)
118 |
119 | |
120 |
121 |
122 | state |
123 | string |
124 | "confirmed" |
125 |
126 |
127 | One of "pending", "confirmed" or "failed".
128 |
129 | pending
130 | The system is still processing this donation.
131 | Please check again soon.
132 | confirmed
133 | The donation is confirmed. This state is final.
134 | failed
135 | The donation failed. Please check the failure_code .
136 | This state is final.
137 |
138 |
139 |
140 | |
141 |
142 |
143 | failure_code |
144 | string |
145 | pool_missing |
146 |
147 |
148 | A set of failure codes.
149 | You could use this to choose follow up actions in
150 | your application. More details about each error are
151 | part of the failure_reason .
152 |
153 | pool_missing No pool available
154 | pool_empty Not enough money on the pool
155 | receiver_prohibited_from_receiving_donations The forwarding request's receiver may not receive donations
156 | donation_invalid Generic error, look at failure_reason for details
157 |
158 | This list might be extended at any time. Please
159 | make sure you receive a notification if you encounter
160 | a new code. Codes will note be removed but might be
161 | deprecated and not used anymore at some point in the
162 | future.
163 |
164 |
165 | |
166 |
167 |
168 | failure_reason |
169 | string |
170 |
|
171 |
172 |
173 | A more detailed description of the failure.
174 | This message is meant to be interpreted by a
175 | developer, not by a customer/user.
176 | The message might change at any time, don't
177 | use it to match actions based on the message
178 | string.
179 |
180 |
181 | |
182 |
183 |
184 |
185 |
186 | ## Response Links
187 |
188 |
40 |
41 | Attribute |
42 | Types |
43 | Example |
44 | Description |
45 |
46 |
47 | donated_amount_in_cents |
48 | number |
49 | 10100 |
50 |
51 |
52 | How many cents are donated already to all fundraising events of this client.
53 |
54 | It does not include the money of the client-pool-fundraising-event.
55 |
56 | Remember: This includes all donations to fundraising events of this client even those
57 | that are donated via betterplace.org or other channels.
58 |
59 |
60 | |
61 |
62 |
63 | fundraising_events_count |
64 | number |
65 | 100 |
66 |
67 |
68 | The number of fundraising events of this client.
69 |
70 | Blocked fundraising events are excluded from this count and from the API in general.
71 |
72 |
73 | |
74 |
75 |
76 | client_donated_amount_in_cents |
77 | number |
78 | 8100 |
79 |
80 |
81 | How many cents are donated through the clients donation page to
82 | all fundraising events (those that are active, closed, blocked and so on).
83 |
84 | The client-pool-fundraising-event is ignored.
85 |
86 |
87 | |
88 |
89 |
90 | client_donations_count |
91 | number |
92 | 200 |
93 |
94 |
95 | The number of client donations for this client to
96 | all fundraising events (those that are active, closed, blocked and so on).
97 |
98 | The client-pool-fundraising-event is ignored.
99 |
100 |
101 | |
102 |
103 |
104 |
105 |
106 | ## Response Links
107 |
108 |
40 |
41 | Attribute |
42 | Types |
43 | Example |
44 | Description |
45 |
46 |
47 | donated_amount_in_cents |
48 | number |
49 | 10100 |
50 |
51 |
52 | How many cents are donated already through user donations or forwardings
53 | to all client projects.
54 |
55 | Remember: This includes all donations to projects of this client even those
56 | that are donated via betterplace.org or other channels.
57 |
58 |
59 | |
60 |
61 |
62 | external_donated_amount_in_cents |
63 | number |
64 | 10100 |
65 |
66 |
67 | ⚠️ DEPRECATED!
68 | This value will be removed in the future.
69 |
70 | How many cents are external donations, that means they were given directly
71 | to the project on other, non-betterplace channels.
72 |
73 |
74 | |
75 |
76 |
77 | requested_amount_in_cents |
78 | number |
79 | 11000 |
80 |
81 |
82 | How many cents were requested by all client projects in total.
83 | This calculation is based on the sum of all
84 | needs (requested_amount_in_cents).
85 |
86 | Calculate the amount of cents that is still missing until all projects
87 | are completed like this:
88 | `requested_amount_in_cents - donated_amount_in_cents - external_donated_amount_in_cents`
89 |
90 |
91 | |
92 |
93 |
94 | projects_count |
95 | number |
96 | 100 |
97 |
98 |
99 | The number of projects of this client.
100 |
101 |
102 | |
103 |
104 |
105 | client_donated_amount_in_cents |
106 | number |
107 | 8100 |
108 |
109 |
110 | How many cents are donated through the client's donation page and forwarded
111 | from the clients donation pool or matching funds of this client.
112 |
113 |
114 | |
115 |
116 |
117 | client_donations_count |
118 | number |
119 | 200 |
120 |
121 |
122 | The number of client donations for this client.
123 |
124 |
125 | |
126 |
127 |
128 |
129 |
130 | ## Response Links
131 |
132 |
40 |
41 | Attribute |
42 | Types |
43 | Example |
44 | Description |
45 |
46 |
47 | id |
48 | number |
49 | 1 |
50 |
51 |
52 | An integer number ≥ 1
53 |
54 | |
55 |
56 |
57 | created_at |
58 | string |
59 | "1994-11-05T13:15:30Z" |
60 |
61 |
62 | DateTime (ISO8601 with Timezone)
63 |
64 | |
65 |
66 |
67 | updated_at |
68 | string |
69 | "1994-11-05T13:15:30Z" |
70 |
71 |
72 | DateTime (ISO8601 with Timezone)
73 |
74 | |
75 |
76 |
77 | activated_at |
78 | null | string |
79 | "1994-11-05T13:15:30Z" |
80 |
81 |
82 | DateTime (ISO8601 with Timezone)
83 |
84 | |
85 |
86 |
87 | title |
88 | string |
89 | ACME Matching Everything |
90 |
91 |
92 | Our matching fund's name
93 |
94 | |
95 |
96 |
97 | description |
98 | string |
99 | It's all about matching donations… |
100 |
101 |
102 | The description of the matching fund
103 |
104 | |
105 |
106 |
107 | company_name |
108 | string |
109 | ACME |
110 |
111 |
112 | The company that supports it
113 |
114 | |
115 |
116 |
117 | client_id |
118 | string |
119 | clientname |
120 |
121 |
122 | The client to which the matching fund belongs
123 |
124 | |
125 |
126 |
127 | provided_amount_in_cents |
128 | number |
129 | 12300 |
130 |
131 |
132 | The amount in cents the company provided to be matched
133 |
134 | |
135 |
136 |
137 | donated_amount_in_cents |
138 | number |
139 | 12300 |
140 |
141 |
142 | The amount in cents the company already donated
143 |
144 | |
145 |
146 |
147 | state |
148 | string |
149 | activated |
150 |
151 |
152 | Current state of this matching fund: either activated or closed
153 |
154 | |
155 |
156 |
157 | logo_url |
158 | string |
159 | http://example.com/images/logo.png |
160 |
161 |
162 | The URL of the logo image.
163 |
164 | |
165 |
166 |
167 | maximum_matching_amount_in_cents |
168 | number |
169 | 10000 |
170 |
171 |
172 | Up to this amount donations get matched by the matching fund
173 |
174 | |
175 |
176 |
177 |
178 |
179 | ## Response Links
180 |
181 |
55 |
56 | Attribute |
57 | Types |
58 | Example |
59 | Description |
60 |
61 |
62 | id |
63 | number |
64 | 1 |
65 |
66 |
67 | An integer number ≥ 1
68 |
69 | |
70 |
71 |
72 | created_at |
73 | string |
74 | "1994-11-05T13:15:30Z" |
75 |
76 |
77 | DateTime (ISO8601 with Timezone)
78 |
79 | |
80 |
81 |
82 | updated_at |
83 | string |
84 | "1994-11-05T13:15:30Z" |
85 |
86 |
87 | DateTime (ISO8601 with Timezone)
88 |
89 | |
90 |
91 |
92 | activated_at |
93 | null | string |
94 | "1994-11-05T13:15:30Z" |
95 |
96 |
97 | DateTime (ISO8601 with Timezone)
98 |
99 | |
100 |
101 |
102 | title |
103 | string |
104 | ACME Matching Everything |
105 |
106 |
107 | Our matching fund's name
108 |
109 | |
110 |
111 |
112 | description |
113 | string |
114 | It's all about matching donations… |
115 |
116 |
117 | The description of the matching fund
118 |
119 | |
120 |
121 |
122 | company_name |
123 | string |
124 | ACME |
125 |
126 |
127 | The company that supports it
128 |
129 | |
130 |
131 |
132 | client_id |
133 | string |
134 | clientname |
135 |
136 |
137 | The client to which the matching fund belongs
138 |
139 | |
140 |
141 |
142 | provided_amount_in_cents |
143 | number |
144 | 12300 |
145 |
146 |
147 | The amount in cents the company provided to be matched
148 |
149 | |
150 |
151 |
152 | donated_amount_in_cents |
153 | number |
154 | 12300 |
155 |
156 |
157 | The amount in cents the company already donated
158 |
159 | |
160 |
161 |
162 | state |
163 | string |
164 | activated |
165 |
166 |
167 | Current state of this matching fund: either activated or closed
168 |
169 | |
170 |
171 |
172 | logo_url |
173 | string |
174 | http://example.com/images/logo.png |
175 |
176 |
177 | The URL of the logo image.
178 |
179 | |
180 |
181 |
182 | maximum_matching_amount_in_cents |
183 | number |
184 | 10000 |
185 |
186 |
187 | Up to this amount donations get matched by the matching fund
188 |
189 | |
190 |
191 |
192 |
193 |
194 | ## Response Links
195 |
196 |
55 |
56 | Attribute |
57 | Types |
58 | Example |
59 | Description |
60 |
61 |
62 | id |
63 | number |
64 | 1 |
65 |
66 |
67 | An integer number ≥ 1
68 |
69 | |
70 |
71 |
72 | created_at |
73 | string |
74 | "1994-11-05T13:15:30Z" |
75 |
76 |
77 | DateTime (ISO8601 with Timezone)
78 |
79 | |
80 |
81 |
82 | updated_at |
83 | string |
84 | "1994-11-05T13:15:30Z" |
85 |
86 |
87 | DateTime (ISO8601 with Timezone)
88 |
89 | |
90 |
91 |
92 | title |
93 | string |
94 |
|
95 |
96 |
97 | Max 50 character
98 |
99 | |
100 |
101 |
102 | description |
103 | string |
104 |
|
105 |
106 |
107 |
108 |
109 | |
110 |
111 |
112 | completed |
113 | boolean |
114 | false |
115 |
116 |
117 | True if the need is 100 % financed
118 |
119 | |
120 |
121 |
122 | progress_percentage |
123 | number |
124 | 82 |
125 |
126 |
127 | % financed
128 |
129 | |
130 |
131 |
132 | donated_amount_in_cents |
133 | number |
134 | 12382 |
135 |
136 |
137 | How many cents are donated already.
138 | This includes all donations that can be given to a need
139 | (direct donation, forwarding of project donation,
140 | forwarding of organisation donation,
141 | forwarding of fundraising event donations,
142 | offline donations and also(!) external donations)
143 |
144 |
145 | |
146 |
147 |
148 | open_amount_in_cents |
149 | number |
150 | 12382 |
151 |
152 |
153 | How many cents are still needed to complete the need
154 |
155 | |
156 |
157 |
158 | requested_amount_in_cents |
159 | number |
160 | 12382 |
161 |
162 |
163 | How much money is needed in total
164 |
165 | |
166 |
167 |
168 |
169 |
170 | ## Response Links
171 |
172 |
78 |
79 | Attribute |
80 | Types |
81 | Example |
82 | Description |
83 |
84 |
85 | id |
86 | number |
87 | 1 |
88 |
89 |
90 | An integer number ≥ 1
91 |
92 | |
93 |
94 |
95 | created_at |
96 | string |
97 | "1994-11-05T13:15:30Z" |
98 |
99 |
100 | DateTime (ISO8601 with Timezone)
101 |
102 | |
103 |
104 |
105 | updated_at |
106 | string |
107 | "1994-11-05T13:15:30Z" |
108 |
109 |
110 | DateTime (ISO8601 with Timezone)
111 |
112 | |
113 |
114 |
115 | title |
116 | string |
117 |
|
118 |
119 |
120 | Max 50 character
121 |
122 | |
123 |
124 |
125 | description |
126 | string |
127 |
|
128 |
129 |
130 |
131 |
132 | |
133 |
134 |
135 | completed |
136 | boolean |
137 | false |
138 |
139 |
140 | True if the need is 100 % financed
141 |
142 | |
143 |
144 |
145 | progress_percentage |
146 | number |
147 | 82 |
148 |
149 |
150 | % financed
151 |
152 | |
153 |
154 |
155 | donated_amount_in_cents |
156 | number |
157 | 12382 |
158 |
159 |
160 | How many cents are donated already.
161 | This includes all donations that can be given to a need
162 | (direct donation, forwarding of project donation,
163 | forwarding of organisation donation,
164 | forwarding of fundraising event donations,
165 | offline donations and also(!) external donations)
166 |
167 |
168 | |
169 |
170 |
171 | open_amount_in_cents |
172 | number |
173 | 12382 |
174 |
175 |
176 | How many cents are still needed to complete the need
177 |
178 | |
179 |
180 |
181 | requested_amount_in_cents |
182 | number |
183 | 12382 |
184 |
185 |
186 | How much money is needed in total
187 |
188 | |
189 |
190 |
191 |
192 |
193 | ## Response Links
194 |
195 |
105 |
106 | Attribute |
107 | Types |
108 | Example |
109 | Description |
110 |
111 |
112 | id |
113 | number |
114 | 1 |
115 |
116 |
117 | An integer number ≥ 1
118 |
119 | |
120 |
121 |
122 | created_at |
123 | string |
124 | "1994-11-05T13:15:30Z" |
125 |
126 |
127 | DateTime (ISO8601 with Timezone)
128 |
129 | |
130 |
131 |
132 | updated_at |
133 | string |
134 | "1994-11-05T13:15:30Z" |
135 |
136 |
137 | DateTime (ISO8601 with Timezone)
138 |
139 | |
140 |
141 |
142 | donated_amount_in_cents |
143 | number |
144 | 5000 |
145 |
146 |
147 | The amount donated, but only if the user allowed the amount to be
148 | visible. Most donation forms allow the donor to specify if they
149 | want their amount to be visible. As a default, the donated amount
150 | is visible.
151 |
152 | Known issue: For forwarding donations (money that is forwarded from a fundraising event to a project)
153 | this field is always empty, which is wrong.
154 |
155 |
156 | |
157 |
158 |
159 | matched_amount_in_cents |
160 | number |
161 | 5000 |
162 |
163 |
164 | If a matching fund was active during the donation then the amount
165 | donated by a user might was matched with another donation.
166 |
167 | This amount is normally as high as the actual donation amount, with some
168 | restrictions, e.g. when the matching fund is depleted or the donation
169 | was higher than the maximum matching threshold.
170 |
171 |
172 | |
173 |
174 |
175 | matched |
176 | boolean |
177 | true |
178 |
179 |
180 | The matched field is true if this is a donor opinion for a donation that
181 | was matched by a matching fund.
182 | It's false otherwise.
183 |
184 |
185 | |
186 |
187 |
188 | client_name |
189 | string |
190 | PAYBACK Spendenwelt |
191 |
192 |
193 | Name of the related client, if available.
194 |
195 |
196 | |
197 |
198 |
199 | score |
200 | string |
201 | positive |
202 |
203 |
204 | DEPRECATED 2017-06-16 - Always returns "positive"
205 |
206 |
207 | |
208 |
209 |
210 |
211 |
212 | ↓author
213 |
214 | |
215 | null | object |
216 | TODO |
217 |
218 |
219 | Donor information, if available.
220 |
221 |
222 | |
223 |
224 |
225 |
226 |
227 | ↓backed_by_fundraising_event
228 |
229 | |
230 | object |
231 | TODO |
232 |
233 |
234 | Information about the fundraising event through which the donation came in, if available.
235 |
236 |
237 | |
238 |
239 |
240 | message |
241 | null | string |
242 | "This is a great project. In spring 2007 I travelled around the area together with my children and …" |
243 |
244 |
245 | An optional message by users.
246 |
247 | The body is plain text potentially containing line-breaks.
248 |
249 |
250 | |
251 |
252 |
253 | confirmed_at |
254 | string |
255 | "1994-11-05T13:15:30Z" |
256 |
257 |
258 | DateTime (ISO8601 with Timezone)
259 |
260 | |
261 |
262 |
263 |
264 | ###
404 |
405 | Linkname |
406 | Description |
407 |
408 |
409 |
410 |
411 | project
412 |
413 | |
414 |
415 |
416 | Link to the project this opinion belongs to
417 | (project details)
418 |
419 |
420 | |
421 |
422 |
423 |
424 |
425 | fundraising_event
426 |
427 | |
428 |
429 |
430 | Link to the fundraising event this opinion belongs to
431 | (fundraising event details)
432 |
433 |
434 | |
435 |
436 |
437 |
438 |
439 | matching_fund
440 |
441 | |
442 |
443 |
444 | Link to the matching fund that matched this donation.
445 | (matching fund details)
446 |
447 |
448 | |
449 |
450 |
451 |
452 |
453 | author.platform
454 |
455 | |
456 |
457 |
458 | The user's profile on betterplace.org.
459 | To view a user profile you have to be logged in.
460 | This array is empty if the user has no useraccount
461 | with betterplace.org but donated via one of our partner.
462 |
463 |
464 | |
465 |
466 |
467 |
468 |
469 | author.contact_data
470 |
471 | |
472 |
473 |
474 | The user's contact data. Please note that you need to be
475 | authenticated as a client with matching
476 | access rights in order to see this information.
477 |
478 |
479 | |
480 |
481 |
482 |
483 |
484 | author.picture.fill_100x100
485 |
486 | |
487 |
488 |
489 | 100×100 Pixel
490 |
491 | |
492 |
493 |
494 |
495 |
496 | author.picture.original
497 |
498 | |
499 |
500 |
501 | Maximum sized image. This is the original image with default-cropping or user-cropping applied.
502 |
503 | |
504 |
505 |
506 |
507 |
508 | backed_by_fundraising_event.sponsoring_logo
509 |
510 | |
511 |
512 |
513 | Sponsoring Logo
514 |
515 | |
516 |
517 |
518 |
519 | ## Response Example
520 |
521 | ```json
522 | {
523 | "total_entries": 1,
524 | "offset": 0,
525 | "total_pages": 1,
526 | "current_page": 1,
527 | "per_page": 3,
528 | "data": [
529 | {
530 | "id": 357891,
531 | "created_at": "2012-04-19T16:08:51+02:00",
532 | "updated_at": "2016-11-28T15:40:02+01:00",
533 | "matched": false,
534 | "score": "positive",
535 | "author": {
536 | "name": "Logan Jackson",
537 | "picture": {
538 | "links": [
539 | {
540 | "rel": "fill_100x100",
541 | "href": "https://betterplace-assets.betterplace.org/uploads/donation/profile_picture/d94/884/32c58c9bb85f004661cfa5bdc614e0dc2/fill_100x100_bp1480344002_crop_original_bp1469459430_20160505-DSC_0627.jpg"
542 | },
543 | {
544 | "rel": "original",
545 | "href": "https://betterplace-assets.betterplace.org/uploads/donation/profile_picture/d94/884/32c58c9bb85f004661cfa5bdc614e0dc2/crop_original_bp1480344002_crop_original_bp1469459430_20160505-DSC_0627.jpg"
546 | }
547 | ]
548 | },
549 | "links": [
550 |
551 | ]
552 | },
553 | "message": "",
554 | "confirmed_at": "2012-04-19T16:08:51+02:00",
555 | "links": [
556 | {
557 | "rel": "project",
558 | "href": "https://api.betterplace.org/de/api_v4/projects/9241.json"
559 | }
560 | ]
561 | }
562 | ]
563 | }
564 | ```
565 |
566 |
--------------------------------------------------------------------------------
/sections/organisation_details.md:
--------------------------------------------------------------------------------
1 |
2 | # Organisation Details ⇄ [List](organisations_list.md)
3 |
4 | ```Cirru
5 | GET https://api.betterplace.org/de/api_v4/organisations/125.json
6 | ```
7 |
8 | The details of a betterplace.org organisation.
9 | The details and list view show the same data per organisation.
10 |
11 | **For [betterplace.org clients](../README.md#client-api):**
12 | There is no client-scoped URL.
13 | Please use the API calls that are provided inside the client project _url_ response
14 | to make sure you only request data that is associated with one of your projects.
15 |
16 |
17 | ## URL Parameters
18 |
19 |
45 |
46 | Attribute |
47 | Types |
48 | Example |
49 | Description |
50 |
51 |
52 | id |
53 | number |
54 | 1 |
55 |
56 |
57 | An integer number ≥ 1
58 |
59 | |
60 |
61 |
62 | created_at |
63 | string |
64 | "1994-11-05T13:15:30Z" |
65 |
66 |
67 | DateTime (ISO8601 with Timezone)
68 |
69 | |
70 |
71 |
72 | updated_at |
73 | string |
74 | "1994-11-05T13:15:30Z" |
75 |
76 |
77 | DateTime (ISO8601 with Timezone)
78 |
79 | |
80 |
81 |
82 | latitude |
83 | number |
84 | 52.499007 |
85 |
86 |
87 | Decimal degrees based on user input
88 |
89 | |
90 |
91 |
92 | longitude |
93 | number |
94 | 13.44947 |
95 |
96 |
97 | Decimal degrees based on user input
98 |
99 | |
100 |
101 |
102 | street |
103 | null | string |
104 | "Schlesische Straße 26" |
105 |
106 |
107 | Street address
108 |
109 | |
110 |
111 |
112 | zip |
113 | null | string |
114 | "10997" |
115 |
116 |
117 | ZIP code
118 |
119 | |
120 |
121 |
122 | city |
123 | null | string |
124 | "Berlin" |
125 |
126 |
127 | Name of the city
128 |
129 | |
130 |
131 |
132 | country |
133 | null | string |
134 | "Deutschland" |
135 |
136 |
137 | Name of the country
138 |
139 | |
140 |
141 |
142 | content_updated_at |
143 | string |
144 | "1994-11-05T13:15:30Z" |
145 |
146 |
147 | DateTime (ISO8601 with Timezone)
148 |
149 | |
150 |
151 |
152 | slug |
153 | string |
154 | vivaconagua |
155 |
156 |
157 | URL slug
158 | for the permalink
159 |
160 |
161 | |
162 |
163 |
164 | name |
165 | string |
166 | "Viva con Agua de Sankt Pauli e.V." |
167 |
168 |
169 | Name of the organisation
170 |
171 | |
172 |
173 |
174 | description |
175 | string |
176 |
|
177 |
178 |
179 | A description of the organisation.
180 | This may contain br tags.
181 |
182 |
183 | |
184 |
185 |
186 | tax_deductible |
187 | boolean |
188 | true |
189 |
190 |
191 | ⚠️ DEPRECATED!
192 |
193 | This value is deprecated and will be removed.
194 |
195 |
196 | |
197 |
198 |
199 |
200 |
201 | ↓contact
202 |
203 | |
204 | object |
205 |
|
206 |
207 |
208 | The public contact person for this organisation.
209 |
210 | |
211 |
212 |
213 |
214 |
215 | ↓picture
216 |
217 | |
218 | null | object |
219 |
|
220 |
221 |
222 | TODO
223 |
224 | |
225 |
226 |
227 |
228 | ###
324 |
325 | Linkname |
326 | Description |
327 |
328 |
329 |
330 |
331 | self
332 |
333 | |
334 |
335 |
336 | Link to this resource itself
337 | (organisation details)
338 |
339 |
340 | |
341 |
342 |
343 |
344 |
345 | platform
346 |
347 | |
348 |
349 |
350 | Permalink to betterplace.org
351 |
352 | |
353 |
354 |
355 |
356 |
357 | projects
358 |
359 | |
360 |
361 |
362 | Link to the project list of this organisation
363 |
364 |
365 | |
366 |
367 |
368 |
369 |
370 | website
371 |
372 | |
373 |
374 |
375 | Link to the website of this organisation.
376 |
377 | |
378 |
379 |
380 |
381 |
382 | contact.platform
383 |
384 | |
385 |
386 |
387 | The user's profile on betterplace.org.
388 | To view a user profile you have to be logged in.
389 | This array is empty if the user has no useraccount
390 | with betterplace.org but donated via one of our partner.
391 |
392 |
393 | |
394 |
395 |
396 |
397 |
398 | contact.contact_data
399 |
400 | |
401 |
402 |
403 | The user's contact data. Please note that you need to be
404 | authenticated as a client with matching
405 | access rights in order to see this information.
406 |
407 |
408 | |
409 |
410 |
411 |
412 |
413 | contact.picture.fill_100x100
414 |
415 | |
416 |
417 |
418 | 100×100 Pixel
419 |
420 | |
421 |
422 |
423 |
424 |
425 | contact.picture.original
426 |
427 | |
428 |
429 |
430 | Maximum sized image. This is the original image with default-cropping or user-cropping applied.
431 |
432 | |
433 |
434 |
435 |
436 |
437 | picture.fill_100x100
438 |
439 | |
440 |
441 |
442 | 100×100 Pixel
443 |
444 | |
445 |
446 |
447 |
448 |
449 | picture.fill_200x200
450 |
451 | |
452 |
453 |
454 | 200×200 Pixel
455 |
456 | |
457 |
458 |
459 |
460 |
461 | picture.fill_400x400
462 |
463 | |
464 |
465 |
466 | 400×400 Pixel
467 |
468 | |
469 |
470 |
471 |
472 |
473 | picture.original
474 |
475 | |
476 |
477 |
478 | Maximum sized image. This is the original image with default-cropping or user-cropping applied.
479 |
480 | |
481 |
482 |
483 |
484 | ## Response Example
485 |
486 | ```json
487 | {
488 | "id": 125,
489 | "created_at": "2008-02-06T17:10:42+01:00",
490 | "updated_at": "2022-02-11T00:01:12+01:00",
491 | "latitude": 53.55759811401367,
492 | "longitude": 9.96815967559815,
493 | "street": "Mühlgasse 175",
494 | "zip": "20357",
495 | "city": "Hamburg",
496 | "country": "Deutschland",
497 | "content_updated_at": "2020-04-09T18:24:12+02:00",
498 | "slug": "vivaconagua",
499 | "name": "Viva con Agua de Sankt Pauli e.V.",
500 | "description": "Viva con Agua aktiviert und inspiriert - für eine Welt ohne Durst!