> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.mercoa.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.mercoa.com/_mcp/server.

# Payment Gateway Process Job Completed

POST 

A payment gateway processing job has completed processing

Reference: https://docs.mercoa.com/virtual-card-agent/webhooks/payment-gateway-process-job-completed

## Request

### Payload

- `eventType` (string, required) — The type of the event.
- `jobId` (string, required) — The ID of the payment gateway process 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 processing job
    - `updatedAt` (datetime, required) — The timestamp when the job was last updated
  - `jobStatus`: `success`
    - `attempts` (list of object, required) — List of payment gateway attempts for this job
      - `id` (string, required) — The unique identifier for the payment gateway attempt
      - `status` (enum, required) — The status of the attempt
        - Allowed values: `PENDING`, `COMPLETED`, `FAILED`
      - `createdAt` (datetime, required) — The timestamp when the attempt was created
      - `amount` (double, optional) — The amount processed in this attempt
      - `receiptUrl` (string, optional) — The URL of the receipt for this attempt
    - `createdAt` (datetime, required) — The timestamp when the job was created
    - `jobId` (string, required) — The job ID of the payment gateway processing job
    - `updatedAt` (datetime, required) — The timestamp when the job was last updated
    - `gatewayAmount` (double, optional) — The amount displayed on the payment gateway (may include fees)
    - `invoiceAmount` (double, optional) — The invoice amount detected from the payment gateway
    - `receiptUrl` (string, optional) — The URL of the receipt that was downloaded from the payment gateway
    - `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 detected from the payment gateway
  - `jobStatus`: `failed`
    - `createdAt` (datetime, required) — The timestamp when the job was created
    - `errorType` (enum, required) — The error that occurred during the payment gateway processing 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 processing job
    - `updatedAt` (datetime, required) — The timestamp when the job was last updated
    - `errorMessage` (string, optional) — The error message that occurred during the payment gateway processing job