Create Payment
POST/accounting/payments
Create a Payment.
Request
Query Parameters
The ID of the credential.
Header Parameters
Default value: bearer YOUR_API_KEY
- application/json
Body
The date when the payment transaction took place. Format: YYYY-MM-DD
The ID of the customer associated with the payment.
The ID of the account associated with the payment.
The type of currency in which the payment is made or received. Possible values: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, UYI, UYU, UYW, UZS, VES, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XSU, XTS, XUA, XXX, YER, ZAR, ZMW, ZWL
The conversion rate used if the payment involves transactions in foreign currency.
The complete sum of the payment transaction.
An object containing remote fields that are not supported by the common model. The keys are the names of the fields of the corresponding resource in the remote app, and the values can be strings, numbers, arrays or objects.
Responses
- 200
- 400
200
- application/json
- Schema
- Example (from schema)
- Result
Schema
payment
object
Default value: 0
Default value: 0
Default value: true
{
"payment": {
"id": "00000000-0000-0000-0000-000000000000",
"remoteId": "325",
"transactionDate": "2022-09-01T00:00:00.000Z",
"customerId": "00000000-0000-0000-0000-000000000000",
"vendorId": "00000000-0000-0000-0000-000000000000",
"accountId": "00000000-0000-0000-0000-000000000000",
"currency": "USD",
"exchangeRate": 1,
"companyId": {},
"totalAmount": 50,
"trackingCategoryIds": [
null
],
"remoteCreatedAt": "2022-09-02T06:23:03.000Z",
"remoteUpdatedAt": "2023-10-11T04:48:19.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:18:47.232Z",
"updatedAt": "2024-02-22T13:55:37.343Z"
}
}
{
"payment": {
"id": "00000000-0000-0000-0000-000000000000",
"remoteId": "325",
"transactionDate": "2022-09-01T00:00:00.000Z",
"customerId": "00000000-0000-0000-0000-000000000000",
"vendorId": "00000000-0000-0000-0000-000000000000",
"accountId": "00000000-0000-0000-0000-000000000000",
"currency": "USD",
"exchangeRate": 1,
"companyId": null,
"totalAmount": 50,
"trackingCategoryIds": [],
"remoteCreatedAt": "2022-09-02T06:23:03.000Z",
"remoteUpdatedAt": "2023-10-11T04:48:19.000Z",
"remoteDeleted": false,
"createdAt": "2024-02-22T11:18:47.232Z",
"updatedAt": "2024-02-22T13:55:37.343Z"
}
}
400
- application/json
- Schema
- Example (from schema)
- Result
Schema
{}
{}