PayFacto API - v2.0 - GET /verifications/{verificationId}

PayFacto API - v2.0 - GET /verifications/{verificationId}

PayFacto API - v2.0 - GET /verifications/{verificationId}

Retrieves a previously created card verification by its unique identifier.

1

Prerequisites

πŸ”‘

Authentication β€” HTTP Basic Auth

All v2.0 endpoints use HTTP Basic Authentication. Set Authorization: Basic base64(username:password). Contact PayFacto for credentials.

πŸ“‹

Content-Type

All request bodies require Content-Type: application/json.

πŸ”„

Idempotency

Include Idempotency-Key header (max 64 chars) on POST requests. 200 = duplicate; 201 = newly created.

πŸ’΅

Amounts

All monetary amounts are positive integers in cents. $12.99 = 1299.

2

Request

GET    https://uat.ca.api.payfacto.cloud/payments/v1/verifications/{verificationId}

Path parameter

ParameterTypeDescription
verificationIdstring (UUID) Β· requiredUnique verification identifier.
3

Request β€” Code Example

cURL
curl -X GET "https://uat.ca.api.payfacto.cloud/payments/v1/verifications/a1822999-099d-4fb1-a354-77be553a5b22" \
-H "Authorization: Basic YOUR_BASE64_CREDENTIALS"
4

Response

Response fields (verification object)

FieldTypeDescription
idstring (UUID)Unique verification identifier.
billingDetailobjectBilling address used for AVS.
cardobjectCard details: brand, lastFour, expiry.
cardValidationobjectValidation results: addressLine1Result, postalCodeResult, avsResultCode, cvvResult.
metadataobjectKey-value pairs.
resultobjectAuth result including authCode.
statusstringSUCCEEDED or FAILED.
terminalobjectTerminal details if applicable.
transactionTimestring (ISO 8601)UTC timestamp.
errorobjectError object on failure.
5

Response β€” Code Examples

JSON β€” 200 Success
{
"id": "a1822999-099d-4fb1-a354-77be553a5b22",
"card": { "brand": "VISA", "lastFour": "1111", "expiry": { "month": "05", "year": "2039" } },
"cardValidation": {
"addressLine1Result": "PASS",
"postalCodeResult": "PASS",
"avsResultCode": "M",
"cvvResult": "PASS"
},
"result": { "authCode": "012345" },
"status": "SUCCEEDED",
"transactionTime": "2024-05-15T14:30:01Z"
}
JSON β€” 404 Not Found
{
"error": { "code": "NOT_FOUND", "type": "INVALID_REQUEST_ERROR", "details": ["Verification not found"], "message": "Not Found" }
}
6

Error / HTTP Status Codes

HTTP StatusMeaningRecommended Action
200OK β€” Previously created (same idempotency key)Check status field in response body
201Created β€” New resource createdStore the id for future operations
400Bad Request β€” Invalid payloadCheck error.details and error.invalidFields
402Payment Required β€” Issuer declinedCheck result.declineCode β€” do not retry automatically
404Not FoundVerify the ID in the request path
422Unprocessable β€” Invalid stateCheck error.message
500Internal Server ErrorRetry with backoff; contact PayFacto Support if persistent