Pro Deals
List codes
GET
The Pro Deal's codes and their state. For a Pro Deal with codeSource: generated, these are the codes to
create in your store as single-use discount codes. Send Accept: text/csv for one code per line.
integrationKeyheader
AuthorizationBearer <token>A brand integration key, created by an Owner or Admin in Brand Settings › Integrations and shown once.
endvr_ik_test_… keys write test data that is never billed; endvr_ik_live_… keys are live.
id*stringPro Deal id.
Example
"6730f1c2a9d4e5b6c7d8e9f0"status?stringOnly codes in this state.
Value in
"available""assigned""used""deactivated"cursor?stringThe nextCursor of the previous page. Omit for the first page.
limit?integerItems per page.
Range
1 <= value <= 100Default
50A page of codes.
- response
data*array<>nextCursor*|Pass it as cursor for the next page; null on the last page.
curl -X GET 'https://api.endvr.io/v1/pro-deals/6730f1c2a9d4e5b6c7d8e9f0/codes'Example Response
{ "data": [ { "code": "string", "status": "available", "assignedAt": "2019-08-24T14:15:22Z", "usedAt": "2019-08-24T14:15:22Z", "deactivatedAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}