v1
latestOpenAPI 3.0.02026-08-043111167.0 KBSourcesOfPayment
Get source of payment
Get source of payment detail
get/source-of-payment/{sourceOfPaymentId}
Path parameters
sourceOfPaymentIdnumber required
Source of payment id
Query parameters
authorizationstring required
Authorization token. String returned in /login
Response
source of payment model and pagination info
Example response
{
"sourceOfPayment": {
"id": 1,
"name": "Source of payment 1",
"slug": "sof-1",
"active": true,
"fixedValue": 100000.5,
"maxPayments": 3,
"createdAt": "2020-09-30T00:00:00.000Z",
"expiresAt": "2090-09-30T00:00:00.000Z",
"CompanyProduct": {
"id": 1,
"companyId": 1,
"company": {
"id": 1,
"name": "Company 1",
"slug": "company-1"
}
},
"totalPayIns": 6,
"totalPayInsByState": {
"accepted": 1,
"rejected": 1,
"pending": 1,
"cancelled": 1,
"abandoned": 1,
"initial": 1
}
}
}