Resend a specific order
Did your recipient accidentally delete or misplace their reward email? They may have mistaken it for spam or perhaps they don’t have access to that email address anymore. Tango portal allows you to resend an email to the recipient using POST /orders/{referenceOrderID}/resends
. Resending a reward doesn't mean you're placing a new order, but simply resending the original reward email. There are no additional fees associated with resending a reward.
Note:
- You can resend an order to a new email address, but has to be the same recipient.
- You must have the original order number to resend an order. The Tango order history call allows searching past orders. The order number is included in the order result.
- Resend orders once every 30 seconds. The error message timestamp notifies you if a second attempt has been made less than 30 seconds following the last send.
- Retrieve delivered rewards using
GET {URI}/orders/{referenceOrderId}
if you've delivered the reward credentials directly to your recipients, or if you don't wish Tango to deliver them.
To resend an order via mail, you must set the sendEmail=true. Tango will send the original email. If sendEmail has been set to false, it indicates that you have never sent the original email, therefore, cannot resend it.
Coming soon:
This endpoint will soon be modified to allow resending a specific order via SMS using
deliveryMethod
andnewPhoneNumber
as body parameters:
- If both
newEmail
andnewPhoneNumber
are submitted (notNULL
) you can update both email and phone number but resend your reward based ondeliveryMethod
.- If an original order was sent using
SMS
, and vice versa.- If
deliveryMethod=NONE
, you can update the existing email and phone number, but cannot resend the message.- If your original order had not used Tango for delivery (
deliveryMethod=NONE
), you can resend the order using Tango (deliveryMethod=EMAIL
ordeliveryMethod=SMS
).- If
deliveryMethod
isNULL
, you can use the original order’sdeliveryMethod
orsendEmail
value.
Best practice:
If you need to verify reward information for a given order, consider getting information on a list of orders
GET {URI}/orders
instead of resending the reward email using this endpoint.
Resending an email does not guarantee its delivery. If the recipient does not receive an email due to spam filter settings, corporate firewalls, etc. resending an email may not be enough. The underlying problem must be determined and resolved.
The resend endpoint allows you to resend reward emails to the original recipient on demand. Use the following endpoint to resend a specific order:
Endpoint | Purpose |
---|---|
POST {URI}/orders/{referenceOrderID}/resends | Resend a specific Order. |
The following path parameter is used to identify the order to resend:
Path params | Data type | Requirement | Description |
---|---|---|---|
referenceOrderID | string | required | Reference Order ID (returned in the Order response payload) is required to resend a reward. |
The following body parameters are available for resending orders with this endpoint:
Body params | Data type | Requirement | Description |
---|---|---|---|
deliveryMethod (🚧 Coming soon) | enum | optional | Specify the delivery method for an order to determine how a reward is sent to a recipient. deliveryMethod will replace sendEmail once released:-NONE: Tango does not deliver. You are responsible to deliver the rewards to your recipient. This option is similar to sendEmail=false .-EMAIL: Tango delivers the reward to the recipient via email. You must include the recipient email. This option is similar to sendEmail=true .-SMS: Tango delivers the reward to the recipient via text. You must include the recipient phone number. -CARRIER: Tango delivers the physical rewards via a carriers such as the post office, FexEx, UPS, etc. You must include the recipient address. -EMBEDDED: You will embed Tango's lading page into your application. Tango will not deliver the rewards. |
newEmail | string | optional | A new email to resend the Order to. If not provided, the original order email will be used for when sendEmail=true .(🚧 Coming soon) If new email value is missing, use the original order email. deliveryMethod indicates email as the method of delivery only when deliveryMethod=EMAIL . |
newPhoneNumber (🚧 Coming soon) | string | optional | A new phone number to resend the order to. If missing, use the original order phone number when deliveryMethod=SMS .Consider the following rules when adding new mobile numbers for SMS delivery: - Country Code: Must be included. - Format: +CCCPPPPPPPPPPPP (where C is the country code, 1-3 digits, and P is the phone number, up to 12 digits). - Initial Release: Only accepts US phone numbers (Country code = +1) and 10 digits for the phone number. -Standard: Follows ITU E.164, allowing (+) and up to 15 digits for the combined country code and phone number. |
newEtid | string | optional | A new ETID (Email Template ID) to resend the order to. If missing, use the original order email whendeliveryMethod=EMAIL . ETID is a unique identifier for each reward email template saved to your Tango platform. The default Email Template ID is E000000. |
The following payload example shows an order is being resent using POST {URI}/orders/{referenceOrderID}/resends
.
{
"id": 0,
"legacyId": "string",
"createdAt": "2024-03-25T22:46:39.922Z",
"email": "string"
}
The possible response codes for this endpoint are as follows. For details, see i18nkey codes and their error messages:
- 201 Created
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
Updated about 21 hours ago