FieldRoutes API docs logoFieldRoutes API

Billing

payment

5 endpoints. Start at search to collect IDs, then resolve them through get.

Read operations

get/payment/getTry it

get payment

Get Bulk data for payment. Accepts an array of paymentIDs. Returns a max of 1000 records.

Parameters

paymentIDsarray

No description in the upstream reference.

Returns

paymentIDinteger

Payment Unique Identifier

officeIDinteger

Office Unique Identifier

customerIDinteger

Customer Unique Identifier

datestring

Payment date

paymentMethodinteger

Payment Method 0-Coupon, 1-Cash, 2-Check, 3-Credit Card, 4 ACH, 5-Credit Memo

amountdouble

Payment amount

appliedAmountdouble

Amount of the payment that was used

unassignedAmountdouble

Amount of the payment that was not used yet

Request

/payment/get
curl -X POST 'https://{subdomain}.pestroutes.com/api/payment/get' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'paymentIDs=value' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
]
count:2
}
by id/payment/{id}Try it

Fetch by id payment

Get payment data for single ID -- please provide a specific record ID in the URL structure.

Parameters

No parameters beyond authentication.

Returns

paymentIDinteger

Payment Unique Identifier

officeIDinteger

Office Unique Identifier

customerIDinteger

Customer Unique Identifier

datestring

Payment date

paymentMethodinteger

Payment Method 0-Coupon, 1-Cash, 2-Check, 3-Credit Card, 4 ACH, 5-Credit Memo

amountdouble

Payment amount

appliedAmountdouble

Amount of the payment that was used

unassignedAmountdouble

Amount of the payment that was not used yet

Request

/payment/{id}
curl -X POST 'https://{subdomain}.pestroutes.com/api/payment/{id}' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
paymentID:4468
officeID:2602
customerID:2124
date:"2026-05-06 00:00:00"
paymentMethod:2
amount:21.5
appliedAmount:74.5
unassignedAmount:12.5
status:2
invoiceIDs:0
paymentApplications:"sample-paymentApplications"
employeeID:5916
officePayment:0
collectionPayment:0
writeOff:1
paymentOrigin:0
originalPaymentID:1219
lastFour:"sample-lastFour"
notes:"Sample value returned by the mock engine."
batchOpened:"sample-batchOpened"
batchClosed:"sample-batchClosed"
paymentSource:"sample-paymentSource"
}
}

Write operations

create/payment/createTry it

create payment

Parameters

employeeIDinteger

Employee to associate with the payment

notesinteger

Description for this payment

ticketIDinteger

Limit payment to this ticket

subscriptionIDinteger

Limit payment to this subscription

Returns

Returns a success acknowledgement.

Request

/payment/create
curl -X POST 'https://{subdomain}.pestroutes.com/api/payment/create' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'employeeID=1' \
  --data-urlencode 'notes=1' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
paymentID:4821
}
createRefund/payment/createRefundTry it

createRefund payment

Parameters

amountdouble

Amount this payment was for

Returns

Returns a success acknowledgement.

Request

/payment/createRefund
curl -X POST 'https://{subdomain}.pestroutes.com/api/payment/createRefund' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'Accept: application/json' \
  --data-urlencode 'amount=value' \
  --data-urlencode 'authenticationKey=<your-key>' \
  --data-urlencode 'authenticationToken=<your-token>'

Response

success:true
paymentID:4821
}