{
"data": {
"type": "ExamVoucher",
"attributes": {
"code": "string",
"batch": "string",
"expiresAt": "string",
"isRevoked": true
},
"relationships": {
"owner": {
"data": {
"id": "FID001",
"type": "User"
}
},
"exam": {
"data": {
"id": "FID001",
"type": "Exam-V-2"
}
}
}
}
}curl --location --request POST 'https://api.synap.ac/v3/exam-vouchers' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"type": "ExamVoucher",
"attributes": {
"code": "string",
"batch": "string",
"expiresAt": "string",
"isRevoked": true
},
"relationships": {
"owner": {
"data": {
"id": "FID001",
"type": "User"
}
},
"exam": {
"data": {
"id": "FID001",
"type": "Exam-V-2"
}
}
}
}
}'{
"data": {
"id": "FID001",
"type": "ExamVoucher",
"attributes": {
"createdAt": "string",
"code": "string",
"batch": "string",
"expiresAt": "string",
"isRedeemed": true,
"isRevoked": true,
"redeemedAt": "string",
"examName": "string"
},
"relationships": {
"owner": {
"data": {
"id": "FID001",
"type": "User"
}
},
"exam": {
"data": {
"id": "FID001",
"type": "Exam-V-2"
}
},
"subPortal": {
"data": {
"id": "FID001",
"type": "SubPortal"
}
},
"userGroup": {
"data": {
"id": "FID001",
"type": "UserGroup"
}
},
"redeemedBy": {
"data": {
"id": "FID001",
"type": "User"
}
},
"attempt": {
"data": {
"id": "FID001",
"type": "Attempt"
}
}
}
}
}