
Test your Apps
Steps navigation:
• Authentication and Authorization
• Test your apps
Environments
Tenaris provides three environments for API testing:
| Environment | Base URL | Authentication |
| Static Mock | https://customerapi-dev.azure-api.net/public/ | Not required |
| Sandbox | https://customerapi-dev.azure-api.net/sb/ | Access Token required |
| Production | https://customerapi-dev.azure-api.net/ | Access Token required |
Testing with Static Mock
The simplest way to explore Tenaris APIs is by using the static mocks. No authentication is required:
curl -X GET https://customerapi-dev.azure-api.net/public/products?pageSize=10&pageNumber=1
Testing with Sandbox
Once you have completed the Authentication and Authorization steps and obtained your access token, you can test APIs against real sandbox data:
curl -X GET https://customerapi-dev.azure-api.net/sb/products?pageSize=10&pageNumber=1 \
-H "Authorization: Bearer {your_access_token}"
Sample Response
{
"page": {
"pageSize": 10,
"pageNumber": 1,
"pageLimit": 1,
"code": 200
},
"results": [
{
"id": "21336",
"description": "5 1/2\" 20.00# 2.00FT.-DONASID--TXP BTC",
"uoms": [{"code": "ST", "description": "Pieces"}],
"category": {"id": "42", "description": "Test_agreement"},
"enableThreads": false,
"material": "PJTXP00000000C0003"
}
]
}
Common Headers
| Header | Value | Description |
| Authorization | Bearer {token} | Required for Sandbox and Production |
| Content-Type | application/json | Required for POST/PUT requests |
| Accept | application/json | Optional, defaults to JSON |
Error Handling
If your request fails, check the HTTP status code and error message in the response body. Common errors include:
| Code | Description | Action |
| 401 | Unauthorized | Check your access token is valid and not expired |
| 403 | Forbidden | Check your app has access to the requested API |
| 404 | Not Found | Check the URL and query parameters |
| 500 | Internal Server Error | Contact Support |