Create Payment

To create a payment, make a POST request to the following endpoint:

https://api.peach-in.com/v4/payments

Request

Include your API key in the Authorization header of the request, as described in the Authorization section.

Response

A successful response to the create payment endpoint will return the payment object in the JSON format. The response will include various details about the payment, such as its ID, name, and any associated details.

POST https://api.peach-in.com/v4/payments

Request Body

Name
Type
Description

sum*

number

Payment sum

isSubscription

boolean

Specifies if this payment is a subscription

personalDedication

String

displayName

String

internalComments

String

mailingApproval

boolean

currency

String

Default: ILS

billingCycles

number

Total amount of billing cycles

Required if isSubsription = true

lastName

String

firstName

String

phone

String

email

String

city

String

street

String

streetNumber

String

aptNumber

String

zipCode

String

campaignId

String

groupId

String

receiptUrl

String

bank

String

Bank code

bankBranch

String

Bank branch

bankName

String

Bank name

bankAccount

String

Bank account number

chequeNumber

String

Check number

receiptNumber

String

contactId

String

customProperties

Object

object with payment's custom properties as set up in the system.

{
    "webhook": null,
    "transactionRef": null,
    "failedReason": null,
    "endDate": 1688718065204,
    "marketingCampaignId": null,
    "status": "external",
    "donationMethod": "external",
    "donorFirstName": "John",
    "cc4dig": null,
    "paypalSubscriptionId": null,
    "managedExternally": false,
    "otherDescription": null,
    "nextBillingCycle": null,
    "transactionResult": null,
    "exchangeRate": 1,
    "documentLanguage": null,
    "donatedOn": 1688718065204,
    "authNumber": null,
    "clearingProcessor": null,
    "accountId": "SGrR",
    "donationCurrency": "ILS",
    "createdAt": 1688718066917,
    "isInstallments": false,
    "contactId": "923aa6a0-ae99-11ed-9e69-c1f37929115c",
    "donorDisplayName": "John Smith",
    "chargeDay": null,
    "completed": true,
    "paymentId": "387f7900-1c9f-11ee-99ac-298f91a124fb",
    "cancelled": false,
    "email": "example@peach.com",
    "paymentCategory": "donation",
    "donationSum": 1,
    "additionalRecurringMonths": 0,
    "transactionNumber": null,
    "paypalOrderId": null,
    "donorPhoneNumber": "+12345678",
    "backend": null,
    "campaignId": "SGrR",
    "paymentType": "other",
    "incomes": null,
    "splitAcrossMonths": 1,
    "customProperties": {},
    "donorLastName": "Smith",
    "isHok": false,
    "paymentDate": 1688718065204,
    "additionalRecurringSum": 0,
    "items": [],
    "donationSumInCampaignCurrency": 1,
    "updatedAt": 1688718066917,
    "donationFirstSum": 1,
    "agentId": "-",
    "createReceipt": false,
    "agentName": "",
    "campaignName": "",
    "expectedHokEndDate": "2023-07-07T08:21:05.204Z"
}

Last updated