Authorization: Bearer ********************
curl --location --request GET 'https://api.upbooks.io/api/v1/settlement/all?searchText&clientId&status&fromDate&toDate' \
--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",
"invoice": [
{
"id": "string",
"invoiceNumber": "string",
"orderNumber": "string",
"invoiceDate": "2019-08-24T14:15:22Z",
"finalAmount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
}
],
"charges": {
"gateway": {
"settlementFee": {
"currency": "string",
"feeAmount": 0,
"taxAmount": 0,
"totalFee": 0
},
"transferFee": {
"currency": "string",
"feeAmount": 0,
"taxAmount": 0,
"totalFee": 0
},
"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
}
}
},
"status": "pending",
"settledAt": "2019-08-24T14:15:22Z",
"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
}
]
}
},
"settlementAmount": 0,
"razorpay": {
"settlementId": "string",
"transferId": "string",
"paymentLinkId": "string",
"paymentId": "string",
"orderId": "string"
},
"payment": {
"date": "2019-08-24T14:15:22Z",
"currency": {
"name": "string",
"symbol": "string"
},
"amount": 0,
"paymentNumber": "string",
"id": "string"
},
"settlementDataFromRayzorpay": null,
"transferDataFromRayzorpay": null
}
]
],
"totalCount": 0,
"filteredCount": 0,
"message": "string"
}