createCampaignTransaction
Changed onFor external requests this creates an “offline” transaction record for the specified campaign. An offline transaction represents funds collected outside of the GoFundMe Pro platform, but accounted for in GoFundMe Pro reporting, activity feeds, etc. Adding an offline transaction record does not charge any credit cards, nor credit any GoFundMe Pro accounts.
An array of TransactionItems must be included along with the basic Transaction information via the items attribute. Please view the Transaction Item documentation for formatting pertaining to this attribute.
NOTE: requests must include one of the following: billing_first_name AND billing_last_name OR member_email_address OR company_name
Requests may contain all three. Please note that if an offline transaction only contains a company_name and is therefore a transaction by a company and not a person then answers will not be created for that transaction.
NOTE: parent_transaction_id and donation_matching_plan_id link a matched gift to its originating donation and matching plan. They are honored only for orchestrator (internal-app) requests; on the member GoFundMe-donation path they are validated for shape but otherwise ignored.
Request
- Base URLhttps://pro.gofundme.com/api/2.0
- AuthOAuth 2PasswordToken URL: /oauth2/auth
Path parameters
The specified Campaign ID
Request body
Example request
{
"answers": [
{
"answer": "Example answer test",
"question_id": 45678
}
],
"billing_address1": "533 F Street",
"billing_address2": "533 F Street",
"billing_city": "San Diego",
"billing_country": "US",
"billing_first_name": "GoFundMe Pro",
"billing_last_name": "Member",
"billing_postal_code": "92101",
"billing_state": "CA",
"browser_info": "information",
"comment": "This is a comment",
"company_name": "GoFundMe Pro",
"designation_id": 564856,
"fundraising_page_id": 865125,
"fundraising_team_id": 256489,
"is_reprocess": true,
"items": [
{
"product_name": "Tickets",
"quantity": 1,
"raw_final_price": 15,
"raw_overhead_amount": 15,
"type": "donation"
}
],
"member_country": "US",
"member_email_address": "member@gofundme.com",
"member_name": "GoFundMe Pro Member",
"member_phone": "555-555-5555",
"member_cell_phone": "555-555-5555",
"metadata": "{foo: 'bar'}",
"offline_payment_info": {
"check_number": "456",
"description": "Lorem ipsum whatever",
"payment_type": "cash"
},
"parent_transaction_id": 7133489,
"purchased_at": "2016-01-01T12:00:00+0000",
"raw_currency_code": "JPY",
"refunded_at": "2016-01-01T12:00:00+0000",
"status": "canceled"
}Response
Success
Example response
{
"account_number": "1234",
"account_type": "savings",
"acknowledgements_count": 3,
"adjustment_amount": 0.5,
"application_fee_amount": 42,
"applied_application_fee_percent": 3,
"applied_flex_rate_percent": 50,
"applied_fot_percent": 50,
"applied_processor_fee_percent": 2.2,
"applied_raw_processor_fee_flat": 0.2,
"billing_address1": "533 F Street",
"billing_address2": "533 F Street",
"billing_city": "San Diego",
"billing_country": "US",
"billing_first_name": "GoFundMe Pro",
"billing_last_name": "Member",
"billing_postal_code": "92101",
"billing_state": "CA",
"browser_info": "information",
"campaign_id": 227362,
"card_expiration": "1017",
"card_last_four": 1234,
"card_type": "Visa",
"charged_at": "2017-01-01T12:02:01+0000",
"charged_classy_fees_amount": 0.15,
"charged_currency_code": "USD",
"charged_fees_amount": 0.35,
"charged_pp_fees_amount": 0.15,
"charged_total_gross_amount": 1,
"classy_fees_amount": 0.34,
"comment": "This is a comment",
"company_name": "GoFundMe Pro",
"context": {
"application_fee_campaign_category": "main_donate_button",
"application_fee_platform_fee_type": "non_migrated_recurring",
"commerce_order_id": "or_01HFSN0GJZ6656RM8602Z37DY1",
"customizations_metadata": {
"theme": "dark",
"custom_fields": {
"field1": "value1"
}
},
"created_by": "classy_manager",
"created_by_source": "live_events",
"commerce_confirmation_id": "C9UE75VB2",
"is_passport": true,
"source_campaign_id": 227362,
"source_campaign_type": "peer_to_peer",
"vendor_name": "Vendor XYZ",
"vendor_batch_number": "BATCH123456",
"vendor_batch_sequence": "001",
"vendor_batch_date": "2024-01-15"
},
"created_at": "2016-01-01T12:00:00+0000",
"currency_code": "USD",
"designation_id": 34672,
"donation_gross_amount": 1.25,
"donation_matching_plan_id": 4237,
"donation_net_amount": 1.25,
"fees_amount": 1.25,
"fee_on_top": true,
"flex_rate_amount": 42,
"frequency": "one-time",
"fundraising_page_id": 2173528,
"fundraising_team_id": 209745,
"id": 8734,
"initial_gross_amount": 1.25,
"institution": "ABC Bank",
"in_honor_of": "GoFundMe Pro Relation",
"is_donor_covered_fee": true,
"is_reprocess": true,
"member_country": "US",
"member_email_address": "member@gofundme.com",
"member_id": 2012,
"member_name": "GoFundMe Pro Member",
"member_phone": "555-555-5555",
"member_cell_phone": "555-555-5555",
"consent": {
"sms_consent_decision_date": "2016-01-01T12:05:42+0000",
"email_consent_decision_date": "2016-01-01T12:05:42+0000"
},
"metadata": "{foo: 'bar'}",
"organization_id": 82364,
"overhead_net_amount": 25,
"parent_transaction_id": 8734,
"payment_gateway": "BrainTree",
"payment_method": "WPP",
"payment_source": "WALLET",
"payment_type": "Credit Card",
"pp_fees_amount": 0.15,
"pp_reference_id": "12345",
"pp_response": "1023",
"pp_transaction_id": "12345",
"processor_decline_code": "64",
"processor_fee_amount": 42,
"promo_code_code": "PROMO",
"purchased_at": "2016-01-01T12:00:00+0000",
"raw_adjustment_amount": 0.25,
"raw_application_fee_amount": 42,
"raw_currency_code": "JPY",
"raw_donation_gross_amount": 1.25,
"raw_flex_rate_amount": 1.25,
"raw_initial_gross_amount": 1.25,
"raw_overhead_net_amount": 0.25,
"raw_processor_fee_amount": 42,
"raw_total_gross_amount": 1,
"recurring_donation_plan_id": 23847,
"refunded_at": "2016-01-01T12:00:00+0000",
"reprocess_attempts": 2,
"status": "canceled",
"supporter_id": 5827,
"tax_entity_id": 331,
"total_gross_amount": 1.25,
"updated_at": "2016-01-01T12:00:00+0000",
"utm": {
"campaign": "year_end_2025",
"content": "top_banner",
"medium": "email",
"source": "mailchimp",
"term": "donate now"
}
}Changes
- breaking
the response property
became nullable for the status - info
added the optional property
//to the response with the status
- breaking