> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.mercoa.com/embedded-ap-ar/api-reference/webhooks/payment-gateway-validation-job-completed/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mercoa.com/_mcp/server. # Payment Gateway Validation Job Completed POST A payment gateway validation job has completed processing Reference: https://docs.mercoa.com/embedded-ap-ar/api-reference/webhooks/payment-gateway-validation-job-completed ## Request ### Payload - `eventType` (string, required) — The type of the event. - `jobId` (string, required) — The ID of the payment gateway validation job that completed. - `data` (object, required) - `jobStatus`: `pending` - `createdAt` (datetime, required) — The timestamp when the job was created - `jobId` (string, required) — The job ID of the payment gateway validation job - `updatedAt` (datetime, required) — The timestamp when the job was last updated - `jobStatus`: `success` - `createdAt` (datetime, required) — The timestamp when the job was created - `jobId` (string, required) — The job ID of the payment gateway validation job - `updatedAt` (datetime, required) — The timestamp when the job was last updated - `card` (object, optional) — Data on the card payments that were extracted from the gateway - `eligibility` (enum, required) — Whether the payment gateway accepts card payments - Allowed values: `ACCEPTED`, `NOT_ACCEPTED`, `UNKNOWN` - `fee` (object, required) — The fee that was extracted from the gateway - `type`: `percentage` - `value` (double, required) — The fee percentage in bps. For example, if the fee is 2.5% and the payment amount is $100, set this to 250. - `type`: `flat` - `value` (double, required) — The fee amount in major units of the invoice currency. For example, if the fee is a flat $2.50, set this to 2.5. - `type`: `none` - `gatewayAmount` (double, optional) — The amount displayed on the payment gateway (may include fees) - `invoiceAmount` (double, optional) — The invoice amount detected from the invoice - `paymentGatewayUrl` (string, optional) — The payment gateway URL that was found in the document - `requiredData` (object, optional) — Information about what data is required to proceed with payment - `needsAccountNumber` (boolean, optional) — Whether the payment gateway requires an account number to proceed - `needsPostalCode` (boolean, optional) — Whether the payment gateway requires a postal code to proceed - `needsEmail` (boolean, optional) — Whether the payment gateway requires an email address to proceed - `needsAccountHolderFirstName` (boolean, optional) — Whether the payment gateway requires the account holder's first name to proceed - `needsAccountHolderLastName` (boolean, optional) — Whether the payment gateway requires the account holder's last name to proceed - `needsFullServiceAddress` (boolean, optional) — Whether the payment gateway requires a full service address to proceed - `needsPhoneNumber` (boolean, optional) — Whether the payment gateway requires a phone number to proceed - `vendorName` (string, optional) — The vendor name - `jobStatus`: `failed` - `createdAt` (datetime, required) — The timestamp when the job was created - `errorType` (enum, required) — The error that occurred during the payment gateway validation job - Allowed values: `NO_VALID_PAYMENT_GATEWAY_FOUND`, `PAYMENT_GATEWAY_UNSUPPORTED`, `CARD_DETAILS_INVALID`, `CARD_DECLINED`, `INVOICE_AMOUNT_MISMATCH` - `jobId` (string, required) — The job ID of the payment gateway validation job - `updatedAt` (datetime, required) — The timestamp when the job was last updated - `errorMessage` (string, optional) — The error message that occurred during the payment gateway validation job