가이드
증명서
계량 완료 기록에 대해 발급된 계량 증명서를 조회하고 이메일로 발송을 요청할 수 있습니다.
증명서 조회
read:certificates 스코프로 증명서를 조회합니다. 특정 계량 기록(recordId)이나 상태(status)로 필터링할 수 있습니다.
증명서 목록
curl -X GET 'https://api.weighter.shop/agent/v1/certificates?limit=10' \
-H 'Authorization: Bearer wtr_ak_xxxxxxxxxxxxxxxxxxxxxxxx'각 증명서는 type, status, 파일 접근용 url, 발송 이력 deliveries를 포함합니다. 전체 필드는 API 레퍼런스를 참고하세요.
발송 요청
write:certificates 스코프로 기존 증명서를 지정한 이메일로 발송 요청합니다.
증명서 발송
curl -X POST 'https://api.weighter.shop/agent/v1/certificates/a1b2c3d4-e5f6-7890-abcd-ef1234567890/deliveries' \
-H 'Authorization: Bearer wtr_ak_xxxxxxxxxxxxxxxxxxxxxxxx' \
-H 'Content-Type: application/json' \
-d '{
"email": "partner@example.com"
}'증명서는 계량이 완료된 기록에 대해 생성됩니다. 기록 흐름은 계량 기록을 참고하세요.