Passer au contenu principal
POST
/
v2
/
client
/
transactions
Process Transaction
curl --request POST \
  --url https://api.crowdchange.dev/v2/client/transactions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "frequency": "<string>",
  "email": "<string>",
  "fundraiser_id": 123,
  "card": {
    "type": "<string>",
    "token": "<string>"
  },
  "billing": {
    "is_foundation": true,
    "title": "<string>",
    "business_name": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "address": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "country": "<string>"
  },
  "custom_data": {},
  "tax_receipt": {
    "title": "<string>",
    "business_name": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "email": "<string>",
    "address": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "country": "<string>"
  },
  "tribute": {
    "fundraiser_tribute_id": 123,
    "type": "<string>",
    "honoree": "<string>",
    "message": "<string>",
    "method": "<string>",
    "address": {
      "address": "<string>",
      "city": "<string>",
      "state": "<string>",
      "zip": "<string>",
      "country": "<string>"
    },
    "email": "<string>",
    "phone": "<string>",
    "name": "<string>",
    "donor_copy": true
  },
  "extra": {
    "mail_receipt": true,
    "donation_setting_item_id": 123,
    "installments": {
      "total_amount": 123,
      "duration": 123,
      "day": 123
    }
  },
  "mail": {
    "same_as_billing": true,
    "address": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "country": "<string>"
  }
}
'
{
  "id": 123123,
  "ref_id": "SCXXxxXxxxxxXXXx",
  "amount": 49.95,
  "currency": "USD",
  "currency_symbol": "$",
  "frequency": "once",
  "fundraiser_id": 1,
  "parent_id": null,
  "fundraiser_page_id": null,
  "fundraiser_team_id": null,
  "organization_id": 1,
  "fundraiser_name": "Gala Night",
  "organization_name": "Crowdchange",
  "organization_code": "CrowdchangeID",
  "user_id": 120120,
  "email": "john@example.com",
  "mail": null,
  "statement_descriptor": "XXX*CC XXX",
  "summary": {
    "amount_covered_fee": 1.95,
    "amount_custom_fee": 0,
    "amount_donation": 48,
    "amount_apparel": 0,
    "amount_ticket": 0,
    "amount_registration": 0,
    "amount_sponsor": 0,
    "amount_cards": 0,
    "frequency": "once"
  },
  "upsell": null,
  "promo_code": null,
  "billing_address": {
    "name": "Mr. John Snow",
    "email": "john@example.com",
    "business_name": null,
    "title": "Mr.",
    "first_name": "John",
    "last_name": "Snow",
    "address": "123 Main St",
    "city": "Toronto",
    "state": "ON",
    "zip": "M5V2T6",
    "country": "CA",
    "phone": null
  },
  "dtd": null,
  "created_at": "2024-01-01 12:00:00",
  "status": "received"
}

Body

amount
number
requis
Full amount of transaction in xxx.xx format.
frequency
string
requis
Payment frequency. Allowed values: once, month, year
email
string
User’s email.
fundraiser_id
integer
requis
Fundraiser / Campaign ID.
card
object
requis
Card information.
billing
object
requis
Billing information.
custom_data
object
Additional transaction data.
tax_receipt
object
Tax receipt on behalf of another person info.
tribute
object
Tax receipt on behalf of another person info.
extra
object
Extra information.
mail
object
Mail information.

Response

id
integer
Transaction ID.
ref_id
string
Reference or confirmation ID from the payment processor.
amount
number
Full amount of the transaction.
currency
string
Currency code.
currency_symbol
string
Currency symbol.
frequency
string
Payment frequency. Allowed values: once, month, year
fundraiser_id
integer
Fundraiser / Campaign ID.
parent_id
integer
Parent transaction ID for recurring or installment payments, otherwise null.
fundraiser_page_id
integer
Personal page ID the transaction is attributed to, if any.
fundraiser_team_id
integer
Team ID the transaction is attributed to, if any.
organization_id
integer
Organization ID.
fundraiser_name
string
Fundraiser / Campaign name.
organization_name
string
Organization name.
organization_code
string
Organization’s custom ID.
user_id
integer
User ID.
email
string
Donor’s contact email.
mail
object
Mailing address for the receipt, returned only when a mailed receipt was requested. Otherwise null.
statement_descriptor
string
Statement descriptor that appears on the donor’s card statement.
summary
object
Breakdown of the transaction amount by category.
upsell
object
Recurring upsell details, when an upsell was presented. Otherwise null.
promo_code
string
Promo code applied to the transaction, if any.
billing_address
object
Billing details for the transaction.
dtd
object
Double the Donation employer matching details, when provided. Otherwise null.
created_at
string
Date and time the transaction was created.
status
string
Transaction status.
Other responses
StatusDescription
400Bad Request
403Forbidden
{
  "id": 123123,
  "ref_id": "SCXXxxXxxxxxXXXx",
  "amount": 49.95,
  "currency": "USD",
  "currency_symbol": "$",
  "frequency": "once",
  "fundraiser_id": 1,
  "parent_id": null,
  "fundraiser_page_id": null,
  "fundraiser_team_id": null,
  "organization_id": 1,
  "fundraiser_name": "Gala Night",
  "organization_name": "Crowdchange",
  "organization_code": "CrowdchangeID",
  "user_id": 120120,
  "email": "john@example.com",
  "mail": null,
  "statement_descriptor": "XXX*CC XXX",
  "summary": {
    "amount_covered_fee": 1.95,
    "amount_custom_fee": 0,
    "amount_donation": 48,
    "amount_apparel": 0,
    "amount_ticket": 0,
    "amount_registration": 0,
    "amount_sponsor": 0,
    "amount_cards": 0,
    "frequency": "once"
  },
  "upsell": null,
  "promo_code": null,
  "billing_address": {
    "name": "Mr. John Snow",
    "email": "john@example.com",
    "business_name": null,
    "title": "Mr.",
    "first_name": "John",
    "last_name": "Snow",
    "address": "123 Main St",
    "city": "Toronto",
    "state": "ON",
    "zip": "M5V2T6",
    "country": "CA",
    "phone": null
  },
  "dtd": null,
  "created_at": "2024-01-01 12:00:00",
  "status": "received"
}