문서로 건너뛰기
API

청구의 청구서 받기

PDF 링크를 JSON으로.

GET/billing/invoices/{orderId}

워크스페이스에 실제 호출을 실행합니다.

GET /billing/invoices/{orderId}

PDF 링크를 JSON으로.

예시

billing:read가 필요합니다. 아직 작성되지 않은 청구서는 청구 또는 계정의 청구 정보로 먼저 작성되며, 몇 초 걸릴 수 있습니다.

curl
curl "$OE/billing/invoices/8c51f0d2-3b7e-4a19-b6c4-0e9d2f7a1c38" -H "$AUTH"
응답
{  "object": "invoice_link",  "orderId": "8c51f0d2-3b7e-4a19-b6c4-0e9d2f7a1c38",  "url": "https://files.example.com/invoices/acme-0007.pdf?signature=5f2c9a",  "fileName": "Invoice-ACME-0007.pdf"}

링크는 결제 제공업체가 서명한 것으로, PDF를 내려받으며 얼마 후 작동하지 않습니다. 보관하지 말고 다시 받으세요.

청구 이름과 주소가 없는 청구는 409 billing_details_required, 초안이거나 무효인 청구는 409 invoice_unavailable, 아직 작성 중인 청구서는 504 invoice_not_ready입니다.

레퍼런스