Create Custom Package
post
https://api.flxpoint.com/packages/customUse this when you want to create package data through the API.
๐ X-API-TOKENโฑ 2 req/sToken: Account ยท Source ยท Channel
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
Use this endpoint to create a new custom package. If a custom package with this name already exists, a 409 - Conflict Response will be returned.
Request
Body
application/jsonnamestringrequiredlengthnumberrequiredwidthnumberrequiredheightnumberrequireddimensionUnitstringrequiredallowed
incmweightnumberrequiredweightUnitstringrequiredallowed
lbozgkgExample request
post
/packages/customcurl -X POST "https://api.flxpoint.com/packages/custom" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"length": 0,
"width": 0,
"height": 0,
"dimensionUnit": "in",
"weight": 0,
"weightUnit": "lb"
}'Example body ยท application/json
{
"name": "string",
"length": 0,
"width": 0,
"height": 0,
"dimensionUnit": "in",
"weight": 0,
"weightUnit": "lb"
}Responses
201Createdapplication/json
idintegerA unique, numerical identifier for the package.
namestringYour name for the package.
lengthnumberThe length dimension of the package.
widthnumberThe width dimension of the package.
heightnumberThe height dimension of the package.
dimensionUnitobjecthandlestringallowed
inchcentimeterabbreviatedHandlestringallowed
incmweightnumberThe weight of the package itself (excluding any contents).
weightUnitobjecthandlestringallowed
poundouncegramkilogramabbreviatedHandlestringallowed
lbozgkgcreatedAtstring (date-time)The time that the package was created by an account user.
createdByUserEmailstringThe email address of the user who created the package.
updatedAtstring (date-time)The last time the package details were modified (will be null if never changed).
Example response
{
"id": 0,
"name": "string",
"length": 0,
"width": 0,
"height": 0,
"dimensionUnit": {
"handle": "inch",
"abbreviatedHandle": "in"
},
"weight": 0,
"weightUnit": {
"handle": "pound",
"abbreviatedHandle": "lb"
},
"createdAt": "2026-04-20T00:00:00Z",
"createdByUserEmail": "string",
"updatedAt": "2026-04-20T00:00:00Z"
}400Bad Request
No schema documented for this status.
401Unauthorized
No schema documented for this status.
409Conflict
No schema documented for this status.
OpenAPI fragment
{
"post": {
"summary": "Create Custom Package",
"description": "Use this endpoint to create a new custom package. If a custom package with this name already exists, a 409 - Conflict Response will be returned.",
"parameters": [],
"requestBody": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SaveCustomPackageRequest"
},
"examples": {
"Example 1": {
"value": {
"name": "Standard Shipping",
"length": 8.6,
"width": 5.4,
"height": 1.6,
"dimensionUnit": "in",
"weight": 0.1,
"weightUnit": "lb"
}
}
}
}
}
},
"responses": {
"201": {
"description": "Created",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CustomPackage"
},
"examples": {
"Example 1": {
"value": {
"id": 1,
"name": "Standard Shipping",
"length": 8.6,
"width": 5.4,
"height": 1.6,
"dimensionUnit": {
"handle": "inch",
"abbreviatedHandle": "in"
},
"weight": 0.1,
"weightUnit": {
"handle": "pound",
"abbreviatedHandle": "lb"
},
"createdAt": "2019-08-24T14:15:22Z",
"createdByUserEmail": "user123@mycompany.com",
"updatedAt": null
}
}
}
}
}
},
"400": {
"description": "Bad Request"
},
"401": {
"description": "Unauthorized"
},
"409": {
"description": "Conflict"
}
}
}
}Ready to run it? Send the curl from your terminal or Postman, or use the interactive tester in Stoplight.Open in Stoplight