curl --request GET \
--url https://api.wava.co/v1/national-document-types/{countryCode} \
--header 'merchant-key: <api-key>'{
"data": [
{
"id_national_document_type": 1,
"type": "CC",
"description": "Cédula de Ciudadanía"
},
{
"id_national_document_type": 2,
"type": "CE",
"description": "Cédula de Extranjería"
},
{
"id_national_document_type": 3,
"type": "TI",
"description": "Tarjeta de Identidad"
}
]
}Retrieve valid national document types for a specific country. Use this to get valid id_type values for the shopper object when creating direct API orders.
The returned id_national_document_type value should be passed as id_type in the shopper object.
curl --request GET \
--url https://api.wava.co/v1/national-document-types/{countryCode} \
--header 'merchant-key: <api-key>'{
"data": [
{
"id_national_document_type": 1,
"type": "CC",
"description": "Cédula de Ciudadanía"
},
{
"id_national_document_type": 2,
"type": "CE",
"description": "Cédula de Extranjería"
},
{
"id_national_document_type": 3,
"type": "TI",
"description": "Tarjeta de Identidad"
}
]
}Merchant key for store identification. Required for all API requests.
merchant-key: YOUR_MERCHANT_KEYTwo-letter ISO 3166-1 country code.
^[A-Z]{2}$"CO"
Document types retrieved successfully
Show child attributes