SheetXは、APIで帳票出力機能を提供します。開発中のシステムにAPI連携の実装をすることで、帳票出力機能を実現できます。
以下のAPI仕様をご確認ください。
<aside> 💡 ダッシュボードから、入力データの仕様とcurlのサンプルが確認できます
</aside>
curlのサンプルを記載します。下記は実際に実行いただけます。
curl -X POST \\
-H "content-type: application/json" \\
-H "x-api-key: nyX1RTlxDf9Rgre9emyXo8q0Y0GcoB688qD19jTL" \\
-d '{
"response_type": "url",
"sheets": [
{
"template_id": "0cbb4544-ee13-43c4-b492-f531b53e7484",
"page_number": 1,
"values": {
"company_address_2": "●●●",
"company_address_1": "●●●",
"company_postal_code": "●●●",
"client_address_1": "●●●",
"client_address_2": "●●●",
"sub_total": "●●●",
"tax": "●●●",
"unit_1": "●●●",
"unit_2": "●●●",
"unit_3": "●●●",
"unit_4": "●●●",
"unit_5": "●●●",
"unit_6": "●●●",
"unit_7": "●●●",
"unit_8": "●●●",
"amount_1": "●●●",
"amount_2": "●●●",
"amount_3": "●●●",
"amount_4": "●●●",
"amount_5": "●●●",
"amount_6": "●●●",
"amount_7": "●●●",
"amount_8": "●●●",
"total": "●●●",
"quantity_1": "●●●",
"quantity_2": "●●●",
"quantity_3": "●●●",
"quantity_4": "●●●",
"quantity_5": "●●●",
"quantity_6": "●●●",
"quantity_7": "●●●",
"quantity_8": "●●●",
"item_1": "●●●",
"item_2": "●●●",
"item_3": "●●●",
"item_4": "●●●",
"item_5": "●●●",
"item_6": "●●●",
"item_7": "●●●",
"item_8": "●●●",
"multiline_notes": "●●●",
"date": "●●●",
"estimate_number": "●●●",
"company_name": "●●●",
"client_name": "●●●",
"client_postal_code": "●●●"
}
}
]
}' \\
<https://vgm07u2uak.execute-api.ap-northeast-1.amazonaws.com/v1/sheets>