Lookup customer number
/subscription_system/lookup_customer_number
Target audience: Developers
Lookup customer number
Introduction
Looks up a customer number in the external subscription system for the given social security number.
URI
| Environment |
URI |
| Stage |
https://payway-api.stage.adeprimo.se/external/api/v1/subscription_system/lookup_customer_number |
| Production |
https://backend.worldoftulo.com/external/api/v1/subscription_system/lookup_customer_number |
Requirements
| Identity |
Scope |
| No |
/external/subscription_system/r |
Parameters
| Field |
Required |
Type |
Description |
| social_security_number |
Yes |
String |
Social security number of the customer. Size range: ..100 Allowed values: YYMMDD-XXXX OR YYYYMMDDXXXX |
Curl Example
curl --request GET \
--url https://payway-api.stage.adeprimo.se/external/api/v1/subscription_system/lookup_customer_number=social_security_number=860101-3348 \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json'
Response
| Field |
Description |
| customer_number |
The customer number. |
Example Response
HTTP 200
{
"item": {
"customer_number": "1234567890",
}
}
Errors
Example error response
HTTP 400 Bad Request
{
"code": "invalid_parameter",
"field": "social_security_number",
"message": "Parameter must match format (/^[0-9]{6}-[0-9]{4}$/)"
}
HTTP 400 Bad Request
| Name |
Type |
Description |
| invalid_parameter |
Object |
Validation error on any of the fields in the querystring |
| invalid_content_type_error |
Object |
The requests Content-Type header isn't set to application/json |
| unknown_parameter |
Object |
One or more of the fields in the querystring was not recognized |
HTTP 404 Not Found
{
"code": "not_found",
"field": "customer not found",
"message": "customer could not be found"
}
HTTP 500 Internal Server Error
| Name |
Type |
Description |
| internal_server_error |
Object |
Something unexpected happened server side |