Method PreapprovalEnquiry
PreapprovalEnquiry(AfterPayPreapprovalRequest, AfterPayCallContext)
Requests information about a pre-approval code generated by a customer.
Declaration
public Task<AfterPayPreapprovalResponse> PreapprovalEnquiry(AfterPayPreapprovalRequest request, AfterPayCallContext requestContext)
Parameters
| Type | Name | Description |
|---|---|---|
| AfterPayPreapprovalRequest | request | A AfterPayPreapprovalRequest containing details of the pre-approval code to enquire about. |
| AfterPayCallContext | requestContext | A AfterPayCallContext instance containing additional details required to make the request. |
Returns
| Type | Description |
|---|---|
| Task<AfterPayPreapprovalResponse> | A AfterPayPreapprovalResponse instance containing information about the pre-approval code specified. |
Implements
Exceptions
| Type | Condition |
|---|---|
| AfterPayApiException | Thrown if the request is rejected by the AfterPay API. |
| System.ArgumentNullException | Thrown if |
| System.UnauthorizedAccessException | Thrown if the system cannot obtain an authorisation token from AfterPay before making the request. |