v1/Accounts/CreatePayment

 

API parameters
Required

 

Name In Type Description
Bearer Token Authorization string Authentication token.
X-Request-Id Path string Unique Id.
PaymentId Json Data string PaymentId.
Amount Json Data Decimal Amount.
ValueDate Json Data string Value date should be in dd/mm/yyyy format.
Reason Json Data string Payment reason.

 

Optional

 

Name In Type Description
CustomerId Parameter string CustomerId.

 

Request

 

{

     "PaymentDetails":[{                              
     "BeneficiaryId": "9B98E34B-85E9-4B75-8CD1",    
     "Amount": 50,
     "ValueDate": "12/08/2020",
     "Reason": "Family",
     "Reference": "Some Test"
     }]     

}

 

Response

 

{
     "PaymentId": "B68EB70E-ADF2-431F-9F6C"

}

 

Error Codes

 

HTTP Status Code Description
401 Invalid credentials Invalid credentials
102 Invalid currency Currency should we ISO format
400 Invalid JSON body Invalid JSON body
106 RequestId already in use RequestId already in use
404 Invalid customerid Invalid customerid
400 Beneficiaryid required Beneficiaryid required
404 Invalid beneficiaryid Invalid beneficiaryid
400 Amount required Amount required
400 Value date required Value date required
400 Value date should be in dd/mm/yyyy format Value date should be in dd/mm/yyyy format
400 Value date should be future date Value date should be future date
400 Payment reason required Payment reason required