Gets the list of scratchcards
Registration Authority
/- Enterprise Documentation
- DEVELOPER DOCUMENTATION
/
LIST SCRATCHCARDS
UANATACA RA API DOCUMENTATION (v1)
https://api.uanataca.com/api/v1/scratchcards
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.uanataca.com/api/v1/scratchcards?registration_authority=string&sn=string'Response
application/json
{ "count": "550", "next": "null", "previous": "null", "results": [ { … }, { … }, { … } ] }
https://api.uanataca.com/api/v1/scratchcards/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.uanataca.com/api/v1/scratchcards/{id}'Response
application/json
{ "pk": 1045, "sn": 1200948, "secrets": { "erc": "8117606937", "enrollment_code": ",8cj6Ax2", "pin": "85376977", "puk": "86175206" }, "registration_authority": 121 }
https://api.uanataca.com/api/v1/scratchcards/get_first_unused
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.uanataca.com/api/v1/scratchcards/get_first_unused \
-H 'Content-Type: application/json' \
-d '{
"ra": "string"
}'Response
application/json
{ "pk": 1193, "sn": 1256948, "secrets": { "erc": "6292998123", "enrollment_code": "_,463vt:", "pin": "08695572", "puk": "52351291" }, "registration_authority": 121 }
https://api.uanataca.com/api/v1/scratchcards/isused
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.uanataca.com/api/v1/scratchcards/isused \
-H 'Content-Type: */*' \
-d '[object Object]'Bodyapplication/json
The reason associated to the scratchcard revocation:
- UNSPECIFIED - Unspecified reason
- KEYCOMPROMISE - Compromised keys
- AFFILIATIONCHANGED - Affiliation changed
- SUPERSEDED - Superseded
- CESSATIONOFOPERATION - Ceased
- PRIVILEGESWITHDRAWN - Privileges withdrawn
The reason to suspend or activate a certificate when this is suspended:
- CERTIFICATEHOLD - Suspend a certificate
- NOT_REVOKED - Activate a certificate that was suspended
Enum"UNSPECIFIED""KEYCOMPROMISE""AFFILIATIONCHANGED""SUPERSEDED""CESSATIONOFOPERATION""PRIVILEGESWITHDRAWN""CERTIFICATEHOLD""NOT_REVOKED"
https://api.uanataca.com/api/v1/scratchcards/revoke
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.uanataca.com/api/v1/scratchcards/revoke \
-H 'Content-Type: application/json' \
-d '{
"scratchcard": "string",
"erc": "string",
"reason": "UNSPECIFIED"
}'Response
application/json
{ "data": "MIIHyzCCBbOgAwIBAgIIdWWgCtrot88wDQYJKoZIhvcNAQELBQAwgb0xCzAJBgNVBAYTAkVTMUQwQgYDVQQHDDtCYXJjZWxvbmEgKHNlZSBjdXJyZW50IGFkZHJlc3MgYXQgd3d3LnVhbmF0YW...", "profile": "PFnubeAF", "subject": "CN=Name Surname1 Surname2, 2.5.4.5=IDCIT-TSTAPI74S23C129Y, 2.5.4.42=Name, 2.5.4.4=Surname1 Surname2, C=ES", "issuer": "2.5.4.97=VATES-A66721499, CN=UANATACA CA1 DEVEL 2016, OU=AC-UANATACA, O=UANATACA S.A., L=Barcelona (see current address at www.uanataca.com/address), C=ES", "valid_from": "2019-01-22T16:42:00Z", "valid_to": "2019-01-23T16:42:00Z", "serial_number": "0b7687af3c8a833f", "status": "2", "pk": "25139", "revocation_reason": "1", "type": "FIRSTISSUE" }
https://api.uanataca.com/api/v1/scratchcards/whoami
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.uanataca.com/api/v1/scratchcards/whoami \
-H 'Content-Type: application/json' \
-d '{
"scratchcard": "string",
"erc": "string"
}'Response
application/json
{ "pk": 25139, "given_name": "Name", "surname_1": "Surname1", "surname_2": "Surname2", "sex": null, "id_document_type": "TIN", "id_document_country": "IT", "serial_number": "A1111111E", "country_name": "ES", "citizenship": null, "residence": "ES", "organization_email": null, "email": "mail@domain", "title": null, "organization_name": null, "organizational_unit_1": null, "organizational_unit_2": null, "organization_identifier": null, "responsible_name": null, "responsible_first_surname": null, "responsible_second_surname": null, "responsible_email": null, "responsible_serial": null, "responsible_position": null, "subscriber_responsible_serial": null, "administrative_unit": null, "empowerment": null, "representation": null, "circumstances": null, "limit": null, "registration": null, "process_application": null, "entity_owner": null, "entity_owner_serial_number": null, "description": null, "certificate_set": [], "profile": "PFnubeAFCiudadano", "scratchcard": "5053349", "status": "ENROLLREADY", "registering_user": { "pk": 1, "permission_profile": 1, "registration_authority": 1, "request": 235 }, "approving_user": { "pk": 1, "permission_profile": 1, "registration_authority": 1, "request": 235 }, "producing_user": null, "registration_authority": 41, "secure_element": 2, "validity_time": "730", "smartcard_sn": "", "citizen_tax_number": "", "birth_date": null, "birth_country": null, "birth_city": "", "birth_province": "", "birth_state": "", "birth_district": "", "birth_canton": "", "id_document_description": "", "id_document_issuer": "", "organization_rol": null, "professional_id_number": null, "mobile_phone_number": "+34600112233", "fix_phone_number": "", "residence_address": "", "residence_city": "", "residence_province": "", "residence_postal_code": "", "residence_state": "", "residence_district": "", "residence_canton": "", "organization_tax_number": null, "organization_address": null, "organization_city": null, "organization_province": null, "organization_country": null, "organization_postal_code": null, "organization_state": null, "organization_url": null, "responsible_legal_level": null, "subscriber": null, "responsible_legal_documents": null, "special_conditions": null, "responsible_registry_data": null, "approving_rao": { "pk": 1, "given_name": "RAO_Name", "surname_1": "RAO_Surname1", "surname_2": "RAO_Surname2", "certificate": { … }, "id_document_number": "A22222222W", "id_document_description": "", "id_document_issuer": "", "registration_authority": [ … ], "registration_authority_master": 1 }, "producing_rao": null, "id_document_number": "", "id_responsible_document_type": null, "id_responsible_document_country": null, "id_responsible_document_number": null, "organizational_unit_3": null }
Bodyapplication/json
The source RA id that will give the scratchcards
⚠ If from_ra/to_ra is used, from_sn/to_sn cannot be used
The destination RA id that will receive the scratchcards
⚠ If from_ra/to_ra is used, from_sn/to_sn cannot be used
The scratchcard starting id
⚠ If from_sn/to_sn is used, from_ra/to_ra cannot be used
https://api.uanataca.com/api/v1/scratchcards/move
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.uanataca.com/api/v1/scratchcards/move \
-H 'Content-Type: application/json' \
-d '{
"from_ra": "string",
"to_ra": "string",
"amount": "string",
"from_sn": "string",
"to_sn": "string"
}'Response
application/json
{ "moved": 1000 }