Requirements
List all requirements
List all requirements with filtering, sorting, and pagination
get/requirements
Query parameters
Consolidated filter parameter for requirements (deepObject style). Originally: filter[country_code], filter[phone_number_type], filter[action]
{
"action": "porting",
"country_code": "US",
"phone_number_type": "local"
}sortstring[]
Specifies the sort order for results. If you want to sort by a field in ascending order, include it as a sort parameter. If you want to sort in descending order, prepend a - in front of the field name.
Consolidated sort parameter for requirements (deepObject style). Originally: sort[]
[ "country_code" ]
Consolidated page parameter (deepObject style). Originally: page[size], page[number]
versioninteger
Filter by requirement version number. When omitted, returns the currently-active version.
Response
Successful response
Example response
{
"data": [
{
"action": "ordering",
"country_code": "FR",
"created_at": "2021-04-09T22:25:27.521Z",
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"locality": "Nice",
"phone_number_type": "local",
"record_type": "requirement",
"requirement_types": [
{
"acceptance_criteria": {
"acceptable_characters": "abcdef0123456789",
"acceptable_values": [
"US"
],
"locality_limit": "Issued by the same country that the phone number belongs to",
"max_length": 20,
"min_length": 16,
"time_limit": "Current and not expired"
},
"created_at": "2021-04-09T22:25:27.521Z",
"description": "Proves the customer has a physical address in the same locality as the phone number",
"example": "Utility bill, internet bill, phone bill, or lease",
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"name": "Proof of Address",
"record_type": "requirement_type",
"type": "document",
"updated_at": "2021-04-12T20:20:20.020Z"
}
],
"updated_at": "2021-04-12T20:20:20.020Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}