Create a shipping rate
/shipping_ratesHeaders
AuthorizationstringRequiredidempotency-keystringA unique key, such as a UUID, that makes a POST safe to retry. Pay.com keeps each key for 24 hours, separately for each workspace. A retry with the same key, endpoint and body gets the first response. Another endpoint or body gets 400 idempotency_error, and a retry while the first is running gets 409.
Parameters
display_namestringRequiredamountintegerRequiredcurrencystringRequiredThree-letter ISO currency code, in lowercase.
countriesarray of stringsRequiredWhere the rate applies (ISO 3166-1 alpha-2).
free_over_amountinteger or nullThe order subtotal from which the rate is free.
delivery_estimateobjectShow 2 child parametersHide child parameters
minimumobjectShow 2 child parametersHide child parameters
unitstringvalueintegermaximumobjectShow 2 child parametersHide child parameters
unitstringvalueintegertax_behaviorstringexclusive adds tax to the amount, and inclusive includes it.
tax_codestringactivebooleanmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
Returns
The shipping rate.
idstringresourcestringdisplay_namestringamountintegercurrencystringThree-letter ISO currency code, in lowercase.
countriesarray of stringsfree_over_amountinteger or nulldelivery_estimateobjectShow 2 child attributesHide child attributes
minimumobjectShow 2 child attributesHide child attributes
unitstringvalueintegermaximumobjectShow 2 child attributesHide child attributes
unitstringvalueintegerShow 6 more attributesShow fewer attributes
tax_behaviorstringexclusive adds tax to the amount, and inclusive includes it.
tax_codestring or nullactivebooleanmetadataobjectYour key-value pairs. Up to 50 keys of 40 characters, with string values of up to 500 characters.
createdstringtest_modebooleanErrors
400401403409