POST
/
allowlists
curl --request POST \
  --url https://api.loopreturns.com/api/v1/allowlists \
  --header 'Content-Type: application/json' \
  --header 'X-Authorization: <api-key>' \
  --data '{
  "value": "example@example.com",
  "type": "email",
  "secondary_value": "example.2@example.com"
}'
{
  "id": 1,
  "type": "order",
  "value": "example@example.com",
  "secondary_value": "example.2@example.com"
}

Authorizations

X-Authorization
string
header
required

Body

application/json
value
string
required

The allowed value. Returns made using this value will override any other return ineligibility.

type
enum<string>
required

The type of value allowed by this allowlist entry.

Available options:
order,
product,
email,
product_tag
secondary_value
string

This value is not used.

Response

200
application/json
Success
id
integer

The unique identifier associated with the allowlist entry.

type
enum<string>

The type of value allowed by this allowlist entry. order is the order number of the allowed order and email is the customer's email address.

Available options:
order,
email
value
string

The allowed value. Returns made using this value will override any other return ineligibility.

secondary_value
string

This value is not used.