ARNPROXY

New package / top-up price; no debit

POST/account/api/v1/residential/quote

Authorization

AuthorizationBearer YOUR_ARNPROXY_API_KEY
Required permissionread
Acceptapplication/json
Content-Typeapplication/json

Parameters

NameTypeDescription
mode
bodyRequired
stringnew creates a package; topup adds GB to an owned package.
time_id
bodyRequired
integerPeriod/GB-plan ID from the matching catalog/options, not a day/GB count.
location_id
bodyConditional
integerRequired for mode=new only; forbidden for topup.
package_id
bodyConditional
integerRequired for mode=topup only; forbidden for new.
promo_code
bodyOptional
stringOptional promo, up to 100 bytes. Keep it identical between quote and purchase/renewal.
Default: ""

Request body

Replace YOUR_/FROM_ placeholders with values from the relevant catalog, quote or scope. Examples leave consent false; only approve a real operation intentionally.

request.json
{
    "mode": "topup",
    "package_id": "YOUR_PACKAGE_ID",
    "time_id": "FROM_RESIDENTIAL_CATALOG",
    "promo_code": ""
}

Additional usage examples

IDs and prices are illustrative; use real values from the catalog and the same quote. JSON IDs and expected_total_minor must be numbers. Examples deliberately keep terms=false; submit terms=true only after explicit customer approval for the real paid operation.

Residential: new package versus GB top-up · mode=new

Neither residential_quote nor residential_purchase requires a purpose selection. A quote uses only mode, time_id, location_id or package_id and optional promo_code. For purchase, add the quoted currency, amount, selection hash and explicit approval.

application/json
{
    "mode": "new",
    "location_id": 20,
    "time_id": 201,
    "promo_code": ""
}

Residential: new package versus GB top-up · mode=topup

Neither residential_quote nor residential_purchase requires a purpose selection. A quote uses only mode, time_id, location_id or package_id and optional promo_code. For purchase, add the quoted currency, amount, selection hash and explicit approval.

application/json
{
    "mode": "topup",
    "package_id": 10001,
    "time_id": 201,
    "promo_code": ""
}

Request example

cURL
printf 'Authorization: Bearer %s\n' "$ARNPROXY_API_KEY" |
  curl --silent --show-error --header @- \
    --header 'Accept: application/json' \
    --connect-timeout 10 --max-time 30 \
    --request POST --header 'Content-Type: application/json' \
    --data-binary @request.json \
    'https://www.arnproxy.com/account/api/v1/residential/quote'

Examples are not executed on this page. Keep the API key in a server-side environment variable; do not put real keys in URLs or browser code. Prepare request.json for POST examples.

Responses

200Success response
application/json
{
    "ok": true,
    "data": {
        "mode": "topup",
        "product_id": 33,
        "location_id": 20,
        "time_id": 201,
        "gb": 1,
        "days": 30,
        "package_id": 20001,
        "currency": "TRY",
        "base_total": "15.00",
        "quantity_discount_rate": 0,
        "subtotal": "15.00",
        "promotion": {
            "code": "",
            "rate": 0,
            "amount": "0.00"
        },
        "total": "15.00",
        "total_minor": 1500,
        "last_service_date": "2030-02-01",
        "automatic_renewal": false,
        "stock_checked": false,
        "provider_checked": false,
        "selection_hash": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    },
    "meta": {
        "request_id": "000000000000000000000001",
        "phase": "public_v1",
        "source": "arnproxy_records"
    }
}
Response fields and types
NameTypeDescription
okbooleanSuccess envelope flag; on false inspect error.code.
dataobjectOperation-specific result; examples are illustrative and synthetic.
data.modestringOperation-specific mode value; preserve its demonstrated type and consult the behavior notes.
data.product_idintegerLocal catalog location or product-type ID.
data.location_idintegerLocal catalog location or product-type ID.
data.time_idintegerLocal period/GB-plan record ID, not a day or GB count.
data.gbintegerTraffic amount; list/settings operations do not purchase traffic.
data.daysintegerPlan duration in days, separate from a GB plan’s traffic amount.
data.package_idintegerRelevant ARNPROXY record ID; use it instead of the upstream internal ID.
data.currencystringAccount transaction currency: TRY or USD.
data.base_totalstringMoney amount; preserve the returned string/integer representation for precision.
data.quantity_discount_rateintegerOperation-specific quantity discount rate value; preserve its demonstrated type and consult the behavior notes.
data.subtotalstringMoney amount; preserve the returned string/integer representation for precision.
data.promotionobjectOperation-specific promotion value; preserve its demonstrated type and consult the behavior notes.
data.promotion.codestringOperation-specific code value; preserve its demonstrated type and consult the behavior notes.
data.promotion.rateintegerOperation-specific rate value; preserve its demonstrated type and consult the behavior notes.
data.promotion.amountstringMoney amount; preserve the returned string/integer representation for precision.
data.totalstringMoney amount; preserve the returned string/integer representation for precision.
data.total_minorintegerInteger minor units: 1000 means 10.00 TRY/USD.
data.last_service_datestringLast service day: current, previous or projected by the quote. A projection does not renew.
data.automatic_renewalbooleanOperation-specific automatic renewal value; preserve its demonstrated type and consult the behavior notes.
data.stock_checkedbooleanA price/local result is not by itself a provider or stock guarantee.
data.provider_checkedbooleanA price/local result is not by itself a provider or stock guarantee.
data.selection_hashstringFreshness fingerprint to copy unchanged to the corresponding write/price confirmation.
metaobjectRequest correlation and data-source metadata.
meta.request_idstringThis HTTP request’s correlation ID, not an operation key or order ID.
meta.phasestringOperation-specific phase value; preserve its demonstrated type and consult the behavior notes.
meta.sourcestringData source; local records and a live provider lookup are different evidence.

Error response

HTTP 401 · INVALID_API_KEY
{
  "ok": false,
  "error": { "code": "INVALID_API_KEY" },
  "meta": { "request_id": "000000000000000000000001" }
}

Authentication and validation may reject a request before execution. Consult the error reference and retain request_id when contacting support. Never send keys or passwords. Errors & limits →

Behavior & important notes

  • Package and list IDs are ARNPROXY record IDs, not upstream package keys or list IDs. A stale package snapshot cannot grant access; refresh it with residential_package_refresh when needed.
  • mode=new creates a package; mode=topup adds GB to an existing one. Use residential_catalog/quote first. Balance acceptance and background delivery are separate; follow the same operation key.
  • Neither residential_quote nor residential_purchase requires a purpose selection. A quote uses only mode, time_id, location_id or package_id and optional promo_code. For purchase, add the quoted currency, amount, selection hash and explicit approval.

Search the current language. Close with Esc