Payment Reference API
How to fetch, and validate a payment reference for one of our products.
Overview
Business Logic for Reference Validation
Reference Processing Steps
Product Validation: The sku is used to find the associated product.
Regex Validation: The reference is validated against the regex pattern defined for the product.
Reference Lookup: Checks if the reference has already been validated.
Create or Return Reference: If not previously validated, creates a new validated reference.
Error Handling
Product Not Found: Raised if the sku does not correspond to any existing product.
Invalid Reference: Raised if the reference does not pass the regex validation.
Objectives
API Specification
Last updated