Skip to content

Latest commit

 

History

History
48 lines (43 loc) · 2.71 KB

accountingsuppliersupdateresponse.md

File metadata and controls

48 lines (43 loc) · 2.71 KB

AccountingSuppliersUpdateResponse

Example Usage

import { AccountingSuppliersUpdateResponse } from "@apideck/unify/models/operations";

let value: AccountingSuppliersUpdateResponse = {
  httpMeta: {
    response: new Response("{\"message\": \"hello world\"}", {
      headers: { "Content-Type": "application/json" },
    }),
    request: new Request("https://example.com"),
  },
  updateSupplierResponse: {
    statusCode: 200,
    status: "OK",
    service: "xero",
    resource: "suppliers",
    operation: "update",
    data: {
      id: "12345",
    },
  },
  unexpectedErrorResponse: {
    statusCode: 400,
    error: "Bad Request",
    typeName: "RequestHeadersValidationError",
    message: "Invalid Params",
    detail: {
      "missing": [
        {
          "x-apideck-consumer-id": "required",
        },
      ],
    },
    ref: "https://developers.apideck.com/errors#unauthorizederror",
  },
};

Fields

Field Type Required Description
httpMeta components.HTTPMetadata ✔️ N/A
updateSupplierResponse components.UpdateSupplierResponse Supplier updated
unexpectedErrorResponse components.UnexpectedErrorResponse Unexpected error