action apisetu_ratcr { label: "Ration Card" description: "API to verify Ration Card." provider: apisetu method: POST path: "/ratcr/certificate" encoding: json input: { type: "object" required: ["format", "txnId"] properties: { certificateParameters: { type: "object" required: ["DOB", "FullName", "GENDER", "UID"] properties: { DOB: { type: "string" description: "Date of birth in DD-MM-YYYY format" } FullName: { type: "string" description: "Full name" } GENDER: { type: "string" description: "Gender - M for male, F for female and O for other" } UID: { type: "string" description: "Aadhaar number" } } } consentArtifact: { required: ["consent", "signature"] properties: { consent: { type: "object" required: ["consentId", "data", "dataConsumer", "dataProvider", "permission", "purpose", "timestamp", "user"] properties: { consentId: { type: "string" format: "uuid" description: "A unique consent id in UUID format." } data: { type: "object" required: ["id"] properties: { id: { type: "string" } } } dataConsumer: { type: "object" required: ["id"] properties: { id: { type: "string" } } } dataProvider: { type: "object" required: ["id"] properties: { id: { type: "string" } } } permission: { type: "object" required: ["access", "dateRange", "frequency"] properties: { access: { type: "string" } dateRange: { type: "object" required: ["from", "to"] properties: { from: { type: "string" format: "date-time" description: "Date time format in UTC, includes miliseconds YYYY-MM-DDThh:mm:ss.vZ" } to: { type: "string" format: "date-time" description: "Date time format in UTC, includes miliseconds YYYY-MM-DDThh:mm:ss.vZ" } } } frequency: { type: "object" required: ["repeats", "unit", "value"] properties: { repeats: { type: "number" } unit: { type: "string" } value: { type: "number" } } } } } purpose: { type: "object" required: ["description"] properties: { description: { type: "string" } } } timestamp: { type: "string" format: "date-time" description: "Date time format in UTC, includes miliseconds YYYY-MM-DDThh:mm:ss.vZ" } user: { type: "object" required: ["email", "idNumber", "idType", "mobile"] properties: { email: { type: "string" } idNumber: { type: "string" } idType: { type: "string" } mobile: { type: "string" } } } } } signature: { type: "object" required: ["signature"] properties: { signature: { type: "string" } } } } } format: { type: "string" description: "The format of the certificate in response." enum: ["pdf"] } txnId: { type: "string" format: "uuid" description: "A unique transaction id for this request in UUID format. It is used for tracking the request." } } } output: { type: "object" additionalProperties: true } }