- Overview
- Account Settings
- Assets
- Connectors Framework
- Customer Portal
- Customers
- Dashboards
- Devices
- Dispatching
- Forms
- Inventory
- Invoices & Billing
- Locations
- Payments
- Parts
- Projects
- Quotes
- Recurrent Routes
- Recurrent Services
- Reports
- Sales Orders
- Schedule
- Services
- Tasks
- Text Messaging
- Time Tracking
- Users
- Work Orders
Overview
Retrieve payment List of the client
Retrieve payment List of the client
URL Format
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/payment/list.html?token=XXXXXXXX&userId={userId}
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/payment/list.html?token=XXXXXXXX&userId={userId}
Arguments
clientId required |
MobiWork assigned unique ID of the company |
versionNumber required |
Version number of MobiWork API SDK release. Current version is: 10.0.78 |
token required |
Part of URL as a request parameter and is required in every call to verify access to API calls |
userId optional |
If provided, this User ID will be taken as a logged in user |
Filter or Search Criteria
description | By payment description |
status | By status of payment |
externalId | By external ID of payment |
category | By cateogry of payment |
createdDateFrom | By created date of payment |
createdDateTo | By created date of payment |
dueDateFrom | By due date of payment |
dueDateTo | By due date of payment |
Return
Returns a list of payment Object(s) if valid arguments and search criteria are provided. If no search criteria is provided the list of a maximum 200 payments will be returned. Returns an error if not a valid request
Returns a list of payment Object(s) if valid arguments and search criteria are provided. If no search criteria is provided the list of a maximum 200 payments will be returned. Returns an error if not a valid request
Request Body XSD
Response Body XSD
Curl Example
HTTP Method: | GET |
Request: |
curl -k -X GET "https://www.mobiwork.com/api/rest/12014/5.0.141/payment/list.html?token=COJL8X2FKSLMMRTYCH2B" --header 'content-type: application/xml' --data'<request> <createdFromDate></createdFromDate> <createdToDate></createdToDate> <invoiceId></invoiceId> <status></status> <userId></userId> <userName></userName> <workOrderId></workOrderId> </request>' |
Response: |
<?xml version="1.0" encoding="UTF-8" ?> <response version="5.0.141" statusCode="1"> <paymentList> <payment> <status>CREATED</status> <amount>100</amount> <createdBy>1</createdBy> <createdByName>User</createdByName> <createdDate>2019/06/26</createdDate> <externalId>123</externalId> <invoiceId>1</invoiceId> <paymentDate>2019/06/26</paymentDate> <paymentId>1</paymentId> <paymentReference>ref</paymentReference> <paymentType>PAYMENT</paymentType> </payment> </paymentList> </response> |