Basware

App · 25 actions

Take approved invoices into your ERP and report back, track invoice status and purchase orders, and keep vendors, GL accounts and cost centers up to date in Basware.

Actions

ActionWhat it does
Acknowledge invoiceMark an invoice as taken by your ERP, so it isn't offered again.
Acknowledge purchase orderMark a purchase order as picked up, so it isn't offered again until it changes.
Acknowledge purchase requisitionMark a purchase requisition as picked up, so it isn't offered again.
Create or update cost centerAdd a cost center for invoice coding, or replace one sent before with the same external code.
Create or update GL accountAdd a general ledger account for invoice coding, or replace one sent before with the same external code.
Create or update vendorAdd a vendor (supplier) to Basware, or replace one sent before with the same external code.
Delete cost centerDelete a cost center you imported through Basware API, by its external code.
Delete GL accountDelete a GL account you imported through Basware API, by its external code.
Delete vendorDelete a vendor you imported through Basware API, by its external code.
Get cost centerGet a cost center you imported through Basware API, by its external code.
Get GL accountGet a general ledger account you imported through Basware API, by its external code.
Get import statusCheck whether one import reached Basware and each system it was sent to, using the request ID a create or update step returned.
Get invoiceGet an invoice's full details: its supplier, sums, dates, coding rows, lines and attachments.
Get invoice statusLook up where a supplier's invoice is: in approval, ready for payment, paid or rejected.
Get purchase orderGet a purchase order sent from Basware Procurement, with its lines and goods receipts.
Get purchase requisitionGet a purchase requisition from Basware Procurement, with its lines.
Get vendorGet a vendor you imported through Basware API, by its external code.
List companiesList the companies (organization units) imported into Basware.
List import statusesFind out whether vendors, accounts and other records you sent reached Basware, or why they failed.
List invoicesFind invoices ready for, or already sent to, your accounting system, by status, company and when they changed.
List purchase ordersFind purchase orders sent from Basware Procurement, such as new or changed ones your ERP hasn't picked up.
List purchase requisitionsFind purchase requisitions that were approved, rejected or canceled in Basware Procurement.
Send payment responseTell Basware an invoice has been paid, or partly paid.
Send prebook responseTell Basware whether your ERP prebooked an invoice, with its voucher number.
Send transfer responseTell Basware whether your ERP took an approved invoice, with its voucher number.

Acknowledge invoice

Mark an invoice as taken by your ERP, so it isn't offered again. Do it right after reading the invoice, before sending its transfer response.

Inputs

Invoiceinvoice_idtextRequired
The invoice, by its Basware invoice ID.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "done": true
  }
}

Acknowledge purchase order

Mark a purchase order as picked up, so it isn't offered again until it changes.

Inputs

Purchase orderorder_idtextRequired
The purchase order, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "done": true
  }
}

Acknowledge purchase requisition

Mark a purchase requisition as picked up, so it isn't offered again.

Inputs

Purchase requisitionrequisition_idtextRequired
The purchase requisition, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "done": true
  }
}

Create or update cost center

Add a cost center for invoice coding, or replace one sent before with the same external code.

Inputs

External codeexternal_codetextRequired
Your own unique key for the cost center, up to 36 characters. Send the same one again to update it.
Cost center codecost_center_codetextRequired
The cost center's code, as used in invoice coding.
NamenametextRequired
The cost center's name.
Companiescompany_codeslistRequired
The companies (organization units) the cost center belongs to, by company code.
Include lower unitsinclude_child_unitstrue/false
Also use it in the companies' lower organization units. On unless you turn it off.
Activeactivetrue/false
Whether people can use it in Basware. On unless you turn it off.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "records": [
      {}
    ],
    "requestId": "example"
  }
}

Create or update GL account

Add a general ledger account for invoice coding, or replace one sent before with the same external code.

Inputs

External codeexternal_codetextRequired
Your own unique key for the account, up to 36 characters. Send the same one again to update it.
Account codeaccount_codetextRequired
The account's code, as used in invoice coding.
NamenametextRequired
The account's name.
Companiescompany_codeslistRequired
The companies (organization units) the account belongs to, by company code.
Tax codetax_codetext
The account's default tax code.
Include lower unitsinclude_child_unitstrue/false
Also use it in the companies' lower organization units. On unless you turn it off.
Activeactivetrue/false
Whether people can use it in Basware. On unless you turn it off.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "records": [
      {}
    ],
    "requestId": "example"
  }
}

Create or update vendor

Add a vendor (supplier) to Basware, or replace one sent before with the same external code.

Inputs

External codeexternal_codetextRequired
Your own unique key for the vendor, up to 36 characters. Send the same one again to update it.
Vendor codevendor_codetextRequired
The vendor's code, normally its number in your ERP.
NamenametextRequired
The vendor's name.
Companiescompany_codeslistRequired
The companies (organization units) the vendor belongs to, by company code.
Include lower unitsinclude_child_unitstrue/false
Also use it in the companies' lower organization units. On unless you turn it off.
Payment term codepayment_term_codetext
The vendor's payment term, by its code in Basware.
Emailemailtext
The vendor's email address.
Streetstreettext
The vendor's street address.
Citycitytext
The vendor's city.
Postal codepostal_codetext
The vendor's postal code.
Country codecountrytext
The vendor's country, as a two-letter code such as `US` or `DE`.
Ordering formatordering_formattext
How Basware Procurement sends this vendor orders.One of: BaswareNetwork (Basware Network), email, EHFXML21 (EHF XML 2.1), other, none (Not ordered through Basware).
Order emailorder_emailtext
Where orders are emailed, when the ordering format is Email.
Descriptiondescriptiontext
A note about the vendor.
Activeactivetrue/false
Whether the vendor can be used. On unless you turn it off.
Payment blockedpayment_blockedtrue/false
Block payments to this vendor.
Source systemsource_systemtext
The system the vendor comes from, such as your ERP's name.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "records": [
      {}
    ],
    "requestId": "example"
  }
}

Delete cost center

Delete a cost center you imported through Basware API, by its external code. It is removed from Basware API only: remove it in AP Automation too if it was used there.

Inputs

Cost centerexternal_codetextRequired
The cost center, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "statusApiLink": "example",
    "taskName": "example",
    "taskStatus": "example"
  }
}

Delete GL account

Delete a GL account you imported through Basware API, by its external code. It is removed from Basware API only: remove it in AP Automation too if it was used there.

Inputs

GL accountexternal_codetextRequired
The GL account, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "statusApiLink": "example",
    "taskName": "example",
    "taskStatus": "example"
  }
}

Delete vendor

Delete a vendor you imported through Basware API, by its external code. It is removed from Basware API only: remove it in AP Automation too if it was used there.

Inputs

Vendorexternal_codetextRequired
The vendor, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "statusApiLink": "example",
    "taskName": "example",
    "taskStatus": "example"
  }
}

Get cost center

Get a cost center you imported through Basware API, by its external code.

Inputs

Cost centerexternal_codetextRequired
The cost center, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "companies": [
      {
        "active": true,
        "companyCode": "example",
        "inherit": true,
        "inheritToChildUnits": true
      }
    ],
    "costCenterCode": "example",
    "costCenterNames": [
      {
        "language": "example",
        "translation": "example"
      }
    ],
    "externalCode": "example",
    "lastUpdated": "example"
  }
}

Get GL account

Get a general ledger account you imported through Basware API, by its external code.

Inputs

Accountexternal_codetextRequired
The account, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "accountCode": "example",
    "accountNames": [
      {
        "language": "example",
        "translation": "example"
      }
    ],
    "companies": [
      {
        "active": true,
        "companyCode": "example",
        "inherit": true,
        "inheritToChildUnits": true
      }
    ],
    "externalCode": "example",
    "lastUpdated": "example",
    "taxCode": "example"
  }
}

Get import status

Check whether one import reached Basware and each system it was sent to, using the request ID a create or update step returned.

Inputs

Request IDrequest_idtextRequired
The request ID a create or update step returned.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "requestStatus": [
      {
        "changedBy": "example",
        "entityType": "example",
        "lastUpdated": "example",
        "operationType": "example",
        "requestId": "example",
        "requestStatus": "example",
        "systems": [
          {
            "items": [
              {}
            ],
            "module": "example",
            "system": "example",
            "systemStatus": "example"
          }
        ]
      }
    ]
  }
}

Get invoice

Get an invoice's full details: its supplier, sums, dates, coding rows, lines and attachments.

Inputs

Invoiceinvoice_idtextRequired
The invoice, by its Basware invoice ID.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "attachments": [
      {
        "attachmentExternalCode": "example",
        "fileName": "example"
      }
    ],
    "codingRows": [
      {
        "accountCode": "example",
        "costCenterCode": "example",
        "netSum": 1,
        "taxCode": "example"
      }
    ],
    "companyCode": "example",
    "companyName": "example",
    "currencyCode": "example",
    "description": "example",
    "dueDate": "example",
    "grossSum": 1,
    "invoiceDate": "example",
    "invoiceId": "example",
    "invoiceImageURL": "example",
    "invoiceNumber": "example",
    "lastUpdated": "example",
    "netSum": 1,
    "orderNumbers": [
      "example"
    ],
    "p2pProcessingMode": "example",
    "paymentBlock": true,
    "paymentTermCode": "example",
    "processingStatus": "example",
    "referenceNumber": "example",
    "supplierCode": "example",
    "supplierName": "example",
    "voucherNumber1": "example"
  }
}

Get invoice status

Look up where a supplier's invoice is: in approval, ready for payment, paid or rejected. Basware turns this on for your account on request.

Inputs

Companycompany_codetextRequired
The company the invoice was sent to.
Invoice numberinvoice_numbertextRequired
The supplier's invoice number.
Invoice dateinvoice_datedateRequired
The invoice's date.
Total with taxgross_sumnumber
The invoice's total with tax, to tell apart invoices with the same number.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "statuses": [
      {
        "invoiceId": "example",
        "lastUpdated": "example",
        "processingStatus": "example",
        "status": "example"
      }
    ]
  }
}

Get purchase order

Get a purchase order sent from Basware Procurement, with its lines and goods receipts.

Inputs

Purchase orderorder_idtextRequired
The purchase order, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "companyCode": "example",
    "companyName": "example",
    "documentLink": "example",
    "extOrderNumber": "example",
    "externalCode": "example",
    "grossSum": 1,
    "lastUpdated": "example",
    "netSum": 1,
    "orderCreationTime": "example",
    "orderLines": [
      {}
    ],
    "orderNumber": "example",
    "orderStatus": "example",
    "orderType": "example",
    "processingStatus": "example",
    "purchaseCurrency": "example",
    "requisitionNumber": "example",
    "supplierCode": "example",
    "supplierName": "example"
  }
}

Get purchase requisition

Get a purchase requisition from Basware Procurement, with its lines.

Inputs

Purchase requisitionrequisition_idtextRequired
The purchase requisition, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "companyCode": "example",
    "companyName": "example",
    "documentLink": "example",
    "extRequisitionNumber": "example",
    "externalCode": "example",
    "grossSum": 1,
    "lastUpdated": "example",
    "lines": [
      {}
    ],
    "processingStatus": "example",
    "purchaseCurrency": "example",
    "purpose": "example",
    "requisitionCreationTime": "example",
    "requisitionNumber": "example",
    "requisitionStatus": "example"
  }
}

Get vendor

Get a vendor you imported through Basware API, by its external code.

Inputs

Vendorexternal_codetextRequired
The vendor, by the external code it was imported with.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "buvid": "example",
    "companies": [
      {
        "active": true,
        "companyCode": "example",
        "inherit": true,
        "inheritToChildUnits": true
      }
    ],
    "description": "example",
    "externalCode": "example",
    "lastUpdated": "example",
    "name": "example",
    "paymentTerms": {
      "paymentTermCode": "example"
    },
    "processingStatus": {
      "active": true,
      "paymentDenied": true
    },
    "sourceSystem": "example",
    "vendorCode": "example"
  }
}

List companies

List the companies (organization units) imported into Basware.

Inputs

Changed sinceupdated_sincedate and time
Only records changed after this time.
Results per pagepage_sizenumber
How many results to return, up to 500. Leave empty for 500.From 1 to 500.
Continuation tokencontinuation_tokentext
The next page's token, from the previous page's Continuation token. Leave empty for the first page.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "companies": [
      {
        "active": true,
        "companyCode": "example",
        "description": "example",
        "homeCurrency": "example",
        "lastUpdated": "example",
        "name": "example"
      }
    ],
    "continuationToken": "example"
  }
}

List import statuses

Find out whether vendors, accounts and other records you sent reached Basware, or why they failed. Leave the status empty for failures.

Inputs

Statusstatustext
Only imports with this outcome.One of: InProgress (In progress), Success (Succeeded), Error (Failed), AcknowledgedSuccess (Succeeded, acknowledged), AcknowledgedError (Failed, acknowledged).
Record typerecord_typetext
Only imports of this kind of record.One of: Account (GL account), Contract, CostCenter (Cost center), TaxCode (Tax code), ExchangeRate (Exchange rate), PaymentTerm (Payment term), User, Project, MatchingOrder (Matching order), MatchingOrderLine (Matching order line), and 7 more.
Changed sinceupdated_sincedate and time
Only records changed after this time.
Results per pagepage_sizenumber
How many results to return, up to 500. Leave empty for 500.From 1 to 500.
Continuation tokencontinuation_tokentext
The next page's token, from the previous page's Continuation token. Leave empty for the first page.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "continuationToken": "example",
    "requestStatus": [
      {
        "changedBy": "example",
        "entityType": "example",
        "lastUpdated": "example",
        "operationType": "example",
        "requestId": "example",
        "requestStatus": "example",
        "systems": [
          {
            "items": [
              {}
            ],
            "module": "example",
            "system": "example",
            "systemStatus": "example"
          }
        ]
      }
    ]
  }
}

List invoices

Find invoices ready for, or already sent to, your accounting system, by status, company and when they changed.

Inputs

Statusstatustext
Only invoices with this processing status. Choose Ready for transfer for approved invoices your ERP hasn't taken yet.One of: WaitingForPrebook (Waiting for prebook), PrebookInProgress (Prebook in progress), Prebooked, PrebookFailed (Prebook failed), WaitingForTransfer (Ready for transfer), TransferInProgress (Transfer in progress), Transferred, TransferFailed (Transfer failed), WaitingForPrebookCancelation (Waiting for prebook cancellation), PrebookCancelationInProgress (Prebook cancellation in progress), and 20 more.
Companycompany_codetext
Only records for this company.
Changed sinceupdated_sincedate and time
Only records changed after this time.
Processing modeprocessing_modetext
Approved invoices (standard), or invoices only enriched in Basware and approved in your ERP. Leave empty for approved ones.One of: Standard (Approved for payment (standard)), InvoiceEnrichment (Enriched only (approved elsewhere)).
Results per pagepage_sizenumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Continuation tokencontinuation_tokentext
The next page's token, from the previous page's Continuation token. Leave empty for the first page.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "accountingDocuments": [
      {
        "attachments": [
          {
            "attachmentExternalCode": "example",
            "fileName": "example"
          }
        ],
        "codingRows": [
          {
            "accountCode": "example",
            "costCenterCode": "example",
            "netSum": 1,
            "taxCode": "example"
          }
        ],
        "companyCode": "example",
        "companyName": "example",
        "currencyCode": "example",
        "description": "example",
        "dueDate": "example",
        "grossSum": 1,
        "invoiceDate": "example",
        "invoiceId": "example",
        "invoiceImageURL": "example",
        "invoiceNumber": "example",
        "lastUpdated": "example",
        "netSum": 1,
        "orderNumbers": [
          "example"
        ],
        "p2pProcessingMode": "example",
        "paymentBlock": true,
        "paymentTermCode": "example",
        "processingStatus": "example",
        "referenceNumber": "example",
        "supplierCode": "example",
        "supplierName": "example",
        "voucherNumber1": "example"
      }
    ],
    "continuationToken": "example"
  }
}

List purchase orders

Find purchase orders sent from Basware Procurement, such as new or changed ones your ERP hasn't picked up.

Inputs

Pick-up statusstatustext
Only orders your system has, or hasn't, picked up yet.One of: WaitingForExport (Not yet picked up), Exported (Picked up).
Companycompany_codetext
Only records for this company.
Changed sinceupdated_sincedate and time
Only records changed after this time.
Results per pagepage_sizenumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Continuation tokencontinuation_tokentext
The next page's token, from the previous page's Continuation token. Leave empty for the first page.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "continuationToken": "example",
    "exportedPurchaseOrders": [
      {
        "companyCode": "example",
        "companyName": "example",
        "documentLink": "example",
        "extOrderNumber": "example",
        "externalCode": "example",
        "grossSum": 1,
        "lastUpdated": "example",
        "netSum": 1,
        "orderCreationTime": "example",
        "orderLines": [
          {}
        ],
        "orderNumber": "example",
        "orderStatus": "example",
        "orderType": "example",
        "processingStatus": "example",
        "purchaseCurrency": "example",
        "requisitionNumber": "example",
        "supplierCode": "example",
        "supplierName": "example"
      }
    ]
  }
}

List purchase requisitions

Find purchase requisitions that were approved, rejected or canceled in Basware Procurement.

Inputs

Pick-up statusstatustext
Only requisitions your system has, or hasn't, picked up yet.One of: WaitingForExport (Not yet picked up), Exported (Picked up).
Companycompany_codetext
Only records for this company.
Changed sinceupdated_sincedate and time
Only records changed after this time.
Results per pagepage_sizenumber
How many results to return, up to 100. Leave empty for 100.From 1 to 100.
Continuation tokencontinuation_tokentext
The next page's token, from the previous page's Continuation token. Leave empty for the first page.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "continuationToken": "example",
    "exportedPurchaseRequisitions": [
      {
        "companyCode": "example",
        "companyName": "example",
        "documentLink": "example",
        "extRequisitionNumber": "example",
        "externalCode": "example",
        "grossSum": 1,
        "lastUpdated": "example",
        "lines": [
          {}
        ],
        "processingStatus": "example",
        "purchaseCurrency": "example",
        "purpose": "example",
        "requisitionCreationTime": "example",
        "requisitionNumber": "example",
        "requisitionStatus": "example"
      }
    ]
  }
}

Send payment response

Tell Basware an invoice has been paid, or partly paid. Payment fields you leave empty are cleared on the invoice.

Inputs

Invoiceinvoice_idtextRequired
The invoice, by its Basware invoice ID.
Response IDresponse_idtextRequired
Your own unique ID for this response, up to 36 characters, such as your ERP's document number. Each response to an invoice needs a new one.
Payment datepayment_datedate
When the invoice was paid. Leave empty for today.
Total paidpaid_totalnumber
The total paid so far. For partial payments, this grows with each payment.At least 0.
Payment methodpayment_methodtext
How it was paid, as your ERP names it.
Payment numberpayment_numbertext
The payment's number in your ERP.
Check numbercheck_numbertext
The check number, if paid by check.
Cash discountcash_discountnumber
The cash discount taken.At least 0.
Messagemessagetext
A note for the invoice's log in Basware.
Payment blockedpayment_blocktrue/false
Whether your ERP has blocked payment of the invoice.
Source systemsource_systemtext
The name of the system answering, such as your ERP's name.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "externalCode": "example",
    "paidTotal": 1,
    "paymentDate": "example",
    "success": true
  }
}

Send prebook response

Tell Basware whether your ERP prebooked an invoice, with its voucher number.

Inputs

Invoiceinvoice_idtextRequired
The invoice, by its Basware invoice ID.
Response IDresponse_idtextRequired
Your own unique ID for this response, up to 36 characters, such as your ERP's document number. Each response to an invoice needs a new one.
Prebookedsuccesstrue/falseRequired
Whether your ERP prebooked the invoice.
MessagemessagetextRequired
A note shown in Basware, such as why prebooking failed.
Voucher numbervoucher_numbertext
The voucher (posting) number your ERP gave the invoice.
Second voucher numbervoucher_number_2text
A second voucher number, if your ERP gives one.
Prebook dateprebook_datedate and time
When your ERP prebooked the invoice.
Payment blockedpayment_blocktrue/false
Whether your ERP has blocked payment of the invoice.
Source systemsource_systemtext
The name of the system answering, such as your ERP's name.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "externalCode": "example",
    "responseMessage": "example",
    "success": true
  }
}

Send transfer response

Tell Basware whether your ERP took an approved invoice, with its voucher number. Basware then marks it transferred, or shows why it failed.

Inputs

Invoiceinvoice_idtextRequired
The invoice, by its Basware invoice ID.
Response IDresponse_idtextRequired
Your own unique ID for this response, up to 36 characters, such as your ERP's document number. Each response to an invoice needs a new one.
Transferredsuccesstrue/falseRequired
Whether your ERP took the invoice.
MessagemessagetextRequired
A note shown in Basware, such as why the transfer failed.
Voucher numbervoucher_numbertext
The voucher (posting) number your ERP gave the invoice.
Second voucher numbervoucher_number_2text
A second voucher number, if your ERP gives one.
Transfer datetransfer_datedate and time
When your ERP took the invoice.
Payment blockedpayment_blocktrue/false
Whether your ERP has blocked payment of the invoice.
Source systemsource_systemtext
The name of the system answering, such as your ERP's name.

Outputs

dataobject
The response from Basware.
Example output
{
  "data": {
    "externalCode": "example",
    "responseMessage": "example",
    "success": true
  }
}

On this page