Skip to main content
POST
/
api
/
rest
/
bulk-carrier-invoices
Create Many Carrier Invoices
curl --request POST \
  --url https://api.upwell.com/api/rest/bulk-carrier-invoices \
  --header 'Content-Type: application/json' \
  --data '
{
  "inputs": [
    {
      "additionalReferenceNumbers": "<unknown>",
      "assignedAt": "2023-11-07T05:31:56Z",
      "assignedBy": {},
      "assignedById": "<string>",
      "assignedTo": {},
      "assignedToId": "<string>",
      "balance": 123,
      "billId": "<string>",
      "billOfLadingNumber": "<string>",
      "carrierBillingAddress": {},
      "carrierBillingAddressId": "<string>",
      "carrierId": "<string>",
      "carrierName": "<string>",
      "carrierProNumber": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdFromEmailMessageId": "<string>",
      "currency": "AED",
      "customerInvoiceId": "<string>",
      "customerPoNumber": "<string>",
      "customerReferenceNumber": "<string>",
      "documentsModifiedAt": "<unknown>",
      "documentsTypeOrCustomerVisibilityUpdatedAt": "<unknown>",
      "dueDate": "2023-12-25",
      "emailMessageAssociations": {},
      "factor": {},
      "factorAddress": {},
      "factorAddressId": "<string>",
      "factorId": "<string>",
      "fileAssociations": {},
      "id": "<string>",
      "invoiceNumber": "<string>",
      "issueDate": "2023-12-25",
      "loadNumber": "<string>",
      "mergedFrom": {},
      "mergedIntoCarrierInvoiceId": "<string>",
      "mergedTo": {},
      "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"
    }
  ]
}
'
{
  "createCarrierInvoices": {
    "returning": [
      {
        "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

Body

application/json

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

inputs
CarrierInvoicesInsertInput Ā· object[]

Response

200 - application/json

Responses for POST /api/rest/bulk-carrier-invoices

createCarrierInvoices
CarrierInvoicesMutationResponse Ā· object

response of any mutation on the table "carrier_invoices"