Donations API
POST /services/webshop/v1/donations/checkout Public

Donate

A donation from the site's donation form: makes a checkout order with one donation line and opens the payment at the project's own provider (Mollie, Stripe or Razorpay), as the shop's checkout does. Answers the provider's payment page to send the donor to. The money goes to the owner's own provider account; WEMASY never holds or pays out donations.

Request Body Required

FieldTypeRequiredDescriptionExample
website_id integer Yes
amount number
min: 1 max: 10000
Yes
email string (email)
max: 191
Yes
name string|null
max: 191
No
message string|null
max: 1000
No
payment_method string|null
max: 64
No
url string|null
max: 2000
No
language string|null
max: 10
No

Responses

200
422
429
Base URL
https://api.wemasy.nl/api
Authentication

Request Sample
cURL
JS
PHP
Python
Response Example
{
    "payment": {
        "url": "https://www.mollie.com/checkout/select-method/abc123"
    },
    "order_number": "D-1001"
}

Try It
Request Body Required

Export