Package

Use this BillingServ API endpoint to update package. Review the response for the operation result or validation errors.

post/package/update

Request

Request body multipart/form-data

idinteger required
group_idinteger required
namestring required
descriptionstring
taxnumber
urlstring
prorate'Y' | 'N'
trialstring
optionsstring[]
keepstring[]
filesstring[]

Optional digital download files. Submit each file using the files[] multipart field. Accepted types: JPEG, PNG, JPG, GIF, SVG, PDF, DOC, DOCX, and ZIP. Maximum size: 20 MB per file.

product_imagesstring[]

Optional product images. Submit each image using the product_images[] multipart field. Accepted types: JPEG, PNG, JPG, GIF, and SVG. Maximum size: 2 MB per image.

cycle.cyclestring[]
cycle.pricestring[]
cycle.setupstring[]
featured'0' | '1'
upgrade_pathsstring[]
cycle.idstring[]

Required to change cycles: pass an existing cycle id to update that cycle, or null to add a new one. Existing cycles whose id is not listed are deleted. Omit all cycle fields to leave cycles unchanged.

upgrade_paths.*.target_package_idinteger

Target package id for upgrade path

upgrade_paths.*.sort_orderstring[]

Optional upgrade path sort order

theme1 | 2

Order page theme: 1 = ecommerce view, 2 = simple. Defaults to 2 on create.

qtyinteger

Stock quantity

is_outofstock'0' | '1'

Whether the package is marked out of stock

Response

OK

successboolean

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • breaking

      the request property type changed from string to array, and format from binary to no format

    • breaking

      the request property type changed from string to array, and format from binary to no format