Create a payment request
POST/api/payment_requests
Requires the PAYPAL OAuth scope. Create a draft payment request for a selected contact. You can upload attachments before finalizing it via /payment_requests/{id}/activate.
Request
Header Parameters
Possible values: <= 50 characters
An optional unique identifier for the request, limited to 50 characters. Used to track requests and prevent duplication.
- application/json
Body
required
Possible values: > 0
contact object
Alternative recipient definition when contactId is not provided.
Possible values: Value must match regular expression ^(\d+(\.\d{1,2})?)$
Possible values: >= 3 characters and <= 3 characters
Possible values: <= 255 characters
Possible values: [email_and_url, url_only]
Default value: email_and_url
Responses
- 201
- 400
- 401
- 403
- 422
Created - The request was processed successfully.
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"id": 42,
"contactId": 145,
"currencyCode": "CHF",
"amount": "5000.50",
"invoiceReference": "Invoice INV-2026-001",
"invoiceDate": "2026-04-21",
"dueDate": "2026-05-01",
"message": "Please settle this invoice until due date.",
"reminderEnabled": true,
"tagIds": [
1,
2,
3
],
"email": "[email protected]",
"pending": true,
"draft": true,
"hash": "a5eb1c1f-a4ad-4a19-ad72-f57ba5acf795",
"paymentPageUrl": "https://www.paypal.com/checkoutnow?token=XYZ"
}
Bad Request -- Your request is invalid.
Unauthorised -- Your access token is wrong.
- application/json
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"detail": "string"
}
Forbidden -- Access to the requested resource or action is forbidden.
Unprocessable Content -- We could not process your request due to invalid data provided.