{* * Sidebar with list of couriers *} {* * Main content with editor form *}
{* * One-time help block above the editor *}
× [`Couriers are your teammates who are assigned to deliver orders to customers and to track and update order information on the go using Shop-Script mobile app.

Unlike common backend users, couriers may not login to the main store backend and can only see orders they were assigned using the mobile app only. An order can be assigned to a courier upon the order SHIP action. Learn more about couriers.`]
[`Courier name`]

[`Courier real or nick name. Linking couriers with real contacts or backend users is optional.`]
[`Note`]

[`Any kind of useful information about this courier, e.g. contact information, preferred delivery hours and locations.`]
{if $courier.storefronts}
[`Storefronts`]
{foreach $courier.storefronts as $url => $enabled}
{/foreach}
[`This courier assignment will be available for orders placed on selected storefronts only.`]
{else} {/if}
[`Status`]
{if $courier.api_last_use || $courier.id != 'new'}
[`Edit orders`]

[`If enabled, a courier can edit order items, discount amount, and shipping cost via the mobile app.`]
[`Payment and shipping methods selected by a customer and values of default shipping address fields “Country”, “ZIP”, “State”, “City” cannot be changed via mobile app.`]
[`A courier can change order status, shipping address in an order, except for fields “Country”, “ZIP”, “State”, and “City”, and other shipping parameters regardless of this setting’s value.`]
[`Edit customers`]

[`Courier can edit customers’ contact details in mobile app.`]
[`Last seen`]
{if $courier.api_last_use} {$courier.api_last_use|wa_date:humandatetime} {else} [`Never`] {/if}
{/if} {if $courier.id != 'new'}
[`Auth code`]
{$pin_is_valid = $courier.api_pin && strtotime($courier.api_pin_expire) > time()} {if $pin_is_valid} {sprintf("%02d", $courier.id)}-{$courier.api_pin|escape} {elseif $courier.api_pin_expire} {if $courier.api_last_use} {else} [`Expired`] {/if} {else} [`Not set`] {/if} [`Re-generate the code`] {if $pin_is_valid && !$courier.api_last_use}
[`Expires:`] {$courier.api_pin_expire|wa_date:humandatetime} {/if}
{if $pin_is_valid && !$courier.api_last_use} [`Auth code must be entered by the courier in the mobile app to authorize it with your online store. Once authorized with the code, the mobile app may then use the connection indefinitely. In case the code was not entered, it will automatically expire in 24 hours.`] {/if}
{/if}
{if $courier.id != 'new'} {/if}