Authorization: Bearer ********************
curl --location --request GET 'https://api.upbooks.io/api/v1/payment?invoiceId&searchText&accountId&clientId&fromDate&toDate&mode&status¤cyName&orderId&isAdvance&country' \
--header 'pageNo;' \
--header 'pageSize;' \
--header 'sortBy;' \
--header 'sortOrder;' \
--header 'ORGANIZATION-ID: 00000'
{
"data": [
[
{
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"__v": 0,
"_id": "string",
"organizationId": "string",
"paymentNumber": "string",
"client": {
"id": "string",
"name": "string",
"clientType": "business",
"billingAddress": {
"locationName": "string",
"street1": "string",
"street2": "string",
"pincode": "string",
"city": "string",
"state": "string",
"country": "string"
},
"contacts": [
{
"isPrimary": true,
"salutation": "Mr.",
"firstName": "string",
"lastName": "string",
"email": "string",
"workPhone": "string",
"mobilePhone": "string",
"designation": "string",
"department": "string"
}
],
"shippingAddress": {
"locationName": "string",
"street1": "string",
"street2": "string",
"pincode": "string",
"city": "string",
"state": "string",
"country": "string"
},
"tax": {
"taxTreatment": "GST",
"taxNumber": "string",
"taxes": [
{
"id": "string",
"name": "string",
"percentage": 0
}
]
}
},
"invoices": [
{
"status": "draft",
"invoiceAmount": 0,
"orderNumber": "string",
"invoiceNumber": "string",
"invoiceId": "string"
}
],
"orders": [
{
"status": "draft",
"orderNumber": "string",
"orderId": "string"
}
],
"mode": "cash",
"charges": {
"gateway": {
"transactionFee": {
"currency": "string",
"feeAmount": 0,
"taxAmount": 0,
"totalFee": 0
}
},
"platform": {
"settlement": {
"currency": "string",
"feeAmount": 0,
"taxAmount": 0,
"totalFee": 0
},
"transaction": {
"currency": "string",
"feeAmount": 0,
"taxAmount": 0,
"totalFee": 0
}
}
},
"referenceNumber": "string",
"notes": "string",
"paymentGateway": "razorpay",
"paymentMethod": {
"method": "string",
"bank": "string",
"wallet": {
"name": "string"
},
"card": {
"type": "string",
"network": "string",
"name": "string",
"last4": "string",
"issuer": "string"
}
},
"amount": 0,
"date": "2019-08-24T14:15:22Z",
"dateTime": "2019-08-24T14:15:22Z",
"currency": {
"name": "string",
"symbol": "string"
},
"status": "draft",
"external": {
"razorpay": {
"referenceNumber": "string"
}
},
"currencyConversionRate": {
"USD": 0,
"EUR": 0,
"GBP": 0,
"INR": 0,
"AUD": 0,
"SGD": 0,
"CAD": 0,
"JPY": 0,
"CNY": 0,
"SAR": 0,
"AED": 0
},
"isDeleted": true,
"difference": [
{
"key": "string",
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"creditNoteId": "string",
"creditNoteNumber": "string",
"expenseId": "string",
"expenseNumber": "string"
}
],
"account": {
"id": "string",
"title": "string",
"type": "cash",
"subType": "gst-receivable",
"category": "asset",
"subCategory": "current-assets",
"bankAccount": {
"id": "string",
"bankAccountNumber": "string",
"title": "string"
},
"defaultCurrency": {
"name": "string",
"symbol": "string"
},
"naturalBalance": "credit"
},
"files": [
"string"
],
"isAdvance": true,
"notification": [
{
"type": "string",
"mode": "string",
"sentOn": "2019-08-24T14:15:22Z",
"to": "string",
"cc": [
"string"
],
"bcc": [
"string"
],
"subject": "string"
}
],
"paymentFile": "string",
"paymentStaticFile": "string",
"error": [
{
"code": "string",
"title": "string",
"dateTime": "2019-08-24T14:15:22Z"
}
]
}
]
],
"totalCount": 0,
"filteredCount": 0,
"message": "string"
}