Skip to main content
PUT
/
api
/
rest
/
carrier_invoices
/
{id}
Update One Carrier Invoice
curl --request PUT \
  --url https://api.upwell.com/api/rest/carrier_invoices/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "input": {
    "additionalReferenceNumbers": "<unknown>",
    "assignedAt": "2023-11-07T05:31:56Z",
    "assignedById": "<string>",
    "assignedToId": "<string>",
    "balance": 123,
    "billId": "<string>",
    "billOfLadingNumber": "<string>",
    "carrierBillingAddressId": "<string>",
    "carrierId": "<string>",
    "carrierName": "<string>",
    "carrierProNumber": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdFromEmailMessageId": "<string>",
    "currency": "AED",
    "customerInvoiceId": "<string>",
    "customerPoNumber": "<string>",
    "customerReferenceNumber": "<string>",
    "deletedAt": "2023-11-07T05:31:56Z",
    "documentsModifiedAt": "<unknown>",
    "documentsTypeOrCustomerVisibilityUpdatedAt": "<unknown>",
    "dueDate": "2023-12-25",
    "factorAddressId": "<string>",
    "factorId": "<string>",
    "id": "<string>",
    "invoiceNumber": "<string>",
    "issueDate": "2023-12-25",
    "loadNumber": "<string>",
    "mergedIntoCarrierInvoiceId": "<string>",
    "metadata": "<unknown>",
    "receivedAt": "2023-11-07T05:31:56Z",
    "referenceNumbers": "<unknown>",
    "shipmentId": "<string>",
    "sourceSystemMeta": "<unknown>",
    "status": "APPROVED",
    "tenantId": "<string>",
    "tmsDocumentsUploadStatus": "FAILURE",
    "totalAmount": 123,
    "totalTaxAmount": 123,
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}
'
{
  "updateCarrierInvoice": {
    "balance": 123,
    "billId": "<string>",
    "carrierId": "<string>",
    "carrierInvoiceLineItems": [
      {
        "description": "<string>",
        "id": "<string>",
        "item": "<string>",
        "lineNumber": "<string>",
        "quantity": "<unknown>",
        "totalAmount": 123,
        "unitPrice": 123
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "currency": "AED",
    "dueDate": "2023-12-25",
    "exceptions": "<string>",
    "id": "<string>",
    "invoiceNumber": "<string>",
    "issueDate": "2023-12-25",
    "loadNumber": "<string>",
    "metadata": "<unknown>",
    "receivedAt": "2023-11-07T05:31:56Z",
    "referenceNumbers": "<unknown>",
    "shipmentId": "<string>",
    "status": "APPROVED",
    "totalAmount": 123,
    "totalTaxAmount": 123,
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Headers

authorization
string

Your API key will be used for authentication of the request. Authorization: YOUR_API_KEY

Path Parameters

id
string
required

"id" is required (enter it either in parameters or request body)

Body

application/json

Query parameters can also be provided in the request body as a JSON object

id
string
input
CarrierInvoicesSetInput Ā· object

input type for updating data in table "carrier_invoices"

Response

200 - application/json

Responses for PUT /api/rest/carrier_invoices/{id}

updateCarrierInvoice
CarrierInvoices Ā· object

Invoices (payables) received from carriers (e.g. via email)