# Create a new shipping/delivery profile (V2) Creates a new shipping or delivery profile for subscription orders using the V2 request format. This version provides enhanced configuration options for delivery methods, zones, and pricing. Enhancements in V2: - Improved zone configuration - Better support for multiple delivery methods - Enhanced rate definition capabilities - Support for conditional delivery rates Key Features: - Define custom shipping rates per zone - Configure local delivery options - Set up local pickup methods - Manage shipping zones and countries - Assign profiles to specific products or variants Authentication: Requires valid X-API-Key header Endpoint: POST /api/external/v2/delivery-profiles/v2/create-shipping-profile Version: 0.0.1 ## Query parameters: - `api_key` (string) API Key (Deprecated - Use Header X-API-Key instead) ## Header parameters: - `X-API-Key` (string) ## Request fields (application/json): - `name` (string) - `locationInfos` (array) - `locationInfos.locationId` (string) - `locationInfos.countryInfos` (array) - `locationInfos.countryInfos.shouldIncludeAllProvince` (boolean) - `locationInfos.countryInfos.code` (string) - `locationInfos.countryInfos.deliveryMethodInfo` (array) - `locationInfos.countryInfos.deliveryMethodInfo.amount` (number) - `locationInfos.countryInfos.deliveryMethodInfo.currencyCode` (string) Enum: "USD", "EUR", "GBP", "CAD", "AFN", "ALL", "DZD", "AOA", "ARS", "AMD", "AWG", "AUD", "BBD", "AZN", "BDT", "BSD", "BHD", "BIF", "BYN", "BZD", "BMD", "BTN", "BAM", "BRL", "BOB", "BWP", "BND", "BGN", "MMK", "KHR", "CVE", "KYD", "XAF", "CLP", "CNY", "COP", "KMF", "CDF", "CRC", "HRK", "CZK", "DKK", "DJF", "DOP", "XCD", "EGP", "ERN", "ETB", "FKP", "XPF", "FJD", "GIP", "GMD", "GHS", "GTQ", "GYD", "GEL", "GNF", "HTG", "HNL", "HKD", "HUF", "ISK", "INR", "IDR", "ILS", "IRR", "IQD", "JMD", "JPY", "JEP", "JOD", "KZT", "KES", "KID", "KWD", "KGS", "LAK", "LVL", "LBP", "LSL", "LRD", "LYD", "LTL", "MGA", "MKD", "MOP", "MWK", "MVR", "MRU", "MXN", "MYR", "MUR", "MDL", "MAD", "MNT", "MZN", "NAD", "NPR", "ANG", "NZD", "NIO", "NGN", "NOK", "OMR", "PAB", "PKR", "PGK", "PYG", "PEN", "PHP", "PLN", "QAR", "RON", "RUB", "RWF", "WST", "SHP", "SAR", "RSD", "SCR", "SLL", "SGD", "SDG", "SOS", "SYP", "ZAR", "KRW", "SSP", "SBD", "LKR", "SRD", "SZL", "SEK", "CHF", "TWD", "THB", "TJS", "TZS", "TOP", "TTD", "TND", "TRY", "TMT", "UGX", "UAH", "AED", "UYU", "UZS", "VUV", "VES", "VND", "XOF", "YER", "ZMW", "USDC", "BYR", "STD", "STN", "VED", "VEF", "XXX", "$UNKNOWN" - `locationInfos.countryInfos.deliveryMethodInfo.carrierServiceId` (string) - `locationInfos.countryInfos.deliveryMethodInfo.carrierRate` (boolean) - `locationInfos.countryInfos.deliveryMethodInfo.deliveryConditionType` (string) - `locationInfos.countryInfos.deliveryMethodInfo.priceConditions` (array) - `locationInfos.countryInfos.deliveryMethodInfo.priceConditions.deliverCondtion` (string) - `locationInfos.countryInfos.deliveryMethodInfo.weightConditions` (array) - `locationInfos.countryInfos.deliveryMethodInfo.weightConditions.deliveryCondition` (string) - `locationInfos.countryInfos.deliveryMethodInfo.weightConditions.weight` (number) - `locationInfos.countryInfos.deliveryMethodInfo.weightConditions.weightUnit` (string) - `locationInfos.countryInfos.restOfWorld` (boolean) - `locationInfos.countryInfos.provinceCode` (string) - `id` (string) ## Response 200 fields (application/json): - `id` (integer) - `shop` (string, required) - `deliveryProfileId` (string, required) - `sellerGroupIds` (array) - `name` (string) ## Response 400 fields (*/*): - `id` (integer) - `shop` (string, required) - `deliveryProfileId` (string, required) - `sellerGroupIds` (array) - `name` (string) ## Response 401 fields (*/*): - `id` (integer) - `shop` (string, required) - `deliveryProfileId` (string, required) - `sellerGroupIds` (array) - `name` (string) ## Response 403 fields (*/*): - `id` (integer) - `shop` (string, required) - `deliveryProfileId` (string, required) - `sellerGroupIds` (array) - `name` (string) ## Response 422 fields (*/*): - `id` (integer) - `shop` (string, required) - `deliveryProfileId` (string, required) - `sellerGroupIds` (array) - `name` (string)