Create a Donation

Authorization: Store:Donation:Create

Donations generated through this endpoint will be placed on the store's currently open receivable, and charged like any other e-commerce driven donation.

Body Params
string
required

The EIN of the cause associated with this donation.

double

Amount of the donation associated with this purchase.

string | null

Internal ID of the order you want to reference; must match the user facing order ID.

double

The original total amount paid by the customer.

int32

The donation source (0 = eCommerce Sales, 2 = Yotpo Loyalty Points, 3 = Point of Sale).

date-time | null

(OPTIONAL) Date after which the donation cannot be altered (default = now).

date-time | null

When the order was created at (in UTC)

string | null

(OPTIONAL) Any string used to identify a user in your CMS, for example:"CUST01234", "1234412", or "PERSON1"; used for reporting purposes.

uuid | null

The location ID (for point of sale ONLY).

Headers
string | null

Your store ID (we will provide this).

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
LoadingLoading…
Response
Choose an example:
text/plain
application/json
text/json