CPS Developer Portal ## Sections • [WEX Corporate Payment APIs](https://developers.wexpayments.com/cps-developer-portal/wex-corporate-payment-apis.md): WEX provides APIs and infrastructure for issuing cards, automating business payments, controlling spend and tracking transactions in real time. Whether you're building procurement workflows, supplier payment automation, expense management programs or embedded payment programs, we give you the tools to manage payments at scale. ## What You Can Build with WEX * **Card Issuing & Management.** Create, issue, and control single-use virtual cards, multi-use virtual cards and physical cards through a single, unified API. Enforce exact spending limits, merchant restrictions and velocity controls directly from your application. * **Payments & Transaction Processing.** Authorize, process, and track payment activity at scale. Generate payment credentials on demand and automate high-volume supplier settlements without manual intervention. * **Real-Time Events & Notifications.** Move away from delayed batch files. Use our Event-Driven webhooks to receive near real-time updates on authorizations, clearing, and card lifecycle events to power your internal reporting and approval workflows. * **Billing & Funding.** Track funding and automate reconciliation in real time. Feed clean, structured transaction data directly into your corporate ERPs. ## Common Use Cases * Supplier and accounts payable automation * Procurement and purchasing platforms * Corporate expense management * Fleet and mobility payments * Embedded finance applications * Marketplace and platform payments * Subscription and recurring spend management • [Developer Platform Overview](https://developers.wexpayments.com/cps-developer-portal/developer-platform-overview.md): The WEX Developer portal provides a unified set of APIs, webhooks and developer tools that enable businesses to integrate payment capabilities directly into their applications and workflows. Whether you're building a new payment integration or managing an existing payment program, this portal provides everything you need to design, test, deploy and operate your solution. ## Platform Architecture WEX APIs follow a resource-based architecture designed for secure integration that can scale. These components provide a consistent framework for building and operating payment-enabled applications and include: * REST APIs for managing cards, payments, accounts, and program configuration * Event-driven webhooks for real-time updates * Secure authentication and authorization services * Sandbox and production environments * Reporting and transaction data services ## Developer Resources Everything needed to build and maintain your integration is available within the Developer Portal. ### API References Explore available endpoints, request schemas, response models and authentication requirements. Use the API Reference to: * Understand available resources * Review request and response formats * Test API calls * Validate integration behavior ### Webhook References Build event-driven workflows using webhook notifications. Documentation includes: * Event definitions * Payload schemas * Delivery behavior * Retry policies * Security validation requirements ### Guides & Tutorials Follow step-by-step implementation guides for common integration patterns and business workflows. These include: * Authentication * Card creation and management * Payment workflows * Event handling * Error management * Production readiness ## Getting Started 1. **Authenticate.** Generate your API credentials instantly to establish secure, industry-standard access (OAuth 2.0, mTLS). 2. **Build with Use-Case Recipes.** Integrate using our comprehensive guides, multi-language SDKs, and copy-and-paste code snippets for your specific business workflows. 3. **Test in the Sandbox.** Validate your integration in a high-fidelity, secure staging environment. Simulate complex multi-currency and multi-merchant flows before writing production code. 4. **Launch & Monitor.** Deploy with confidence and monitor your real-time activity through our unified service health dashboards and webhooks. • [Benefits](https://developers.wexpayments.com/cps-developer-portal/benefits.md): ## Benefits to Building with WEX ### 1. Developer Experience & Integration Velocity #### Rapid Time-to-Market - **Unified API Design:** Get access to card issuance, payment processing, real-time event notifications, and billing through a set of cohesive API contracts. Developers don't have to learn multiple disparate systems or manage fragmented vendor integrations. - **Comprehensive Documentation:** Reduce onboarding friction with robust OpenAPI/Swagger specifications, clear copy-pasteable code snippets, and structured onboarding guides. - **Sandbox Environment:** Test complex multi-currency, multi-merchant payment flows in an isolated, safe, and fully-featured staging environment before moving to production. #### Event-Driven Architecture - **Real-Time Webhooks:** Eliminate inefficient polling mechanisms. Our high-throughput webhook system pushes immediate, actionable event notifications (authorizations, posted transactions and statements) straight to your listeners. - **Context-Rich Payloads:** Every API response and webhook payload includes granular metadata, reducing the need for secondary lookup requests and simplifying internal database syncing. ### 2. Security, Compliance & Risk Mitigation #### Enterprise-Grade Security - **Reduced PCI Scope:** By leveraging WEX's secure tokenization, your platform can issue and manage cards without directly handling or storing sensitive PAN (Primary Account Number) data, drastically lowering your regulatory and compliance burden. - **Modern Authentication:** Secure all endpoint communications using industry-standard protocols, including OAuth 2.0, mutual TLS (mTLS), and cryptographic request signing. #### Programmatic Risk Controls - **Dynamic Authorization Controls:** Programmatically inject real-time rules onto cards at the moment of creation. Restrict usage by exact transaction amounts, expiration windows, specific Merchant Category Codes (MCCs), and Velocity Controls to eliminate unauthorized spend and fraud. ### 3. Operational Efficiency & Financial Control #### Automated Reconciliation & Data Integrity - **On-Network Matching:** Tie every transaction, authorization, and clearing event directly back to the unique Virtual Credit Card (VCC) ID or parent account structure. - **Seamless ERP Integration:** Streamline accounting overhead by feeding clean, structured transaction data directly into corporate ERPs (e.g., NetSuite, SAP) or custom Treasury Management Systems. #### Scalable Account & Billing Architecture - **Flexible Hierarchies:** Model the platform to reflect your business structure. Support complex, multi-tiered organization hierarchies—spanning parent companies, regional subsidiaries, cost centers, down to individual users—all managed via API. - **Dynamic Funding Solutions:** Optimize working capital by utilizing WEX's real-time transaction visibility to fund accounts on a Just-In-Time (JIT) basis, keeping capital working elsewhere until the exact moment a payment is authorized. ### 4. Global Scale & Network Reliability #### Global Reach with Local Efficiency - **Multi-Currency Capability:** Issue cards and settle payments globally while avoiding cross-border fees through WEX's deep international network and optimized FX management. - **High-Availability Infrastructure:** Built on geo-redundant, cloud-native architecture designed to handle massive enterprise scale and peak transaction volumes with ultra-low latency and maximum uptime. • [Quick Start](https://developers.wexpayments.com/cps-developer-portal/quick-start.md): Get started with the WEX Corporate Payments platform by understanding your Organization hierarchy. Once provisioned, you are ready to start utilizing… • [Card Issuing and Management](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management.md): Get started with programmatic card issuance—create virtual and physical cards, apply spend controls, and manage the full card lifecycle through the… • [Payments and Transaction Processing](https://developers.wexpayments.com/cps-developer-portal/payments-and-transaction-processing.md): WEX Corporate Payments offers two paths for single-use virtual card payments: the AP Service (Merchant Logs) and Purchase Logs . Both use REST… • [Real Time Notifications](https://developers.wexpayments.com/cps-developer-portal/real-time-notifications.md): Receive up-to-the-minute authorization and posted transaction activity through WEX webhooks and the Real-Time Events API. WEX real-time events… • [Billing and Funding](https://developers.wexpayments.com/cps-developer-portal/billing-and-funding.md): The Billing & Funding APIs and webhooks provide instant information on billing statements and deposit notifications for flexible funding programs.… • [Authorization](https://developers.wexpayments.com/cps-developer-portal/authorization.md): A webhook providing the final decisions for all card authorization activity. The payload contains transaction metadata and outcome details for… • [Posted Transaction](https://developers.wexpayments.com/cps-developer-portal/posted-transaction.md): A webhook providing the final settlement details for transactions that have been cleared and posted to the account. The payload contains reconciled… • [Statement](https://developers.wexpayments.com/cps-developer-portal/statement.md): Sent when a new statement becomes available at the end of a customer’s billing cycle. Your endpoint must accept POST requests with an… • [Deposit](https://developers.wexpayments.com/cps-developer-portal/deposit.md): A webhook that notifies your system when a inbound deposit is received by WEX. It is currently only available for customers whose companies are in a… • [Card Issuing and Management](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management.md): Manage payment cards for your program. Order new cards, view a card’s status and settings, update card details such as limits and cardholder… • [Card Order](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/card-order.md): Orders a new payment card for the authenticated partner. Pass an X-Request-ID header to make the call idempotent: replaying the same identifier… • [Update Card](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/update-card.md): Partially updates a card. Only the fields listed in the body are evaluated; everything else is left untouched. Required fields: lastfour : must be… • [Retrieve Card](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/retrieve-card.md): Returns the full card record, including authorization controls, shipping details and cardholder details when available. Returns 425 (Too Early) while… • [Sensitive Data](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/sensitive-data.md): Returns the full PAN, CVC2, expiration date and card network of an already generated card. Returns 400 when the card has not yet been generated and… • [PIN Management](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/pin-management.md): Changes the PIN of the specified physical corporate card to a new value. This feature is restricted to the cardholder; authentication is required to… • [Shipping Tracking](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/shipping-tracking.md): Retrieves the shipment tracking information for a physical corporate card ordered with expedited shipping. • [Query MCC Groups](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/query-mcc-groups.md): Queries the merchant category code groups that are assignable for a given company or card. • [Secure Card Display](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/secure-card-display.md): Returns an HTML page that displays full payment card details (PAN, CVV, and expiration date) within a secure, WEX-hosted iFrame. This request is… • [Embedded Card](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/embedded-card.md): Returns the Secure Card Display URL for card payment information based on the specified Card Account ID. Requires OAuth 2.0 Bearer token… • [Embedded Merchant Log](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/embedded-merchant-log.md): Returns the Secure Card Display URL for card payment information based on the specified Merchant Log. Requires OAuth 2.0 Bearer token authentication.… • [Embedded Purchase Log](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/embedded-purchase-log.md): Returns the Secure Card Display URL for card payment information based on the specified Purchase Log. Requires OAuth 2.0 Bearer token authentication.… • [Retrieve Push Provisioning Details](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/retrieve-push-provisioning-details.md): Retrieves mobile wallet push-provisioning details for an existing card account. The card account must belong to the authenticated customer and be… • [Mobile Wallet Provisioning](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/mobile-wallet-provisioning.md): Triggers an SMS mobile wallet push-provisioning command for an existing card. This initiates the process of adding the card to the cardholder’s… • [Apple Push Provisioning](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/apple-push-provisioning.md): Creates encrypted Apple Wallet push-provisioning data for the specified card account. Requires OAuth 2.0 Bearer token authentication. The card… • [Google Push Provisioning](https://developers.wexpayments.com/cps-developer-portal/card-issuing-and-management/google-push-provisioning.md): Creates encrypted Google Wallet push-provisioning data for the specified card account. Requires OAuth 2.0 Bearer token authentication. The card… • [AP Service Merchants](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants.md): Supplier Merchant Registry and Payment Preferences Manage supplier merchant profiles and configure default payment methods used when creating… • [Create a Merchant](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/create-a-merchant.md): Creates a new supplier merchant profile. On success you receive the assigned resource ID in the response body and Location header. Required on… • [Update a Merchant](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/update-a-merchant.md): Partially updates a supplier merchant profile. Same writable fields as PUT. • [Replace a Merchant](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/replace-a-merchant.md): Replaces writable fields on an existing supplier merchant profile. Organization identifiers cannot be changed after creation. • [Retrieve a Merchant](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/retrieve-a-merchant.md): Returns the supplier merchant profile including contact details, address, status, and organization identifiers. • [Create Payment Method](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/create-payment-method.md): Adds a payment method to the merchant profile. Card-based types require cardpayment ; ACH and wire types require achorwirepayment . When is_default… • [List Payment Methods](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/list-payment-methods.md): Lists all payment methods configured for the merchant, including inactive (soft-deleted) methods. • [Update a Payment Method](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/update-a-payment-method.md): Partially updates a merchant payment method. Same writable fields as PUT. • [Replace a Payment Method](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/replace-a-payment-method.md): Replaces writable fields on a merchant payment method. Cannot update methods where is_active is false. • [Retrieve a Payment Method](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/retrieve-a-payment-method.md): Returns a single merchant payment method including card or bank settings and default/active flags. • [Delete a Payment Method](https://developers.wexpayments.com/cps-developer-portal/ap-service-merchants/delete-a-payment-method.md): Soft-deletes a payment method by setting isactive and isdefault to false. The payment method record remains visible in list responses with inactive… • [AP Service Payments](https://developers.wexpayments.com/cps-developer-portal/ap-service-payments.md): Merchant Logs - Payable Payments and Supplier Transactions Manage and orchestrate supplier payments through a complete lifecycle. Create payments… • [Create a Merchant Payment](https://developers.wexpayments.com/cps-developer-portal/ap-service-payments/create-a-merchant-payment.md): Creates a supplier payment and, when the selected method uses a virtual card, provisions card credentials subject to your account permissions. On… • [Update a Merchant Payment](https://developers.wexpayments.com/cps-developer-portal/ap-service-payments/update-a-merchant-payment.md): Partially updates a merchant payment. Same writable fields, merge semantics, and immutability rules as PUT. • [Replace a Merchant Payment](https://developers.wexpayments.com/cps-developer-portal/ap-service-payments/replace-a-merchant-payment.md): Replaces writable fields on an existing merchant payment. Send only fields you want to change; omitted fields retain their current values. Immutable… • [Retrieve a Merchant Payment](https://developers.wexpayments.com/cps-developer-portal/ap-service-payments/retrieve-a-merchant-payment.md): Returns the current state of a merchant payment including status, invoices, spending controls, and remittance settings. Virtual card numbers are… • [List Change History](https://developers.wexpayments.com/cps-developer-portal/ap-service-payments/list-change-history.md): Returns historical snapshots of a Merchant Log in reverse chronological order, including status, amounts, and user-defined field values at each… • [List Payment Card Authorizations](https://developers.wexpayments.com/cps-developer-portal/ap-service-payments/list-payment-card-authorizations.md): Returns authorization messages for a card-based Merchant Log in reverse chronological order. Returns an empty authorizations array when none exist. • [List Payment Posted Card Transactions](https://developers.wexpayments.com/cps-developer-portal/ap-service-payments/list-payment-posted-card-transactions.md): Returns posted transactions for a Merchant Log in reverse chronological order. Only available when the payment method uses a card. Returns an empty… • [Resend Payment Remittance Notification](https://developers.wexpayments.com/cps-developer-portal/ap-service-payments/resend-payment-remittance-notification.md): Queues another remittance delivery using the current remitdeliverymethod and remitdeliveryaddress . Use when the prior delivery failed or the payee… • [Purchase Log](https://developers.wexpayments.com/cps-developer-portal/purchase-log.md): Virtual Card Authorizations and Spending Control Issue single-use or pooled virtual cards for controlled purchasing. Set flexible spending controls,… • [Create Purchase Log](https://developers.wexpayments.com/cps-developer-portal/purchase-log/create-purchase-log.md): Issues a single-use or pooled virtual card for a controlled purchase. On success the response includes the assigned id , card details when permitted,… • [Update Purchase Log](https://developers.wexpayments.com/cps-developer-portal/purchase-log/update-purchase-log.md): Partially updates a purchase. Same writable fields and immutability rules as PUT. • [Replace Purchase Log](https://developers.wexpayments.com/cps-developer-portal/purchase-log/replace-purchase-log.md): Replaces writable fields on an existing purchase. Immutable after creation: currency , localcurrency , and poolname . Status may be changed to open ,… • [Retrieve Purchase Log](https://developers.wexpayments.com/cps-developer-portal/purchase-log/retrieve-purchase-log.md): Returns the current purchase including card controls, remittance settings, cardholder details, and payment status. Virtual card numbers are omitted… • [List Purchase Card Authorizations](https://developers.wexpayments.com/cps-developer-portal/purchase-log/list-purchase-card-authorizations.md): Returns authorization messages for the purchase virtual card in reverse chronological order, including approvals and declines. • [List Purchase Posted Card Transactions](https://developers.wexpayments.com/cps-developer-portal/purchase-log/list-purchase-posted-card-transactions.md): Returns settled transactions posted against the purchase virtual card in reverse chronological order. Returns an empty transactions array when no… • [Resend Purchase Remittance Notification](https://developers.wexpayments.com/cps-developer-portal/purchase-log/resend-purchase-remittance-notification.md): Queues another remittance delivery and/or digital-wallet push using the current delivery settings. Does not return virtual card credentials. • [Billing and Funding](https://developers.wexpayments.com/cps-developer-portal/billing-and-funding.md): Retrieve funding positions and unpaid statement balances, create payments against statement balances, and retrieve payment status. Supports Flexible… • [Create a Payment](https://developers.wexpayments.com/cps-developer-portal/billing-and-funding/create-a-payment.md): Submits a payment against a company’s outstanding statement balance, drawing from that organization’s Flexible Funding balance. Call Get unpaid… • [Payment Information](https://developers.wexpayments.com/cps-developer-portal/billing-and-funding/payment-information.md): Returns details for a payment you previously submitted. Use the referencenumber returned by Create a payment to confirm the recorded amount,… • [Funding Position](https://developers.wexpayments.com/cps-developer-portal/billing-and-funding/funding-position.md): Returns balance information for a funding group, including the spendable Flexible Funding balance available for payments. Use this before creating a… • [Funding Position V2](https://developers.wexpayments.com/cps-developer-portal/billing-and-funding/funding-position-v2.md): Returns balance information for a funding group, including the spendable Flexible Funding balance available for payments. Use this before creating a… • [Get Statement By ID](https://developers.wexpayments.com/cps-developer-portal/billing-and-funding/get-statement-by-id.md): Returns detailed information about a specific statement by its ID. Use the company_id , currency and amount returned to create a payment request. • [Get Statement By Company Number](https://developers.wexpayments.com/cps-developer-portal/billing-and-funding/get-statement-by-company-number.md): Retrieves all statements for a specific company by its company number. Supports filtering by date range, status, and pagination. Use the company_id ,… • [Unpaid Balances](https://developers.wexpayments.com/cps-developer-portal/billing-and-funding/unpaid-balances.md): Returns the total outstanding statement amount owed by a company. Use this before Create a payment to determine how much is owed. A positive amount… • [API Authentication](https://developers.wexpayments.com/cps-developer-portal/api-authentication.md): The WEX APIs requires secure OAuth 2.0 authentication. This is implemented using Okta, which centralizes and manages application access. Account… • [OAuth 2.0 Token](https://developers.wexpayments.com/cps-developer-portal/api-authentication/oauth-2-0-token.md): Step 1: Request a Bearer Token from Okta Concatenate the clientid and clientsecret together, separated by a colon, and then convert to base64…