GET
/
credit-notes
curl --request GET \
  --url https://eu.sequencehq.com/api/credit-notes \
  --header 'Authorization: <authorization>'
{
  "items": [
    {
      "billingPeriodEnd": "2022-10-30T00:00:00Z",
      "billingPeriodStart": "2022-10-01T00:00:00Z",
      "billingScheduleId": "fe2fcd0b-4c53-45c7-b2ae-b6c1a7d21e95",
      "creditNoteNumber": "CN00001",
      "currency": "GBP",
      "customerBillingAddress": {
        "country": "YE",
        "line1": "Flat 1",
        "line2": "15 Yemen Road",
        "postcode": "YE1 2YE",
        "state": "CA",
        "town": "Yemen"
      },
      "customerEmails": [
        "customer@example.com"
      ],
      "customerId": "61b083e0-1faa-47ca-9aeb-6205da8f6c47",
      "customerLegalCompanyName": "Facebook",
      "customerShippingAddress": {
        "country": "US",
        "line1": "742 Evergreen Terrace",
        "postcode": "12345",
        "state": "CA",
        "town": "Springfield"
      },
      "customerTaxId": "TAX123",
      "grossTotal": "101.23",
      "id": "af60cab3-812d-4250-a051-0fb7133a00c7",
      "invoiceId": "af60cab3-812d-4250-a051-0fb7133a00c7",
      "invoiceNumber": "INV00001",
      "issueDate": "2022-09-15",
      "linkedServices": [
        {
          "externalId": "123",
          "externalService": "Xero",
          "syncTime": "2022-06-28T16:47:00Z"
        }
      ],
      "memo": "Thanks",
      "merchantDetails": {
        "address": {
          "country": "US",
          "line1": "The White House",
          "line2": "1600 Pennsylvania Avenue",
          "postcode": "20500",
          "state": "CA",
          "town": "Washington, D.C."
        },
        "customFields": [
          {
            "key": "example-label",
            "value": "label-value"
          }
        ],
        "email": "donald@example.com",
        "includeBeneficiaryAddressInPaymentDetails": false,
        "legalCompanyName": "The Merchant",
        "logoUrl": "logo",
        "phoneNumber": "0800001066",
        "primaryColour": "#000000",
        "taxId": "TAX60"
      },
      "metadata": [
        {
          "key": "example-label",
          "value": "label-value"
        }
      ],
      "netTotal": "51.20",
      "purchaseOrderNumber": "PO123",
      "sequenceAccountId": "68233908-402a-43b4-8952-1c2ab0ef0b25",
      "status": "DRAFT",
      "totalTax": "2.50"
    }
  ],
  "pagination": {
    "after": "ZTMwOWU5NDgtMDg4ZS00ZDc3LWI2NTQtY2Q4NTQ5OGYxNTU1IzE2NTgyNjA4NTYwMzMwMTMjREVTQw==",
    "before": "NjRlZjJmZjktMmJjYi00M2RiLWI0ZDUtOTAxMDU4MjRiMTdmIzE2NTgyNjA3NTk3NTE2ODEjQVND",
    "totalResultSize": 100
  }
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Query Parameters

before
string

Pagination cursor. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.after or pagination.before to retrieve each page.

after
string

Pagination cursor. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.after or pagination.before to retrieve each page.

limit
integer

Maximum number of objects to return per-page.

sortOrder
string

Sort order. Default: DESC (descending, most often used for reverse chronological sorting).

sortBy
string

Sort column. Default: creation time.

Response

200 - application/json
items
object[]
required

CreditNotes

pagination
object
required