Detailed Search by DIN
Introduction
This document provides detailed information on how to use the API endpoint to add organizations for a patron.
Sample cURL
curl --request POST \
--url https://signzy.tech/api/v2/patrons/...patronid..../organizations \
--header 'Accept: */*' \
--header 'Accept-Language: en-US,en;q=0.8' \
--header 'Authorization: <Access-Token>' \
--header 'content-type: application/json' \
--data '{"identifier":"...companycin...","service":"roc","callbackUrl":"...call URL..."}'Parameter | Data Type | Required | Description |
|---|---|---|---|
patronid | string | Yes | Unique identifier for the patron |
identifier | string | Yes | The Company CIN number is to be verified |
service | string | Yes | The name of the service (in this case, "roc") to be used for organization verification |
callbackUrl | string | Yes | The callback URL where the response will be sent after the organization verification is completed |
Access-Token | string | Yes | The Access token for authentication |
Sample Response
{
"callbackUrl": "...callback...",
"accessToken": "...accestoken....",
"id": "....id...",
"patronId": "....patronid...",
"identifier": "...identifier...",
"service": "roc"
}Parameter | Data Type | Required | Description |
|---|---|---|---|
callbackUrl | string | Yes | The URL to which the response will be sent back |
accessToken | string | Yes | The Access Token for the authorized user |
id | string | Yes | The unique ID for the organization created |
patronId | string | Yes | The ID of the patron creating the organization |
identifier | string | Yes | The Company CIN number |
service | string | Yes | The name of the service used |