GET | /payment/{collectionattemptid} | Gets the payment |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CollectionAttemptId | path | Guid | Yes | The Collection Attempt Id. Must have this and/or PaymentId. |
PaymentId | body | Guid | No | The Payment Id. Must have this and/or CollectionAttemptId |
CustomerId | body | Guid | Yes | The Customer Id. Must have this and/or PaymentId. |
PaymentMethod | body | int | No | The Payment Method. |
PaymentAction | body | int | No | The Payment Action. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
NetDue | form | decimal | No | |
PaymentMethod | form | string | No | |
PaymentGatewayName | form | string | No | |
IsCardInfoValid | form | bool | No | |
IsRefund | form | bool | No | |
IsVoid | form | bool | No | |
ConvenienceFee | form | ConvenienceFee | No | |
PrePaymentAlerts | form | PrePaymentAlerts | No | |
GatewayAcceptedPaymentTypes | form | List<string> | No | |
CardDetails | form | CommonCardModel | No | |
Payment | form | Payment | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | Guid | No | |
PaymentGatewayId | form | Guid? | No | |
PaymentType | form | string | No | |
MinRange | form | decimal? | No | |
MaxRange | form | decimal? | No | |
FeeAmount | form | decimal? | No | |
ApplyAtPaymentOfBoot | form | bool? | No | |
ApplyAtPaymentOfNotice | form | bool? | No | |
ApplyAtPaymentOfTow | form | bool? | No | |
TotalPaymentAmount | form | decimal? | No | |
ApplyConvenienceFee | form | bool? | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
IsVehicleBeingTowed | form | bool | No | |
VehicleCancelledCheckOrChargebackAlerts | form | List<VehicleAlert> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | Guid | No | |
AlertTypeId | form | int | No | |
Note | form | string | No | |
AlertType | form | string | No | |
IsActive | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CardModel | form | CardModel | No | |
CommonECheckModel | form | ECheckModel | No | |
PaymentGatewayName | form | string | No | |
CardTokenNumber | form | string | No | |
HiddenCardNumber | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CardNumber | form | string | No | |
CardExpiryMonth | form | int | No | |
CardExpiryYear | form | int | No | |
CardSecurityCode | body | string | No | cvv number |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CheckNumber | body | string | No | Check Number, required for E-check Payments |
BankName | body | string | No | Bank Name, required for E-check Payments |
AccountNumber | body | string | No | Account Number, required for E-check Payments |
AccountType | body | int | No | Account Type, required for E-check Payments |
RoutingNumber | body | string | No | Routing Number, required for E-check Payments |
IdType | body | string | No | Identification Type, required for E-check Payments |
StateForIdType | body | string | No | State in which the Idnentification was issued, required for E-check Payments |
IdNumber | body | string | No | Idnentification Number, required for E-check Payments |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | Guid | No | |
TransactionNumber | form | int | No | |
OriginatingAttemptId | form | Guid? | No | |
BatchNumber | form | int | No | |
TotalAmount | form | decimal | No | |
PlacedDate | form | DateTime | No | |
IsSuccessful | form | bool | No | |
PaymentType | form | string | No | |
CreatedByUserId | form | Guid | No | |
FirstName | form | string | No | |
LastName | form | string | No | |
Phone | form | string | No | |
form | string | No | ||
Address1 | form | string | No | |
Address2 | form | string | No | |
City | form | string | No | |
StateCode | form | string | No | |
PostalCode | form | string | No | |
CountryCode | form | string | No | |
PaymentNote | form | string | No | |
IsDeleted | form | bool | No | |
CustomerId | form | Guid | No | |
CustomerReceiptNumber | form | string | No | |
CustomerReceiptDate | form | DateTime? | No | |
TotalAllocated | form | decimal | No | |
CreatedByUserName | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /payment/{collectionattemptid} HTTP/1.1 Host: api.paylock.com Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetPaymentResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BootView.WebApi.ServiceModel"> <CardDetails> <CardModel> <CardExpiryMonth>0</CardExpiryMonth> <CardExpiryYear>0</CardExpiryYear> <CardNumber>String</CardNumber> <CardSecurityCode>String</CardSecurityCode> </CardModel> <CardTokenNumber>String</CardTokenNumber> <CommonECheckModel> <AccountNumber>String</AccountNumber> <AccountType>0</AccountType> <BankName>String</BankName> <CheckNumber>String</CheckNumber> <IdNumber>String</IdNumber> <IdType>String</IdType> <RoutingNumber>String</RoutingNumber> <StateForIdType>String</StateForIdType> </CommonECheckModel> <HiddenCardNumber>String</HiddenCardNumber> <PaymentGatewayName>String</PaymentGatewayName> </CardDetails> <ConvenienceFee> <ApplyAtPaymentOfBoot>false</ApplyAtPaymentOfBoot> <ApplyAtPaymentOfNotice>false</ApplyAtPaymentOfNotice> <ApplyAtPaymentOfTow>false</ApplyAtPaymentOfTow> <ApplyConvenienceFee>false</ApplyConvenienceFee> <FeeAmount>0</FeeAmount> <Id>00000000-0000-0000-0000-000000000000</Id> <MaxRange>0</MaxRange> <MinRange>0</MinRange> <PaymentGatewayId>00000000-0000-0000-0000-000000000000</PaymentGatewayId> <PaymentType>String</PaymentType> <TotalPaymentAmount>0</TotalPaymentAmount> </ConvenienceFee> <GatewayAcceptedPaymentTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </GatewayAcceptedPaymentTypes> <IsCardInfoValid>false</IsCardInfoValid> <IsRefund>false</IsRefund> <IsVoid>false</IsVoid> <NetDue>0</NetDue> <Payment i:nil="true" /> <PaymentGatewayName>String</PaymentGatewayName> <PaymentMethod>String</PaymentMethod> <PrePaymentAlerts> <IsVehicleBeingTowed>false</IsVehicleBeingTowed> <VehicleCancelledCheckOrChargebackAlerts> <VehicleAlert> <AlertType>String</AlertType> <AlertTypeId>0</AlertTypeId> <Id>00000000-0000-0000-0000-000000000000</Id> <IsActive>false</IsActive> <Note>String</Note> </VehicleAlert> </VehicleCancelledCheckOrChargebackAlerts> </PrePaymentAlerts> </GetPaymentResult>