Skip to Content
Developers
Pro Deals

Upload your own codes

POST
/pro-deals/{id}/codes

For a Pro Deal with codeSource: uploaded: add codes you created in your store. Up to 100 codes per call; a code already on the Pro Deal comes back as duplicate.

Authorization

integrationKey
headerAuthorizationBearer <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.

Path Parameters

id*string

Pro Deal id.

Example"6730f1c2a9d4e5b6c7d8e9f0"

Request Body

application/json
  1. body
codes*array<>
Items1 <= items <= 100

Response Body

One result per item, in request order.

application/json
  1. response
results*array<>
Example Request
curl -X POST 'https://api.endvr.io/v1/pro-deals/6730f1c2a9d4e5b6c7d8e9f0/codes' \  -H 'Content-Type: application/json' \  -d '{  "codes": [    "ACME-PRO-0001",    "ACME-PRO-0002"  ]}'
Example Response
{  "results": [    {      "index": 0,      "result": "accepted"    },    {      "index": 1,      "result": "rejected",      "reason": "unknown_code"    }  ]}