API End-point Overview
End-point definitions for the Account Updater API.
Environment URLs
PayConex provides two environments for integration and production usage:
- Certification (Testing) Environment:
https://api-cert.payconex.net
Use this environment for development and testing.
- Production (Live) Environment:
https://api.payconex.net
Use this environment for live requests.
All requests must be made over HTTPS for security. Append the endpoints described below to the appropriate base URL depending on whether you are testing or running in production.
Webhook Services
The PayConex webhook service enables you to receive real-time notifications whenever tokens or cards are updated by card issuers. By setting up a webhook, you can process updates as they occur.
Registering a Webhook
Endpoint:
/api/v4/accounts/{accountId}/webhooks
Methods:
HTTP Method | Description |
---|---|
POST | Create a new webhook. |
Once registered, your webhook will receive notification POST requests when updates occur.
Managing a Webhook
Endpoint:
/api/v4/accounts/{accountId}/account-updater/webhooks/{webhookID}
Methods:
HTTP Method | Description |
---|---|
GET | Retrieve the details of an existing webhook. |
PATCH | Modify an existing webhook’s configuration. |
DELETE | Remove an existing webhook. |
For more information and examples, please see our guide on Setting up and Managing Webhooks.
Card Subscription Services
A subscription, in the context of the PayConex Account Updater, defines a schedule and a set of tokens/cards that PayConex will keep updated. This is unrelated to recurring payment schedules; it specifically handles ongoing card information maintenance.
Creating a Subscription
Endpoints:
- PayConex tokens:
/api/v4/accounts/{accountId}/account-updater/payconex/subscribe
- PAN (Primary Account Number) data:
/api/v4/accounts/{accountId}/account-updater/pan/subscribe
- ShieldConex tokens:
/api/v4/accounts/{accountId}/account-updater/shieldconex/subscribe
Methods:
HTTP Method | Description |
---|---|
POST | Subscribe one or more tokens/cards for automatic updates on the specified schedule. |
When you create a subscription, you provide the set of tokens/cards and a periodId
schedule. PayConex will periodically update these tokens/cards based on issuer data.
For detailed instructions and examples, see Creating Subscriptions.
Managing a Subscription
Endpoint:
/api/v4/accounts/{account}/account-updater/subscriptions/{subscriptionId}
Methods:
HTTP Method | Description |
---|---|
GET | Retrieve the details of a previously configured Account Updater subscription (including tokens/cards). |
PATCH | Update the subscription details (e.g., enable/disable, change schedule). |
DELETE | Remove the subscription entirely, stopping all future updates for its tokens/cards. |
See Managing Subscriptions for more information and examples.
Removing Individual Token/Card Records From a Subscription
Endpoint:
/api/v4/accounts/{account}/account-updater/subscriptions/{subscriptionId}/records/{recordId}
Methods:
HTTP Method | Description |
---|---|
DELETE | Remove a single token/card record from an existing subscription. |
Adding Individual Token/Card Records to an Existing Subscription
You can add additional tokens or cards to an existing subscription using the appropriate endpoint depending on the token type:
Endpoints:
- Add PayConex tokens:
/api/v4/accounts/{account}/account-updater/subscriptions/{subscriptionId}/payconex
- Add ShieldConex tokens:
/api/v4/accounts/{account}/account-updater/subscriptions/{subscriptionId}/shieldconex
- Add PAN data:
/api/v4/accounts/{account}/account-updater/subscriptions/{subscriptionId}/pan
Methods:
HTTP Method | Description |
---|---|
POST | Add new tokens/cards to an existing subscription. |
For more details and examples, see Managing Subscriptions.
Retrieving Account Updater Results
Getting Subscription Details (Schedules)
Endpoint:
/api/v4/accounts/{account}/account-updater/schedules/{scheduleId}/results
Methods:
HTTP Method | Description |
---|---|
GET | Fetch the details and latest updates for a subscription identified by the given scheduleId . |
Use this endpoint to review the results of the subscription runs that have occurred so far.
Getting Updates Using updateId
updateId
When you have a webhook configured, PayConex sends an updateId
in each notification. You can retrieve the associated updates using that updateId
.
Endpoint:
/api/v4/accounts/{account}/account-updater/updates/{updateId}
Methods:
HTTP Method | Description |
---|---|
GET | Retrieve results of the updates associated with a given updateId . |
For more detailed information, see Retrieving Card Updates.
Updated 3 days ago
For detailed code examples please see the next article for request and response examples.