Check Payment Link Status API
Copy page
Copy page as Markdown for LLMs
Open in Claude
Ask questions about this page
The Check Payment Link Status API enables merchants to retrieve the current status and usage statistics of existing payment links to monitor payment progress and customer interactions. This RESTful API provides comprehensive status information for effective payment link management.
API Endpoints
https://sbpaymentservices.PayFort.com/FortAPI/paymentApi
Request Format
- Method:
POST - Content-Type:
application/json - Submission: Server-to-server HTTPS POST
Check Payment Link Status
Retrieve comprehensive status information including payment attempts, current state, and expiration details.
Request Parameters
| Parameter |
|---|
query_command Alpha Max: 20 Required Must be set to CHECK_PAYMENT_LINK_STATUS for status inquiry requests. Special characters: _Example. CHECK_PAYMENT_LINK_STATUS |
access_code Alphanumeric Max: 20 Required Merchant access code obtained from Amazon Payment Services dashboard under Integration Settings. Example. zx0IPmPy5jp1vAz8Kpg7 |
merchant_identifier Alphanumeric Max: 20 Conditional Unique merchant identifier. Required if payment_link_id is not provided. Example. CycHZxVj |
merchant_reference Alphanumeric Max: 40 Conditional Original order reference used during payment link creation. Required if payment_link_id is not provided. Special characters: - _ .Example. INV-2024-001 |
payment_link_id Alphanumeric Max: 20 Conditional Unique payment link identifier. Required if merchant identifiers are not provided. Special characters: - _ .Example. 148708392700020346 |
signature Alphanumeric Max: 200 Required SHA-256 hash signature for request authentication and integrity validation. Example. a1b2c3d4e5f6789012345678901234567890abcd |
Check signature calculation section to learn how to calculate the signature.
Response Parameters
| Parameter |
|---|
query_command Alpha Max: 20 Command. Possible/expected values: CHECK_PAYMENT_LINK_STATUS Example. CHECK_PAYMENT_LINK_STATUS |
merchant_identifier Alphanumeric Max: 20 The ID of the Merchant. Example. CycHZxVj |
merchant_reference Alphanumeric Max: 40 The Merchant's unique order number. Example. XYZ2939-yu898 |
amount Numeric Max: 10 The transaction's amount. Example. 125000 |
currency Alpha Max: 3 The currency of the transaction's amount in ISO code 3. Example. AED |
language Alpha Max: 2 The language of the response messages. Possible/expected values: en / ar Example. en |
request_expiry_date Alphanumeric Max: 25 The payment link expiry date. Example. 2024-12-31T23:59:59+04:00 |
signature Alphanumeric Max: 200 A string hashed using the Secure Hash Algorithm. Example. a1b2c3d4e5f6789012345678901234567890abcd |
payment_link_id Alphanumeric Max: 20 The ID of the payment link. Example. 148708392700020346 |
payment_link_status Alpha Max: 20 Current status of the payment link. Possible/expected values: Open, Closed, Paid, Expired Example. Open |
user_attempts_count Numeric Number of times customer accessed the payment link. Example. 3 |
response_message Alphanumeric Max: 150 Message description of the response code. It returns according to the request language. Example. Success |
status Numeric Max: 2 A two-digit numeric value that indicates the status of the transaction. Example. 20 |
Response Codes
For a complete list of response codes and their descriptions, please refer to our Error Codes Documentation.
{
"query_command": "CHECK_PAYMENT_LINK_STATUS",
"access_code": "zx0IPmPy5jp1vAz8Kpg7",
"merchant_identifier": "CycHZxVj",
"merchant_reference": "INV-2024-001",
"signature": "7cad05f0212ed933c9a5d5dffa31661acf2c827a"
}
{
"query_command": "CHECK_PAYMENT_LINK_STATUS",
"merchant_identifier": "CycHZxVj",
"merchant_reference": "INV-2024-001",
"amount": "125000",
"currency": "AED",
"language": "en",
"request_expiry_date": "2024-12-31T23:59:59+04:00",
"signature": "7cad05f0212ed933c9a5d5dffa31661acf2c827a",
"payment_link_id": "148708392700020346",
"payment_link_status": "Open",
"user_attempts_count": 3,
"customer_email": "customer@example.com",
"response_message": "Success",
"response_code": "20000",
"status": "20"
}
Testing The Integration
Use the sandbox environment for development and testing:
- API URL:
https://sbpaymentservices.payfort.com/FortAPI/paymentApi - Test Cards: Use our comprehensive Testing Cards
Go-Live Process
When ready to move to production, follow our Go-Live checklist