Graph API Version

Native Offer Codes

Reading

You can't perform this operation on this endpoint.

Creating

You can make a POST request to codes edge from the following paths:
When posting to this edge, a NativeOffer will be created.

Parameters

ParameterDescription
file
file

A csv/txt formatted file that contains unique offer codes. Each code can be claimed by a single user. The file needs to follow a few rules: 1) One unique code per line, 2) 20 or less characters per code with no spaces, 3) Only letters, numbers, dashes or underscores allowed, 4) Up to 10,000 unique codes per file

unique_codes_file_code_type
enum {discount_codes, barcodes, online_discount_codes, instore_discount_codes, instore_barcodes, discount_and_barcodes, discount_and_discount}
Default value: discount_codes

The type of file being uploaded

Return Type

This endpoint supports read-after-write and will read the node to which you POSTed.
Struct {
success: bool,
}

Validation Rules

ErrorDescription
200Permissions error

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.