Skip to main content

CSV Import

POST 

https://api.goodsdelivery.io/v1/csv/import

Authorization: x-api-key

name: x-api-keytype: apiKeyscopes: brandin: header

Use this endpoint to bulk create deliveries or returns from CSV. Required a CSV file with headers:

jobType,serviceType,brandId,externalId,packagesTotalValueUsd,addons,note,scheduledDate,customerFirstName,customerLastName,customerPhone,customerEmail,pickUpName,pickUpAddress1,pickUpAddress2,pickUpCity,pickUpZipCode,pickUpState,pickUpCountry,pickUpNote,dropOffName,dropOffAddress1,dropOffAddress2,dropOffCity,dropOffZipCode,dropOffState,dropOffCountry,dropOffNote

Some headers are optional - the same as rules as in CreateDelivery/CreateReturn endpoints apply.

Request

Body

required
  • string

Responses

Response with created IDs and list of errors

Schema
    rows object[]required
  • Array [
  • success booleanrequired
    rowNumber integerrequired
    createdId string
    createdShortId string
    errors string[]
  • ]
curl -L -X POST 'https://api.goodsdelivery.io/v1/csv/import' \
-H 'Content-Type: text/csv' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>' \
--data-raw ''
Request Collapse all
Base URL
https://api.goodsdelivery.io/v1
Auth
Body required
ResponseClear

Click the Send API Request button above and see the response here!