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
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
display_namestringRequiredName of the rate, for example
Standard delivery.typestringRequiredHow the shipping charge is set. Always
fixed_amount.fixed_amountThe rate charges a fixed
amount.
activebooleanRequiredWhether the rate can be used. An inactive rate is refused on new invoices and quotes.
currencystringRequiredThree-letter ISO 4217 code of
amount, in lowercase. The rate can only be used on documents in this currency.amountintegerRequiredShipping charge in the smallest currency unit (for example,
5000is 50.00 THB).0for free shipping.tax_behaviorstringWhether
amountincludes tax:inclusive,exclusiveorunspecified. It is passed to payment providers that calculate tax. Omitted when not set.inclusiveamountalready includes tax.exclusiveTax is added on top of
amount.unspecifiedNo tax behavior is set for the rate.
tax_codestringTax code of the shipping charge, passed to payment providers that support tax codes. Omitted when not set.
delivery_estimateobjectEstimated delivery time, with optional
minimumandmaximumbounds, each aunit(hour,day,business_day,weekormonth) and avalue. Omitted when not set.metadataobjectRequiredKey-value pairs you attach to the object for your own use. Paycose never reads or changes them.