{
    "info": {
        "name": "CodeAuctions API",
        "description": "Put your key in the collection's `apiKey` variable and you can start sending.\n\nUse a `rep_test_` key to try it: it spends nothing and calls no provider.\n\nDocumentation: https://codeauctions.com/api/",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{apiKey}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "baseUrl",
            "value": "https://reports.codeauctions.com/v1",
            "type": "string"
        },
        {
            "key": "apiKey",
            "value": "rep_test_gm4cWkJkptDIVZRn1uYYl7HQeflOClPxqhwv07OIKDy",
            "type": "string"
        }
    ],
    "item": [
        {
            "name": "vehiclereports",
            "item": [
                {
                    "name": "GET /autocheck/credits",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/autocheck/credits",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "autocheck",
                                "credits"
                            ]
                        },
                        "description": "Credits available and packages on sale\n\nAutoCheck endpoint. Uses the same shared report credits. How many credits you have left and which packages you can buy. Spends nothing."
                    }
                },
                {
                    "name": "GET /autocheck/reports/{vin}",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/autocheck/reports/:vin?type=autocheck",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "autocheck",
                                "reports",
                                ":vin"
                            ],
                            "query": [
                                {
                                    "key": "type",
                                    "value": "autocheck"
                                }
                            ],
                            "variable": [
                                {
                                    "key": "vin",
                                    "value": "1HGCM82633A004352",
                                    "description": "Vehicle Identification Number (VIN), 17 characters."
                                }
                            ]
                        },
                        "description": "Look up a report already generated\n\nAutoCheck endpoint. Uses the same shared report credits. Returns the link of a report you already generated, spending nothing. Use it BEFORE generating so you do not overspend: generating that VIN again DOES cost you another credit."
                    }
                },
                {
                    "name": "GET /autocheck/reports/{vin}/content",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/autocheck/reports/:vin/content?type=autocheck&format=html",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "autocheck",
                                "reports",
                                ":vin",
                                "content"
                            ],
                            "query": [
                                {
                                    "key": "type",
                                    "value": "autocheck"
                                },
                                {
                                    "key": "format",
                                    "value": "html"
                                }
                            ],
                            "variable": [
                                {
                                    "key": "vin",
                                    "value": "1HGCM82633A004352",
                                    "description": "Vehicle Identification Number (VIN), 17 characters."
                                }
                            ]
                        },
                        "description": "Download a report to host on your own website\n\nAutoCheck endpoint. Uses the same shared report credits. Returns a report you already purchased as base64 content, ready to store and serve from your own domain. `format=html` (default) is a single self-contained HTML document: the report pages are embedded as images with a selectable text layer, it loads nothing from other sites and carries no CodeAuctions branding. `format=pdf` returns the PDF when available. Spends nothing: call it right after `POST /reports`, or any time later."
                    }
                },
                {
                    "name": "GET /carfax/credits",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/carfax/credits",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "carfax",
                                "credits"
                            ]
                        },
                        "description": "Credits available and packages on sale\n\nCompatible alias of the Vehicle reports endpoint. Accepts both report types. How many credits you have left and which packages you can buy. Spends nothing."
                    }
                },
                {
                    "name": "GET /carfax/reports/{vin}",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/carfax/reports/:vin?type=carfax",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "carfax",
                                "reports",
                                ":vin"
                            ],
                            "query": [
                                {
                                    "key": "type",
                                    "value": "carfax"
                                }
                            ],
                            "variable": [
                                {
                                    "key": "vin",
                                    "value": "1HGCM82633A004352",
                                    "description": "Vehicle Identification Number (VIN), 17 characters."
                                }
                            ]
                        },
                        "description": "Look up a report already generated\n\nCompatible alias of the Vehicle reports endpoint. Accepts both report types. Returns the link of a report you already generated, spending nothing. Use it BEFORE generating so you do not overspend: generating that VIN again DOES cost you another credit."
                    }
                },
                {
                    "name": "GET /carfax/reports/{vin}/content",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/carfax/reports/:vin/content?type=carfax&format=html",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "carfax",
                                "reports",
                                ":vin",
                                "content"
                            ],
                            "query": [
                                {
                                    "key": "type",
                                    "value": "carfax"
                                },
                                {
                                    "key": "format",
                                    "value": "html"
                                }
                            ],
                            "variable": [
                                {
                                    "key": "vin",
                                    "value": "1HGCM82633A004352",
                                    "description": "Vehicle Identification Number (VIN), 17 characters."
                                }
                            ]
                        },
                        "description": "Download a report to host on your own website\n\nCompatible alias of the Vehicle reports endpoint. Accepts both report types. Returns a report you already purchased as base64 content, ready to store and serve from your own domain. `format=html` (default) is a single self-contained HTML document: the report pages are embedded as images with a selectable text layer, it loads nothing from other sites and carries no CodeAuctions branding. `format=pdf` returns the PDF when available. Spends nothing: call it right after `POST /reports`, or any time later."
                    }
                },
                {
                    "name": "GET /vehiclereports/credits",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/vehiclereports/credits",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "vehiclereports",
                                "credits"
                            ]
                        },
                        "description": "Credits available and packages on sale\n\nHow many credits you have left and which packages you can buy. Spends nothing."
                    }
                },
                {
                    "name": "GET /vehiclereports/reports/{vin}",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/vehiclereports/reports/:vin?type=carfax",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "vehiclereports",
                                "reports",
                                ":vin"
                            ],
                            "query": [
                                {
                                    "key": "type",
                                    "value": "carfax"
                                }
                            ],
                            "variable": [
                                {
                                    "key": "vin",
                                    "value": "1HGCM82633A004352",
                                    "description": "Vehicle Identification Number (VIN), 17 characters."
                                }
                            ]
                        },
                        "description": "Look up a report already generated\n\nReturns the link of a report you already generated, spending nothing. Use it BEFORE generating so you do not overspend: generating that VIN again DOES cost you another credit."
                    }
                },
                {
                    "name": "GET /vehiclereports/reports/{vin}/content",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/vehiclereports/reports/:vin/content?type=carfax&format=html",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "vehiclereports",
                                "reports",
                                ":vin",
                                "content"
                            ],
                            "query": [
                                {
                                    "key": "type",
                                    "value": "carfax"
                                },
                                {
                                    "key": "format",
                                    "value": "html"
                                }
                            ],
                            "variable": [
                                {
                                    "key": "vin",
                                    "value": "1HGCM82633A004352",
                                    "description": "Vehicle Identification Number (VIN), 17 characters."
                                }
                            ]
                        },
                        "description": "Download a report to host on your own website\n\nReturns a report you already purchased as base64 content, ready to store and serve from your own domain. `format=html` (default) is a single self-contained HTML document: the report pages are embedded as images with a selectable text layer, it loads nothing from other sites and carries no CodeAuctions branding. `format=pdf` returns the PDF when available. Spends nothing: call it right after `POST /reports`, or any time later."
                    }
                },
                {
                    "name": "POST /autocheck/reports",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/autocheck/reports",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "autocheck",
                                "reports"
                            ]
                        },
                        "description": "Generate a vehicle report\n\nAutoCheck endpoint. Uses the same shared report credits. Generates a Carfax or AutoCheck report for a VIN and returns the link. It ALWAYS spends 1 credit, even if you had asked for that same VIN before: every call is a purchase. The response carries the real report date in `generated_at`, and `fresh` tells you whether it was just generated or comes from our archive (never older than 7 days). A new report usually takes under a minute: use a timeout of at least 90 seconds. To host the report on your own website, download it with `GET /reports/{vin}/content`.\n\nThe default {{$guid}} creates a NEW purchase on every Send. To retry an existing purchase, replace Idempotency-Key with the exact value used originally and keep the URL and body unchanged.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"vin\": \"1HGCM82633A004352\",\n    \"type\": \"autocheck\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "POST /carfax/reports",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/carfax/reports",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "carfax",
                                "reports"
                            ]
                        },
                        "description": "Generate a vehicle report\n\nCompatible alias of the Vehicle reports endpoint. Accepts both report types. Generates a Carfax or AutoCheck report for a VIN and returns the link. It ALWAYS spends 1 credit, even if you had asked for that same VIN before: every call is a purchase. The response carries the real report date in `generated_at`, and `fresh` tells you whether it was just generated or comes from our archive (never older than 7 days). A new report usually takes under a minute: use a timeout of at least 90 seconds. To host the report on your own website, download it with `GET /reports/{vin}/content`.\n\nThe default {{$guid}} creates a NEW purchase on every Send. To retry an existing purchase, replace Idempotency-Key with the exact value used originally and keep the URL and body unchanged.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"vin\": \"1HGCM82633A004352\",\n    \"type\": \"carfax\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "POST /vehiclereports/reports",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/vehiclereports/reports",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "vehiclereports",
                                "reports"
                            ]
                        },
                        "description": "Generate a vehicle report\n\nGenerates a Carfax or AutoCheck report for a VIN and returns the link. It ALWAYS spends 1 credit, even if you had asked for that same VIN before: every call is a purchase. The response carries the real report date in `generated_at`, and `fresh` tells you whether it was just generated or comes from our archive (never older than 7 days). A new report usually takes under a minute: use a timeout of at least 90 seconds. To host the report on your own website, download it with `GET /reports/{vin}/content`.\n\nThe default {{$guid}} creates a NEW purchase on every Send. To retry an existing purchase, replace Idempotency-Key with the exact value used originally and keep the URL and body unchanged.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"vin\": \"1HGCM82633A004352\",\n    \"type\": \"carfax\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "reserve",
            "item": [
                {
                    "name": "POST /reserve/availability",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/reserve/availability",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "reserve",
                                "availability"
                            ]
                        },
                        "description": "Show reserve availability badges\n\nBatch results-page badges: availability only, never an amount. Use Copart Lot Numbers or IAAI Stock Numbers, not IAAI VehicleDetail URL IDs or VINs. Keep the same auction and identifier for a later reveal. Real batch results require an active LIVE API key with reserve:read, a purchased Seller Reserve API request package (from $100.00) funded with verified wallet top-ups in the active payment environment, and a positive available request balance. Verified Sandbox top-ups can exercise the same flow while Sandbox checkout is enabled; Sandbox and Live checkout have separate Seller Reserve balances. Currently free; access stops at zero requests. Maximum 50 lots from one auction per call; 6 calls per minute per account. null means unknown.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"auction\": \"copart\",\n    \"lots\": [\n        \"12345678\",\n        \"87654321\"\n    ]\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "GET /reserve/balance",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/reserve/balance",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "reserve",
                                "balance"
                            ]
                        },
                        "description": "Read the Seller Reserve API balance\n\nFree. Check remaining prepaid requests, the unrevealed-result counter and current packages. Add wallet funds in Billing, then buy a listed package in the Seller Reserve API module. Packages use verified wallet top-ups in the active payment environment. Verified Sandbox top-ups support the complete workflow during Sandbox checkout. Sandbox and Live checkout have separate Seller Reserve balances; this endpoint shows the active environment balance. price_per_reveal_usd is the nominal base rate, not a charge applied to each call; use packages for purchase prices."
                    }
                },
                {
                    "name": "POST /reserve/reveal",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Idempotency-Key",
                                "value": "{{$guid}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{baseUrl}}/reserve/reveal",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "reserve",
                                "reveal"
                            ]
                        },
                        "description": "Reveal a lot's reserve price\n\nUse on an explicit LOT DETAIL action. Send the same auction and identifier used for availability: Copart Lot Number or IAAI Stock Number. The IAAI VehicleDetail URL ID is a different identifier; VIN lookup is not supported. A successful reveal uses 1 prepaid request. Every 10 valid unrevealed results use 1 request; technical errors do not count. Package size determines the purchase rate. billing.credits_used reports request consumption; billing.amount_usd is 0.00 because the package was already paid for. Send a unique Idempotency-Key and reuse it on retries with identical parameters; a replay adds no second debit. 10 calls per minute per account and 2 concurrent requests. Use a 75-second timeout. The same consumption rules apply during Sandbox checkout using verified Sandbox top-ups; Seller Reserve balances are separate in Sandbox and Live checkout.\n\nThe default {{$guid}} creates a NEW purchase on every Send. To retry an existing purchase, replace Idempotency-Key with the exact value used originally and keep the URL and body unchanged.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"auction\": \"copart\",\n    \"lot\": \"12345678\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "system",
            "item": [
                {
                    "name": "GET /ping",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/ping",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "ping"
                            ]
                        },
                        "description": "Check that your key works\n\nSpends nothing and calls no provider. It is everyone's first curl."
                    }
                },
                {
                    "name": "GET /account",
                    "request": {
                        "method": "GET",
                        "header": [],
                        "url": {
                            "raw": "{{baseUrl}}/account",
                            "host": [
                                "{{baseUrl}}"
                            ],
                            "path": [
                                "account"
                            ]
                        },
                        "description": "Balance, credits and tier of your account\n\nEverything you need to know whether you can keep operating. Spends nothing."
                    }
                }
            ]
        }
    ]
}