Skip to content

CC - API | PPR Search #28703

Closed
Closed

Description

@LizGovier

PPR API Search CC Payment Changes

  • Enable PPR search credit card payments, add set up for payment completion.
  • Account search summary conditionally add payment pending and invoice id to retry payment (payment incomplete).
  • Update pay api notification handling to include PPR search cc payments COMPLETED status.
  • Add GET endpoint to return search selection summary info when payment completes. New endpoint GET /ppr/api/v1/searches/{searchId}

Activity

  1. self-assigned this
    on Jun 2, 2025
  2. doug-lovett commented on Jun 3, 2025

    @doug-lovett
    Collaborator

    Search history incomplete cc payment example:

    [
      {
        "exactResultsSize": 0,
        "inProgress": true,
        "invoiceId": "50388",
        "paymentPending": true,
        "reportAvailable": false,
        "returnedResultsSize": 1,
        "searchDateTime": "2025-06-03T16:10:46+00:00",
        "searchId": "15603",
        "searchQuery": {
          "clientReferenceId": "UT-CC-RG-001",
          "criteria": {"value": "100025R"},
          "type": "REGISTRATION_NUMBER"
        },
        "selectedResultsSize": 0,
        "totalResultsSize": 1,
        "userId": "bcsc/gurstakaztf7rta7dhfs3g7urjju4eyd",
        "username": "BCREGTEST HUBERT FIFTYSEVEN"
      },
    ...
    ]
    
  3. doug-lovett commented on Jun 3, 2025

    @doug-lovett
    Collaborator

    New GET search query endpoint GET /ppr/api/v1/searches/{searchId} response examples
    Valid:

    {
      "maxResultsSize": 5000,
      "payment": {
        "invoiceId": "50388",
        "receipt": "/api/v1/payment-requests/50388/receipts"
      },
      "results": [
        {
          "baseRegistrationNumber": "100448Q",
          "createDateTime": "2024-10-16T18:43:37+00:00",
          "matchType": "EXACT",
          "registrationNumber": "100025R",
          "registrationType": "SA"
        }
      ],
      "returnedResultsSize": 1,
      "searchDateTime": "2025-06-03T16:10:46+00:00",
      "searchId": "15603",
      "searchQuery": {
        "clientReferenceId": "UT-CC-RG-001",
        "criteria": {"value": "100025R"},
        "type": "REGISTRATION_NUMBER"
      },
      "totalResultsSize": 1
    }
    

    Invalid search completed 400 Bad Request status code:

    {"message":"Invalid request: search completed for search ID=15574"}
    

    Invalid search payment pending 400 Bad Request status code:

    {"message":"Invalid request: payment pending for search ID=15604"}
    
  4. chdivyareddy commented on Jun 5, 2025

    @chdivyareddy
    Collaborator

    Verified in DEV!

    Invalid search payment pending 400 Bad Request status code:
    image.png

    Invalid search completed 400 Bad Request status code:
    image.png

    image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions