SEP31CustomerInfoNeededException
extends Exception
in package
Exception thrown when additional KYC information is required via SEP-12.
This exception is raised during POST /transactions when the Sending Anchor has not provided all required KYC information, or when additional KYC is needed after the transaction amount is known. The type field indicates which customer type requires additional information. Returns HTTP 400 Bad Request.
Resolution workflow:
- Extract the type field from this exception
- Call SEP-12 PUT /customer with the missing KYC data
- Use the returned customer_id as sender_id or receiver_id
- Retry POST /transactions with the updated IDs
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
Properties
$error
public
string
$error
= 'customer_info_needed'
customer_info_needed
$type
public
string|null
$type
= null
(optional) A string for the type URL argument the Sending Anchor should use when making the SEP-12 GET /customer request. The value should be included in the sender.types or receiver.types object from GET /info.
Methods
__construct()
public
__construct([string|null $type = null ]) : mixed
Parameters
- $type : string|null = null