Back to Collection Items
Use ChilkatAx-win32.pkg
Procedure Test
Handle hoHttp
Boolean iSuccess
Variant vQueryParams
Handle hoQueryParams
Variant vResp
Handle hoResp
Variant vSbResponseBody
Handle hoSbResponseBody
Handle hoJResp
Integer iRespStatusCode
String sTitle
String sDescription
String sStrVal
String sId
String sSymbol
String sExchange_rate
String sHtml_symbol
String sName
String sV_type
String sIs_default
String sDefault_payment_accountId
String sDefault_payment_accountName
String sDefault_payment_accountType
String sDefault_payment_accountIban
String sDefault_payment_accountSia
String sDefault_payment_accountCuc
String sDefault_payment_accountVirtual
String sBank_iban
String sBank_name
String sBank_beneficiary
String sEi_payment_method
Integer j
Integer iCount_j
String sIban
String sSia
String sCuc
String sV_virtual
String sValue
String sNotes
String sE_invoice
String sEi_type
String sEi_description
String sEditable
String sIs_disabled
String sCode
String sEnimd17
String sTempor1
String sDolore527
String sDolore_e
String sEiusmod_92d
String sDolorf5
String sUt20
String sId
String sName
String sV_Type
String sDn_templateId
String sDn_templateName
String sDn_templateType
String sAi_templateId
String sAi_templateName
String sAi_templateType
String sNotes
String sRivalsa
String sCassa
String sWithholding_tax
String sWithholding_tax_taxable
String sOther_withholding_tax
String sUse_gross_prices
String sPayment_methodId
String sPayment_methodName
String sPayment_methodType
String sIs_default
String sDefault_payment_accountId
String sDefault_payment_accountName
String sDefault_payment_accountType
String sIban
String sSia
String sCuc
String sV_Virtual
String sBank_iban
String sBank_name
String sBank_beneficiary
String sEi_payment_method
String sTs_communication
String sTs_tipo_spesa
String sTs_flag_tipo_spesa
String sTs_pagamento_tracciato
String sVatId
String sValue
String sDescription
String sVatNotes
String sE_invoice
String sEi_type
String sEi_description
String sEditable
String sIs_disabled
Integer i
Integer iCount_i
String sTemp1
Boolean bTemp1
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Get Create (RefClass(cComChilkatHttp)) To hoHttp
If (Not(IsComObjectCreated(hoHttp))) Begin
Send CreateComObject of hoHttp
End
Get Create (RefClass(cComChilkatJsonObject)) To hoQueryParams
If (Not(IsComObjectCreated(hoQueryParams))) Begin
Send CreateComObject of hoQueryParams
End
Get ComUpdateString Of hoQueryParams "type" "order" To iSuccess
// Adds the "Authorization: Bearer <access_token>" header.
Set ComAuthToken Of hoHttp To "<access_token>"
Send ComSetRequestHeader To hoHttp "Accept" "application/json"
Get pvComObject of hoQueryParams to vQueryParams
Get ComQuickRequestParams Of hoHttp "GET" "https://api-v2.fattureincloud.it/c/:company_id/issued_documents/info" vQueryParams To vResp
If (IsComObject(vResp)) Begin
Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
Set pvComObject Of hoResp To vResp
End
Get ComLastMethodSuccess Of hoHttp To bTemp1
If (bTemp1 = False) Begin
Get ComLastErrorText Of hoHttp To sTemp1
Showln sTemp1
Procedure_Return
End
Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
Send CreateComObject of hoSbResponseBody
End
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComGetBodySb Of hoResp vSbResponseBody To iSuccess
Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
If (Not(IsComObjectCreated(hoJResp))) Begin
Send CreateComObject of hoJResp
End
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
Set ComEmitCompact Of hoJResp To False
Showln "Response Body:"
Get ComEmit Of hoJResp To sTemp1
Showln sTemp1
Get ComStatusCode Of hoResp To iRespStatusCode
Showln "Response Status Code = " iRespStatusCode
If (iRespStatusCode >= 400) Begin
Showln "Response Header:"
Get ComHeader Of hoResp To sTemp1
Showln sTemp1
Showln "Failed."
Send Destroy of hoResp
Procedure_Return
End
Send Destroy of hoResp
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "data": {
// "numerations": {
// "velit_0e": {
// "enimd17": "<integer>",
// "tempor1": "<integer>"
// }
// },
// "dn_numerations": {
// "est_66": {
// "dolore527": "<integer>",
// "dolore_e": "<integer>"
// },
// "enim_6e_": {
// "eiusmod_92d": "<integer>"
// },
// "occaecat__f": {
// "dolorf5": "<integer>",
// "Ut20": "<integer>"
// }
// },
// "default_values": {
// "default_template": {
// "id": "<integer>",
// "name": "<string>",
// "type": "<string>"
// },
// "dn_template": {
// "id": "<integer>",
// "name": "<string>",
// "type": "<string>"
// },
// "ai_template": {
// "id": "<integer>",
// "name": "<string>",
// "type": "<string>"
// },
// "notes": "<string>",
// "rivalsa": "<number>",
// "cassa": "<number>",
// "withholding_tax": "<number>",
// "withholding_tax_taxable": "<number>",
// "other_withholding_tax": "<number>",
// "use_gross_prices": "<boolean>",
// "payment_method": {
// "id": "<integer>",
// "name": "<string>",
// "type": "standard",
// "is_default": "<boolean>",
// "default_payment_account": {
// "id": "<integer>",
// "name": "<string>",
// "type": "standard",
// "iban": "<string>",
// "sia": "<string>",
// "cuc": "<string>",
// "virtual": "<boolean>"
// },
// "details": [
// {
// "title": "<string>",
// "description": "<string>"
// },
// {
// "title": "<string>",
// "description": "<string>"
// }
// ],
// "bank_iban": "<string>",
// "bank_name": "<string>",
// "bank_beneficiary": "<string>",
// "ei_payment_method": "<string>"
// }
// },
// "extra_data_default_values": {
// "ts_communication": "<boolean>",
// "ts_tipo_spesa": "<string>",
// "ts_flag_tipo_spesa": "<integer>",
// "ts_pagamento_tracciato": "<boolean>"
// },
// "items_default_values": {
// "vat": {
// "id": "<integer>",
// "value": "<number>",
// "description": "<string>",
// "notes": "<string>",
// "e_invoice": "<boolean>",
// "ei_type": "<string>",
// "ei_description": "<string>",
// "editable": "<boolean>",
// "is_disabled": "<boolean>"
// }
// },
// "countries_list": [
// "<string>",
// "<string>"
// ],
// "currencies_list": [
// {
// "id": "<string>",
// "symbol": "<string>",
// "exchange_rate": "<string>",
// "html_symbol": "<string>"
// },
// {
// "id": "<string>",
// "symbol": "<string>",
// "exchange_rate": "<string>",
// "html_symbol": "<string>"
// }
// ],
// "templates_list": [
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "<string>"
// },
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "<string>"
// }
// ],
// "dn_templates_list": [
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "<string>"
// },
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "<string>"
// }
// ],
// "ai_templates_list": [
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "<string>"
// },
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "<string>"
// }
// ],
// "payment_methods_list": [
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "standard",
// "is_default": "<boolean>",
// "default_payment_account": {
// "id": "<integer>",
// "name": "<string>",
// "type": "standard",
// "iban": "<string>",
// "sia": "<string>",
// "cuc": "<string>",
// "virtual": "<boolean>"
// },
// "details": [
// {
// "title": "<string>",
// "description": "<string>"
// },
// {
// "title": "<string>",
// "description": "<string>"
// }
// ],
// "bank_iban": "<string>",
// "bank_name": "<string>",
// "bank_beneficiary": "<string>",
// "ei_payment_method": "<string>"
// },
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "standard",
// "is_default": "<boolean>",
// "default_payment_account": {
// "id": "<integer>",
// "name": "<string>",
// "type": "standard",
// "iban": "<string>",
// "sia": "<string>",
// "cuc": "<string>",
// "virtual": "<boolean>"
// },
// "details": [
// {
// "title": "<string>",
// "description": "<string>"
// },
// {
// "title": "<string>",
// "description": "<string>"
// }
// ],
// "bank_iban": "<string>",
// "bank_name": "<string>",
// "bank_beneficiary": "<string>",
// "ei_payment_method": "<string>"
// }
// ],
// "payment_accounts_list": [
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "standard",
// "iban": "<string>",
// "sia": "<string>",
// "cuc": "<string>",
// "virtual": "<boolean>"
// },
// {
// "id": "<integer>",
// "name": "<string>",
// "type": "standard",
// "iban": "<string>",
// "sia": "<string>",
// "cuc": "<string>",
// "virtual": "<boolean>"
// }
// ],
// "vat_types_list": [
// {
// "id": "<integer>",
// "value": "<number>",
// "description": "<string>",
// "notes": "<string>",
// "e_invoice": "<boolean>",
// "ei_type": "<string>",
// "ei_description": "<string>",
// "editable": "<boolean>",
// "is_disabled": "<boolean>"
// },
// {
// "id": "<integer>",
// "value": "<number>",
// "description": "<string>",
// "notes": "<string>",
// "e_invoice": "<boolean>",
// "ei_type": "<string>",
// "ei_description": "<string>",
// "editable": "<boolean>",
// "is_disabled": "<boolean>"
// }
// ],
// "languages_list": [
// {
// "code": "<string>",
// "name": "<string>"
// },
// {
// "code": "<string>",
// "name": "<string>"
// }
// ]
// }
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
Get ComStringOf Of hoJResp "data.numerations.velit_0e.enimd17" To sEnimd17
Get ComStringOf Of hoJResp "data.numerations.velit_0e.tempor1" To sTempor1
Get ComStringOf Of hoJResp "data.dn_numerations.est_66.dolore527" To sDolore527
Get ComStringOf Of hoJResp "data.dn_numerations.est_66.dolore_e" To sDolore_e
Get ComStringOf Of hoJResp "data.dn_numerations.enim_6e_.eiusmod_92d" To sEiusmod_92d
Get ComStringOf Of hoJResp "data.dn_numerations.occaecat__f.dolorf5" To sDolorf5
Get ComStringOf Of hoJResp "data.dn_numerations.occaecat__f.Ut20" To sUt20
Get ComStringOf Of hoJResp "data.default_values.default_template.id" To sId
Get ComStringOf Of hoJResp "data.default_values.default_template.name" To sName
Get ComStringOf Of hoJResp "data.default_values.default_template.type" To sV_Type
Get ComStringOf Of hoJResp "data.default_values.dn_template.id" To sDn_templateId
Get ComStringOf Of hoJResp "data.default_values.dn_template.name" To sDn_templateName
Get ComStringOf Of hoJResp "data.default_values.dn_template.type" To sDn_templateType
Get ComStringOf Of hoJResp "data.default_values.ai_template.id" To sAi_templateId
Get ComStringOf Of hoJResp "data.default_values.ai_template.name" To sAi_templateName
Get ComStringOf Of hoJResp "data.default_values.ai_template.type" To sAi_templateType
Get ComStringOf Of hoJResp "data.default_values.notes" To sNotes
Get ComStringOf Of hoJResp "data.default_values.rivalsa" To sRivalsa
Get ComStringOf Of hoJResp "data.default_values.cassa" To sCassa
Get ComStringOf Of hoJResp "data.default_values.withholding_tax" To sWithholding_tax
Get ComStringOf Of hoJResp "data.default_values.withholding_tax_taxable" To sWithholding_tax_taxable
Get ComStringOf Of hoJResp "data.default_values.other_withholding_tax" To sOther_withholding_tax
Get ComStringOf Of hoJResp "data.default_values.use_gross_prices" To sUse_gross_prices
Get ComStringOf Of hoJResp "data.default_values.payment_method.id" To sPayment_methodId
Get ComStringOf Of hoJResp "data.default_values.payment_method.name" To sPayment_methodName
Get ComStringOf Of hoJResp "data.default_values.payment_method.type" To sPayment_methodType
Get ComStringOf Of hoJResp "data.default_values.payment_method.is_default" To sIs_default
Get ComStringOf Of hoJResp "data.default_values.payment_method.default_payment_account.id" To sDefault_payment_accountId
Get ComStringOf Of hoJResp "data.default_values.payment_method.default_payment_account.name" To sDefault_payment_accountName
Get ComStringOf Of hoJResp "data.default_values.payment_method.default_payment_account.type" To sDefault_payment_accountType
Get ComStringOf Of hoJResp "data.default_values.payment_method.default_payment_account.iban" To sIban
Get ComStringOf Of hoJResp "data.default_values.payment_method.default_payment_account.sia" To sSia
Get ComStringOf Of hoJResp "data.default_values.payment_method.default_payment_account.cuc" To sCuc
Get ComStringOf Of hoJResp "data.default_values.payment_method.default_payment_account.virtual" To sV_Virtual
Get ComStringOf Of hoJResp "data.default_values.payment_method.bank_iban" To sBank_iban
Get ComStringOf Of hoJResp "data.default_values.payment_method.bank_name" To sBank_name
Get ComStringOf Of hoJResp "data.default_values.payment_method.bank_beneficiary" To sBank_beneficiary
Get ComStringOf Of hoJResp "data.default_values.payment_method.ei_payment_method" To sEi_payment_method
Get ComStringOf Of hoJResp "data.extra_data_default_values.ts_communication" To sTs_communication
Get ComStringOf Of hoJResp "data.extra_data_default_values.ts_tipo_spesa" To sTs_tipo_spesa
Get ComStringOf Of hoJResp "data.extra_data_default_values.ts_flag_tipo_spesa" To sTs_flag_tipo_spesa
Get ComStringOf Of hoJResp "data.extra_data_default_values.ts_pagamento_tracciato" To sTs_pagamento_tracciato
Get ComStringOf Of hoJResp "data.items_default_values.vat.id" To sVatId
Get ComStringOf Of hoJResp "data.items_default_values.vat.value" To sValue
Get ComStringOf Of hoJResp "data.items_default_values.vat.description" To sDescription
Get ComStringOf Of hoJResp "data.items_default_values.vat.notes" To sVatNotes
Get ComStringOf Of hoJResp "data.items_default_values.vat.e_invoice" To sE_invoice
Get ComStringOf Of hoJResp "data.items_default_values.vat.ei_type" To sEi_type
Get ComStringOf Of hoJResp "data.items_default_values.vat.ei_description" To sEi_description
Get ComStringOf Of hoJResp "data.items_default_values.vat.editable" To sEditable
Get ComStringOf Of hoJResp "data.items_default_values.vat.is_disabled" To sIs_disabled
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.default_values.payment_method.details" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.default_values.payment_method.details[i].title" To sTitle
Get ComStringOf Of hoJResp "data.default_values.payment_method.details[i].description" To sDescription
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.countries_list" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.countries_list[i]" To sStrVal
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.currencies_list" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.currencies_list[i].id" To sId
Get ComStringOf Of hoJResp "data.currencies_list[i].symbol" To sSymbol
Get ComStringOf Of hoJResp "data.currencies_list[i].exchange_rate" To sExchange_rate
Get ComStringOf Of hoJResp "data.currencies_list[i].html_symbol" To sHtml_symbol
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.templates_list" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.templates_list[i].id" To sId
Get ComStringOf Of hoJResp "data.templates_list[i].name" To sName
Get ComStringOf Of hoJResp "data.templates_list[i].type" To sV_type
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.dn_templates_list" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.dn_templates_list[i].id" To sId
Get ComStringOf Of hoJResp "data.dn_templates_list[i].name" To sName
Get ComStringOf Of hoJResp "data.dn_templates_list[i].type" To sV_type
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.ai_templates_list" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.ai_templates_list[i].id" To sId
Get ComStringOf Of hoJResp "data.ai_templates_list[i].name" To sName
Get ComStringOf Of hoJResp "data.ai_templates_list[i].type" To sV_type
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.payment_methods_list" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.payment_methods_list[i].id" To sId
Get ComStringOf Of hoJResp "data.payment_methods_list[i].name" To sName
Get ComStringOf Of hoJResp "data.payment_methods_list[i].type" To sV_type
Get ComStringOf Of hoJResp "data.payment_methods_list[i].is_default" To sIs_default
Get ComStringOf Of hoJResp "data.payment_methods_list[i].default_payment_account.id" To sDefault_payment_accountId
Get ComStringOf Of hoJResp "data.payment_methods_list[i].default_payment_account.name" To sDefault_payment_accountName
Get ComStringOf Of hoJResp "data.payment_methods_list[i].default_payment_account.type" To sDefault_payment_accountType
Get ComStringOf Of hoJResp "data.payment_methods_list[i].default_payment_account.iban" To sDefault_payment_accountIban
Get ComStringOf Of hoJResp "data.payment_methods_list[i].default_payment_account.sia" To sDefault_payment_accountSia
Get ComStringOf Of hoJResp "data.payment_methods_list[i].default_payment_account.cuc" To sDefault_payment_accountCuc
Get ComStringOf Of hoJResp "data.payment_methods_list[i].default_payment_account.virtual" To sDefault_payment_accountVirtual
Get ComStringOf Of hoJResp "data.payment_methods_list[i].bank_iban" To sBank_iban
Get ComStringOf Of hoJResp "data.payment_methods_list[i].bank_name" To sBank_name
Get ComStringOf Of hoJResp "data.payment_methods_list[i].bank_beneficiary" To sBank_beneficiary
Get ComStringOf Of hoJResp "data.payment_methods_list[i].ei_payment_method" To sEi_payment_method
Move 0 To j
Get ComSizeOfArray Of hoJResp "data.payment_methods_list[i].details" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "data.payment_methods_list[i].details[j].title" To sTitle
Get ComStringOf Of hoJResp "data.payment_methods_list[i].details[j].description" To sDescription
Move (j + 1) To j
Loop
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.payment_accounts_list" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.payment_accounts_list[i].id" To sId
Get ComStringOf Of hoJResp "data.payment_accounts_list[i].name" To sName
Get ComStringOf Of hoJResp "data.payment_accounts_list[i].type" To sV_type
Get ComStringOf Of hoJResp "data.payment_accounts_list[i].iban" To sIban
Get ComStringOf Of hoJResp "data.payment_accounts_list[i].sia" To sSia
Get ComStringOf Of hoJResp "data.payment_accounts_list[i].cuc" To sCuc
Get ComStringOf Of hoJResp "data.payment_accounts_list[i].virtual" To sV_virtual
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.vat_types_list" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.vat_types_list[i].id" To sId
Get ComStringOf Of hoJResp "data.vat_types_list[i].value" To sValue
Get ComStringOf Of hoJResp "data.vat_types_list[i].description" To sDescription
Get ComStringOf Of hoJResp "data.vat_types_list[i].notes" To sNotes
Get ComStringOf Of hoJResp "data.vat_types_list[i].e_invoice" To sE_invoice
Get ComStringOf Of hoJResp "data.vat_types_list[i].ei_type" To sEi_type
Get ComStringOf Of hoJResp "data.vat_types_list[i].ei_description" To sEi_description
Get ComStringOf Of hoJResp "data.vat_types_list[i].editable" To sEditable
Get ComStringOf Of hoJResp "data.vat_types_list[i].is_disabled" To sIs_disabled
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "data.languages_list" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "data.languages_list[i].code" To sCode
Get ComStringOf Of hoJResp "data.languages_list[i].name" To sName
Move (i + 1) To i
Loop
End_Procedure
Curl Command
curl -G -d "type=order"
-H "Authorization: Bearer <access_token>"
-H "Accept: application/json"
https://api-v2.fattureincloud.it/c/:company_id/issued_documents/info
Postman Collection Item JSON
{
"name": "Get Issued Document Pre-create info",
"request": {
"auth": {
"type": "oauth2",
"oauth2": [
{
"key": "scope",
"value": "entity.clients:r entity.clients:a entity.suppliers:r entity.suppliers:a products:r products:a issued_documents.invoices:r issued_documents.credit_notes:r issued_documents.receipts:r issued_documents.orders:r issued_documents.quotes:r issued_documents.proformas:r issued_documents.delivery_notes:r issued_documents.work_reports:r issued_documents.supplier_orders:r issued_documents.self_invoices:r issued_documents.invoices:a issued_documents.credit_notes:a issued_documents.receipts:a issued_documents.orders:a issued_documents.quotes:a issued_documents.proformas:a issued_documents.delivery_notes:a issued_documents.work_reports:a issued_documents.supplier_orders:a issued_documents.self_invoices:a received_documents:r received_documents:a stock:r stock:a receipts:r receipts:a taxes:r taxes:a archive:r archive:a cashbook:r cashbook:a settings:r settings:a situation:r",
"type": "string"
},
{
"key": "redirect_uri",
"value": "https://api-v2.fattureincloud.it/oauth/token",
"type": "string"
},
{
"key": "accessTokenUrl",
"value": "https://api-v2.fattureincloud.it/oauth/token",
"type": "string"
},
{
"key": "authUrl",
"value": "https://api-v2.fattureincloud.it/oauth/authorize",
"type": "string"
},
{
"key": "grant_type",
"value": "authorization_code",
"type": "string"
}
]
},
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/c/:company_id/issued_documents/info?type=order",
"host": [
"{{baseUrl}}"
],
"path": [
"c",
":company_id",
"issued_documents",
"info"
],
"query": [
{
"key": "type",
"value": "order",
"description": "(Required) The type of the issued document."
}
],
"variable": [
{
"key": "company_id",
"value": "<integer>"
}
]
},
"description": "Retrieves the information useful while creating a new document."
},
"response": [
{
"name": "Pre-create info.",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: oauth2",
"key": "Authorization",
"value": "<token>"
}
],
"url": {
"raw": "{{baseUrl}}/c/:company_id/issued_documents/info?type=order",
"host": [
"{{baseUrl}}"
],
"path": [
"c",
":company_id",
"issued_documents",
"info"
],
"query": [
{
"key": "type",
"value": "order",
"description": "(Required) The type of the issued document."
}
],
"variable": [
{
"key": "company_id"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"data\": {\n \"numerations\": {\n \"velit_0e\": {\n \"enimd17\": \"<integer>\",\n \"tempor1\": \"<integer>\"\n }\n },\n \"dn_numerations\": {\n \"est_66\": {\n \"dolore527\": \"<integer>\",\n \"dolore_e\": \"<integer>\"\n },\n \"enim_6e_\": {\n \"eiusmod_92d\": \"<integer>\"\n },\n \"occaecat__f\": {\n \"dolorf5\": \"<integer>\",\n \"Ut20\": \"<integer>\"\n }\n },\n \"default_values\": {\n \"default_template\": {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"dn_template\": {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"ai_template\": {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n },\n \"notes\": \"<string>\",\n \"rivalsa\": \"<number>\",\n \"cassa\": \"<number>\",\n \"withholding_tax\": \"<number>\",\n \"withholding_tax_taxable\": \"<number>\",\n \"other_withholding_tax\": \"<number>\",\n \"use_gross_prices\": \"<boolean>\",\n \"payment_method\": {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"standard\",\n \"is_default\": \"<boolean>\",\n \"default_payment_account\": {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"standard\",\n \"iban\": \"<string>\",\n \"sia\": \"<string>\",\n \"cuc\": \"<string>\",\n \"virtual\": \"<boolean>\"\n },\n \"details\": [\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n },\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"bank_iban\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bank_beneficiary\": \"<string>\",\n \"ei_payment_method\": \"<string>\"\n }\n },\n \"extra_data_default_values\": {\n \"ts_communication\": \"<boolean>\",\n \"ts_tipo_spesa\": \"<string>\",\n \"ts_flag_tipo_spesa\": \"<integer>\",\n \"ts_pagamento_tracciato\": \"<boolean>\"\n },\n \"items_default_values\": {\n \"vat\": {\n \"id\": \"<integer>\",\n \"value\": \"<number>\",\n \"description\": \"<string>\",\n \"notes\": \"<string>\",\n \"e_invoice\": \"<boolean>\",\n \"ei_type\": \"<string>\",\n \"ei_description\": \"<string>\",\n \"editable\": \"<boolean>\",\n \"is_disabled\": \"<boolean>\"\n }\n },\n \"countries_list\": [\n \"<string>\",\n \"<string>\"\n ],\n \"currencies_list\": [\n {\n \"id\": \"<string>\",\n \"symbol\": \"<string>\",\n \"exchange_rate\": \"<string>\",\n \"html_symbol\": \"<string>\"\n },\n {\n \"id\": \"<string>\",\n \"symbol\": \"<string>\",\n \"exchange_rate\": \"<string>\",\n \"html_symbol\": \"<string>\"\n }\n ],\n \"templates_list\": [\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n },\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"dn_templates_list\": [\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n },\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"ai_templates_list\": [\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n },\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"<string>\"\n }\n ],\n \"payment_methods_list\": [\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"standard\",\n \"is_default\": \"<boolean>\",\n \"default_payment_account\": {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"standard\",\n \"iban\": \"<string>\",\n \"sia\": \"<string>\",\n \"cuc\": \"<string>\",\n \"virtual\": \"<boolean>\"\n },\n \"details\": [\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n },\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"bank_iban\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bank_beneficiary\": \"<string>\",\n \"ei_payment_method\": \"<string>\"\n },\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"standard\",\n \"is_default\": \"<boolean>\",\n \"default_payment_account\": {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"standard\",\n \"iban\": \"<string>\",\n \"sia\": \"<string>\",\n \"cuc\": \"<string>\",\n \"virtual\": \"<boolean>\"\n },\n \"details\": [\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n },\n {\n \"title\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"bank_iban\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"bank_beneficiary\": \"<string>\",\n \"ei_payment_method\": \"<string>\"\n }\n ],\n \"payment_accounts_list\": [\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"standard\",\n \"iban\": \"<string>\",\n \"sia\": \"<string>\",\n \"cuc\": \"<string>\",\n \"virtual\": \"<boolean>\"\n },\n {\n \"id\": \"<integer>\",\n \"name\": \"<string>\",\n \"type\": \"standard\",\n \"iban\": \"<string>\",\n \"sia\": \"<string>\",\n \"cuc\": \"<string>\",\n \"virtual\": \"<boolean>\"\n }\n ],\n \"vat_types_list\": [\n {\n \"id\": \"<integer>\",\n \"value\": \"<number>\",\n \"description\": \"<string>\",\n \"notes\": \"<string>\",\n \"e_invoice\": \"<boolean>\",\n \"ei_type\": \"<string>\",\n \"ei_description\": \"<string>\",\n \"editable\": \"<boolean>\",\n \"is_disabled\": \"<boolean>\"\n },\n {\n \"id\": \"<integer>\",\n \"value\": \"<number>\",\n \"description\": \"<string>\",\n \"notes\": \"<string>\",\n \"e_invoice\": \"<boolean>\",\n \"ei_type\": \"<string>\",\n \"ei_description\": \"<string>\",\n \"editable\": \"<boolean>\",\n \"is_disabled\": \"<boolean>\"\n }\n ],\n \"languages_list\": [\n {\n \"code\": \"<string>\",\n \"name\": \"<string>\"\n },\n {\n \"code\": \"<string>\",\n \"name\": \"<string>\"\n }\n ]\n }\n}"
}
]
}