Payment Request
This endpoint posts a single payment request to a loan account. Authorization is required.
HTTP REQUEST
Development
- POST: https://dev.vendorintegration.growersedge.com/PaymentRequest
Production
- POST: https://vendorintegration.growersedge.com/PaymentRequest
Responses
| Code | Description | 
|---|---|
| 204 | No Content | 
| 400 | Bad Request | 
| 401 | Unauthorized | 
| 500 | Internal Server Error | 
| 502 | Bad Gateway | 
Post Body
| Property Name | Type | Description | 
|---|---|---|
| loanNumber | number | The loan number to apply the payment to | 
| requestor | string | The id of the requestor | 
| totalAmountPaid | number | The amount paid in dollars | 
Example of Post Body
{
    "LoanNumber": "1234",
    "Requestor": "John Doe",
    "TotalAmountPaid": 50
}
Examples
from azure.identity import CertificateCredential
import requests
TENANT_ID = '***' 
CLIENT_ID = '***'
CLIENT_SECRET = '***'
CLIENT_SCOPE = '***'
POST_URL = 'https://vendorintegration.growersedge.com/PaymentRequest'
def postDraw( token : str) :
    payload = {
    "LoanNumber": "1234",
    "Requestor": "John Doe",
    "TotalAmountPaid": 50
}
    paymentRequestResponse = requests.post( 
        POST_URL, 
        headers = { 'Authorization' : f'Bearer {token}'},
        json= payload
    )
    if( paymentRequestResponse.status_code == 204 ):
        return
    else:
        raise( Exception( 'API Call failed.') )
def main():
    credential = ClientSecretCredential( TENANT_ID, CLIENT_ID, CLIENT_SECRET )
    access_token = credential.get_token( CLIENT_SCOPE )
    print (postDraw(access_token.token))
   
if __name__ == '__main__':
    main()
curl --request POST \
  --url https://vendorintegration.growersedge.com/PaymentRequest \
  --header 'Authorization: Bearer <INSERT YOUR TOKEN>' \
  --header 'Content-Type: application/json' \
  --data '{
    "LoanNumber": "1234",
    "Requestor": "John Doe",
    "TotalAmountPaid": 50
}'