PUT
/
credit-notes
/
{id}
Header
Path
Body
curl --request PUT \
  --url https://eu.sequencehq.com/api/credit-notes/{id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json'
{
  "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"
  },
  "customerEmail": "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",
    "iban": "GB33BUKB20201555555555",
    "legalCompanyName": "The Merchant",
    "logoUrl": "logo",
    "phoneNumber": "0800001066",
    "primaryColour": "#000000",
    "taxId": "TAX60",
    "ukAccountDetails": {
      "accountNumber": "12345678",
      "sortCode": "000000"
    },
    "usAchDetails": {
      "accountName": "John Doe",
      "accountNumber": "12345678",
      "bankName": "Chase",
      "bankRoutingNumber": "123456789"
    },
    "usWireDetails": {
      "accountName": "John Doe",
      "accountNumber": "12345678",
      "bankAddress": {
        "country": "US",
        "line1": "JP Morgan Chase",
        "postCode": "10017",
        "state": "NY",
        "town": "New York City"
      },
      "bankName": "Chase",
      "bankRoutingNumber": "123456789",
      "swiftCode": "CHASUS33"
    }
  },
  "metadata": [
    {
      "key": "example-label",
      "value": "label-value"
    }
  ],
  "netTotal": "51.20",
  "purchaseOrderNumber": "PO123",
  "sequenceAccountId": "68233908-402a-43b4-8952-1c2ab0ef0b25",
  "status": "DRAFT",
  "totalTax": "2.50"
}

Headers

Authorizationrequired
string

Your API credentials. Eg. Basic {credentials}.

Idempotency-Key
string

Specifying a unique ID for this request here lets you retry it without risk of performing the same operation twice.

Path Parameters

idrequired
string

Credit Note ID

Body

application/json
billingPeriodEnd
string
billingPeriodStart
string
customerBillingAddress
object
customerEmail
string
customerLegalCompanyName
string
customerShippingAddress
object
customerTaxId
string
memo
string
metadata
object[]
purchaseOrderNumber
string

Response

200 - application/json
billingPeriodEnd
string
billingPeriodStart
string
billingScheduleId
string
creditNoteNumber
string
currencyrequired
enum<string>
Available options:
GBP,
EUR,
USD,
CAD,
ZAR,
ARS,
UYU,
COP,
MXN,
AUD
customerBillingAddressrequired
object
customerEmailrequired
string
customerIdrequired
string
customerLegalCompanyNamerequired
string
customerShippingAddressrequired
object
customerTaxId
string
grossTotalrequired
string
idrequired
string
invoiceId
string
invoiceNumber
string
issueDate
string
linkedServicesrequired
object[]
memo
string
merchantDetails
object
metadatarequired
object[]
netTotalrequired
string
purchaseOrderNumber
string
sequenceAccountIdrequired
string
statusrequired
enum<string>
Available options:
DRAFT,
FINAL,
SENT,
VOIDED
totalTaxrequired
string