website logo
Product Overview
NetSuite
Payments
QuickBooks
Xero
Navigate through spaces
⌘K
Guided Wizard
Guided Wizard Settings
Bill Configuration
Custom Guided Wizard
Button URL Structure
Button URL Generator
Support
Global API
API Overview
Request
Response
Code Examples
Technical Resources
Breadwinner Setup
Requirements
ERD / Object Structure
Getting Help
Version History
Docs powered by archbee 

Update

1min

The following is an example of update Credit Memo. The QuickBooks Credit Memo Id (id) is required to update the Credit Memo(See Credit Memo for the available fields)

The request body must include all writable fields of the Credit Memo object. Writable fields omitted from the request body are set to NULL.

Request
Response
|
{
  action=updateCreditMemo,
  responseJSON={
    "statusCode": 200,
    "creditMemos": [
      {
        "TxnTaxDetail": {
          "TotalTax": 0
        },
        "TxnDate": "2021-12-31",
        "TotalAmt": 100.00,
        "SyncToken": "2",
        "sparse": false,
        "ShipAddr": {
          "PostalCode": "94482",
          "Longitude": "-122.0642815",
          "Line1": "370 Easy St.",
          "Lat": "37.4031672",
          "Id": "9",
          "CountrySubDivisionCode": "CA",
          "City": "Middlefield"
        },
        "SFRecordID": "a0A5j000000vDppEAE",
        "salesforceRecordId": "a0A5j000000vDppEAE",
        "RemainingCredit": 100.00,
        "MetaData": {
          "LastUpdatedTime": "2021-12-31T02:46:20-08:00",
          "CreateTime": "2021-12-31T02:35:26-08:00"
        },
        "Line": [
          {
            "SalesItemLineDetail": {
              "UnitPrice": 50,
              "TaxCodeRef": {
                "value": "TAX"
              },
              "Qty": 2,
              "ItemRef": {
                "value": "1",
                "name": "Services"
              }
            },
            "LineNum": 1,
            "Id": "3",
            "DetailType": "SalesItemLineDetail",
            "Description": "Description Updated",
            "Amount": 100.00
          },
          {
            "DetailType": "SubTotalLineDetail",
            "Amount": 100.00
          }
        ],
        "Id": "187",
        "EmailStatus": "NotSet",
        "DocNumber": "1201",
        "CustomField": [
          {
            "Type": "StringType",
            "Name": "Crew #",
            "DefinitionId": "1"
          },
          {
            "Type": "StringType",
            "Name": "Test 2",
            "DefinitionId": "2"
          },
          {
            "Type": "StringType",
            "DefinitionId": "3"
          }
        ],
        "CustomerRef": {
          "value": "9",
          "name": "55 Twin Lane"
        },
        "CurrencyRef": {
          "value": "USD",
          "name": "United States Dollar"
        },
        "BillAddr": {
          "PostalCode": "94482",
          "Longitude": "-122.0642815",
          "Line1": "370 Easy St.",
          "Lat": "37.4031672",
          "Id": "9",
          "CountrySubDivisionCode": "CA",
          "City": "Middlefield"
        },
        "Balance": 100.00
      }
    ]
  },
  timestamp=1640947582773,
  validRequest=true,
  version=1.0
}




Updated 02 Jun 2023
Did this page help you?
Yes
No
PREVIOUS
Create
NEXT
Payment
Docs powered by archbee