User Tools

Site Tools


api:product:updatedestinations

API : Product Update destinations

Introduction

This request will update a product's destinations. It only supports uploading the destinations as a CSV-file through a multipart-form.

The uploaded file only updates the fields related to prices.

Request

URL https://api.telecomx.dk/product/PRODUCT_ID/destination
Method POST
Param PRODUCT_ID Id of the product to update
Access level RESELLER if product is an inherited reseller product.
RESELLER_ADMIN with FINANCE feature or ADMIN for any type of product.
Form
file File The CSV file, filled out with destinations and their prices.

The CSV file is expected to have the same headers as this request in CSV.

Example request file

Country;CountryCode;CountryPrefix;Region;Type;Prefixes;CustomerFee;CustomerRate;WholesaleFee;WholesaleRate;CostFee;CostRate
Nicaragua;NI;505;WORLD3;MOBILE;;0,5;2,5;0,1;2;0,02;1,678

Response

JSON object
success Boolean If the request succeeded, then this is true.

Note that properties holding no value may be omitted from the object.

Errors

Error code Message Description
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/product/updatedestinations.txt · Last modified: 2023/10/30 22:35 by Per Møller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki