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

  1. Product Validation: The sku is used to find the associated product.

  2. Regex Validation: The reference is validated against the regex pattern defined for the product.

  3. Reference Lookup: Checks if the reference has already been validated.

  4. 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