VU CUSTOM
Developer Docs
Developer Docs
  • VU OS Admin API Overview
  • Account Management
    • Overview
    • Create a sold_to_account
    • Create a ship_to_account
    • Batch update sold_to_account
    • Batch update ship_to_account
    • Get a list of sold_to_accounts
    • Get a list of ship_to_accounts
    • Delete a sold_to_account
    • Delete a ship_to_account
  • Orders
    • Overview
    • Create an order
    • Get an order
    • Get a list of orders
    • Update an order
    • Delete an order
    • Add tags to an order
    • Add tags to many orders
    • Delete tags from an order
    • Delete tags from many orders
  • Products
    • Overview
    • Create a product
    • Get a list of products
    • Get a specific product
    • Delete a product
  • Recipes
    • Overview
    • Retrieving Recipes
  • Fulfillments
    • Overview
    • Create a fulfillment
    • Retrieve a fulfillment
    • Retrieve a list of fulfillments
  • Order Lines
    • Overview
    • Add tags to an order line
    • Retrieve a list of orderlines
    • Retrieve a specific order line
    • Delete tags from an order line
    • Update a specific order line
  • Integration
    • Integrate the Customizer with Your Frontend
    • Understanding Recipe IDs in VU Custom
    • Styling the Customizer
    • Test the Customizer
    • Webhooks
Powered by GitBook
On this page
  1. Fulfillments

Create a fulfillment

Method : POST

https://admin.vucustom.com/api/:api_version/fulfillments
Example Request
curl --location 'https://admin.vucustom.com/api/v1/fulfillments' \
--data '{
  "fulfillment": {
    "tracking_number": "12345",
    "carrier_code": "FED",
    "carrier_name": "Fedex",
    "service_code": "NDA",
    "service_name": "Next day air",
		"weight": 1.5,
    "recipient": {
      "city": "Test",
      "country": "US",
      "address_1": "test str 1",
      "state_region": "DE",
      "phone": "123",
      "name": "Test Test",
     "postal_code": "123"
    },
    "order_lines": [
      {
        "id": "391",
       "line_reference": "12345",
        "quantity": 3
      }
    ],
    "dimensions": {
      "length": 3,
      "height": 3.5,
      "width": 3
    }
  }
}'

Request Body Schema (Fulfillment )

Field Name
Type
Required
Description

tracking_number

string

Yes

Shipment tracking number

carrier_code

string

Yes

Carrier identifier code

carrier_name

string

Yes

Carrier name

service_code

string

Yes

Service level code

service_name

string

Yes

Service level name

weight

string

Yes

Package weight

recipient

object

Yes

Delivery recipient details. refer to the schema below for details.

order_lines

array

Yes

This is an array of objects. Each object is order line item. refer to the schema below for more details.

dimensions

object

Yes

Package dimensions object. refer to the schema below for more information.

Recipient Schema

Field Name
Type
Required
Description

city

string

Yes

Recipient city

country_code

string

Yes

Recipient country code

address_1

string

Yes

Primary address

state_region

string

Yes

State/region code

phone

string

Yes

Contact phone

name

string

Yes

Recipient name

postal_code

string

Yes

Postal code

Orderline schema

Field Name
Type
Required
Description

id

String

Yes

Order line ID

line_reference

String

Yes

Line reference

quantity

Integer

Yes

Quantity being fulfilled

Dimensions Schema

Field Name
Type
Required
Description

length

Integer

No

Package length

height

Integer

No

Package height

width

Integer

No

Package width

200 Successful response example

{
  "fulfillment": {
    "tracking_number": "12345",
    "carrier_code": "FED",
    "carrier_name": "Fedex",
    "service_code": "NDA",
    "service_name": "Next day air",
    "weight": 1.5,
    "recipient": {
      "city": "Test",
      "country": "US",
      "address_1": "test str 1",
      "state_region": "DE",
      "phone": "123",
      "name": "Test Test",
      "postal_code": "123"
    },
    "order_lines": [
      {
        "id": "391",
        "line_reference": "12345",
        "quantity": 3
      }
    ],
    "dimensions": {
      "length": 3,
      "height": 3.5,
      "width": 3
    }
  }
}

401 Unauthorized

The client doesn’t have correct authentication credentials.

{
"errors": "[API] Invalid API key or secret (unrecognized login or wrong password)"
}

422 Unprocessable Entity

5xx Errors

An internal error occurred in VU Admin.

PreviousOverviewNextRetrieve a fulfillment

Last updated 6 months ago