Quotes

Use the /quotes API endpoint to efficiently process and manage your B2B orders and billing capabilities, including quote creation, digital invoicing, and order management. With this endpoint, you can:

Unlike other FastSpring APIs, this API utilizes a POST request for creating resources, and a PUT request for updating them.

DefaultValue Attribute

Most attributes in the /quotes API have a default value assigned from the preexisting settings, products, and coupons in your FastSpring Store.

The DefaultValue is used in POST and PUT request bodies. Attributes with a store-defined default value will be marked in the Note section for the request attributes.

All attributes that have a DefaultValue associated with them are optional request values; these override default value settings. If you wish to use default values, do not include optional request values in the body.

Missing "Notes" Attribute

{
   ...
   "name": "A descriptive name.",
   "recipient": {...},
   ...
}

Set "Notes" Attribute to Null

{
   ...
   "name": "A descriptive name.",
   "notes": null, 
   "recipient": {...},
   ...
}

Override the Default Value

The example below demonstrates overriding the DefaultValue configured in your store for the notes attribute in a CreateQuote request.

{
   "name": "The Quote name",
   "notes": "This value will override the default notes store-level value.",
   "recipient": {...},
   ...
}

Override the Default Value to an Empty String

The example below demonstrates overriding your Store’s DefaultValue for the notes attribute to an empty string.

{
   "name": "The Quote name",
   "notes": "",
   "recipient": {...},
   ...
}