Xero · Example Payload

Xero Getinvoiceattachments Example

AccountingBank FeedsFinanceFinancial ServicesInvoicingPayrollSmall Business

Xero Getinvoiceattachments Example is an example object payload from Xero, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "getInvoiceAttachments",
  "method": "GET",
  "path": "/Invoices/{InvoiceID}/Attachments",
  "summary": "Xero Retrieves attachments for a specific invoice or purchase bill",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "example": {
        "Id": "7e357a45-69f5-4e8f-8d7b-15da8ef50aab",
        "Status": "OK",
        "ProviderName": "Provider Name Example",
        "DateTimeUTC": "/Date(1552330258523)/",
        "Attachments": [
          {
            "AttachmentID": "9808ad7f-c8d4-41cf-995e-bc29cb76fd2c",
            "FileName": "foobar.jpg",
            "Url": "https://api.xero.com/api.xro/2.0/Invoices/4074292c-09b3-456d-84e7-add864c6c39b/Attachments/foobar.jpg",
            "MimeType": "image/jpg",
            "ContentLength": 2878711
          },
          {
            "AttachmentID": "5a500c1a-5a02-48de-939e-1d234fd170d4",
            "FileName": "sample5.jpg",
            "Url": "https://api.xero.com/api.xro/2.0/Invoices/4074292c-09b3-456d-84e7-add864c6c39b/Attachments/sample5.jpg",
            "MimeType": "image/jpg",
            "ContentLength": 2878711
          }
        ]
      }
    }
  ]
}