Skip to Content
Paycose Docs
Shipping rates

Shipping rates

The shipping_rate object

A shipping rate is a fixed shipping charge, with an optional delivery estimate, that you add to invoices and quotes.

Attributes

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • display_namestringRequired

    Name of the rate, for example Standard delivery.

  • typestringRequired

    How the shipping charge is set. Always fixed_amount.

    • fixed_amount

      The rate charges a fixed amount.

  • activebooleanRequired

    Whether the rate can be used. An inactive rate is refused on new invoices and quotes.

  • currencystringRequired

    Three-letter ISO 4217 code of amount, in lowercase. The rate can only be used on documents in this currency.

  • amountintegerRequired

    Shipping charge in the smallest currency unit (for example, 5000 is 50.00 THB). 0 for free shipping.

  • tax_behaviorstring

    Whether amount includes tax: inclusive, exclusive or unspecified. It is passed to payment providers that calculate tax. Omitted when not set.

    • inclusive

      amount already includes tax.

    • exclusive

      Tax is added on top of amount.

    • unspecified

      No tax behavior is set for the rate.

  • tax_codestring

    Tax code of the shipping charge, passed to payment providers that support tax codes. Omitted when not set.

  • delivery_estimateobject

    Estimated delivery time, with optional minimum and maximum bounds, each a unit (hour, day, business_day, week or month) and a value. Omitted when not set.

  • metadataobjectRequired

    Key-value pairs you attach to the object for your own use. Paycose never reads or changes them.